/* Fixed introductory hero, property slideshow and gallery. */
.hero {
  --showcase-height: clamp(520px, 65vw, 820px);
  min-height: 0;
  height: auto;
  display: block;
  overflow: hidden;
}
.hero-background {
  position: absolute;
  inset: 0 0 auto;
  width: 100%;
  height: 100svh;
  object-fit: cover;
}
.hero-slideshow,
.hero-slide,
.hero-slide img { position: absolute; inset: 0; }
.hero-slideshow {
  position: relative;
  inset: auto;
  height: var(--showcase-height);
  margin-top: calc(100svh - 84px);
  overflow: hidden;
  background: var(--deep);
}
.hero-slide { margin: 0; opacity: 0; visibility: hidden; transition: opacity 900ms ease, visibility 900ms ease; }
.hero-slide.is-active { opacity: 1; visibility: visible; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; }
.hero-slide figcaption { position: absolute; right: clamp(22px, 4vw, 60px); top: 26px; z-index: 1; color: white; text-transform: uppercase; letter-spacing: .16em; font-size: 10px; text-shadow: 0 1px 12px rgba(0,0,0,.7); }
.hero-shade { inset: 0 0 auto; height: 100svh; pointer-events: none; }
.hero-content { position: absolute; top: 84px; left: 0; }
.hero-content h1 { font-size: clamp(52px, 6vw, 96px); line-height: .96; }
.hero-title-line { display: block; }
.hero-content .hero-copy { margin-block: 22px; }
.hero-content .button { font-size: 26px; }
.hero-facts { bottom: var(--showcase-height); }
.slideshow-controls { position: absolute; z-index: 4; left: clamp(24px, 8vw, 120px); bottom: 38px; display: flex; align-items: center; gap: 8px; color: white; }
.slideshow-controls button { border: 1px solid rgba(255,255,255,.55); background: rgba(5,20,18,.38); color: white; min-width: 44px; height: 42px; padding: 0 13px; font: 600 11px var(--sans); cursor: pointer; backdrop-filter: blur(8px); }
.slideshow-controls button:hover,
.slideshow-controls button:focus-visible { background: white; color: var(--ink); }
.slide-counter { min-width: 72px; text-align: center; font-size: 11px; letter-spacing: .12em; }

.gallery-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin: -20px 0 34px; }
.gallery-tabs button { border: 1px solid var(--line); background: transparent; color: var(--ink); padding: 10px 17px; font: 600 11px var(--sans); letter-spacing: .06em; cursor: pointer; }
.gallery-tabs button[aria-selected="true"] { background: var(--ink); color: white; border-color: var(--ink); }
.gallery-grid.full-gallery { grid-template-columns: repeat(3, minmax(0,1fr)); grid-template-rows: none; grid-auto-rows: 270px; gap: 4px; }
.full-gallery .gallery-item { position: relative; grid-column: auto; grid-row: auto; }
.full-gallery .gallery-item:first-child,
.full-gallery .gallery-item:nth-child(8) { grid-column: span 2; }
.full-gallery .gallery-item[hidden] { display: none; }
.full-gallery .gallery-item span { position: absolute; left: 16px; bottom: 14px; color: white; background: rgba(5,20,18,.72); padding: 6px 10px; font: 600 10px var(--sans); letter-spacing: .06em; text-transform: uppercase; pointer-events: none; }

#lightbox { width: min(94vw, 1300px); max-width: 1300px; color: white; overflow: visible; }
#lightbox figure { margin: 0; }
#lightbox img { width: 100%; max-height: 86vh; object-fit: contain; }
#lightbox figcaption { margin-top: 10px; text-align: center; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
#lightbox button { position: fixed; z-index: 2; color: white; border: 1px solid rgba(255,255,255,.45); background: rgba(0,0,0,.42); cursor: pointer; }
#lightbox .lightbox-close { top: 20px; right: 26px; width: 48px; height: 48px; font-size: 32px; }
#lightbox .lightbox-prev,
#lightbox .lightbox-next { top: 50%; width: 48px; height: 48px; font-size: 22px; transform: translateY(-50%); }
#lightbox .lightbox-prev { left: 22px; }
#lightbox .lightbox-next { right: 22px; }

@media (max-width: 850px) {
  .hero { --showcase-height: clamp(440px, 82vw, 650px); }
  .hero-slideshow { margin-top: calc(100svh - 68px); }
  .hero-content { top: 68px; }
  .hero-content h1 { font-size: clamp(48px, 9vw, 76px); }
  .slideshow-controls { bottom: 24px; }
  .hero-slide figcaption { top: 22px; }
  .gallery-grid.full-gallery { grid-template-columns: repeat(2,minmax(0,1fr)); grid-template-rows: none; grid-auto-rows: 240px; }
  .full-gallery .gallery-item:first-child,
  .full-gallery .gallery-item:nth-child(8) { grid-column: span 2; }
}

@media (max-width: 520px) {
  .hero-content { right: 0; width: 100%; max-width: 100vw; overflow: hidden; }
  .hero-content h1 { width: calc(100vw - 48px) !important; max-width: calc(100vw - 48px) !important; font-size: clamp(38px, 11vw, 44px); white-space: normal; overflow-wrap: break-word; }
  .hero-title-line:first-child > span { display: block; }
  .hero-content .hero-copy { width: calc(100vw - 48px) !important; max-width: calc(100vw - 48px) !important; font-size: 14px; white-space: normal; overflow-wrap: break-word; }
  .hero-content .button { gap: 28px; }
  .slideshow-controls { left: 20px; bottom: 150px; }
  .hero-slide figcaption { display: none; }
  .gallery-tabs { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 8px; }
  .gallery-tabs button { flex: 0 0 auto; }
  .gallery-grid.full-gallery { display: grid; overflow: visible; grid-template-columns: 1fr; grid-auto-rows: 260px; gap: 3px; }
  .full-gallery .gallery-item,
  .full-gallery .gallery-item:first-child,
  .full-gallery .gallery-item:nth-child(8) { grid-column: 1; width: auto; height: auto; }
  #lightbox .lightbox-prev { left: 8px; }
  #lightbox .lightbox-next { right: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide { transition: none; }
}
