/* darrinwaddle.com: page styles. The engine (scrollcraft.css/js) is untouched;
   everything bespoke lives here and in dw.js. */

:root {
  --sc-canvas:     #0E0D0B;
  --sc-surface:    #1B1A17;
  --sc-ink:        #F2EDE4;
  --sc-ink-soft:   #A39C90;
  --sc-accent:     #D6391F;
  --sc-accent-ink: #FFFBF5;
  --sc-font-display: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  --sc-font-text:    "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  --sc-font-mono:    "IBM Plex Mono", ui-monospace, monospace;
  --sc-shadow-color: 40 20% 2%;

  --paper: #F2EDE4;
  --paper-deep: #E6DFD2;
  --ink: #1B1A17;
  --ink-soft: #5A554C;
  --signal: #D6391F;
  --on-signal: #FFFBF5;
  --rule-dark: rgba(242, 237, 228, 0.12);
  --rule-light: rgba(27, 26, 23, 0.2);
  /* vertical grid lines only: a step quieter than the rules */
  --grid-dark: rgba(242, 237, 228, 0.07);
  --grid-light: rgba(27, 26, 23, 0.12);
  --bar: 3.5rem;

  /* Max width: past 1600px the side gutter grows instead of the content, so
     everything sits in a 1600px band while backgrounds and bleeds still run
     edge to edge. Below 1600 this is the engine's own gutter, unchanged.
     (At 1600, 5vw = 80px = 5rem, so the two terms meet with no jump.) */
  --maxw: 1600px;
  --sc-gutter: max(clamp(1.25rem, 5vw, 5.5rem), calc(50vw - var(--maxw) / 2 + 5rem));
}

body { font-weight: 400; letter-spacing: -0.003em; }

/* ---------------------------------------------------------------- type -- */
.mono {
  font-family: var(--sc-font-mono);
  font-size: var(--sc-t-xs);
  letter-spacing: 0.02em;
  line-height: 1.5;
}
.eyebrow {
  font-family: var(--sc-font-mono);
  font-size: var(--sc-t-xs);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--sc-ink-soft);
  margin: 0;
}
h1, h2, h3, p, dl, dd, figure { margin: 0; }
.display {
  font-family: var(--sc-font-display);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: -0.045em;
  text-wrap: balance;
}
.intro {
  font-size: clamp(1.35rem, 1rem + 1.15vw, 2rem);
  line-height: 1.28;
  letter-spacing: -0.018em;
  text-wrap: pretty;
}

/* ----------------------------------------------------------- the grid -- */
.gridlines {
  background-image:
    linear-gradient(to right, var(--grid-dark) 1px, transparent 1px);
  background-size: calc((100% - 2 * var(--sc-gutter)) / 4) 100%;
  background-position: var(--sc-gutter) 0;
  background-repeat: repeat-x;
}

/* --------------------------------------------------------------- bar -- */
.bar {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  height: var(--bar);
  display: flex; align-items: center; gap: var(--sc-5);
  padding-inline: var(--sc-gutter);
  background: color-mix(in oklab, var(--sc-canvas) 94%, transparent);
  border-bottom: 1px solid var(--rule-dark);
}
.bar__mark {
  font-weight: 500; letter-spacing: -0.02em; text-decoration: none;
  margin-right: auto; white-space: nowrap;
}
.bar__index { display: flex; gap: var(--sc-5); list-style: none; margin: 0; padding: 0; }
.bar__index a {
  font-family: var(--sc-font-mono); font-size: var(--sc-t-xs); letter-spacing: 0.02em;
  color: var(--sc-ink-soft); text-decoration: none; white-space: nowrap;
  transition: color 140ms var(--sc-ease-out);
}
.bar__index a span { color: var(--sc-ink); margin-right: 0.4em; }
@media (hover: hover) and (pointer: fine) { .bar__index a:hover { color: var(--sc-ink); } }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 2.5rem; padding: 0 1.1rem;
  background: var(--signal); color: var(--on-signal);
  font-family: var(--sc-font-mono); font-size: var(--sc-t-xs); letter-spacing: 0.04em;
  text-transform: uppercase; text-decoration: none; white-space: nowrap;
  border-radius: 0;
  transition: background-color 140ms var(--sc-ease-out), transform 120ms var(--sc-ease-out);
}
.btn:active { transform: translateY(1px); }
@media (hover: hover) and (pointer: fine) { .btn:hover { background: #BF2F17; } }
.btn:focus-visible, .link:focus-visible { border-radius: 0; }
.link {
  font-family: var(--sc-font-mono); font-size: var(--sc-t-xs); letter-spacing: 0.04em;
  text-transform: uppercase; text-decoration: underline; text-underline-offset: 0.35em;
  text-decoration-color: var(--signal); text-decoration-thickness: 2px;
}

/* ---------------------------------------------------------- the stack --
   Hero and About pin with plain CSS sticky; the next panel paints over. */
.sheet { position: sticky; top: 0; }

/* -------------------------------------------------------------- hero -- */
.hero {
  height: 100vh; height: 100svh;
  padding: calc(var(--bar) + clamp(1.5rem, 4vh, 3rem)) var(--sc-gutter) clamp(1.25rem, 4vh, 2.75rem);
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  grid-template-rows: auto 1fr auto;
  column-gap: var(--sc-6);
  background-color: var(--sc-canvas);
  overflow: clip;
}
.hero__lead { grid-column: 1; grid-row: 1; display: grid; gap: var(--sc-5); align-content: start; position: relative; z-index: 3; }
.hero__line { max-width: 19ch; }
.hero__lead .btn { justify-self: start; }
.hl { background: var(--signal); color: inherit; padding: 0.04em 0.12em 0.06em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.hl--flush { padding-left: 0; }
.hero__mark { background: var(--signal); color: inherit; padding: 0.04em 0.12em 0.06em 0; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.hero__name {
  grid-column: 1; grid-row: 3;
  font-size: clamp(4.6rem, min(11.4vw, var(--maxw) * 0.114), 14rem);
  position: relative; z-index: 2;
  margin-bottom: -0.06em;
  color: #5A554C;               /* the footer's taupe */
}
.hero__name span { display: block; }

.hero__work {
  grid-column: 2; grid-row: 1 / 4;
  position: relative;
  perspective: 1600px;
  min-height: 0;
  z-index: 1;
}
.cluster { position: absolute; inset: 0; transform-style: preserve-3d; }
.plane {
  margin: 0;
  box-shadow: var(--sc-e3);
  background: #fff;
}
.plane img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.pw { position: absolute; transform-style: preserve-3d; }
.pw .plane { position: relative; width: 100%; height: 100%; }
.pw--back  { width: 94%; aspect-ratio: 1080 / 772; right: -2%; top: 0; }
.pw--mid   { width: 70%; aspect-ratio: 2000 / 1256; left: 0; top: 36%; }
.plane--mid img { object-position: center; }
.pw--front { width: 33%; aspect-ratio: 1000 / 1321; right: 4%; top: 40%; z-index: 3; }
.plane--back  { transform: rotateY(-16deg) rotateX(4deg) translateZ(-140px); transform-origin: right center; }
.plane--mid   { transform: rotateY(-10deg) rotateX(3deg) translateZ(-30px); }
.plane--front { transform: rotateY(-6deg) translateZ(90px); }
.plane--front img { object-position: center; }
.hero__fig {
  position: absolute; left: 2%; bottom: 0; z-index: 4;
  color: var(--sc-ink-soft); max-width: 34ch;
}
.hero__fig b { color: var(--sc-ink); font-weight: 400; }

/* -------------------------------------------------------------- about -- */
.about {
  min-height: 100vh; min-height: 100svh;
  background-color: var(--sc-surface);
  padding: calc(var(--bar) + var(--sc-section) * 0.55) var(--sc-gutter) calc(var(--sc-section) * 0.6);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 3fr);
  column-gap: var(--sc-6);
  row-gap: var(--sc-7);
  align-content: center;
  box-shadow: 0 -24px 60px -20px hsl(var(--sc-shadow-color) / 0.6), var(--sc-edge);
}
.about > .eyebrow { grid-column: 1; }
.about__body { grid-column: 2; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: var(--sc-7); }
.about__prose { display: grid; gap: var(--sc-5); }
.about__prose .sc-body { color: var(--sc-ink-soft); max-width: 52ch; }
.practice__label { margin-bottom: var(--sc-4); }
.practice ul { list-style: none; margin: 0; padding: 0; }
.practice li {
  font-size: clamp(1.4rem, 0.9rem + 1.4vw, 2.4rem);
  line-height: 1.12; letter-spacing: -0.03em;
  border-top: 1px solid var(--rule-dark);
  padding-block: 0.28em;
}

/* ------------------------------------------------- featured: the stack -- */
.featured { position: relative; z-index: 1; }
.featured [data-sc-stage] { background: var(--sc-canvas); }
.plate {
  position: absolute; inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
  background: var(--sc-surface);
  --rise: 1; --land: 1; --back: 0;
  transform: translate3d(0, calc((1 - var(--rise)) * 100%), 0) scale(calc(1 - var(--back) * 0.045));
  transform-origin: 50% 0;
  box-shadow: 0 -30px 70px -24px hsl(var(--sc-shadow-color) / 0.75);
  will-change: transform;
}
.plate::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: var(--sc-canvas); opacity: calc(var(--back) * 0.55);
}
.plate:nth-child(1) { z-index: 1; }
.plate:nth-child(2) { z-index: 2; }
.plate:nth-child(3) { z-index: 3; }

/* the scrim: the original signal duotone (a greyscale copy of the piece
   multiplied into signal red, so the work reads through it) over the full
   image, wiping off left to right as the panel rises. --scrim runs 1
   (covered) to 0 (clear) and is set per frame by dw.js from the panel's
   scroll position: it holds at 1 until the panel is 32px into view and
   reaches 0 as the panel finishes covering the section behind. */
.print { position: relative; overflow: clip; margin: 0; background: #fff; }
.print__layer { position: absolute; inset: 0; }
.print__layer img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.print__scrim {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: var(--signal);
  opacity: 0.95; /* lighter than solid so the piece reads through the wipe */
  clip-path: inset(0 0 0 calc((1 - var(--scrim, 0)) * 100%));
}
/* Under the (95%) scrim the piece reads black and white: this layer
   desaturates whatever is behind it, clipped to the same wipe. */
.print::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  backdrop-filter: grayscale(1); -webkit-backdrop-filter: grayscale(1);
  clip-path: inset(0 0 0 calc((1 - var(--scrim, 0)) * 100%));
}
.print__scrim img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
/* The piece under the scrim shows through sharp, toned to the scrim colour. */
.print__scrim > * { filter: grayscale(1) contrast(1.2); mix-blend-mode: multiply; }
.fig {
  position: absolute; left: var(--sc-4); bottom: var(--sc-4); z-index: 3;
  background: var(--sc-canvas); color: var(--sc-ink);
  padding: 0.35em 0.6em;
}

.plate__label {
  position: relative; z-index: 1;
  background: #000000; /* alternates: dark, lighter, dark (see .plate:nth-child(even)) */
  padding: calc(var(--bar) + var(--sc-6)) var(--sc-gutter) var(--sc-6) var(--sc-6);
  display: grid; align-content: space-between; gap: var(--sc-6);
  border-left: 1px solid var(--rule-dark);
}
.plate__head { display: grid; gap: var(--sc-4); }
.plate__num { font-family: var(--sc-font-mono); font-size: var(--sc-t-sm); color: var(--sc-ink-soft); }
.plate__title { font-size: clamp(3rem, 1.2rem + 5vw, 6.5rem); }
.plate__sub { font-size: var(--sc-t-lg); letter-spacing: -0.015em; color: var(--sc-ink); }
.meta { display: grid; grid-template-columns: max-content 1fr; column-gap: var(--sc-5); row-gap: var(--sc-2); }
.meta dt { font-family: var(--sc-font-mono); font-size: var(--sc-t-xs); color: var(--sc-ink-soft); letter-spacing: 0.02em; padding-top: 0.2em; }
.meta dd { font-size: var(--sc-t-sm); }
.plate__note { color: var(--sc-ink-soft); max-width: 36ch; }
.plate__foot { display: grid; gap: var(--sc-5); margin-bottom: 75px; } /* lifted off the panel's bottom edge */
/* Alternate the info panels so each one reads as it rolls over the last. */
.plate:nth-child(even) .plate__label { background: #1F1E1B; }

/* ------------------------------------------------------- more work rail -- */
.more { position: relative; z-index: 2; margin-top: -100vh; margin-top: -100svh; }
.more [data-sc-stage] {
  background-color: var(--sc-canvas);
  display: flex; align-items: center;
  box-shadow: 0 -30px 70px -24px hsl(var(--sc-shadow-color) / 0.8);
}
.rail { gap: clamp(1.5rem, 3vw, 3.5rem); padding: var(--bar) var(--sc-gutter) 0; align-items: flex-start; }
.rail > * { flex: 0 0 auto; }
.rail__lead { width: clamp(17rem, 30vw, 30rem); display: grid; gap: var(--sc-5); padding-top: 4vh; }
.rail__lead h2 { font-size: clamp(3.4rem, 1.6rem + 6vw, 8rem); }
.item { width: clamp(16rem, 27vw, 27rem); display: grid; gap: var(--sc-4); }
.mat {
  aspect-ratio: 4 / 3; background: var(--sc-surface); position: relative;
  box-shadow: var(--sc-edge);
}
.mat img { position: absolute; inset: 7%; width: 86%; height: 86%; object-fit: contain; }
.item__label { display: grid; grid-template-columns: 2.6em 1fr; column-gap: var(--sc-3); row-gap: var(--sc-1); }
.item__label .n { font-family: var(--sc-font-mono); font-size: var(--sc-t-xs); color: var(--sc-ink-soft); padding-top: 0.35em; }
.item__label h3 { font-size: var(--sc-t-xl); font-weight: 400; letter-spacing: -0.025em; line-height: 1.05; }
.item__label .mono, .item__label p { grid-column: 2; }
.item__label .mono { color: var(--sc-ink-soft); }
.item__label p { font-size: var(--sc-t-sm); color: var(--sc-ink); max-width: 34ch; }
.rail__end { width: clamp(15rem, 24vw, 22rem); align-self: center; display: grid; gap: var(--sc-5); }
.rail__end p { font-size: var(--sc-t-xl); letter-spacing: -0.02em; line-height: 1.15; }
.rail__end .rail__studio { display: grid; justify-items: start; gap: var(--sc-1); margin-top: var(--sc-7); font-size: var(--sc-t-base); letter-spacing: 0; line-height: 1.5; color: var(--sc-ink-soft); }
.rail__studio span { font-size: var(--sc-t-xs); }
.rail__studio a { display: inline-block; color: var(--sc-ink); text-decoration: none; background-image: linear-gradient(var(--signal), var(--signal)); background-size: 100% 2px; background-repeat: no-repeat; background-position: 0 100%; padding-bottom: 0.12em; }

@media (prefers-reduced-motion: no-preference) {
  .item { opacity: clamp(0.55, calc(var(--sc-p, 0) * 6 - var(--i) + 2.2), 1); transition: opacity 120ms linear; }
}

/* -------------------------------------------------------------- close -- */
.close {
  position: relative; z-index: 3;
  background: var(--paper); color: var(--ink);
  --sc-ink: #1B1A17; --sc-ink-soft: #5A554C;
  min-height: 100vh; min-height: 100svh;
  padding: calc(var(--bar) + var(--sc-section) * 0.6) var(--sc-gutter) var(--sc-6);
  display: grid; grid-template-rows: 1fr auto; row-gap: var(--sc-9);
  box-shadow: 0 -30px 70px -24px hsl(var(--sc-shadow-color) / 0.8);
}
.close .gridlines-l, .close.gridlines-l {
  background-image: linear-gradient(to right, var(--grid-light) 1px, transparent 1px);
  background-size: calc((100% - 2 * var(--sc-gutter)) / 4) 100%;
  background-position: var(--sc-gutter) 0; background-repeat: repeat-x;
}
.close__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 3fr); column-gap: var(--sc-6); row-gap: var(--sc-6); align-content: center; }
.close .eyebrow { color: var(--ink-soft); }
.close h2 { font-size: clamp(3.6rem, 1.4rem + 8vw, 11rem); }
.close__card { grid-column: 2; display: grid; gap: var(--sc-6); }
.close .meta { row-gap: var(--sc-4); align-items: baseline; }
.close .meta dt { color: var(--ink-soft); }
.close .meta dd { font-size: clamp(1.4rem, 0.9rem + 1.8vw, 2.8rem); letter-spacing: -0.03em; line-height: 1.1; }
.close .meta dd a { text-decoration: none; background-image: linear-gradient(var(--signal), var(--signal)); background-size: 100% 2px; background-repeat: no-repeat; background-position: 0 100%; padding-bottom: 0.06em; overflow-wrap: anywhere; }
.close .btn { justify-self: start; }
.foot {
  display: flex; justify-content: space-between; gap: var(--sc-5); flex-wrap: wrap;
  border-top: 1px solid var(--rule-light); padding-top: var(--sc-4);
  color: var(--ink-soft);
}
.close ::selection { background: var(--signal); color: var(--on-signal); }

/* ------------------------------------------------------------- mobile -- */
@media (max-width: 860px) {
  :root { --bar: 3.25rem; }
  .bar__index { display: none; }
  .hero {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr) auto auto;
    row-gap: var(--sc-5);
  }
  .hero__lead { display: contents; }
  .hero__lead .eyebrow { grid-row: 1; }
  .hero__work { grid-column: 1; grid-row: 2; }
  .hero__name { grid-column: 1; }
  .hero__name { grid-row: 3; font-size: clamp(4rem, 21vw, 7rem); }
  .hero__line { grid-row: 4; font-size: var(--sc-t-lg); max-width: 26ch; }
  .hero__lead .btn { grid-row: 5; }
  .hero { grid-template-rows: auto minmax(0, 1fr) auto auto auto; }
  .pw--back { width: 84%; }
  .pw--mid { width: 66%; top: 26%; }
  .pw--front { width: 34%; top: 36%; right: 2%; }
  .hero__fig { display: none; }

  .about { grid-template-columns: 1fr; row-gap: var(--sc-6); align-content: start; }
  .about > .eyebrow, .about__body { grid-column: 1; }
  .about__body { grid-template-columns: 1fr; gap: var(--sc-6); }

  .plate { grid-template-columns: 1fr; grid-template-rows: 52% 48%; }
  .print { margin-top: var(--bar); }
  .plate__label { padding: var(--sc-5) var(--sc-gutter); border-left: 0; border-top: 1px solid var(--rule-dark); align-content: start; gap: var(--sc-4); overflow: clip; }
  .plate__head { gap: var(--sc-2); }
  .plate__title { font-size: clamp(2.4rem, 11vw, 3.4rem); }
  .plate__sub { font-size: var(--sc-t-base); }
  .plate__note { display: none; }
  .meta { row-gap: var(--sc-1); }

  .rail__lead { width: 78vw; }
  .item { width: 78vw; }
  .rail__end { width: 70vw; }

  .close__grid { grid-template-columns: 1fr; }
  .close__card { grid-column: 1; }
}

/* ----------------------------------------------------- reduced motion --
   Every section as a plain stack. dw.js also turns the pinned acts into flow
   before the engine mounts. */
@media (prefers-reduced-motion: reduce) {
  .sheet { position: relative; top: auto !important; }
  .plane { transform: none !important; }
  .featured .plates { display: grid; }
  .is-static .plate { position: relative; inset: auto; transform: none; min-height: 100vh; min-height: 100svh; --rise: 1; --back: 0; }
  .print__scrim, .print::before { display: none; }
  .is-static .more { margin-top: 0; }
  .is-static .more .rail { display: flex; flex-wrap: wrap; justify-content: flex-start; padding-block: calc(var(--bar) + var(--sc-7)) var(--sc-9); }
  .is-static .more [data-sc-stage] { display: block; }
}

/* COI plate: an app screenshot whose own nav sits at its top edge. On desktop
   the print runs under the site bar, so drop the image below it on the app's
   paper colour. (Mobile already offsets the print by the bar.) */
@media (min-width: 861px) {
  .print--app .print__img img, .print--app .print__scrim img { padding-top: var(--bar); box-sizing: border-box; }
  .print--app .print__img { background: #F7F4F0; }
}

/* More work: each descriptor opens its image in a lightbox at 90% of the
   window, over a dark, slightly blurred scrim. */
.item__open { text-decoration: none; cursor: zoom-in; }
.item__open:hover, .item__open:focus-visible { outline: 2px solid var(--sc-ink); outline-offset: 2px; }
.lightbox {
  width: 90vw; height: 90vh; max-width: none; max-height: none;
  margin: auto; padding: 0; border: 0; background: transparent; overflow: hidden;
  overscroll-behavior: contain;
}
.lightbox::backdrop { background: rgba(8, 7, 6, 0.72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.lightbox__img { width: 100%; height: 100%; object-fit: contain; display: block; }
.lightbox__close {
  position: absolute; top: 0; right: 0; z-index: 1;
  padding: var(--sc-3) var(--sc-4); border: 0; cursor: pointer;
  background: var(--signal); color: var(--sc-ink); font-size: var(--sc-t-xs); letter-spacing: 0.08em; text-transform: uppercase;
}
.lightbox[open] { animation: lb-in 180ms ease-out; }
@keyframes lb-in { from { opacity: 0; transform: scale(0.98); } }
@media (prefers-reduced-motion: reduce) { .lightbox[open] { animation: none; } }

/* Lightbox gallery mode (More work items with several slides): image above, caption bar below,
   Prev / Next in the bar, arrows and swipe also page. Single images hide the bar. */
.lightbox__fig { margin: 0; width: 100%; height: 100%; display: grid; grid-template-rows: minmax(0, 1fr); }
.lightbox__bar { display: none; }
.lightbox.is-gallery .lightbox__fig { grid-template-rows: minmax(0, 1fr) auto; row-gap: var(--sc-4); }
.lightbox.is-gallery .lightbox__img { cursor: e-resize; }
.lightbox.is-gallery .lightbox__bar {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; column-gap: var(--sc-6); align-items: start;
  color: var(--paper); max-width: 76rem; width: 100%; justify-self: center;
}
.lightbox__count { color: var(--signal); padding-top: 0.2em; white-space: nowrap; }
.lightbox__cap { font-size: 1.05rem; line-height: 1.45; letter-spacing: -0.005em; max-width: 60ch; text-wrap: pretty; }
.lightbox__cap b { font-weight: 500; }
.lightbox.is-single .lightbox__nav, .lightbox.is-single .lightbox__count { display: none; }
.lightbox.is-single .lightbox__img { cursor: zoom-out; }
.lightbox__nav { display: flex; gap: var(--sc-2); }
.lightbox__nav button {
  padding: var(--sc-2) var(--sc-4); border: 1px solid rgba(255, 255, 255, 0.4); background: transparent; color: var(--paper);
  font-size: var(--sc-t-xs); letter-spacing: 0.08em; text-transform: uppercase; cursor: pointer;
}
.lightbox__nav button:hover, .lightbox__nav button:focus-visible { background: var(--signal); border-color: var(--signal); outline: none; }
@media (max-width: 760px) {
  .lightbox.is-gallery .lightbox__bar { grid-template-columns: auto 1fr; row-gap: var(--sc-3); }
  .lightbox__cap { grid-column: 1 / -1; grid-row: 2; font-size: 0.95rem; }
  .lightbox__nav { justify-self: end; }
}
