:root {
  --table: #1a3a36;
  --table-deep: #102624;
  --paper: #f6f1e6;
  --paper-2: #efe8d9;
  --ink: #1f2725;
  --ink-soft: #55605c;
  --text: #eef0e6;
  --text-soft: rgba(238, 240, 230, 0.72);
  --rule: rgba(238, 240, 230, 0.22);
  --display: 'Instrument Serif', 'Iowan Old Style', Georgia, serif;
  --serif: 'Newsreader', 'Iowan Old Style', Georgia, serif;
  --gutter: clamp(16px, 5vw, 56px);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--table);
  color: var(--text);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.55;
  overflow-x: hidden;
}
/* The table: lamp light in the middle, darker edges, a little grain. A fixed layer, never bg-attachment:fixed. */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .055 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    radial-gradient(110% 75% at 55% 35%, rgba(255, 255, 240, 0.07), transparent 62%),
    radial-gradient(140% 120% at 50% 50%, transparent 55%, rgba(0, 0, 0, 0.35));
}

h1, h2, h3, .years, .lead, .sec-sub, .sheet-sub, .empty { text-wrap: balance; }
p, li, dd { text-wrap: pretty; }
.ln { display: inline-block; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
img { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--paper); outline-offset: 3px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font: 500 17px/1 var(--serif);
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.25), 0 8px 24px -10px rgba(0, 0, 0, 0.6);
  transition: background-color 0.2s;
}
.btn:hover { background: #fff; }
.btn:disabled { opacity: 0.6; cursor: default; }
.textlink { font-style: italic; text-underline-offset: 4px; text-decoration-thickness: 1px; color: var(--text-soft); }
.textlink:hover { color: var(--text); }

/* ---------- Opening: the stack of prints ---------- */
.open { position: relative; height: 240svh; }
.stage {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
}
.mark {
  position: absolute;
  top: calc(env(safe-area-inset-top, 0px) + 22px);
  left: var(--gutter);
  width: 54px;
  height: auto;
  opacity: 0.9;
  z-index: 3;
}
.title {
  position: absolute;
  z-index: 2;
  left: 7vw;
  top: 50%;
  transform: translateY(-50%);
  width: min(40vw, 560px);
}
.title h1 {
  margin: 0;
  font: 400 clamp(56px, 7.4vw, 118px)/0.95 var(--display);
  letter-spacing: -0.01em;
}
.years {
  margin: 18px 0 0;
  font: italic 400 clamp(24px, 2.4vw, 34px)/1.2 var(--display);
  color: var(--text-soft);
}
.lead {
  margin: 28px 0 0;
  max-width: 30ch;
  font-size: clamp(18px, 1.45vw, 21px);
  line-height: 1.5;
  color: var(--text);
}
.actions { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; }

.spread { position: absolute; inset: 0; z-index: 1; }
.print {
  position: absolute;
  left: 0;
  top: 0;
  margin: 0;
  padding: 3.6% 3.6% 0;
  background: linear-gradient(170deg, #fbf8f0, var(--paper) 40%, var(--paper-2));
  /* --lift (0..1) deepens the shadow while a print is in the air */
  box-shadow:
    0 1px 1px rgba(0, 0, 0, 0.3),
    0 calc(14px + var(--lift, 0) * 26px) calc(34px + var(--lift, 0) * 30px) -14px rgba(0, 0, 0, calc(0.62 + var(--lift, 0) * 0.18));
  transform-origin: 50% 50%;
  cursor: zoom-in;
  -webkit-tap-highlight-color: transparent;
}
.print img { width: 100%; height: auto; background: #cfc8b8; }
.print figcaption {
  min-height: 2.4em;
  padding: 0.55em 0.2em 0.65em;
  font: italic 400 clamp(11px, 0.85vw, 14px)/1.25 var(--serif);
  color: var(--ink-soft);
  text-align: center;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.spread .print { will-change: transform; }
.cue {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 18px);
  translate: -50% 0;
  margin: 0;
  font: italic 400 15px/1 var(--serif);
  color: var(--text-soft);
  transition: opacity 0.3s;
}
.cue::after { content: ''; display: block; width: 1px; height: 26px; margin: 8px auto 0; background: var(--text-soft); }

/* Without JS (or before it runs) the prints sit in a simple row beside the title. */
html:not(.js) .open { height: auto; }
html:not(.js) .stage { position: relative; height: auto; min-height: 100svh; overflow: visible; padding: 120px var(--gutter) 60px; }
html:not(.js) .title { position: static; transform: none; width: auto; max-width: 640px; }
html:not(.js) .spread { position: static; display: flex; flex-wrap: wrap; gap: 24px; margin-top: 40px; }
html:not(.js) .spread .print { position: relative; width: min(300px, 80vw); }
html:not(.js) .cue { display: none; }

/* ---------- Sections ---------- */
.sec-head { text-align: center; padding: 0 var(--gutter); margin: 0 auto 56px; max-width: 760px; }
.sec-head h2 { margin: 0; font: 400 clamp(44px, 6vw, 80px)/1 var(--display); }
.sec-sub { margin: 14px 0 0; color: var(--text-soft); font-size: 19px; font-style: italic; }
.sec-head .btn { margin-top: 28px; }
.add-line { margin: 22px 0 0; color: var(--text-soft); font-size: 18px; }
.add-line + .btn { margin-top: 18px; }
.alt-add { margin: 18px 0 0; }

/* ---------- Full-bleed photo bands between sections ---------- */
/* The photo fades into the table at its edges (a mask, so the real table shows through, no seam) and drifts slower than the page. */
.bleed {
  position: relative;
  height: 82svh;
  margin: 0;
  overflow: hidden;
  cursor: zoom-in;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 20%, #000 80%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 20%, #000 80%, transparent 100%);
}
.bleed img, .half img {
  position: absolute;
  left: 0;
  top: -12%;
  width: 100%;
  height: 124%;
  max-width: none;
  object-fit: cover;
  object-position: var(--pos, 50% 50%);
  will-change: transform;
}

/* ---------- Memories opener: half-bleed photo beside the heading ---------- */
.mem-intro { display: grid; grid-template-columns: minmax(0, 52fr) minmax(0, 48fr); align-items: center; margin: 0 0 8svh; }
.half {
  position: relative;
  height: 96svh;
  margin: 0;
  overflow: hidden;
  cursor: zoom-in;
  -webkit-mask-image: linear-gradient(to right, #000 60%, transparent), linear-gradient(to bottom, transparent, #000 14%, #000 86%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, #000 60%, transparent), linear-gradient(to bottom, transparent, #000 14%, #000 86%, transparent);
  mask-composite: intersect;
}
.mem-intro .sec-head { margin: 0; padding: 0 var(--gutter) 0 3vw; text-align: left; max-width: 640px; }
.mem-intro .sec-head h2 { font-size: clamp(56px, 7vw, 112px); line-height: 0.95; }

/* ---------- Photo wall: drifting columns ---------- */
.photos { padding: 10svh 0 14svh; overflow: hidden; }
.wall { display: flex; gap: clamp(14px, 2.2vw, 34px); padding: 40px var(--gutter); align-items: flex-start; }
.col { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: clamp(18px, 2.6vw, 40px); will-change: transform; }
.wall .print { position: relative; width: 100%; padding: 4.5% 4.5% 0; }
.wall .print figcaption { font-size: clamp(12px, 1vw, 14px); }

/* ---------- On the water: a pinned reel that slides sideways as you scroll ---------- */
.reel { position: relative; height: 320svh; }
.reel-stage { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.reel-head { position: absolute; z-index: 2; left: var(--gutter); top: calc(env(safe-area-inset-top, 0px) + 9svh); pointer-events: none; }
.reel-head h2 { margin: 0; font: 400 clamp(54px, 8vw, 132px)/0.92 var(--display); letter-spacing: -0.01em; }
.reel-track { position: absolute; inset: 0; z-index: 3; }
.reel .print { position: absolute; left: 0; top: 0; will-change: transform; }
/* Reduced motion: a plain sideways strip you swipe through */
.reel.static { height: auto; padding: 10svh 0 6svh; }
.reel.static .reel-stage { position: relative; height: auto; overflow: visible; }
.reel.static .reel-head { position: static; padding: 0 var(--gutter); margin-bottom: 24px; }
.reel.static .reel-track { position: relative; display: flex; align-items: flex-start; gap: 24px; overflow-x: auto; padding: 24px var(--gutter) 40px; scroll-snap-type: x mandatory; }
.reel.static .print { position: relative; flex: none; scroll-snap-align: center; will-change: auto; }
html:not(.js) .reel { display: none; }

/* ---------- Memories: notes on the table ---------- */
.memories { padding: 2svh 0 10svh; }
.notes { columns: 3 340px; column-gap: clamp(20px, 3vw, 44px); padding: 0 var(--gutter); max-width: 1400px; margin: 0 auto; }
.note {
  break-inside: avoid;
  display: inline-block;
  width: 100%;
  margin: 0 0 clamp(24px, 3vw, 44px);
  padding: 30px 30px 26px;
  background: linear-gradient(175deg, #fbf8f0, var(--paper) 45%, var(--paper-2));
  color: var(--ink);
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.3), 0 22px 44px -24px rgba(0, 0, 0, 0.7);
}
.note:nth-child(3n + 1) { rotate: -0.7deg; }
.note:nth-child(3n + 2) { rotate: 0.5deg; }
.note:nth-child(3n) { rotate: -0.25deg; }
.note.fresh { outline: 3px solid var(--paper); outline-offset: 6px; }
.note-photos { display: grid; gap: 8px; margin: -6px -6px 22px; }
.note-photos.n1 { grid-template-columns: 1fr; }
.note-photos.n2 { grid-template-columns: 1fr 1fr; }
.note-photos.n3, .note-photos.nmany { grid-template-columns: 1fr 1fr 1fr; }
.note-photos button {
  position: relative;
  display: block;
  padding: 0;
  border: 0;
  background: #d9d2c2;
  cursor: zoom-in;
  aspect-ratio: 1;
  overflow: hidden;
}
.note-photos.n1 button { aspect-ratio: auto; }
.note-photos img { width: 100%; height: 100%; object-fit: cover; }
.note-photos .more {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(16, 38, 36, 0.62);
  color: var(--paper);
  font: 400 26px/1 var(--display);
}
.note-story { margin: 0; white-space: pre-line; font-size: 18px; line-height: 1.6; overflow-wrap: anywhere; }
.note-sign { margin: 20px 0 0; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.note-name { font-style: italic; font-weight: 500; font-size: 18px; }
.note-rel { display: block; font-style: normal; font-weight: 400; font-size: 15px; color: var(--ink-soft); }
.note-date { font-size: 14px; color: var(--ink-soft); white-space: nowrap; }
.note-story:empty { display: none; }
.note-photos + .note-sign { margin-top: 0; }
/* ---------- Videos: play badge, poster stand-in, length ---------- */
.pm { position: relative; }
.noposter { width: 100%; aspect-ratio: 16 / 9; background: radial-gradient(120% 90% at 30% 20%, #2c4f4a, #0f2321); }
.play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 58px;
  height: 58px;
  translate: -50% -50%;
  border-radius: 50%;
  background: rgba(12, 28, 26, 0.6);
  box-shadow: 0 0 0 1.5px rgba(246, 241, 230, 0.85), 0 6px 18px rgba(0, 0, 0, 0.35);
  pointer-events: none;
}
.play::after {
  content: '';
  position: absolute;
  left: 54%;
  top: 50%;
  translate: -50% -50%;
  border-style: solid;
  border-width: 10px 0 10px 17px;
  border-color: transparent transparent transparent var(--paper);
}
.dur {
  position: absolute;
  right: 6px;
  bottom: 6px;
  padding: 2px 6px;
  border-radius: 3px;
  background: rgba(12, 28, 26, 0.78);
  color: var(--paper);
  font: 500 12px/1.3 var(--serif);
  pointer-events: none;
}
.note-photos .play { width: 44px; height: 44px; }
.note-photos .play::after { border-width: 8px 0 8px 13px; }
.note-photos .noposter { height: 100%; aspect-ratio: auto; }
.note-photos.n1 .noposter { max-height: 420px; }

.empty, .loading-note { text-align: center; color: var(--text-soft); font-style: italic; font-size: 20px; padding: 0 var(--gutter); }

/* ---------- Footer ---------- */
.foot { padding: 60px var(--gutter) calc(env(safe-area-inset-bottom, 0px) + 110px); text-align: center; color: var(--text-soft); }
.foot img { width: 64px; height: auto; margin: 0 auto 14px; opacity: 0.75; }
.foot p { margin: 0; font-style: italic; }
.foot .contact { margin-top: 18px; font-style: normal; font-size: 16px; }
.foot .contact a { color: var(--text); text-underline-offset: 4px; text-decoration-thickness: 1px; }

/* ---------- Floating share button ---------- */
.fab {
  position: fixed;
  z-index: 20;
  right: max(16px, env(safe-area-inset-right, 0px));
  bottom: calc(env(safe-area-inset-bottom, 0px) + 16px);
  display: inline-flex;
  align-items: center;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font: 500 17px/1 var(--serif);
  text-decoration: none;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.2), 0 14px 30px -10px rgba(0, 0, 0, 0.7);
  transition: opacity 0.3s, translate 0.3s;
}
.js .fab.tucked { opacity: 0; translate: 0 20px; pointer-events: none; }

/* ---------- Share sheet ---------- */
dialog { border: 0; padding: 0; }
dialog::backdrop { background: rgba(8, 20, 19, 0.72); }
.sheet {
  width: min(620px, calc(100vw - 32px));
  max-height: calc(100svh - 40px);
  overflow: auto;
  overscroll-behavior: contain;
  background: var(--paper);
  color: var(--ink);
  padding: 44px 40px 36px;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.8);
}
.sheet h2 { margin: 0; font: 400 clamp(34px, 5vw, 46px)/1.05 var(--display); padding-right: 40px; }
.sheet-sub { margin: 10px 0 26px; color: var(--ink-soft); font-style: italic; }
.x {
  position: absolute;
  z-index: 5;
  top: calc(env(safe-area-inset-top, 0px) + 8px);
  right: 8px;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  font: 300 34px/1 var(--serif);
  cursor: pointer;
}
.x:hover { background: rgba(0, 0, 0, 0.07); }
.field { display: block; margin: 0 0 20px; }
.field > span { display: block; margin-bottom: 7px; font-weight: 500; font-size: 17px; }
.field em { font-weight: 400; color: var(--ink-soft); margin-left: 6px; font-size: 15px; }
.field input, .field textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid rgba(31, 39, 37, 0.3);
  border-radius: 3px;
  background: #fffdf8;
  color: var(--ink);
  font: 400 17px/1.45 var(--serif);
}
.field textarea { resize: vertical; min-height: 150px; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--table); outline-offset: 1px; border-color: transparent; }
.picks { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 10px; }
.addpick {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border: 1.5px dashed rgba(31, 39, 37, 0.45);
  border-radius: 3px;
  color: var(--ink-soft);
  font-size: 15px;
  text-align: center;
  cursor: pointer;
}
.addpick input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.addpick:focus-within { outline: 2px solid var(--table); }
.pick { position: relative; aspect-ratio: 1; background: #ddd5c4; }
.pick img { width: 100%; height: 100%; object-fit: cover; }
.pick.busy::after { content: ''; position: absolute; inset: 0; background: rgba(246, 241, 230, 0.6); }
.pick .noposter { height: 100%; aspect-ratio: auto; }
.pick .play { width: 34px; height: 34px; }
.pick .play::after { border-width: 6px 0 6px 10px; }
.pick .dur { right: 4px; bottom: 4px; font-size: 11px; }
.pick button {
  position: absolute;
  top: -10px;
  right: -10px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  font: 400 20px/1 var(--serif);
  cursor: pointer;
}
.pick button::before { content: ''; position: absolute; inset: -6px; }
.field-note { margin: 12px 0 0; font-size: 15px; color: var(--ink-soft); }
.field-note a { color: var(--table); font-weight: 500; text-underline-offset: 3px; }
.bulkpick {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 64px;
  border: 1.5px dashed rgba(31, 39, 37, 0.45);
  border-radius: 3px;
  color: var(--ink-soft);
  font-size: 16px;
  cursor: pointer;
}
.bulkpick input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.bulkpick:focus-within { outline: 2px solid var(--table); }
.bulk-sel { margin-top: 12px; }
.bulk-thumbs { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; }
.bulk-thumbs div { position: relative; aspect-ratio: 1; overflow: hidden; background: #ddd5c4; }
.bulk-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.bulk-thumbs .more { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(16, 38, 36, 0.62); color: var(--paper); font: 400 20px/1 var(--display); }
.bulk-count { margin: 10px 0 0; display: flex; gap: 14px; align-items: baseline; font-size: 16px; }
.linkbtn { padding: 0; border: 0; background: none; color: var(--table); font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.err { min-height: 0; margin: 0 0 14px; color: #8c2a1c; font-weight: 500; }
.err:empty { display: none; }
.progress { height: 6px; background: rgba(31, 39, 37, 0.12); margin: 0 0 16px; overflow: hidden; }
.progress span { display: block; height: 100%; width: 0; background: var(--table); transition: width 0.2s; }
.hint { margin: -6px 0 14px; color: var(--ink-soft); font-style: italic; font-size: 16px; }
.thanks-note { color: #8c2a1c !important; font-style: normal !important; }
.btn-big { width: 100%; min-height: 54px; background: var(--table); color: var(--paper); font-size: 19px; }
.btn-big:hover { background: #224b46; }
.thanks { text-align: center; padding: 30px 0 10px; }
.thanks h2 { padding: 0; }
.thanks p { margin: 12px 0 26px; color: var(--ink-soft); font-style: italic; }
.thanks .btn { background: var(--table); color: var(--paper); }

/* ---------- Lightbox ---------- */
.lightbox {
  width: 100vw;
  max-width: 100vw;
  height: 100svh;
  max-height: 100svh;
  margin: 0;
  background: rgba(10, 22, 21, 0.96);
  color: var(--text);
  overflow: hidden;
}
.lightbox[open] { display: grid; grid-template-columns: auto 1fr auto; align-items: center; }
.lightbox .x { color: var(--text); top: calc(env(safe-area-inset-top, 0px) + 10px); right: calc(env(safe-area-inset-right, 0px) + 10px); z-index: 6; }
.lightbox .x:hover { background: rgba(255, 255, 255, 0.1); }
.lb-fig { margin: 0; grid-column: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100svh; padding: calc(env(safe-area-inset-top, 0px) + 64px) 0 calc(env(safe-area-inset-bottom, 0px) + 24px); min-width: 0; }
.lb-fig img { max-width: 100%; max-height: calc(100svh - 160px); width: auto; height: auto; object-fit: contain; background: var(--paper); padding: 10px; box-shadow: 0 30px 60px -20px #000; }
.lb-fig video { max-width: 100%; max-height: calc(100svh - 160px); width: auto; height: auto; background: #000; box-shadow: 0 30px 60px -20px #000; }
.lb-fig [hidden] { display: none; }
.lb-fig figcaption { margin-top: 16px; font-style: italic; color: var(--text-soft); text-align: center; padding: 0 16px; }
.lb-nav {
  z-index: 6;
  width: 56px;
  height: 88px;
  border: 0;
  background: transparent;
  color: var(--text);
  font: 300 54px/1 var(--display);
  cursor: pointer;
  opacity: 0.8;
}
.lb-nav:hover { opacity: 1; }
.lb-nav[hidden] { visibility: hidden; display: block; }

/* ---------- Phones and small tablets: one breakpoint ---------- */
@media (max-width: 820px) {
  body { font-size: 17px; }
  .open { height: 200svh; }
  .mark { width: 42px; top: calc(env(safe-area-inset-top, 0px) + 16px); }
  .title {
    left: var(--gutter);
    right: var(--gutter);
    width: auto;
    top: calc(env(safe-area-inset-top, 0px) + 74px);
    transform: none;
    text-align: center;
  }
  .title h1 { font-size: clamp(46px, 13.5vw, 76px); }
  .years { margin-top: 10px; font-size: 24px; }
  .lead { margin: 14px auto 0; font-size: 17px; max-width: 32ch; }
  .actions { margin-top: 18px; justify-content: center; gap: 10px 22px; }
  .print figcaption { font-size: 11px; min-height: 2em; padding: 0.45em 0.2em 0.5em; }
  .cue { display: none; }
  .reel-head { top: calc(env(safe-area-inset-top, 0px) + 8svh); }
  .bleed { height: 64svh; }
  /* a group shot: keep the whole row of people on a narrow screen instead of cropping to the middle two */
  .bleed-group { height: 70vw; }
  .bleed img, .half img { object-position: var(--pos-m, var(--pos, 50% 50%)); }
  .mem-intro { grid-template-columns: 1fr; margin-bottom: 6svh; }
  .half {
    height: 74svh;
    -webkit-mask-image: linear-gradient(to bottom, transparent, #000 12%, #000 62%, transparent 94%);
    -webkit-mask-composite: source-over;
    mask-image: linear-gradient(to bottom, transparent, #000 12%, #000 62%, transparent 94%);
    mask-composite: add;
  }
  .mem-intro .sec-head { position: relative; z-index: 1; margin: -9svh auto 0; padding: 0 var(--gutter); text-align: center; }
  .mem-intro .sec-head h2 { font-size: clamp(48px, 13vw, 72px); }
  .sec-head { margin-bottom: 40px; }
  .bulk-thumbs { grid-template-columns: repeat(4, 1fr); }
  .sheet { width: 100vw; max-width: 100vw; height: 100svh; max-height: 100svh; margin: 0; padding: calc(env(safe-area-inset-top, 0px) + 56px) 22px calc(env(safe-area-inset-bottom, 0px) + 28px); }
  .lightbox[open] { grid-template-columns: 1fr; }
  .lb-fig { grid-column: 1; grid-row: 1; padding-left: 12px; padding-right: 12px; }
  .lb-fig img { padding: 6px; }
  .lb-nav { position: absolute; bottom: calc(env(safe-area-inset-bottom, 0px) + 8px); height: 56px; font-size: 44px; }
  .lb-prev { left: 8px; }
  .lb-next { right: 8px; }
  .lb-fig figcaption { margin-bottom: 52px; }
}

@media (prefers-reduced-motion: reduce) {
  .open { height: auto; }
  .stage { position: relative; height: 100svh; }
}
