@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;800&family=Roboto:wght@300;400;500;700&display=swap');

    :root {
      --navy: #16303f;
      --navy-2: #0c1f29;
      --gold: #7fa8bb;
      --aqua: #9cc0d1;
      --coral: #cfe6ef;
      --text: #f4f7f9;
      --muted: #b9cad8;
      --glass: rgba(12, 31, 41, 0.68);
      --line: rgba(255, 255, 255, 0.16);
      --nav-height: 72px;
    }

    * { box-sizing: border-box; }

    html {
      scroll-behavior: smooth;
      scroll-padding-top: var(--nav-height);
      overflow-anchor: none;
      scroll-snap-type: y proximity;
      background: #020915;
    }

    body {
      margin: 0;
      font-family: 'Roboto', sans-serif;
      background: var(--navy-2);
      color: var(--text);
      line-height: 1.6;
      overflow-x: hidden;
    }

    .nav {
      position: sticky;
      top: 0;
      z-index: 20;
      min-height: var(--nav-height);
      background: rgba(12, 31, 41, 0.84);
      backdrop-filter: blur(14px);
      padding: 0.9rem 5vw;
      display: flex;
      align-items: center;
      justify-content: space-between;
      border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .brand {
      display: flex;
      align-items: center;
      gap: 12px;
      font-weight: 800;
      color: var(--gold);
      white-space: nowrap;
    }

    .brand-mark {
      display: grid;
      place-items: center;
      width: 70px;
      height: 70px;
      border-radius: 999px;
      background: rgba(255, 255, 255, 0.76);
      backdrop-filter: blur(18px);
      border: 1px solid rgba(255, 255, 255, 0.3);
      box-shadow: 0 8px 22px rgba(0, 0, 0, 0.4);
      overflow: hidden;
      flex: 0 0 auto;
      padding: 8px;
    }

    .brand-mark img {
      width: 100%;
      height: 100%;
      object-fit: contain;
    }

    .footer-logo {
      display: block;
      height: 300px;
      width: auto;
      object-fit: contain;
      margin: 14px auto 0;
      opacity: 0.9;
    }

    .nav-links {
      display: flex;
      align-items: center;
      gap: 26px;
      flex-wrap: wrap;
      justify-content: center;
    }

    .nav-links a {
      color: var(--text);
      text-decoration: none;
      font-weight: 700;
      opacity: 0.88;
      transition: opacity 0.2s ease, color 0.2s ease;
    }

    .nav-links a:hover,
    .nav-links a:focus-visible {
      color: var(--coral);
      opacity: 1;
    }

    .hero {
      min-height: calc(100svh - var(--nav-height));
      display: grid;
      place-items: center;
      text-align: center;
      padding: 80px 5vw;
      scroll-snap-align: start;
      background:
        linear-gradient(rgba(12, 31, 41, 0.5), rgba(12, 31, 41, 0.78)),
        url('https://picsum.photos/id/1015/2400/1400') center/cover no-repeat;
    }

    .hero-inner {
      max-width: 980px;
    }

    .hero h1 {
      font-family: 'Playfair Display', serif;
      font-size: clamp(3rem, 7vw, 6rem);
      line-height: 0.95;
      margin: 0 0 20px;
      color: var(--gold);
      letter-spacing: 0;
      text-shadow: 0 18px 44px rgba(0, 0, 0, 0.36);
    }

    .hero p {
      font-size: clamp(1.05rem, 2vw, 1.42rem);
      color: #dfe9ed;
      max-width: 760px;
      margin: 0 auto 30px;
    }

    .btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-height: 52px;
      background: var(--gold);
      color: #0c1f29;
      padding: 14px 30px;
      border: 0;
      border-radius: 999px;
      text-decoration: none;
      font: inherit;
      font-weight: 800;
      cursor: pointer;
      transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
      box-shadow: 0 18px 36px rgba(127, 168, 187, 0.22);
    }

    .btn:hover,
    .btn:focus-visible {
      transform: translateY(-2px);
      box-shadow: 0 22px 44px rgba(127, 168, 187, 0.28);
    }

    .shipyard-showcase {
      position: relative;
      min-height: calc(100svh - var(--nav-height));
      display: grid;
      align-items: stretch;
      overflow: hidden;
      isolation: isolate;
      background: #0c1f29;
      scroll-snap-align: start;
      scroll-snap-stop: always;
    }

    .shipyard-showcase::after {
      content: "";
      position: absolute;
      inset: 0;
      z-index: -1;
      background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.18));
      pointer-events: none;
    }

    .showcase-media {
      position: absolute;
      inset: 0;
      z-index: -2;
      background: #07182e;
    }

    .yacht-video,
    .video-poster {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
      opacity: 0;
      transform: scale(1.04);
      transition: opacity 0.7s ease, transform 1.2s ease;
    }

    .video-poster {
      filter: saturate(0.98) contrast(1.04);
    }

    .showcase-slide.active .yacht-video,
    .showcase-slide.active .video-poster {
      opacity: 1;
      transform: scale(1);
    }

    .showcase-slide.active .yacht-video:not([src]) {
      opacity: 0;
    }

    .showcase-content {
      min-height: inherit;
      display: grid;
      grid-template-rows: 1fr auto;
      gap: 24px;
      padding: clamp(24px, 5vw, 70px);
      background: linear-gradient(180deg, rgba(12, 31, 41, 0.02), rgba(12, 31, 41, 0.28));
    }

    .showcase-top {
      display: flex;
      align-items: flex-start;
      justify-content: flex-start;
    }

    .shipyard-brand-panel {
      width: min(460px, 92vw);
      position: relative;
    }

    .shipyard-logo-plate {
      width: 100%;
      min-height: 92px;
      padding: 22px 26px;
      border: 1px solid rgba(255, 255, 255, 0.22);
      background: rgba(255, 255, 255, 0.76);
      backdrop-filter: blur(18px);
      box-shadow: 0 24px 70px rgba(0, 0, 0, 0.26);
      display: grid;
      place-items: center;
    }

    .shipyard-logo-plate img {
      width: 100%;
      max-height: 72px;
      object-fit: contain;
      display: block;
    }

    .yacht-info-drawer {
      position: absolute;
      top: 100%;
      left: 16px;
      right: 16px;
      z-index: 3;
      padding: 18px 20px 20px;
      border: 1px solid var(--line);
      border-top: 0;
      background: rgba(12, 31, 41, 0.62);
      backdrop-filter: blur(18px);
      box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
      transform-origin: top;
      transform: translateY(-12px) scaleY(0.88);
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.3s ease, transform 0.3s ease;
    }

    .yacht-info-drawer.visible {
      opacity: 1;
      transform: translateY(0) scaleY(1);
      pointer-events: auto;
    }

    .yacht-info-drawer .eyebrow {
      margin: 0 0 6px;
      color: var(--aqua);
      font-size: 0.78rem;
      font-weight: 800;
      letter-spacing: 0.12em;
      text-transform: uppercase;
    }

    .yacht-info-drawer h2 {
      margin: 0 0 8px;
      font-family: 'Playfair Display', serif;
      color: var(--gold);
      font-size: clamp(1.45rem, 3vw, 2.25rem);
      line-height: 1;
    }

    .yacht-info-drawer p {
      margin: 0;
      color: #e4f2fb;
      font-size: 0.98rem;
      line-height: 1.45;
    }

    .inventory-panel {
      display: grid;
      grid-template-columns: auto minmax(0, 1fr) auto;
      align-items: center;
      gap: 18px;
    }

    .carousel-control {
      width: 58px;
      height: 58px;
      border: 1px solid rgba(255, 255, 255, 0.2);
      border-radius: 999px;
      background: rgba(12, 31, 41, 0.68);
      color: white;
      font-size: 1.8rem;
      display: grid;
      place-items: center;
      cursor: pointer;
      backdrop-filter: blur(14px);
      transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
    }

    .carousel-control:hover,
    .carousel-control:focus-visible {
      transform: translateY(-2px);
      background: rgba(127, 168, 187, 0.18);
      border-color: rgba(127, 168, 187, 0.46);
    }

    .yacht-cards {
      display: flex;
      gap: 14px;
      overflow-x: auto;
      scroll-snap-type: x proximity;
      scrollbar-width: none;
      padding: 10px 2px 10px;
    }

    .yacht-cards::-webkit-scrollbar { display: none; }

    .yacht-card {
      flex: 1 1 150px;
      min-height: 74px;
      padding: 16px 18px;
      border: 1px solid rgba(255, 255, 255, 0.16);
      background: rgba(12, 31, 41, 0.58);
      color: var(--text);
      text-align: center;
      cursor: pointer;
      backdrop-filter: blur(14px);
      scroll-snap-align: center;
      transition: transform 0.28s ease, background 0.28s ease, border-color 0.28s ease;
    }

    .yacht-card:hover,
    .yacht-card:focus-visible {
      transform: translateY(-6px);
      background: rgba(13, 37, 51, 0.82);
      border-color: rgba(127, 168, 187, 0.58);
    }

    .yacht-card.active {
      transform: translateY(-6px);
      background: rgba(13, 37, 51, 0.82);
      border-color: var(--coral);
    }

    .yacht-card h3 {
      margin: 0;
      color: var(--gold);
      font-family: 'Playfair Display', serif;
      font-size: clamp(1.1rem, 2vw, 1.45rem);
      line-height: 1.05;
    }

    .section {
      padding: 96px 5vw;
      background: var(--navy);
    }

    .section-title {
      text-align: center;
      font-family: 'Playfair Display', serif;
      color: var(--gold);
      font-size: clamp(2rem, 4vw, 3.2rem);
      margin: 0 0 20px;
    }

    .section-subtitle {
      text-align: center;
      color: var(--muted);
      max-width: 780px;
      margin: 0 auto;
      font-size: 1.05rem;
    }

    .about-content {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 56px;
      max-width: 980px;
      margin: 48px auto 0;
      flex-wrap: wrap;
      text-align: left;
    }

    .about-photo-wrap {
      flex: 0 0 auto;
    }

    .about-photo {
      display: block;
      width: 240px;
      height: 240px;
      border-radius: 50%;
      object-fit: cover;
      border: 4px solid var(--gold);
      box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
    }

    .about-bio {
      flex: 1 1 360px;
      min-width: 280px;
    }

    .about-name {
      font-family: 'Playfair Display', serif;
      font-size: 1.5rem;
      color: var(--text);
      margin: 0 0 4px;
    }

    .about-role {
      color: var(--gold);
      font-weight: 700;
      letter-spacing: 0.06em;
      text-transform: uppercase;
      font-size: 0.82rem;
      margin: 0 0 18px;
    }

    .about-text-body {
      color: var(--muted);
      font-size: 1.02rem;
      margin: 0 0 14px;
      line-height: 1.7;
    }

    @media (max-width: 720px) {
      .about-content {
        flex-direction: column;
        text-align: center;
      }
    }

    .contact {
      background: var(--navy-2);
      text-align: center;
      padding: 92px 5vw;
    }

    .contact p {
      color: var(--muted);
      max-width: 760px;
      margin: 16px auto;
      font-size: 1.08rem;
    }

    .contact-info {
      margin: 28px 0 0;
      font-size: 1.15rem;
      color: var(--text);
    }

    footer {
      position: relative;
      background: #020915;
      text-align: center;
      padding: 100px 20px 220px;
      color: #9db2c6;
      font-size: 0.95rem;
    }

    .footer-waves {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 90px;
      overflow: hidden;
      transform: translateY(-99%);
      line-height: 0;
    }

    .footer-waves svg {
      position: relative;
      display: block;
      width: 100%;
      height: 100%;
    }

    .footer-waves .wave-parallax > use {
      animation: footer-wave-move 22s cubic-bezier(0.55, 0.5, 0.45, 0.5) infinite;
    }

    .footer-waves .wave-parallax > use:nth-child(1) {
      animation-duration: 18s;
    }

    .footer-waves .wave-parallax > use:nth-child(2) {
      animation-duration: 12s;
      animation-direction: reverse;
    }

    @keyframes footer-wave-move {
      0%   { transform: translate3d(-90px, 0, 0); }
      100% { transform: translate3d(85px, 0, 0); }
    }

    @media (max-width: 980px) {
      :root { --nav-height: 110px; }

      .nav {
        gap: 14px;
        flex-wrap: wrap;
        justify-content: center;
      }

      .nav-links {
        gap: 16px;
      }

      .shipyard-showcase {
        min-height: auto;
      }

      .showcase-content {
        min-height: calc(100svh - var(--nav-height));
        padding: 24px;
      }

      .shipyard-brand-panel {
        width: min(430px, 100%);
      }

      .inventory-panel {
        grid-template-columns: 52px minmax(0, 1fr) 52px;
        gap: 10px;
      }

      .carousel-control {
        width: 52px;
        height: 52px;
      }

      .yacht-cards {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        padding: 10px 2px 14px;
      }

      .yacht-cards::-webkit-scrollbar { display: none; }

      .yacht-card {
        flex: 0 0 min(78vw, 320px);
        scroll-snap-align: center;
      }
    }

    @media (max-width: 560px) {
      :root { --nav-height: 122px; }

      .hero,
      .showcase-content,
      .section,
      .contact {
        padding-left: 18px;
        padding-right: 18px;
      }

      .hero h1 {
        font-size: clamp(2.65rem, 15vw, 4rem);
      }

      .shipyard-logo-plate {
        min-height: 76px;
        padding: 18px;
      }

      .shipyard-logo-plate img {
        max-height: 54px;
      }

      .yacht-info-drawer {
        left: 10px;
        right: 10px;
        padding: 16px;
      }

      .inventory-panel {
        grid-template-columns: 44px minmax(0, 1fr) 44px;
      }

      .carousel-control {
        width: 44px;
        height: 44px;
        font-size: 1.5rem;
      }

      .yacht-card {
        min-height: 74px;
      }
    }

/* ---- Yacht info drawer: "View Full Details" link ---- */
.yacht-info-drawer .drawer-link {
  display: none;
  margin-top: 14px;
  align-items: center;
  gap: 6px;
  width: fit-content;
  color: var(--navy-2);
  background: var(--gold);
  text-decoration: none;
  font-weight: 800;
  font-size: 0.85rem;
  padding: 9px 18px;
  border: 0;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.yacht-info-drawer .drawer-link.visible {
  display: inline-flex;
}

.yacht-info-drawer .drawer-link:hover,
.yacht-info-drawer .drawer-link:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(127, 168, 187, 0.28);
}

/* ============================================
   YACHT DETAIL PAGE
   ============================================ */

/* Full-screen hero */
.detail-hero {
  position: relative;
  min-height: calc(100svh - var(--nav-height));
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 5vw 56px;
  background-size: cover;
  background-position: center;
  isolation: isolate;
  overflow: hidden;
}

.detail-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg,
      rgba(12, 31, 41, 0.18) 0%,
      rgba(12, 31, 41, 0.05) 30%,
      rgba(12, 31, 41, 0.78) 75%,
      rgba(12, 31, 41, 0.97) 100%
    );
}

/* Back link floated to top-left inside the hero */
.detail-back {
  position: absolute;
  top: 28px;
  left: 5vw;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(244, 247, 249, 0.75);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  transition: color 0.2s ease;
  z-index: 2;
}

.detail-back:hover,
.detail-back:focus-visible {
  color: var(--coral);
}

.detail-hero-inner {
  max-width: 1300px;
  width: 100%;
}

.detail-hero-text {
  max-width: 720px;
}

.detail-hero-perks {
  position: absolute;
  right: 5vw;
  bottom: 40px;
  width: min(340px, 88vw);
  z-index: 2;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 18px;
  padding: 26px 28px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.detail-hero-perks-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  color: var(--gold);
  margin: 0 0 4px;
  line-height: 1.2;
}

.detail-hero-perks .detail-perks {
  margin-top: 6px;
}

.detail-hero-perks .detail-perk {
  padding: 16px 0;
}

.detail-eyebrow {
  margin: 0 0 14px;
  color: var(--aqua);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.detail-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.8rem, 7vw, 5.6rem);
  line-height: 0.95;
  margin: 0 0 24px;
  color: var(--gold);
  text-shadow: 0 18px 44px rgba(0, 0, 0, 0.5);
}

.detail-hero-desc {
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  color: rgba(244, 247, 249, 0.82);
  max-width: 640px;
  margin: 0;
  line-height: 1.6;
}

/* Specs bar — full-width strip right below hero */
.detail-specs {
  display: flex;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--navy);
}

.detail-spec {
  flex: 1 1 0;
  padding: 26px 24px;
  border-right: 1px solid var(--line);
}

.detail-spec:last-child {
  border-right: 0;
}

.detail-spec-label {
  margin: 0 0 6px;
  color: var(--aqua);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.detail-spec-value {
  margin: 0;
  font-family: 'Playfair Display', serif;
  color: var(--gold);
  font-size: 1.18rem;
}

/* Two-column body */
.detail-body {
  max-width: 1240px;
  margin: 0 auto;
  padding: 72px 5vw 0;
}

@media (min-width: 1500px) {
  .detail-body {
    max-width: 1440px;
  }
}

@media (min-width: 1900px) {
  .detail-body {
    max-width: 1680px;
  }
}

.detail-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
  margin-bottom: 72px;
}

.detail-description-block {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.detail-description {
  font-size: 1.08rem;
  color: var(--muted);
  line-height: 1.8;
  margin: 0;
}

.detail-featured-img {
  position: sticky;
  top: calc(var(--nav-height) + 24px);
}

.detail-featured-img img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
  border: 1px solid var(--line);
}

/* Gallery grid */
.detail-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 80px;
}

.detail-gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  border: 1px solid var(--line);
  transition: transform 0.4s ease, filter 0.4s ease;
}

.detail-gallery img:hover {
  transform: scale(1.02);
  filter: brightness(1.08);
}

/* CTA */
.detail-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 64px 0 96px;
  border-top: 1px solid var(--line);
}

.detail-cta-label {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Responsive */
@media (max-width: 860px) {
  .detail-two-col {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .detail-featured-img {
    position: static;
    order: -1;
  }

  .detail-why {
    padding: 48px 0;
  }

  .detail-specs {
    flex-wrap: wrap;
  }

  .detail-spec {
    flex: 1 1 40%;
    border-bottom: 1px solid var(--line);
  }

  .detail-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .detail-hero {
    padding: 0 18px 40px;
  }

  .detail-hero h1 {
    font-size: clamp(2.2rem, 12vw, 3rem);
  }

  .detail-hero {
    padding-bottom: 24px;
  }

  .detail-hero-perks {
    position: static;
    width: 100%;
    margin-top: 28px;
  }

  .detail-back {
    left: 18px;
  }

  .detail-body {
    padding: 48px 18px 0;
  }

  .detail-spec {
    flex: 1 1 100%;
  }

  .detail-gallery {
    grid-template-columns: 1fr;
  }
}

/* ---- Flipped two-col (image left, text right) ---- */
.detail-two-col--flip .detail-featured-img { order: -1; }

/* ---- Alternating full-width content sections ---- */
.detail-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 72px 0;
  border-top: 1px solid var(--line);
}

.detail-content-img {
  order: 1;
}

.detail-section-text {
  order: 2;
}

.detail-section.reverse .detail-content-img {
  order: 2;
}

.detail-section.reverse .detail-section-text {
  order: 1;
}

.detail-content-img img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  display: block;
  border: 1px solid var(--line);
  transition: transform 0.4s ease, filter 0.4s ease;
}

.detail-content-img img:hover {
  transform: scale(1.02);
  filter: brightness(1.08);
}

.detail-section-text {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.detail-section-eyebrow {
  margin: 0;
  color: var(--aqua);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.detail-section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: var(--gold);
  margin: 0;
  line-height: 1.1;
}

.detail-section-body {
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.8;
  margin: 0;
}

/* ---- Why This Yacht: numbered perks list ---- */
.detail-why {
  border-top: 1px solid var(--line);
  padding: 72px 0;
}

.detail-why-block {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.detail-perks {
  display: flex;
  flex-direction: column;
  margin-top: 8px;
}

.detail-perk {
  display: flex;
  align-items: baseline;
  gap: 22px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.detail-perk:first-child {
  border-top: none;
  padding-top: 0;
}

.detail-perk-number {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  color: var(--aqua);
  flex: 0 0 auto;
  min-width: 42px;
}

.detail-perk-title {
  margin: 0 0 4px;
  color: var(--text);
  font-weight: 700;
  font-size: 1.05rem;
}

.detail-perk-copy {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.6;
}

/* ---- Lightbox ---- */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(8, 18, 26, 0.97);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  overflow: hidden;
}

.lightbox-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

/* Stage handles the pop-in/out entrance animation and the "click empty space to close" area */
.lightbox-stage {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: zoom-out;
  touch-action: none;
  transform: scale(0.94);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease;
}

.lightbox-overlay.open .lightbox-stage {
  transform: scale(1);
  opacity: 1;
}

/* The image itself only ever carries the zoom/pan transform, driven by JS */
.lightbox-overlay img {
  max-width: min(92vw, 1400px);
  max-height: 90svh;
  object-fit: contain;
  display: block;
  box-shadow: 0 40px 100px rgba(0,0,0,0.7);
  border: 1px solid var(--line);
  touch-action: none;
  -webkit-user-drag: none;
  user-select: none;
  cursor: zoom-in;
  transform: translate(0, 0) scale(1);
  transition: transform 0.15s ease;
  will-change: transform;
}

.lightbox-overlay img.zoomed {
  cursor: grab;
}

.lightbox-overlay img.dragging {
  cursor: grabbing;
  transition: none;
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 28px;
  z-index: 3;
  background: none;
  border: 1px solid rgba(255,255,255,0.22);
  color: var(--text);
  font-size: 1.5rem;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.lightbox-close:hover,
.lightbox-close:focus-visible {
  background: rgba(255,255,255,0.1);
  border-color: var(--coral);
  color: var(--coral);
}

/* Zoom in / out controls — pinned to the viewport, unaffected by image zoom or pan */
.lightbox-zoom-controls {
  position: absolute;
  bottom: 28px;
  right: 28px;
  z-index: 3;
  display: flex;
  gap: 10px;
}

.lightbox-zoom-btn {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.22);
  background: rgba(12, 31, 41, 0.68);
  color: var(--text);
  font-size: 1.3rem;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  backdrop-filter: blur(14px);
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.lightbox-zoom-btn:hover,
.lightbox-zoom-btn:focus-visible {
  background: rgba(127, 168, 187, 0.18);
  border-color: rgba(127, 168, 187, 0.46);
  color: var(--coral);
}

/* Zoom cursor on all clickable detail images */
.detail-featured-img img,
.detail-gallery img,
.detail-content-img img {
  cursor: zoom-in;
}

/* ---- Responsive ---- */
@media (max-width: 860px) {
  .detail-section {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 48px 0;
  }

  .detail-section.reverse .detail-content-img {
    order: -1;
  }
}