/* lauriejocham.com - a family album and life story.
   Cream paper, soft ink, sand, sea glass and a sunset rose accent. Light and dark. */

@font-face { font-family: "Cormorant"; src: url(../fonts/cormorant.woff2) format("woff2"); font-weight: 300 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant"; src: url(../fonts/cormorant-italic.woff2) format("woff2"); font-weight: 300 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Lora"; src: url(../fonts/lora.woff2) format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Lora"; src: url(../fonts/lora-italic.woff2) format("woff2"); font-weight: 400 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Inter"; src: url(../fonts/inter.woff2) format("woff2"); font-weight: 400 600; font-style: normal; font-display: swap; }

:root {
  --paper: #f7f1e7;
  --paper-2: #efe5d4;
  --card: #fffaf2;
  --ink: #2b2622;
  --ink-soft: #5e554c;
  --line: #e0d3bf;
  --sand: #d8c3a1;
  --sea: #7fa69c;
  --sea-deep: #3e6a61;
  --rose: #c9766a;
  --rose-deep: #9d5248;
  --shadow: 0 1px 2px rgba(60, 40, 20, .06), 0 12px 32px -12px rgba(60, 40, 20, .22);
  --shadow-lift: 0 2px 4px rgba(60, 40, 20, .08), 0 22px 44px -16px rgba(60, 40, 20, .32);
  --display: "Cormorant", "Cormorant Garamond", Garamond, "Times New Roman", serif;
  --serif: "Lora", Georgia, "Times New Roman", serif;
  --ui: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --measure: 34rem;
  --gutter: clamp(1.25rem, 5vw, 3rem);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #1b1917;
    --paper-2: #23201c;
    --card: #2a2622;
    --ink: #efe6d8;
    --ink-soft: #bcb0a0;
    --line: #3d3731;
    --sand: #8a785e;
    --sea: #8fbab0;
    --sea-deep: #a9d0c6;
    --rose: #e3998d;
    --rose-deep: #eaa99e;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 14px 34px -14px rgba(0, 0, 0, .7);
    --shadow-lift: 0 2px 4px rgba(0, 0, 0, .35), 0 24px 48px -16px rgba(0, 0, 0, .8);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 4rem; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 1.125rem/1.75 var(--serif);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
picture { display: contents; }
a { color: var(--rose-deep); text-underline-offset: .2em; text-decoration-thickness: 1px; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--rose); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 60; background: var(--card); color: var(--ink); padding: .6rem 1rem; border-radius: 8px; font: 500 .9rem var(--ui); }
.skip:focus { top: 1rem; }
.center { text-align: center; }

/* ---------- shared type ---------- */
.kicker { margin: 0 0 .6rem; font: 600 .72rem/1 var(--ui); letter-spacing: .28em; text-transform: uppercase; color: var(--sea-deep); }
.h2 { margin: 0; font: 500 clamp(2.2rem, 6vw, 3.6rem)/1.05 var(--display); letter-spacing: -.005em; text-wrap: balance; }
.rule { display: block; width: 64px; height: 1px; background: var(--rose); margin: 1.4rem auto 0; position: relative; }
.rule::after { content: ""; position: absolute; left: 50%; top: 50%; width: 7px; height: 7px; background: var(--paper); border: 1px solid var(--rose); transform: translate(-50%, -50%) rotate(45deg); }
.section-head { text-align: center; max-width: 40rem; margin: 0 auto clamp(2.5rem, 6vw, 4.5rem); padding: 0 var(--gutter); }
.section-sub { margin: 1rem auto 0; color: var(--ink-soft); max-width: 30rem; font-size: 1.02rem; }

/* ---------- top bar ---------- */
.topbar {
  position: fixed; inset: 0 0 auto; z-index: 40; display: flex; align-items: center; justify-content: space-between;
  padding: max(.8rem, env(safe-area-inset-top)) var(--gutter) .8rem;
  color: #fff; transition: background .4s, color .4s, box-shadow .4s, padding .4s;
}
.topbar.is-solid { background: color-mix(in srgb, var(--paper) 88%, transparent); color: var(--ink); box-shadow: 0 1px 0 var(--line); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); padding-top: max(.55rem, env(safe-area-inset-top)); padding-bottom: .55rem; }
.mono { display: inline-grid; place-items: center; width: 2.6rem; height: 2.6rem; border: 1px solid currentColor; border-radius: 50%; font: 600 1.05rem/1 var(--display); letter-spacing: .02em; color: inherit; text-decoration: none; }
.topbar nav { display: flex; gap: clamp(.9rem, 3vw, 2rem); }
.topbar nav a { color: inherit; text-decoration: none; font: 500 .78rem/1 var(--ui); letter-spacing: .16em; text-transform: uppercase; padding: .5rem 0; border-bottom: 1px solid transparent; transition: border-color .3s; }
.topbar nav a:hover { border-color: currentColor; }
@media (max-width: 560px) { .topbar nav a:not([href="#listen"]):not([href="#album"]) { display: none; } }

/* ---------- 1. hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: grid; color: #fff; overflow: hidden; background: #3a332d; isolation: isolate; }
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img, .hero__media .ph { width: 100%; height: 100%; object-fit: cover; }
.hero__media img { transform-origin: 50% 60%; animation: kenburns 32s ease-in-out infinite alternate; }
@keyframes kenburns { from { transform: scale(1.02); } to { transform: scale(1.12) translate(-1%, -1%); } }
.hero__veil { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero--top .hero__veil { background: linear-gradient(180deg, rgba(25, 20, 16, .72) 0%, rgba(25, 20, 16, .42) 34%, rgba(25, 20, 16, 0) 58%), linear-gradient(0deg, rgba(25, 20, 16, .35), rgba(25, 20, 16, 0) 22%); }
.hero--bottom .hero__veil { background: linear-gradient(0deg, rgba(25, 20, 16, .78) 0%, rgba(25, 20, 16, .4) 38%, rgba(25, 20, 16, 0) 62%); }
.hero__text { align-self: start; text-align: center; padding: clamp(6rem, 15vh, 9rem) var(--gutter) 2rem; text-shadow: 0 1px 24px rgba(0, 0, 0, .35); }
.hero--bottom .hero__text { align-self: end; padding-bottom: clamp(5rem, 12vh, 8rem); }
/* tall screens (phones): name and line over the sky at the top, buttons at the foot of the photo, faces left clear */
@media (max-aspect-ratio: 4/5) {
  .hero--top .hero__text { align-self: stretch; display: flex; flex-direction: column; align-items: center; padding-top: clamp(4.6rem, 11vh, 6rem); padding-bottom: clamp(4.5rem, 10vh, 6rem); }
  .hero--top .hero__text .hero__cta { margin-top: auto; }
  .hero--top .hero__veil { background: linear-gradient(180deg, rgba(25, 20, 16, .72) 0%, rgba(25, 20, 16, .38) 26%, rgba(25, 20, 16, 0) 40%), linear-gradient(0deg, rgba(25, 20, 16, .7) 0%, rgba(25, 20, 16, .3) 22%, rgba(25, 20, 16, 0) 36%); }
}
.hero__eyebrow { margin: 0 0 .9rem; font: italic 400 clamp(1.25rem, 3.4vw, 1.75rem)/1.2 var(--display); color: #f6e3d8; letter-spacing: .02em; }
.hero__name { margin: 0; font: 500 clamp(3.1rem, 13vw, 8.6rem)/.92 var(--display); letter-spacing: .1em; text-transform: uppercase; margin-right: -.1em; }
.hero__name span { display: inline-block; }
.hero__line { max-width: 30ch; margin: 1.1rem auto 0; font: italic 400 clamp(1.2rem, 3.2vw, 1.7rem)/1.3 var(--display); color: #fbefe7; letter-spacing: .01em; }
.hero .rule { background: #f0b6aa; margin-top: 1.6rem; }
.hero .rule::after { background: #6a5244; border-color: #f0b6aa; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; margin: 1.8rem 0 0; }
.btn { display: inline-flex; align-items: center; gap: .55rem; min-height: 3rem; padding: .85rem 1.5rem; border-radius: 999px; font: 500 .82rem/1 var(--ui); letter-spacing: .12em; text-transform: uppercase; text-decoration: none; text-shadow: none; transition: transform .35s cubic-bezier(.2, .7, .2, 1), background .3s, box-shadow .35s; }
.btn svg { width: 1rem; height: 1rem; fill: currentColor; }
.btn--light { background: #fbf6ee; color: #2b2622; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .5); }
.btn--ghost { color: #fff; border: 1px solid rgba(255, 255, 255, .75); background: rgba(255, 255, 255, .08); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.btn:hover { transform: translateY(-2px); }
.btn--ghost:hover { background: rgba(255, 255, 255, .18); }
.hero__down { position: absolute; left: 50%; bottom: max(1.4rem, env(safe-area-inset-bottom)); width: 1.6rem; height: 2.6rem; margin-left: -.8rem; border: 1px solid rgba(255, 255, 255, .7); border-radius: 1rem; }
.hero__down span { position: absolute; left: 50%; top: .5rem; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: #fff; animation: dot 2.4s ease-in-out infinite; }
@keyframes dot { 0%, 100% { transform: translateY(0); opacity: 1; } 60% { transform: translateY(12px); opacity: 0; } }
.hero__text > * { animation: rise 1.4s cubic-bezier(.2, .7, .2, 1) both; }
.hero__text > :nth-child(2) { animation-delay: .15s; }
.hero__text > :nth-child(3) { animation-delay: .35s; }
.hero__text > :nth-child(4) { animation-delay: .5s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* placeholder block when a slot has no photo yet */
.ph { display: grid; place-items: center; width: 100%; height: 100%; min-height: 12rem; background: linear-gradient(160deg, var(--paper-2), var(--sand)); color: var(--ink-soft); font: italic 1.2rem var(--display); }

/* ---------- 2. intro ---------- */
.intro { display: grid; gap: clamp(2rem, 6vw, 5rem); align-items: center; max-width: 64rem; margin: 0 auto; padding: clamp(4.5rem, 12vw, 9rem) var(--gutter) clamp(3.5rem, 9vw, 7rem); }
@media (min-width: 900px) { .intro { grid-template-columns: 320px 1fr; } }
.intro__portrait { justify-self: center; width: min(70vw, 320px); }
.arch { margin: 0; aspect-ratio: 4 / 5; border-radius: 999px 999px 18px 18px; overflow: hidden; box-shadow: var(--shadow); outline: 1px solid var(--line); outline-offset: 10px; }
.arch img, .arch .ph { width: 100%; height: 100%; object-fit: cover; }
.intro__text { max-width: var(--measure); }
@media (max-width: 899px) { .intro__text { justify-self: center; } }
.intro .h2 { margin-bottom: 1.4rem; font-size: clamp(2rem, 5vw, 3rem); }
.lede { font-size: 1.2rem; line-height: 1.8; margin: 0; }
.dropcap::first-letter { float: left; font: 500 5.2rem/.72 var(--display); color: var(--rose-deep); margin: .45rem .6rem 0 -.05rem; }
.pull { margin: 2.6rem 0 0; padding: 0 0 0 1.6rem; border-left: 2px solid var(--rose); }
.pull p { margin: 0; font: italic 500 clamp(1.5rem, 3.6vw, 1.95rem)/1.35 var(--display); color: var(--ink); text-wrap: pretty; }
.pull footer, .closing__line footer { margin-top: .9rem; font: 600 .72rem/1 var(--ui); letter-spacing: .24em; text-transform: uppercase; color: var(--ink-soft); }
.pull footer::before, .closing__line footer::before { content: "\2014\00a0"; }

/* ---------- 3. story ---------- */
.story { padding: clamp(3rem, 8vw, 6rem) 0 clamp(4rem, 9vw, 7rem); background: linear-gradient(180deg, var(--paper), var(--paper-2) 18%, var(--paper-2) 82%, var(--paper)); }
.chapter { display: grid; gap: clamp(1.6rem, 4vw, 4.5rem); align-items: center; max-width: 70rem; margin: 0 auto; padding: clamp(1.5rem, 4vw, 3.5rem) var(--gutter); }
@media (min-width: 900px) {
  .chapter { grid-template-columns: 1.1fr 1fr; }
  .chapter:nth-of-type(even) .chapter__photo { order: 2; }
}
.print { margin: 0; background: var(--card); padding: clamp(.55rem, 1.4vw, .9rem); padding-bottom: clamp(.55rem, 1.4vw, .9rem); border-radius: 3px; box-shadow: var(--shadow); }
.print img, .print .ph { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 1px; }
.chapter__photo img.tall { aspect-ratio: 4 / 5; }
@media (min-width: 900px) { .chapter__photo:has(img.tall) { width: min(100%, 26rem); justify-self: center; } }
.chapter__photo figcaption { padding: .7rem .2rem .1rem; font: italic 1.05rem/1.3 var(--display); color: var(--ink-soft); text-align: center; }
.chapter__text { max-width: var(--measure); }
@media (max-width: 899px) { .chapter__text { justify-self: center; } }
.chapter__num { margin: 0 0 .2rem; font: italic 400 clamp(3.4rem, 8vw, 4.8rem)/1 var(--display); color: var(--rose); }
.chapter__title { margin: 0; font: 500 clamp(1.8rem, 4.2vw, 2.5rem)/1.1 var(--display); text-wrap: balance; }
.chapter__when { margin: .5rem 0 1.1rem; font: 600 .7rem/1 var(--ui); letter-spacing: .24em; text-transform: uppercase; color: var(--sea-deep); }
.chapter__text p:last-child { margin: 0; }

/* ---------- 4. listen + players ---------- */
.listen { padding: clamp(4.5rem, 11vw, 8rem) var(--gutter); position: relative; }
.listen::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60rem 30rem at 50% 0%, color-mix(in srgb, var(--sea) 16%, transparent), transparent 70%); }
.player { max-width: 40rem; margin: 0 auto; background: var(--card); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); padding: clamp(1.2rem, 4vw, 2rem); }
.player--compact { margin: 2rem 0 0; max-width: 34rem; }
.player__head { display: flex; gap: 1.1rem; align-items: center; margin-bottom: 1.2rem; }
.player__art { flex: none; width: 5.2rem; height: 5.2rem; margin: 0; border-radius: 14px; overflow: hidden; background: var(--paper-2); box-shadow: var(--shadow); }
.player__art img { width: 100%; height: 100%; object-fit: cover; }
.player__label { margin: 0 0 .3rem; font: 600 .66rem/1 var(--ui); letter-spacing: .24em; text-transform: uppercase; color: var(--sea-deep); }
.player__title { margin: 0; font: 500 1.75rem/1.1 var(--display); }
.player__desc { margin: 1rem 0 0; font: 400 .98rem/1.6 var(--serif); color: var(--ink-soft); }
.player__meta { margin: .3rem 0 0; font: 400 .85rem/1.3 var(--ui); color: var(--ink-soft); }
.player audio { width: 100%; }
.js .player.is-ready audio { display: none; }
.pc__range { --p: 0%; -webkit-appearance: none; appearance: none; width: 100%; height: 1.6rem; margin: 0; background: transparent; cursor: pointer; }
.pc__range::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--rose) var(--p), var(--line) var(--p)); }
.pc__range::-moz-range-track { height: 4px; border-radius: 4px; background: var(--line); }
.pc__range::-moz-range-progress { height: 4px; border-radius: 4px; background: var(--rose); }
.pc__range::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; margin-top: -6px; border-radius: 50%; background: var(--rose-deep); border: 3px solid var(--card); box-shadow: 0 1px 4px rgba(0, 0, 0, .25); }
.pc__range::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; background: var(--rose-deep); border: 3px solid var(--card); }
.pc__times { display: flex; justify-content: space-between; align-items: center; gap: .5rem; font: 500 .78rem/1 var(--ui); color: var(--ink-soft); font-variant-numeric: tabular-nums; margin-top: .25rem; }
.pc__note { flex: 1; text-align: center; color: var(--sea-deep); opacity: 0; transition: opacity .5s; }
.pc__note.is-on { opacity: 1; }
.pc__row { display: flex; align-items: center; justify-content: center; gap: clamp(1.2rem, 6vw, 2.4rem); margin: 1rem 0 1.1rem; }
.pc__play { display: grid; place-items: center; width: 4.4rem; height: 4.4rem; border: 0; border-radius: 50%; background: var(--rose-deep); color: #fff; cursor: pointer; box-shadow: 0 12px 24px -10px color-mix(in srgb, var(--rose-deep) 80%, transparent); transition: transform .3s cubic-bezier(.2, .7, .2, 1), background .3s; }
@media (prefers-color-scheme: dark) { .pc__play { color: #1b1917; } }
.pc__play:hover { transform: scale(1.05); }
.pc__play svg { width: 1.7rem; height: 1.7rem; fill: currentColor; }
.pc__play .i-pause, .player.is-playing .pc__play .i-play { display: none; }
.player.is-playing .pc__play .i-pause { display: block; }
.pc__skip { position: relative; display: grid; place-items: center; width: 3rem; height: 3rem; border: 0; border-radius: 50%; background: transparent; cursor: pointer; color: var(--ink); transition: background .3s; }
.pc__skip:hover { background: var(--paper-2); }
.pc__skip svg { width: 2.1rem; height: 2.1rem; fill: currentColor; }
.pc__skip span { position: absolute; top: 55%; left: 50%; transform: translate(-50%, -50%); font: 600 .58rem/1 var(--ui); }
.pc__speed { display: flex; justify-content: center; gap: .35rem; }
.pc__speed button { min-width: 3.4rem; min-height: 2.2rem; padding: .35rem .6rem; border: 1px solid var(--line); border-radius: 999px; background: transparent; cursor: pointer; font: 500 .78rem/1 var(--ui); color: var(--ink-soft); transition: all .25s; }
.pc__speed button[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.pc__chapters { margin-top: 1.4rem; border-top: 1px solid var(--line); padding-top: 1rem; }
.pc__chead { margin: 0 0 .4rem; font: 600 .66rem/1 var(--ui); letter-spacing: .24em; text-transform: uppercase; color: var(--ink-soft); }
.pc__list { list-style: none; margin: 0; padding: 0; max-height: 20rem; overflow: auto; }
.pc__list button { display: flex; width: 100%; gap: .8rem; align-items: baseline; padding: .6rem .5rem; border: 0; border-radius: 8px; background: transparent; cursor: pointer; text-align: left; font: 400 1rem/1.35 var(--serif); }
.pc__list button:hover { background: var(--paper-2); }
.pc__list .n { flex: none; width: 1.6rem; font: italic 1.1rem/1 var(--display); color: var(--rose); }
.pc__list .t { flex: 1; }
.pc__list .s { flex: none; font: 500 .78rem/1 var(--ui); color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.pc__list .is-current button { background: color-mix(in srgb, var(--sea) 18%, transparent); }

/* ---------- 5. Mark ---------- */
.mark { display: grid; gap: clamp(2rem, 6vw, 5rem); align-items: center; max-width: 68rem; margin: 0 auto; padding: clamp(3.5rem, 9vw, 7rem) var(--gutter); }
@media (min-width: 900px) { .mark { grid-template-columns: .9fr 1.1fr; } }
.mark__photo { max-width: 28rem; justify-self: center; width: 100%; transform: rotate(-1.2deg); }
.mark__photo img, .mark__photo .ph { aspect-ratio: 4 / 5; }
.mark__text { max-width: var(--measure); }
@media (max-width: 899px) { .mark__text { justify-self: center; } }
.mark .h2 { margin-bottom: 1.1rem; }

/* ---------- 6. album ---------- */
.album { padding: clamp(4rem, 10vw, 7rem) 0 clamp(3rem, 8vw, 6rem); background: var(--paper-2); }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin: -1.5rem auto 2.2rem; padding: 0 var(--gutter); }
.chips button { min-height: 2.5rem; padding: .5rem 1.1rem; border: 1px solid var(--line); border-radius: 999px; background: var(--card); cursor: pointer; font: 500 .8rem/1 var(--ui); letter-spacing: .06em; color: var(--ink-soft); transition: all .25s; }
.chips button[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.gallery { --row: clamp(150px, 26vw, 280px); display: flex; flex-wrap: wrap; gap: clamp(.4rem, 1.2vw, .8rem); max-width: 84rem; margin: 0 auto; padding: 0 var(--gutter); }
.gallery::after { content: ""; flex: 999 1 auto; min-width: 20%; }
.tile { position: relative; flex: var(--r) 1 calc(var(--r) * var(--row)); min-width: 0; margin: 0; padding: 0; border: 0; border-radius: 6px; overflow: hidden; background: var(--sand); cursor: zoom-in; box-shadow: 0 1px 2px rgba(60, 40, 20, .08); transition: transform .45s cubic-bezier(.2, .7, .2, 1), box-shadow .45s; }
.tile img { width: 100%; height: 100%; aspect-ratio: var(--r); object-fit: cover; transition: transform 1.2s cubic-bezier(.2, .7, .2, 1); }
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); z-index: 1; }
.tile:hover img { transform: scale(1.03); }
.tile .cap { position: absolute; inset: auto 0 0; padding: 2rem .8rem .6rem; background: linear-gradient(0deg, rgba(20, 16, 12, .6), transparent); color: #fff; font: italic 1rem/1.25 var(--display); text-align: left; opacity: 0; transition: opacity .4s; }
.tile:hover .cap, .tile:focus-visible .cap { opacity: 1; }
.tile[hidden] { display: none; }
@media (max-width: 560px) { .gallery { --row: 128px; } }

/* ---------- lightbox ---------- */
.lb { position: fixed; inset: 0; z-index: 80; background: #100d0b; color: #f4ece0; display: grid; grid-template-rows: 1fr auto; opacity: 0; transition: opacity .35s; touch-action: none; }
.lb.is-open { opacity: 1; }
.lb[hidden] { display: none; }
.lb__stage { position: relative; overflow: hidden; display: grid; place-items: center; padding: max(3.5rem, env(safe-area-inset-top)) clamp(0rem, 6vw, 5rem) .5rem; }
.lb__img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 3px; user-select: none; -webkit-user-drag: none; transition: transform .35s cubic-bezier(.2, .7, .2, 1), opacity .3s; cursor: zoom-in; }
.lb.is-zoomed .lb__img { cursor: grab; transition: none; }
.lb__bar { display: flex; gap: 1rem; justify-content: space-between; align-items: baseline; padding: .8rem var(--gutter) max(1rem, env(safe-area-inset-bottom)); }
.lb__cap { margin: 0; font: italic 1.25rem/1.3 var(--display); }
.lb__count { margin: 0; flex: none; font: 500 .78rem/1 var(--ui); letter-spacing: .12em; color: #c8bba9; font-variant-numeric: tabular-nums; }
.lb__btn { position: absolute; z-index: 2; display: grid; place-items: center; width: 3rem; height: 3rem; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .1); color: #fff; cursor: pointer; transition: background .25s; }
.lb__btn:hover { background: rgba(255, 255, 255, .22); }
.lb__btn svg { width: 1.4rem; height: 1.4rem; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.lb__close { top: max(.8rem, env(safe-area-inset-top)); right: .8rem; }
.lb__prev, .lb__next { top: 50%; margin-top: -1.5rem; }
.lb__prev { left: .8rem; }
.lb__next { right: .8rem; }
@media (max-width: 700px) { .lb__prev, .lb__next { display: none; } }

/* ---------- 7. closing + footer ---------- */
.closing { position: relative; display: block; overflow: hidden; color: #fff; isolation: isolate; background: #3a332d; }
.closing__media { position: relative; width: 100%; aspect-ratio: 1589 / 1198; max-height: 80vh; overflow: hidden; }
.closing__media img, .closing__media .ph { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30% !important; }
.closing__veil { display: none; }
.closing__line { margin: 0 auto; max-width: 40rem; padding: 2.5rem var(--gutter) 3.5rem; text-align: center; text-shadow: 0 1px 24px rgba(0, 0, 0, .45); }
.closing__line p { margin: 0; font: italic 500 clamp(1.9rem, 5vw, 3rem)/1.25 var(--display); text-wrap: balance; }
.closing__line footer { color: #f1d6cc; }
.foot { text-align: center; padding: 3.5rem var(--gutter) max(3rem, env(safe-area-inset-bottom)); color: var(--ink-soft); }
.foot p { margin: 0; }
.mono--small { width: 2.2rem; height: 2.2rem; font-size: .9rem; color: var(--rose-deep); margin-bottom: .9rem !important; }
.foot p:nth-child(2) { font: 500 1.4rem/1.3 var(--display); color: var(--ink); letter-spacing: .14em; text-transform: uppercase; }
.foot__small { margin-top: .4rem !important; font: 400 .82rem/1.4 var(--ui); }

/* ---------- reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 1.1s cubic-bezier(.2, .7, .2, 1), transform 1.1s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .mark__photo.reveal.is-in { transform: rotate(-1.2deg); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .js .mark__photo.reveal { transform: rotate(-1.2deg); }
}

/* ?still: everything shown, nothing moving (screenshots) */
.still *, .still *::before, .still *::after { animation: none !important; transition: none !important; }
.still .reveal { opacity: 1 !important; transform: none !important; }
.still .mark__photo.reveal { transform: rotate(-1.2deg) !important; }
