/* =====================================================================
   Max & Pata · svatební pohlednice
   Barvy svatby: světle zelená, tmavě zelená, světle fialová, tmavě fialová
   ===================================================================== */
:root {
  --plum-900: #1c1424;
  --plum-800: #2a1e33;   /* základ pozadí (barva z pozvánky) */
  --plum-700: #33243f;
  --purple-dark: #5f3b7a;
  --purple-light: #cbaed2;
  --green-dark: #3e6c4c;
  --green-light: #b7dcc3;
  --green-ink: #1d2a23;
  --cream: #f3ede4;
  --cream-muted: rgba(243, 237, 228, .62);
  --cream-faint: rgba(243, 237, 228, .28);

  --serif: "Playfair Display", "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, sans-serif;

  --gutter: clamp(16px, 4vw, 48px);
  --wrap: 1200px;
  --radius: 6px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--plum-800);
  color: var(--cream);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color 1.2s var(--ease);
}
body.gated { overflow: hidden; height: 100dvh; }

img { display: block; max-width: 100%; }
figure { margin: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0; line-height: 1.05; }
p { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; }
[hidden] { display: none !important; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.wrap--narrow { max-width: 720px; }

/* ---------- společné typo ---------- */
.lede {
  font-family: var(--serif);
  font-size: clamp(1.55rem, 1.1rem + 2.2vw, 2.7rem);
  line-height: 1.25;
  text-wrap: balance;
}
.body {
  font-size: clamp(1rem, .95rem + .4vw, 1.2rem);
  color: var(--cream-muted);
  max-width: 56ch;
  margin-top: 1.6em;
}
.split-lines .line { display: block; overflow: hidden; }
.split-lines .line > span { display: block; will-change: transform; }

/* ---------- tlačítka ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .6em;
  font-family: var(--sans); font-weight: 500; font-size: .95rem; letter-spacing: .04em;
  padding: .95em 1.6em; border-radius: 999px; text-decoration: none;
  transition: transform .35s var(--ease), background-color .35s, color .35s, border-color .35s;
}
.btn--ghost { border: 1px solid var(--cream-faint); color: var(--cream); }
.btn--ghost:hover { border-color: var(--green-light); color: var(--green-light); }
.btn--solid { background: var(--green-light); color: var(--green-ink); }
.btn--solid:hover { transform: translateY(-2px); background: #cbe8d3; }
.btn__arrow { transition: transform .35s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(4px); }
.btn__meta { font-weight: 400; opacity: .7; font-size: .85em; }

/* =====================================================================
   BRÁNA
   ===================================================================== */
.gate {
  position: fixed; inset: 0; z-index: 50;
  display: grid; place-items: center;
  background: radial-gradient(120% 80% at 50% 110%, #3a2848 0%, var(--plum-800) 55%, var(--plum-900) 100%);
  text-align: center; padding: var(--gutter);
  transition: opacity .9s var(--ease), visibility .9s;
}
.gate.is-open { opacity: 0; visibility: hidden; pointer-events: none; }
.gate__inner { position: relative; z-index: 1; max-width: 420px; width: 100%; }
.gate__mono {
  font-family: var(--serif); font-size: clamp(2.6rem, 8vw, 3.6rem); line-height: 1;
  color: var(--purple-light); letter-spacing: .02em; margin-bottom: 2.2rem;
}
.gate__mono span { font-style: italic; color: var(--green-light); margin: 0 .08em; }
.gate__eyebrow, .chapter__num, .sorry__eyebrow, .wish__eyebrow, .hero__eyebrow {
  font-family: var(--sans); font-size: .72rem; letter-spacing: .32em; text-transform: uppercase;
  color: var(--cream-muted); font-weight: 500;
}
.gate__title { font-size: clamp(2.4rem, 8vw, 3.4rem); margin: .4rem 0 1rem; }
.gate__lead { color: var(--cream-muted); font-size: .98rem; margin-bottom: 2.4rem; }
.gate__form { display: grid; gap: 1.2rem; justify-items: center; }
.gate__field { position: relative; width: min(100%, 260px); }
.gate__field input {
  width: 100%; background: none; border: 0; outline: 0; color: var(--cream);
  font-family: var(--serif); font-size: 1.6rem; text-align: center; letter-spacing: .25em;
  padding: .4em 0; caret-color: var(--green-light);
}
.gate__field input::placeholder { color: var(--cream-faint); letter-spacing: .1em; font-style: italic; }
.gate__line { position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--cream-faint); }
.gate__line::after {
  content: ""; position: absolute; inset: 0; background: var(--green-light);
  transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease);
}
.gate__field:focus-within .gate__line::after { transform: scaleX(1); }
.gate__error { min-height: 1.4em; font-size: .85rem; color: var(--purple-light); font-style: italic; }
.gate.shake .gate__field { animation: shake .5s; }
@keyframes shake { 20%,60% { transform: translateX(-8px); } 40%,80% { transform: translateX(8px); } }
.gate__grain, .hero__veil::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* =====================================================================
   FOTKY (společné)
   ===================================================================== */
figure[data-photo] {
  position: relative; overflow: hidden; background: var(--plum-700);
  border-radius: var(--radius); cursor: zoom-in;
}
figure[data-photo] .ph {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  filter: blur(18px); transform: scale(1.1); transition: opacity .8s var(--ease);
}
figure[data-photo] picture, figure[data-photo] img.photo {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
figure[data-photo] img.photo { opacity: 0; transition: opacity .9s var(--ease), transform 1.2s var(--ease); }
figure[data-photo].is-loaded img.photo { opacity: 1; }
figure[data-photo].is-loaded .ph { opacity: 0; }
figure[data-photo] figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 2.2rem .9rem .8rem; font-size: .8rem; letter-spacing: .02em; font-weight: 400;
  color: var(--cream); background: linear-gradient(to top, rgba(20, 12, 28, .75), transparent);
  pointer-events: none;
}
figure.reveal-up { will-change: transform, opacity; }
figure.reveal-up:hover img.photo { transform: scale(1.03); }

/* polaroid */
.polaroid {
  background: var(--cream) !important; padding: 12px 12px 48px; border-radius: 2px !important;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.6), 0 8px 20px -10px rgba(0,0,0,.4);
  overflow: visible !important;
}
.polaroid::before { /* fotka uvnitř */ content: ""; display: block; padding-top: 100%; }
.polaroid .ph, .polaroid img.photo {
  inset: auto !important; top: 12px !important; left: 12px !important;
  width: calc(100% - 24px) !important; height: calc(100% - 60px) !important; border-radius: 1px;
}
.polaroid .ph { transform: none; filter: blur(10px); }
figure.polaroid figcaption {
  position: absolute; inset: auto 12px 12px; padding: 0; background: none;
  font-family: var(--serif); font-style: italic; font-size: 1rem; color: #3b2e45; text-align: center;
}
.polaroid::after { /* lepicí páska */
  content: ""; position: absolute; top: -12px; left: 50%; width: 90px; height: 26px;
  transform: translateX(-50%) rotate(-3deg);
  background: rgba(203, 174, 210, .55); backdrop-filter: blur(1px);
  box-shadow: 0 1px 2px rgba(0,0,0,.1);
}
.polaroid--tilt-l { transform: rotate(-2.5deg); }
.polaroid--tilt-r { transform: rotate(2deg); }

/* =====================================================================
   HERO
   ===================================================================== */
.hero {
  position: relative; height: 100svh; min-height: 560px; display: grid; place-items: end start;
  overflow: hidden; border-radius: 0;
}
.hero__photo {
  position: absolute !important; inset: 0; border-radius: 0 !important; cursor: default !important;
}
.hero__photo img.photo { object-position: 60% 35%; transform: scale(1.12); animation: kenburns 24s var(--ease) forwards; }
@keyframes kenburns { to { transform: scale(1); } }
.hero__veil {
  position: absolute; inset: 0;
  background: linear-gradient(to top, var(--plum-800) 0%, rgba(42,30,51,.55) 35%, rgba(42,30,51,.05) 70%),
              linear-gradient(to right, rgba(28,20,36,.5), transparent 60%);
}
.hero__veil::after { opacity: .12; }
.hero__content {
  position: relative; z-index: 1; padding: 0 var(--gutter) clamp(88px, 14vh, 160px);
}
.hero__eyebrow { margin-bottom: 1rem; color: var(--green-light); }
.hero__title {
  font-size: clamp(3.6rem, 14vw, 10rem); line-height: .95; letter-spacing: -.01em; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 .18em;
}
.hero__word { display: inline-block; }
.hero__amp { font-style: italic; color: var(--purple-light); font-size: .62em; }
.hero__sub {
  margin-top: 1.4rem; color: var(--cream-muted); font-size: clamp(.95rem, .9rem + .4vw, 1.15rem); line-height: 1.5;
}
.hero__scroll {
  position: absolute; right: var(--gutter); bottom: 32px; z-index: 1;
  font-size: .68rem; letter-spacing: .3em; text-transform: uppercase; color: var(--cream-muted);
  display: flex; align-items: center; gap: 12px;
}
.hero__scroll span { width: 48px; height: 1px; background: var(--cream-faint); position: relative; overflow: hidden; }
.hero__scroll span::after {
  content: ""; position: absolute; inset: 0; background: var(--green-light);
  animation: scrollhint 2.2s var(--ease) infinite;
}
@keyframes scrollhint { 0% { transform: translateX(-100%); } 60%, 100% { transform: translateX(100%); } }

/* =====================================================================
   INTRO / OMLUVA / PŘÁNÍ (textové sekce)
   ===================================================================== */
.intro, .sorry { padding: clamp(96px, 16vh, 200px) 0; }
.sorry__eyebrow, .wish__eyebrow { margin-bottom: 1.6rem; color: var(--purple-light); }

/* =====================================================================
   KAPITOLY
   ===================================================================== */
.chapter { padding: clamp(64px, 10vh, 140px) 0; }
.chapter__head { margin-bottom: clamp(32px, 5vh, 64px); max-width: 720px; }
.chapter__num { display: block; color: var(--green-light); margin-bottom: .8rem; }
.chapter__title { font-size: clamp(2.6rem, 2rem + 4vw, 5.2rem); letter-spacing: -.01em; }
.chapter__lead {
  margin-top: 1.1rem; font-size: clamp(1.05rem, 1rem + .5vw, 1.35rem); color: var(--cream-muted);
  text-wrap: balance;
}

/* 01 · ráno */
.morning { display: grid; gap: 40px; align-items: center; grid-template-columns: 1fr; }
.morning .polaroid { width: min(100%, 320px); justify-self: center; }
.morning__text { font-family: var(--serif); font-size: clamp(1.3rem, 1.1rem + 1vw, 1.9rem); line-height: 1.3; text-wrap: balance; }
@media (min-width: 720px) { .morning { grid-template-columns: 360px 1fr; gap: 72px; } }

/* 02 · místo */
.place { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; grid-auto-rows: auto; }
.place figure::before { content: ""; display: block; padding-top: var(--ar, 75%); }
.place__wide { grid-column: 1 / -1; --ar: 66%; }
.place__tall { --ar: 125%; grid-row: span 2; }
.place__small { --ar: 100%; }
@media (min-width: 900px) {
  .place { grid-template-columns: 1.4fr .8fr .8fr; grid-template-rows: auto auto; }
  .place__wide { grid-column: 1; grid-row: 1 / 3; --ar: 100%; }
  .place__tall { grid-column: 2; grid-row: 1 / 3; --ar: 200%; }
  .place__small { grid-column: 3; --ar: 100%; }
}

/* 03 · horizontální pás */
.chapter--strip { padding-bottom: 0; }
.strip { position: relative; }
.strip__track { display: flex; gap: 14px; padding: 0 var(--gutter); }
.strip__item { flex: 0 0 auto; height: 62vh; max-height: 640px; min-height: 360px; }
.strip__item--tall { aspect-ratio: 3 / 4; }
.strip__item--wide { aspect-ratio: 4 / 3; }
/* mobil: nativní vodorovný scroll se snapem */
@media (max-width: 899px) {
  .chapter--strip { padding-bottom: clamp(64px, 10vh, 140px); }
  .strip { overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .strip::-webkit-scrollbar { display: none; }
  .strip__track { width: max-content; padding-bottom: 8px; }
  .strip__item { scroll-snap-align: center; height: 50vh; min-height: 300px; max-height: 480px; }
}
/* desktop: pin + posun přes GSAP */
@media (min-width: 900px) {
  .strip { height: 100vh; display: flex; align-items: center; overflow: hidden; }
  .strip__track { will-change: transform; padding-right: 40vw; }
  .strip__item { height: 72vh; }
}

/* 04 · nevěsta – sekvence (flipbook) */
.burst {
  position: relative; width: min(100%, 520px); aspect-ratio: 3 / 4; margin: 0 auto clamp(40px, 6vh, 72px);
  border-radius: var(--radius); overflow: hidden;
}
.burst__frame { position: absolute !important; inset: 0; opacity: 0; }
.burst__frame.is-active { opacity: 1; }
.burst__counter {
  position: absolute; top: 14px; right: 14px; z-index: 3; font-family: var(--serif); font-style: italic;
  font-size: 1rem; color: var(--cream); background: rgba(28,20,36,.55); backdrop-filter: blur(6px);
  padding: .25em .7em; border-radius: 999px;
}
.burst__counter span { color: var(--green-light); }
.burst__hint {
  position: absolute; left: 14px; bottom: 14px; z-index: 3; font-size: .68rem; letter-spacing: .25em; text-transform: uppercase;
  color: var(--cream-muted);
}

/* pár fotek vedle sebe */
.pair { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; align-items: start; }
.pair figure::before { content: ""; display: block; padding-top: 133%; }
.pair__b { margin-top: clamp(32px, 8vw, 96px); }
@media (min-width: 900px) { .pair { gap: 24px; width: min(100%, 880px); margin-inline: auto; } }

/* 05 · novomanželé */
.bleed {
  position: relative; width: 100%; height: clamp(420px, 90vh, 900px); border-radius: 0 !important;
  margin: clamp(32px, 5vh, 64px) 0;
}
.bleed img.photo { height: 130% !important; top: -15% !important; }
.trio { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
.trio figure::before { content: ""; display: block; padding-top: var(--ar, 75%); }
.trio__a { --ar: 133%; grid-row: span 2; }
.trio__b { --ar: 75%; }
.trio__c { --ar: 75%; }
.trio__d { --ar: 133%; grid-column: 1 / -1; --ar: 80%; }
@media (min-width: 900px) {
  .trio { grid-template-columns: 1fr 1fr 1fr; grid-template-rows: auto auto; }
  .trio__a { grid-column: 1; grid-row: 1 / 3; }
  .trio__b { grid-column: 2; grid-row: 1; }
  .trio__c { grid-column: 2; grid-row: 2; }
  .trio__d { grid-column: 3; grid-row: 1 / 3; --ar: 133%; }
}

/* 06 · hostina – mřížka */
.masonry { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
.masonry figure::before { content: ""; display: block; padding-top: var(--ar, 100%); }
.masonry figure:nth-child(1) { grid-column: 1 / -1; --ar: 70%; }
.masonry figure:nth-child(2) { --ar: 120%; }
.masonry figure:nth-child(3) { --ar: 120%; }
.masonry figure:nth-child(4) { grid-column: 1 / -1; --ar: 70%; }
.masonry figure:nth-child(5) { grid-column: 1 / -1; --ar: 70%; }
.masonry figure:nth-child(6) { grid-column: 1 / -1; --ar: 70%; }
.masonry figure:nth-child(7) { grid-column: 1 / -1; --ar: 110%; }
@media (min-width: 900px) {
  .masonry { grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .masonry figure:nth-child(1) { grid-column: 1 / 3; --ar: 62%; }
  .masonry figure:nth-child(2) { grid-column: 3; --ar: 128%; }
  .masonry figure:nth-child(3) { grid-column: 1; --ar: 75%; }
  .masonry figure:nth-child(4) { grid-column: 2; --ar: 75%; }
  .masonry figure:nth-child(5) { grid-column: 3; --ar: 75%; }
  .masonry figure:nth-child(6) { grid-column: 1 / 3; --ar: 62%; }
  .masonry figure:nth-child(7) { grid-column: 3; --ar: 128%; }
}

/* 07 · proslovy */
.speeches { display: grid; gap: 18px; grid-template-columns: 1fr; }
.speech {
  display: grid; grid-template-columns: 112px 1fr; gap: 18px; align-items: center;
  background: rgba(255,255,255,.035); border: 1px solid rgba(255,255,255,.06); border-radius: 10px; padding: 14px;
  transition: border-color .4s, background-color .4s;
}
.speech.is-playing { border-color: rgba(183,220,195,.45); background: rgba(183,220,195,.05); }
.speech__photo { aspect-ratio: 3 / 4; border-radius: 6px; }
.speech__who { font-size: 1.8rem; }
.speech__role { font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--cream-muted); margin: .25rem 0 1rem; }
.player { display: flex; align-items: center; gap: 12px; }
.player__btn {
  width: 44px; height: 44px; flex: 0 0 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--green-light); color: var(--green-ink); transition: transform .3s var(--ease), background-color .3s;
}
.player__btn:hover { transform: scale(1.06); }
.player__btn svg { width: 20px; height: 20px; fill: currentColor; }
.player__btn .ico-pause { display: none; }
.is-playing .player__btn .ico-play { display: none; }
.is-playing .player__btn .ico-pause { display: block; }
.player__bar { flex: 1; height: 24px; display: flex; align-items: center; cursor: pointer; position: relative; }
.player__bar::before { content: ""; position: absolute; left: 0; right: 0; height: 2px; background: var(--cream-faint); }
.player__fill { position: relative; height: 2px; width: 0%; background: var(--green-light); }
.player__fill::after {
  content: ""; position: absolute; right: -5px; top: -4px; width: 10px; height: 10px; border-radius: 50%;
  background: var(--green-light); opacity: 0; transition: opacity .3s;
}
.is-playing .player__fill::after, .player__bar:hover .player__fill::after { opacity: 1; }
.player__time { font-variant-numeric: tabular-nums; font-size: .8rem; color: var(--cream-muted); min-width: 3.2em; text-align: right; }
.speeches__listener { width: min(100%, 420px); aspect-ratio: 3 / 4; margin: clamp(32px, 6vh, 64px) auto 0; }
@media (min-width: 900px) {
  .speeches { grid-template-columns: repeat(3, 1fr); gap: 22px; }
  .speech { grid-template-columns: 1fr; padding: 16px; }
  .speech__photo { aspect-ratio: 4 / 5; }
}

/* 08 · odpoledne */
.afternoon { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
.afternoon figure::before { content: ""; display: block; padding-top: var(--ar, 100%); }
.afternoon__lawn { grid-column: 1 / -1; --ar: 70%; }
.afternoon__bow { --ar: 133%; }
.afternoon__guys { --ar: 133%; }
@media (min-width: 900px) {
  .afternoon { grid-template-columns: 1.2fr 1fr 1fr; }
  .afternoon__lawn { grid-column: 1; --ar: 133%; }
}
.guestbook {
  display: grid; gap: 40px; grid-template-columns: 1fr; justify-items: center;
  margin-top: clamp(48px, 8vh, 96px);
}
.guestbook .polaroid { width: min(100%, 340px); }
@media (min-width: 720px) { .guestbook { grid-template-columns: 1fr 1fr; gap: 24px; } .guestbook .polaroid:last-child { margin-top: 48px; } }

/* 09 · večer */
.evening-grid { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
.evening-grid figure::before { content: ""; display: block; padding-top: var(--ar, 100%); }
.evening-grid figure:nth-child(1) { --ar: 133%; grid-row: span 2; }
.evening-grid figure:nth-child(2) { --ar: 75%; }
.evening-grid figure:nth-child(3) { --ar: 75%; }
@media (min-width: 900px) { .evening-grid { grid-template-columns: 1fr 1.6fr; } }

/* P.S. */
.ps { padding-bottom: clamp(64px, 10vh, 140px); }
.ps__row { display: grid; gap: 40px; grid-template-columns: 1fr; align-items: center; justify-items: center; }
.ps__photo { width: min(100%, 300px); }
.ps__text { font-family: var(--serif); font-size: clamp(1.3rem, 1.1rem + 1vw, 1.9rem); line-height: 1.3; text-align: center; }
@media (min-width: 720px) { .ps__row { grid-template-columns: 320px 1fr; gap: 72px; } .ps__text { text-align: left; } }

/* přání */
.wish { position: relative; padding: clamp(120px, 20vh, 240px) 0 clamp(64px, 10vh, 120px); text-align: center; overflow: hidden; }
.wish__particles { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.wish .wrap { position: relative; }
.wish__title { font-size: clamp(1.9rem, 1.3rem + 3vw, 3.6rem); line-height: 1.2; text-wrap: balance; }
.wish__sign { margin-top: 3rem; color: var(--cream-muted); font-size: 1rem; line-height: 1.7; }
.wish__sign strong { font-family: var(--serif); font-weight: 500; font-size: 1.6rem; color: var(--cream); display: block; margin-top: .2em; }

/* patička */
.foot { padding: clamp(32px, 6vh, 64px) 0 calc(48px + env(safe-area-inset-bottom)); text-align: center; }
.foot__note { margin-top: 1.4rem; color: var(--cream-muted); font-size: .92rem; max-width: 44ch; margin-inline: auto; }
.foot__tiny { margin-top: 3rem; font-size: .68rem; letter-spacing: .3em; text-transform: uppercase; color: var(--cream-faint); }

/* =====================================================================
   LIGHTBOX
   ===================================================================== */
.lightbox {
  position: fixed; inset: 0; z-index: 60; background: rgba(20, 13, 27, .94); backdrop-filter: blur(10px);
  display: grid; place-items: center; opacity: 0; transition: opacity .35s var(--ease);
}
.lightbox.is-open { opacity: 1; }
.lightbox__stage { width: 100%; height: 100%; display: grid; place-items: center; padding: clamp(12px, 3vw, 40px); }
.lightbox__stage img {
  max-width: 100%; max-height: calc(100dvh - 2 * clamp(12px, 3vw, 40px)); object-fit: contain;
  border-radius: 4px; box-shadow: 0 40px 80px -30px rgba(0,0,0,.8);
  transition: opacity .3s;
}
.lightbox__close, .lightbox__nav {
  position: absolute; z-index: 2; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  font-size: 2rem; line-height: 1; color: var(--cream); background: rgba(255,255,255,.08); transition: background-color .3s;
}
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(255,255,255,.18); }
.lightbox__close { top: max(14px, env(safe-area-inset-top)); right: 14px; }
.lightbox__nav { top: 50%; transform: translateY(-50%); }
.lightbox__nav--prev { left: 14px; }
.lightbox__nav--next { right: 14px; }
.lightbox__cap {
  position: absolute; bottom: max(16px, env(safe-area-inset-bottom)); left: 0; right: 0; text-align: center;
  font-family: var(--serif); font-style: italic; color: var(--cream-muted); font-size: 1rem; pointer-events: none;
}
@media (max-width: 719px) { .lightbox__nav { display: none; } }

/* =====================================================================
   REDUCED MOTION
   ===================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .2s !important; }
  .hero__photo img.photo { transform: none; }
}
