/* Press pages only: the image strip and its lightbox.
 *
 * These rules used to live in site.css. They were moved out on 2026-07-30 for
 * three reasons, all of them earned:
 *   1. site.css is cached hard by browsers. A brand new URL cannot be stale, so
 *      the strip and the popup arrive the first time instead of after a purge.
 *   2. Only two of the site's 72 pages need any of this.
 *   3. It is small enough to read end to end when checking what the server is
 *      actually serving, which site.css is not.
 * Loaded after site.css by press/ and cs/pro-media/ only.
 */

/* ---------- press strip: a slow band of publishable images ----------
   The drift is JavaScript (scrollLeft under rAF), NOT a CSS keyframe, so the
   reader can grab it and throw it at whatever speed they like. This stylesheet
   on its own gives a plain horizontally scrollable rail, which is exactly the
   right no-JS fallback. Every image MUST carry width/height attributes: see the
   website-notalune skill for the zero-width collapse deadlock that bit once. */
.press-strip {
  position: relative; margin: 24px 0 30px;
  /* full-bleed out of the .doc column so the strip reads as a band */
  width: 100vw; margin-left: 50%; transform: translateX(-50%);
  overflow-x: auto; overflow-y: hidden;
  min-height: clamp(260px, 32vw, 420px);
  overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch;
  scrollbar-width: none; -ms-overflow-style: none;
  cursor: grab;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.press-strip::-webkit-scrollbar { display: none; }
.press-strip.dragging { cursor: grabbing; }
.press-strip.dragging a { pointer-events: none; }   /* a throw must not fire a click */
.press-strip .strip-track { display: flex; gap: 18px; width: max-content; }
.press-strip img {
  display: block; height: clamp(260px, 32vw, 420px); width: auto;
  border-radius: 16px; background: var(--night); object-fit: cover;
  box-shadow: 0 10px 28px rgba(12,9,7,.28);
  user-select: none; -webkit-user-select: none; -webkit-user-drag: none;
}
.press-strip a { display: block; border-radius: 16px; }
.press-strip a:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.press-strip-cap { font-size: var(--t-micro); color: rgba(59,44,28,.6); margin: -18px 0 26px; }

/* ---------- lightbox: the full file, on this page ----------
   Night surface, gold chrome, one green filled action, mirroring the app's
   DarkAskCard language (design-language skill). Enhancement only: with JS off
   the <a href> still opens the image, so nothing here is load-bearing. */
.lightbox[hidden] { display: none; }
.lightbox { position: fixed; inset: 0; z-index: 140;
  display: grid; place-items: center; padding: clamp(12px, 3vw, 40px); }
.lb-scrim { position: absolute; inset: 0; width: 100%; height: 100%;
  border: 0; padding: 0; background: rgba(22,17,12,.94); cursor: zoom-out; }
.lb-card { position: relative; display: flex; flex-direction: column;
  gap: 16px; max-width: min(1180px, 100%); max-height: 100%; }
.lb-frame { position: relative; display: flex; justify-content: center; min-height: 0; }
.lb-img { display: block; width: auto; height: auto;
  max-width: 100%; max-height: min(72vh, calc(100vh - 210px));
  border-radius: 18px; background: var(--night);
  box-shadow: 0 24px 64px rgba(0,0,0,.55); transition: filter .3s ease; }
.lb-img.loading { filter: blur(7px); }
.lb-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.lb-cap { flex: 1 1 240px; margin: 0; color: var(--parchment-text);
  font-family: var(--body); font-size: var(--t-small); line-height: 1.45; }
.lb-meta { color: rgba(233,221,199,.55); font-size: var(--t-micro);
  letter-spacing: .05em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.lb-dl { display: inline-flex; align-items: center; gap: 9px;
  min-height: 44px; padding: 0 22px; border-radius: 999px;
  background: var(--success); color: var(--cream); text-decoration: none;
  font-family: var(--display); font-size: 17px; line-height: 1;
  transition: background .2s ease, transform .2s ease; }
.lb-dl:hover, .lb-dl:focus-visible { background: #4A7253; transform: translateY(-1px); }
.lb-dl svg { width: 17px; height: 17px; flex: none; }
.lb-close, .lb-nav { display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 999px; cursor: pointer;
  border: 1px solid rgba(201,168,109,.38); background: rgba(12,9,7,.55);
  color: var(--gold); font-family: var(--display); font-size: 24px; line-height: 1;
  transition: background .2s ease, border-color .2s ease; }
.lb-close:hover, .lb-nav:hover,
.lb-close:focus-visible, .lb-nav:focus-visible {
  background: rgba(201,168,109,.16); border-color: var(--gold); }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; }
.lb-prev { left: 8px; } .lb-next { right: 8px; }
.lb-count { color: rgba(233,221,199,.55); font-size: var(--t-micro);
  font-variant-numeric: tabular-nums; }
html.lb-open, html.lb-open body { overflow: hidden; }
@media (max-width: 700px) {
  .lb-img { max-height: min(62vh, calc(100vh - 250px)); }
  .lb-nav { width: 40px; height: 40px; font-size: 21px; }
  .lb-prev { left: 2px; } .lb-next { right: 2px; }
  .lb-dl { flex: 1 1 100%; justify-content: center; }
}
