/* Overrides for Business Casual theme when used inside Django templates. */

/* Carousel controls above overlapping product-item layers */
.gs-bc .product-item .gs-product-carousel-wrap {
  position: relative;
  z-index: 3;
  width: 100%;
}

.gs-bc .product-item .product-item-title {
  z-index: 2;
}

.gs-bc .product-item .product-item-description {
  z-index: 1;
}

.gs-bc .gs-product-carousel .carousel-control-prev,
.gs-bc .gs-product-carousel .carousel-control-next {
  z-index: 10;
  width: 12%;
  opacity: 0.85;
}

/* Video carousel: keep side arrows off corners so play/fullscreen buttons receive clicks */
.gs-bc .gs-video-carousel .carousel-control-prev,
.gs-bc .gs-video-carousel .carousel-control-next {
  top: 22%;
  bottom: 22%;
  height: auto;
  width: 9%;
  z-index: 4;
}

.gs-bc .gs-product-carousel .carousel-indicators {
  z-index: 10;
  margin-bottom: 0.5rem;
}

.gs-bc .gs-product-carousel .carousel-inner.gs-product-carousel-inner {
  overflow: hidden;
}

/* Fixed-size slide frame: large images crop, small images scale up */
.gs-bc .gs-product-carousel .gs-carousel-slide-media {
  position: relative;
  width: 100%;
  height: 400px;
  min-height: 400px;
  max-height: 600px;
  overflow: hidden;
  background-color: rgba(47, 23, 15, 0.08);
}

.gs-bc .gs-product-carousel .gs-carousel-slide-media img,
.gs-bc .gs-product-carousel .gs-carousel-slide-media .gs-video-player-el {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  background-color: #0b1220;
}

/* Centered play control (replaces easy-to-miss native bottom controls) */
.gs-bc .gs-video-player {
  position: relative;
  width: 100%;
  height: 100%;
}

.gs-bc .gs-video-play-btn {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 11;
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4.5rem;
  height: 4.5rem;
  padding: 0;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  transform: translate(-50%, -50%);
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.gs-bc .gs-video-play-btn:hover,
.gs-bc .gs-video-play-btn:focus {
  background: rgba(0, 0, 0, 0.72);
  transform: translate(-50%, -50%) scale(1.06);
  outline: none;
}

.gs-bc .gs-video-play-icon {
  display: block;
  width: 0;
  height: 0;
  margin-left: 0.35rem;
  border-top: 0.85rem solid transparent;
  border-bottom: 0.85rem solid transparent;
  border-left: 1.35rem solid #fff;
}

.gs-bc .gs-video-player.is-playing .gs-video-play-btn {
  opacity: 0;
  pointer-events: none;
}

.gs-bc .gs-video-player.is-paused .gs-video-play-btn,
.gs-bc .gs-video-player.is-ended .gs-video-play-btn {
  opacity: 1;
  pointer-events: auto;
}

.gs-bc .gs-video-fullscreen-btn {
  position: absolute;
  bottom: 0.75rem;
  right: 0.75rem;
  top: auto;
  z-index: 12;
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: none;
  border-radius: 0.35rem;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  cursor: pointer;
  opacity: 0.92;
  transition: opacity 0.2s ease, background 0.2s ease;
}

.gs-bc .gs-video-fullscreen-btn:hover,
.gs-bc .gs-video-fullscreen-btn:focus {
  background: rgba(0, 0, 0, 0.78);
  opacity: 1;
  outline: none;
}

.gs-bc .gs-video-fullscreen-icon {
  display: block;
  width: 1rem;
  height: 1rem;
  border: 2px solid #fff;
  border-radius: 2px;
  box-shadow: 3px 3px 0 -1px #fff;
}

.gs-bc .gs-video-fullscreen-btn.is-active .gs-video-fullscreen-icon {
  width: 0.85rem;
  height: 0.85rem;
  border-width: 0;
  box-shadow: none;
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.gs-bc .gs-video-player:fullscreen,
.gs-bc .gs-video-player:-webkit-full-screen {
  width: 100%;
  height: 100%;
  max-height: none;
  background: #000;
}

.gs-bc .gs-video-player:fullscreen .gs-video-player-el,
.gs-bc .gs-video-player:-webkit-full-screen .gs-video-player-el {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: contain;
}

/* Fullscreen: hide center play while video is playing; show when paused/ended */
.gs-bc .gs-video-player:fullscreen.is-playing .gs-video-play-btn,
.gs-bc .gs-video-player:-webkit-full-screen.is-playing .gs-video-play-btn {
  opacity: 0;
  pointer-events: none;
}

.gs-bc .gs-video-player:fullscreen.is-paused .gs-video-play-btn,
.gs-bc .gs-video-player:fullscreen.is-ended .gs-video-play-btn,
.gs-bc .gs-video-player:-webkit-full-screen.is-paused .gs-video-play-btn,
.gs-bc .gs-video-player:-webkit-full-screen.is-ended .gs-video-play-btn {
  opacity: 1;
  pointer-events: auto;
}

@media (min-width: 992px) {
  .gs-bc .gs-product-carousel .gs-carousel-slide-media {
    height: 540px;
    min-height: 540px;
    max-height: 540px;
  }
}

/* Text-only fallback (no hero images): narrower heading card */
.gs-bc .gs-intro-heading-card {
  max-height: 220px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  width: 100%;
  max-width: min(88vw, 360px);
}

.gs-bc .gs-intro-heading-card .section-heading .section-heading-upper {
  font-size: 0.85rem;
  line-height: 1.35;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.gs-bc .gs-intro-heading-card .section-heading .section-heading-lower {
  font-size: clamp(1.35rem, 3vw, 2rem);
  line-height: 1.1;
  margin-top: 0.35rem;
}

.gs-bc .gs-intro-heading-card .small {
  font-size: 0.85rem;
  line-height: 1.35;
}

@media (max-width: 991px) {
  .gs-bc .gs-intro-heading-card {
    max-height: 200px;
  }
}

/* Video carousel fixed height (legacy Global Solutions video layout) */
.gs-bc .carousel-inner.gs-carousel-fixed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: inherit;
}

.gs-bc .carousel-inner.gs-carousel-fixed .carousel-item {
  height: 100%;
  min-height: 100%;
}

.gs-bc .carousel-inner.gs-carousel-fixed .carousel-item img,
.gs-bc .carousel-inner.gs-carousel-fixed .carousel-item video.gs-carousel-fixed-media {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
  object-position: center;
}

.gs-bc .carousel-inner.gs-carousel-fixed .carousel-item video.gs-carousel-fixed-media {
  background: #0b1220;
}
