/* Full-width photograph with a fixed slogan above the slides. */
#home .hero-inner {
  display: block;
  min-height: 0;
  padding: 0;
}
#home .photo-frame.hero-carousel {
  --hero-photo-height: clamp(340px, 47.43vw, 680px);
  --hero-control-strip: 56px;
  position: relative;
  inset: auto;
  z-index: 0;
  width: 100%;
  max-width: none;
  height: auto;
  min-height: 0;
  aspect-ratio: auto;
  margin: 0;
  padding: 0 0 var(--hero-control-strip);
}
#home .hero-carousel::before {
  content: "";
  display: block;
  height: var(--hero-photo-height);
  aspect-ratio: auto;
}
#home .hero-carousel .photo.hero-slide {
  height: var(--hero-photo-height);
  object-fit: cover;
  transform: none;
}
#home .hero-carousel::after {
  inset: 0 0 auto;
  height: var(--hero-photo-height);
  background:
    radial-gradient(ellipse 56% 73% at 0% 0%, #090b0d99, transparent 84%),
    linear-gradient(0deg, #090b0d38, transparent 20%);
}
#home .hero-slogan {
  position: absolute;
  z-index: 3;
  top: clamp(16px, 2.1vw, 32px);
  left: clamp(18px, 2.6vw, 40px);
  display: block;
  width: clamp(180px, 25vw, 360px);
  height: auto;
  filter: drop-shadow(0 2px 5px #090b0d90);
  pointer-events: none;
}
#home .hero-carousel .hero-controls {
  bottom: 9px;
}
#home .hero-carousel .hero-slide.batter-23 {
  --slide-position: 46% 4%;
}
@media (max-width: 760px) {
  #home .photo-frame.hero-carousel {
    --hero-photo-height: 87.18vw;
    --hero-control-strip: 52px;
  }
  #home .hero-slogan {
    width: 34vw;
    top: 12px;
    left: 13px;
  }
  #home .hero-carousel .hero-slide.batter-23 {
    --slide-position: 86% 20%;
  }
  #home .hero-carousel .hero-controls {
    bottom: 7px;
  }
}

/* Desktop: keep the original slogan-and-photo composition without zooming the photo. */
@media (min-width: 761px) {
  #home .hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 46fr) minmax(0, 54fr);
    gap: 0;
    align-items: start;
  }
  #home .photo-frame.hero-carousel {
    --hero-photo-height: clamp(370px, 37vw, 650px);
  }
  #home .hero-slogan {
    position: relative;
    top: auto;
    left: auto;
    align-self: center;
    justify-self: center;
    width: min(86%, 680px);
    margin-bottom: 56px;
    filter: drop-shadow(0 6px 15px #000c);
  }
  #home .hero-carousel::after {
    background:
      linear-gradient(90deg, #090b0d 0%, #090b0d40 13%, transparent 27%),
      linear-gradient(0deg, #090b0d38, transparent 20%);
  }
}
