/* =====================================================
   Duncan | 人像街拍攝影企劃 Model 徵選
   style.css — Design System & Layout
   ===================================================== */

/* ─────────── CSS Custom Properties ─────────── */
:root {
  --bg:          #f7f4ef;
  --bg-card:     #ffffff;
  --txt-primary: #1f1f1f;
  --txt-secondary: #66615b;
  --txt-muted:   #9e998f;
  --border:      rgba(0, 0, 0, .10);
  --shadow-card: 0 2px 18px rgba(0, 0, 0, .07), 0 1px 4px rgba(0, 0, 0, .04);
  --shadow-hover: 0 8px 40px rgba(0, 0, 0, .13), 0 2px 8px rgba(0, 0, 0, .06);

  --font-stack:  -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans TC",
                 "PingFang TC", "Microsoft JhengHei", sans-serif;

  --ease-out:    cubic-bezier(.2, .7, .2, 1);
  --duration:    900ms;
  --max-width:   1320px;
  --gutter:      clamp(1.25rem, 4vw, 3rem);
}

/* ─────────── Reset & Base ─────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg);
  color: var(--txt-primary);
  font-family: var(--font-stack);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ─────────── Layout Helpers ─────────── */
.container {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: clamp(4rem, 8vw, 7rem);
}

/* ─────────── Reveal / Slide-in Animation ─────────── */
.reveal {
  opacity: 0;
  transform: translate3d(0, 42px, 0);
  transition:
    opacity var(--duration) var(--ease-out),
    transform var(--duration) var(--ease-out);
  transition-delay: var(--delay, 0ms);
}

.reveal.slide-left {
  transform: translate3d(-48px, 28px, 0);
}

.reveal.slide-right {
  transform: translate3d(48px, 28px, 0);
}

.reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* ─────────── Site Header / Nav ─────────── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem var(--gutter);
  transition: background .3s ease, box-shadow .3s ease;
}

.site-header.scrolled {
  background: rgba(247, 244, 239, .92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--border);
}

.site-logo {
  font-size: .8rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--txt-secondary);
  font-weight: 400;
}

.site-nav {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.site-nav a {
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--txt-secondary);
  transition: color .2s;
}

.site-nav a:hover {
  color: var(--txt-primary);
}

/* Floating external links inspired by the blog top bar */
.floating-links {
  position: fixed;
  top: 5.25rem;
  left: 50%;
  z-index: 99;
  width: min(calc(100% - (var(--gutter) * 2)), var(--max-width));
  height: 52px;
  display: flex;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .20), rgba(247, 244, 239, .08)),
    rgba(247, 244, 239, .18);
  border: 1px solid rgba(31, 31, 31, .18);
  box-shadow:
    0 18px 46px rgba(0, 0, 0, .12),
    0 1px 0 rgba(255, 255, 255, .50) inset,
    0 -1px 0 rgba(31, 31, 31, .08) inset;
  backdrop-filter: blur(7px) saturate(1.12);
  -webkit-backdrop-filter: blur(7px) saturate(1.12);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -16px);
  transition: opacity .28s ease, transform .28s ease;
}

.floating-links.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.floating-links-brand {
  width: clamp(150px, 16vw, 210px);
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(31, 31, 31, .66);
  color: var(--bg);
  font-size: .78rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  transition: background .25s ease;
}

.floating-links-brand:hover {
  background: rgba(31, 31, 31, .54);
}

.floating-links-nav {
  display: flex;
  flex: 1 1 auto;
  overflow-x: auto;
  scrollbar-width: none;
}

.floating-links-nav::-webkit-scrollbar {
  display: none;
}

.floating-links-nav a {
  position: relative;
  flex: 1 0 132px;
  min-width: 120px;
  padding-inline: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #171512;
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .13em;
  line-height: 1.2;
  text-transform: uppercase;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, .72),
    0 0 12px rgba(247, 244, 239, .78);
  white-space: nowrap;
  transition: color .25s ease, background .25s ease;
}

.floating-links-nav a::before {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 3px;
  background: rgba(160, 186, 83, .78);
  transform: translateY(3px);
  transition: transform .25s ease;
}

.floating-links-nav a:hover {
  color: #111;
  background: rgba(255, 255, 255, .20);
}

.floating-links-nav a:hover::before {
  transform: translateY(0);
}

.floating-links a:focus-visible {
  outline: 2px solid rgba(160, 186, 83, .9);
  outline-offset: -2px;
}

/* ─────────── Back To Top Button ─────────── */
.back-to-top {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 98;
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  background: rgba(31, 31, 31, .88);
  color: var(--bg);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .16);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition:
    opacity .25s ease,
    transform .25s ease,
    background .2s ease,
    box-shadow .2s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:hover {
  background: rgba(31, 31, 31, .72);
  box-shadow: var(--shadow-hover);
}

.back-to-top:focus-visible {
  outline: 2px solid rgba(160, 186, 83, .9);
  outline-offset: 3px;
}

.back-to-top svg {
  width: 20px;
  height: 20px;
}

/* ─────────── Hero Section ─────────── */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: clamp(3rem, 7vw, 6rem);
  padding-top: 6rem;
  position: relative;
  overflow: hidden;
}

.hero-bg-strip {
  position: absolute;
  top: 0;
  right: 0;
  width: 48%;
  height: 100%;
  background: #ede8e1;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  display: inline-block;
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--txt-muted);
  margin-bottom: 1.5rem;
  font-weight: 400;
}

.hero-title {
  font-size: clamp(2.2rem, 5.5vw, 5rem);
  font-weight: 300;
  letter-spacing: -.01em;
  line-height: 1.15;
  color: var(--txt-primary);
  max-width: 16ch;
  margin-bottom: 2rem;
}

.hero-title em {
  font-style: normal;
  font-weight: 500;
}

.hero-quote {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  color: var(--txt-secondary);
  font-weight: 300;
  line-height: 1.9;
  max-width: 44ch;
  margin-bottom: 3rem;
  border-left: 2px solid var(--border);
  padding-left: 1.25rem;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1.5rem;
  align-items: center;
}

.btn-link {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .82rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--txt-primary);
  border-bottom: 1px solid var(--txt-primary);
  padding-bottom: .15rem;
  transition: opacity .2s, gap .2s;
}

.btn-link:hover {
  opacity: .6;
  gap: .75rem;
}

.btn-link svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.btn-link-ghost {
  border-color: var(--border);
  color: var(--txt-secondary);
}

.hero-scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  right: var(--gutter);
  z-index: 1;
  writing-mode: vertical-rl;
  font-size: .68rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--txt-muted);
  display: flex;
  align-items: center;
  gap: .75rem;
}

.hero-scroll-hint::before {
  content: '';
  display: block;
  width: 1px;
  height: 3rem;
  background: var(--txt-muted);
  opacity: .5;
}

/* ─────────── Gallery Wall Section ─────────── */
.gallery-section {
  padding-top: clamp(3rem, 6vw, 5rem);
  padding-bottom: 0;
}

.section-label {
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--txt-muted);
  margin-bottom: 3rem;
  display: block;
}

/*
  scatter-free: truly free scatter layout.
  Each .photo-card is position:absolute within this container.
  Container height is fixed — tall enough to hold all scattered photos.
  Positions are defined per nth-child below.

  Reference canvas: ~1280px wide (after gutters).
  Photo approx display sizes at reference width:
    Portrait  22% wide → 282 × 423px (2:3)
    Portrait  18% wide → 230 × 345px
    Landscape 34% wide → 435 × 290px (3:2)
    Landscape 28% wide → 358 × 239px
    etc.

  Zones (vertical bands):
    Zone 1: y   0 – 500
    Zone 2: y 300 – 800
    Zone 3: y 600 – 1000
    Zone 4: y 900 – 1200
    Zone 5: y 1100 – 1500
    Zone 6: y 1400 – 1700
*/
.scatter-free {
  position: relative;
  width: 100%;
  /* tall enough for all scattered + parallax-shifted photos */
  height: clamp(1850px, 142vw, 2050px);
  padding-inline: var(--gutter);
  max-width: var(--max-width);
  margin-inline: auto;
  box-sizing: border-box;
  overflow: visible;
}

/* All cards: absolute, opacity-only reveal (JS handles translateY) */
.scatter-free .photo-card {
  position: absolute;
  margin: 0;
  opacity: 0;
  transition: opacity 900ms var(--ease-out), box-shadow 300ms var(--ease-out);
}
.scatter-free .photo-card.is-visible { opacity: 1; }
.scatter-free .photo-card:hover      { box-shadow: var(--shadow-hover); }

/* ── Per-card positions (left, top, width) ── */
/* Opening row: three clean anchors before the freer middle rhythm */
.scatter-free .photo-card:nth-child(1)  { left:3%;   top:20px;   width:19%; --rotate:-.5deg; z-index:2; } /* 01 portrait  */
.scatter-free .photo-card:nth-child(2)  { left:31%;  top:20px;   width:34%; --rotate:.3deg;  z-index:1; } /* 07 landscape */
.scatter-free .photo-card:nth-child(3)  { left:74%;  top:20px;   width:19%; --rotate:.5deg;  z-index:2; } /* 03 portrait  */

/* Middle field: deliberately staggered for parallax overlap while scrolling */
.scatter-free .photo-card:nth-child(4)  { left:11%;  top:420px;  width:18%; --rotate:1.2deg;  z-index:4; } /* 02 portrait  */
.scatter-free .photo-card:nth-child(5)  { left:37%;  top:360px;  width:35%; --rotate:-1deg;  z-index:2; } /* 05 landscape */
.scatter-free .photo-card:nth-child(6)  { left:75%;  top:480px;  width:17%; --rotate:-1.4deg; z-index:3; } /* 04 portrait  */

.scatter-free .photo-card:nth-child(7)  { left:3%;   top:720px;  width:31%; --rotate:-.8deg; z-index:1; } /* 06 landscape */
.scatter-free .photo-card:nth-child(8)  { left:32%;  top:765px;  width:36%; --rotate:1.1deg; z-index:4; } /* 09 landscape */
.scatter-free .photo-card:nth-child(9)  { left:66%;  top:675px;  width:29%; --rotate:-1.5deg; z-index:2; } /* 11 landscape */

.scatter-free .photo-card:nth-child(10) { left:9%;   top:1015px; width:31%; --rotate:1.4deg; z-index:3; } /* 08 landscape */
.scatter-free .photo-card:nth-child(11) { left:41%;  top:960px;  width:26%; --rotate:-1.1deg; z-index:1; } /* 10 landscape */
.scatter-free .photo-card:nth-child(12) { left:64%;  top:1085px; width:31%; --rotate:.8deg;  z-index:4; } /* 13 landscape */
.scatter-free .photo-card:nth-child(13) { left:25%;  top:1235px; width:30%; --rotate:-.9deg; z-index:2; } /* 12 landscape */

/* Closing row: three even images to settle the section before About */
.scatter-free .photo-card:nth-child(14) { left:3%;   top:1535px; width:29%; --rotate:-.4deg; z-index:2; } /* 15 landscape */
.scatter-free .photo-card:nth-child(15) { left:35%;  top:1535px; width:29%; --rotate:.2deg;  z-index:1; } /* 14 landscape */
.scatter-free .photo-card:nth-child(16) { left:67%;  top:1535px; width:29%; --rotate:.4deg;  z-index:2; } /* 16 landscape */

/* ── Photo card shared styles ── */
.photo-card {
  background: var(--bg-card);
  box-shadow: var(--shadow-card);
  cursor: pointer;
  overflow: hidden;
  padding: 6px;
  will-change: transform;
}

/* Aspect ratios: images displayed in full, no forced cropping */
.pcard--portrait img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.pcard--landscape img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

/* JS-driven parallax: sets --parallax-y via scrollY × speed */
.scatter-free .photo-card {
  transform: translateY(var(--parallax-y, 0px)) rotate(var(--rotate, 0deg));
}


/* ─────────── Section: Text Blocks ─────────── */
.text-section {
  padding-block: clamp(4rem, 8vw, 7rem);
}

.text-section-inner {
  max-width: 780px;
}

.section-title {
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  font-weight: 300;
  letter-spacing: -.01em;
  line-height: 1.3;
  color: var(--txt-primary);
  margin-bottom: 1.75rem;
}

.section-title strong {
  font-weight: 500;
}

.section-body {
  font-size: clamp(.9rem, 1.4vw, 1.05rem);
  color: var(--txt-secondary);
  line-height: 1.9;
}

.section-body p + p {
  margin-top: 1.25em;
}

.section-body strong {
  color: var(--txt-primary);
  font-weight: 500;
}

/* ─────────── Specs List ─────────── */
.specs-row {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 2.5rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.spec-item {
  display: flex;
  flex-direction: column;
  gap: .25rem;
}

.spec-label {
  font-size: .68rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--txt-muted);
}

.spec-value {
  font-size: .9rem;
  color: var(--txt-primary);
  font-weight: 400;
}

/* ─────────── About Duncan ─────────── */
.about-section {
  padding-block: clamp(4rem, 8vw, 7rem);
  background: var(--bg-card);
}

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

.about-text {}

.about-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-top: 2rem;
}

.about-link-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border: 1px solid var(--border);
  transition: border-color .2s, background .2s;
}

.about-link-item:hover {
  border-color: var(--txt-muted);
  background: var(--bg);
}

.about-link-label {
  font-size: .78rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--txt-secondary);
}

.about-link-arrow {
  color: var(--txt-muted);
  font-size: .9rem;
  transition: transform .2s;
}

.about-link-item:hover .about-link-arrow {
  transform: translateX(4px);
}

/* ─────────── Video Section ─────────── */
.video-section {
  padding-block: clamp(4rem, 8vw, 7rem);
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  background: #1a1a1a;
  margin-top: 2.5rem;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ─────────── Contact CTA ─────────── */
.contact-section {
  padding-block: clamp(5rem, 10vw, 10rem);
  text-align: center;
}

.contact-eyebrow {
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--txt-muted);
  margin-bottom: 1.25rem;
  display: block;
}

.contact-title {
  font-size: clamp(1.8rem, 4vw, 3.5rem);
  font-weight: 300;
  letter-spacing: -.01em;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.contact-subtitle {
  font-size: clamp(.9rem, 1.4vw, 1.05rem);
  color: var(--txt-secondary);
  max-width: 42ch;
  margin-inline: auto;
  margin-bottom: 3rem;
  line-height: 1.9;
}

.contact-btn-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.contact-btn {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .85rem 2rem;
  font-size: .82rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-family: var(--font-stack);
  cursor: pointer;
  transition: background .2s, color .2s, transform .2s;
}

.contact-btn-primary {
  background: var(--txt-primary);
  color: var(--bg);
  border: 1px solid var(--txt-primary);
}

.contact-btn-primary:hover {
  background: #3a3a3a;
  transform: translateY(-1px);
}

.contact-btn-secondary {
  background: transparent;
  color: var(--txt-primary);
  border: 1px solid var(--border);
}

.contact-btn-secondary:hover {
  border-color: var(--txt-secondary);
  transform: translateY(-1px);
}

/* ─────────── Footer ─────────── */
.site-footer {
  padding: 2.5rem var(--gutter);
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-copy {
  font-size: .75rem;
  color: var(--txt-muted);
  letter-spacing: .06em;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.footer-links a {
  font-size: .75rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--txt-muted);
  transition: color .2s;
}

.footer-links a:hover {
  color: var(--txt-primary);
}

/* ─────────── Divider ─────────── */
.divider {
  width: 100%;
  height: 1px;
  background: var(--border);
  margin: 0;
}

/* ─────────── RWD — Tablet ≤900px ─────────── */
@media (max-width: 900px) {
  /* Collapse free-scatter into a stable 2-column flow */
  .scatter-free {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    height: auto;
    overflow: hidden;
  }

  .scatter-free .photo-card {
    position: static;
    flex: 0 0 calc(50% - .5rem);
    width: calc(50% - .5rem);
  }

  /* Disable per-card parallax on tablet */
  .scatter-free .photo-card[data-speed] {
    transform: none !important;
  }

  .about-inner { grid-template-columns: 1fr; }
  .about-links { padding-top: 0; }
  .hero-bg-strip { display: none; }

  .site-header {
    gap: 1rem;
  }

  .site-header nav {
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .site-header nav::-webkit-scrollbar {
    display: none;
  }

  .site-nav {
    gap: 1rem;
    width: max-content;
  }

  .site-nav a {
    font-size: .68rem;
    letter-spacing: .1em;
    white-space: nowrap;
  }

  .floating-links {
    top: 4.5rem;
    width: calc(100% - 1.5rem);
  }

  .floating-links-brand {
    width: 124px;
  }

  .floating-links-nav a {
    min-width: 104px;
    padding-inline: .85rem;
  }
}

/* ─────────── RWD — Mobile ≤600px ─────────── */
@media (max-width: 600px) {
  /* Single column, no parallax, full-width photos */
  .scatter-free {
    gap: .75rem;
  }

  .scatter-free .photo-card {
    flex-basis: 100%;
    width: 100%;
  }

  /* Disable parallax on mobile */
  .scatter-free .photo-card[data-speed] {
    transform: none !important;
  }

  .hero-title   { font-size: clamp(1.8rem, 8vw, 2.6rem); }
  .hero-quote   { font-size: 1rem; }
  .hero-scroll-hint { display: none; }
  .contact-btn-group { flex-direction: column; align-items: center; }
  .specs-row { gap: 1rem 1.5rem; }

  .site-header {
    padding: .9rem .85rem;
    align-items: flex-start;
  }

  .site-logo {
    flex: 0 0 auto;
    font-size: .68rem;
    letter-spacing: .12em;
    padding-top: .08rem;
  }

  .site-nav {
    gap: .8rem;
  }

  .site-nav a {
    font-size: .62rem;
    letter-spacing: .08em;
  }

  .floating-links {
    top: 4rem;
    height: 48px;
    width: calc(100% - 1rem);
  }

  .floating-links-brand {
    width: 96px;
    font-size: .68rem;
    letter-spacing: .14em;
  }

  .floating-links-nav a {
    min-width: 92px;
    padding-inline: .75rem;
    font-size: .64rem;
  }

  .back-to-top {
    width: 42px;
    height: 42px;
    right: max(.85rem, env(safe-area-inset-right));
    bottom: max(.85rem, env(safe-area-inset-bottom));
  }

  /* Reduce reveal offset on mobile */
  .reveal { transform: translate3d(0, 24px, 0); }
  .reveal.slide-left,
  .reveal.slide-right { transform: translate3d(0, 24px, 0); }
}

/* ─────────── Concept Section: Pull Quote ─────────── */
.pull-quote {
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  font-weight: 300;
  color: var(--txt-secondary);
  line-height: 1.75;
  padding-left: 1.75rem;
  border-left: 3px solid rgba(0,0,0,.15);
  margin-block: 2.5rem;
  max-width: 54ch;
}

/* ─────────── Lightbox ─────────── */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 14, 12, .92);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
  backdrop-filter: blur(4px);
}

.lightbox-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.lightbox-img {
  max-width: min(90vw, 900px);
  max-height: 85vh;
  object-fit: contain;
  box-shadow: 0 20px 80px rgba(0,0,0,.6);
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  background: none;
  border: none;
  color: rgba(255,255,255,.7);
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  padding: .25rem;
  transition: color .2s;
}

.lightbox-close:hover {
  color: #fff;
}

/* ─────────── Skip Link ─────────── */
.skip-link {
  position: absolute;
  top: -4rem;
  left: 1rem;
  background: var(--txt-primary);
  color: var(--bg);
  padding: .5rem 1rem;
  font-size: .8rem;
  z-index: 999;
  transition: top .2s;
}

.skip-link:focus {
  top: 1rem;
}
