/* =========================================================================
   Claudia Valsells — prototype stylesheet

   The work is the colour, so the interface has none: a warm paper ground, ink
   type, Inter throughout. Compact and utilitarian — the chrome is a thin rule at
   the top and a caption in the cursor; everything else is artwork.

   Inter is self-hosted and subset to Latin-1 + Latin Extended-A + typographic
   punctuation, which covers English, Catalan and Spanish (l·l, ç, à/è/í/ò/ú/ü):

     pyftsubset inter-<style>.woff2 --flavor=woff2 --no-hinting --desubroutinize \
       --layout-features='kern,liga,clig,calt,tnum' \
       --unicodes='U+0020-007E,U+00A0-00FF,U+0100-017F,U+00B7,U+00D7,U+2013-2014,U+2018-201A,U+201C-201E,U+2026'
   ========================================================================= */

@font-face {
  font-family: 'Inter';
  src: url('/prototype1/fonts/inter-normal.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('/prototype1/fonts/inter-italic.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

/*
 * Registering these makes the browser treat them as real typed values rather than
 * opaque strings: `--unit` becomes an interpolatable <length>, so changing it
 * animates every tile's width in one declaration, and `width: calc(--k * --unit)`
 * reliably recomputes when it changes (with an unregistered property it does not).
 */
@property --unit {
  syntax: '<length>';
  inherits: true;
  initial-value: 126px;
}
@property --k {
  syntax: '<number>';
  inherits: false;
  initial-value: 1;
}

:root {
  color-scheme: light;

  --paper: #f3f0ea;
  --paper-deep: #eae6de;
  --ink: #16150f;      /* 16.1:1 on paper */
  --ink-soft: #524c42; /*  7.5:1 — secondary prose */
  --ink-faint: #736b5e;/*  4.6:1 — metadata; the floor for anything readable */
  --rule: #d5cec1;     /* hairlines only, never text */

  --sans: 'Inter', ui-sans-serif, -apple-system, 'Helvetica Neue', Arial, sans-serif;

  --bar: 40px;                          /* fixed header height */
  --pad: clamp(0.75rem, 1.6vw, 1.5rem); /* page gutter */
  --gap: clamp(5px, 0.6vw, 9px);        /* contact-sheet gap */
  --block: clamp(1.75rem, 3.5vw, 3rem); /* space between sections */
  --measure: 36rem;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.45;
  font-feature-settings: 'kern' 1, 'tnum' 1;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, picture { display: block; max-width: 100%; }
picture > img { width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-weight: 500; margin: 0; letter-spacing: -0.012em; }
p { margin: 0 0 0.85em; }
::selection { background: var(--ink); color: var(--paper); }
:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }

main { padding-top: var(--bar); }

.skip-link { position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 0.5rem 0.8rem; }
.skip-link:focus { left: 0; }

/* Every label on the site: 10px, caps, tracked. */
.label, .tile-meta, .zoom, .facts dt, .pager-dir, .site-header, .contents-num,
.contents-year, .year-marker span, .more, figcaption, .footer-note, .spread-index,
.spread-facts, .detail-back, .untranslated {
  font-size: 10px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

/* ------------------------------------------------------------------ header */

/*
 * One fixed rule across the top, after nr.world. No background, no blur: white
 * text in `difference` blend mode inverts against whatever is behind it — near
 * black over the paper ground, white over a dark photograph — so the bar never
 * needs a plate of its own and never hides a millimetre of artwork.
 */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 2vw, 2rem);
  height: var(--bar);
  padding: 0 var(--pad);
  color: #fff;
  mix-blend-mode: difference;
  pointer-events: none;
}
.site-header > * { pointer-events: auto; }

.wordmark { font-weight: 500; letter-spacing: 0.02em; white-space: nowrap; text-transform: none; font-size: 11px; }

.site-nav { display: flex; gap: clamp(0.7rem, 1.6vw, 1.6rem); margin-inline: auto 0; }
.site-nav a { opacity: 0.62; transition: opacity 0.2s var(--ease); white-space: nowrap; }
.site-nav a:hover, .site-nav a[aria-current='page'] { opacity: 1; }

.header-end { display: flex; gap: clamp(0.7rem, 1.6vw, 1.4rem); }
.header-link { opacity: 0.62; transition: opacity 0.2s var(--ease); white-space: nowrap; }
.header-link:hover { opacity: 1; }
.lang-switch::before { content: '+ '; }

.nav-toggle {
  display: none; background: none; border: 0; padding: 0; cursor: pointer;
  color: inherit; font: inherit; letter-spacing: 0.07em; text-transform: uppercase;
  margin-inline: auto 0;
}

/*
 * Below 900px the six sections cannot share the bar. The nav drops into a panel —
 * but only once `nav-js` is set, so a scriptless browser keeps every link on
 * screen instead of behind a button that cannot open.
 */
@media (max-width: 899px) {
  .site-header { flex-wrap: wrap; height: auto; min-height: var(--bar); padding-block: 0.5rem; row-gap: 0.5rem; }
  .site-nav { flex-basis: 100%; flex-wrap: wrap; margin: 0; gap: 0.75rem; }
  .header-end { margin-inline: auto 0; }
  .nav-js .nav-toggle { display: block; }
  .nav-js .site-nav { display: none; }
  .nav-js .site-nav.is-open { display: flex; }
}

/* -------------------------------------------------------------------- hero */

/* Just the name. Nothing else earns the space above the work. */
.hero { padding: calc(var(--block) * 0.8) var(--pad) var(--block); }
.hero-name {
  font-size: clamp(1.9rem, 6vw, 4.5rem);
  line-height: 0.95;
  font-weight: 500;
  letter-spacing: -0.04em;
  text-transform: none;
}

/* Characters split for the proximity scramble. */
.sc { display: inline-block; white-space: pre; }

/* --------------------------------------------------------------- page head */

.page-head { padding: var(--block) var(--pad) calc(var(--block) * 0.5); }
.page-head h1 { font-size: clamp(1.5rem, 3.2vw, 2.25rem); line-height: 1.05; font-weight: 500; }
.page-intro { max-width: var(--measure); color: var(--ink-soft); margin: 0.4rem 0 0; }
.untranslated { color: var(--ink-faint); margin-top: 0.6rem; }

.strip { padding: 0 var(--pad) var(--block); }
.strip-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  padding: 0.6rem 0; border-top: 1px solid var(--rule); margin-bottom: 0.9rem; }
.strip-head h2 { font-size: 13px; font-weight: 500; }
.more { color: var(--ink-faint); }
.more:hover { color: var(--ink); }

/* ------------------------------------------------------------------- zoom */

.zoom { display: flex; align-items: center; gap: 0.45rem; margin-top: 0.9rem; }
.zoom-label { color: var(--ink-faint); margin-right: 0.15rem; }
.zoom-step {
  font: inherit; font-size: 10px; letter-spacing: 0.07em;
  background: none; border: 0; padding: 0.15rem 0.1rem; cursor: pointer;
  color: var(--ink-faint); border-bottom: 1px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.zoom-step:hover { color: var(--ink); }
.zoom-step.is-active { color: var(--ink); border-bottom-color: var(--ink); }

/* ---------------------------------------------------------------- gallery */

/*
 * A contact sheet, not a grid.
 *
 * Each tile is sized so every work occupies the same *area*: width is
 * `√aspect × unit`, so height is `unit / √aspect` and the product is always
 * `unit²`. A wide canvas comes out broad and short, a tall one narrow and tall,
 * and both carry the same visual weight — which is what lets 154 paintings of
 * eleven different proportions sit together without any one dominating.
 *
 * `--k` (the square root) is computed at build time; `--unit` is the only thing
 * the zoom control touches, so changing density animates 154 tiles by writing a
 * single custom property.
 */
.gallery {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: var(--gap);
  padding: 0 var(--pad) var(--block);
}

.tile {
  position: relative;
  display: block;
  width: calc(var(--k) * var(--unit));
  /* Never let flex shrink a tile below its computed area — that would break the
     equal-area rule the whole sheet depends on. */
  flex: 0 0 auto;
  /*
   * The transition is on `width`, not on `--unit`. Animating the custom property
   * would make the final size *depend* on the animation completing — and a
   * transition that never runs (a background tab, reduced motion, no @property
   * support) would leave every tile at the old size. This way the new width
   * applies instantly and the animation is only decoration over the top.
   */
  transition: width 0.5s var(--ease), opacity 0.4s var(--ease);
}
.tile[hidden] { display: none; }
.tile-image { background: var(--paper-deep); }

/* Dim the rest of the sheet while one work is under the pointer. */
.gallery:has(.tile:hover) .tile:not(:hover) { opacity: 0.45; }

.tile-caption { display: block; padding: 0.3rem 0 0; }
.tile-title { display: block; font-size: 11px; line-height: 1.2; }
.tile-meta { display: block; color: var(--ink-faint); margin-top: 0.1rem; }

/* On a precise pointer the title lives in the cursor, so the caption is hidden —
   except on keyboard focus, where there is no cursor to read. */
@media (hover: hover) and (pointer: fine) {
  .tile-caption { position: absolute; left: 0; top: 100%; width: max-content; max-width: 16rem;
    opacity: 0; transition: opacity 0.2s var(--ease); }
  .tile:focus-visible .tile-caption { opacity: 1; }
}

/* Two per row on a phone, whatever the zoom level. */
@media (max-width: 599px) {
  .gallery { align-items: flex-start; }
  .tile { width: calc(50% - var(--gap) / 2); }
  .tile-medium { display: none; }
}

/*
 * Year readout, after the iOS photo library. Nothing interrupts the sheet: the
 * year of whatever is at the top of the viewport floats over it while you scroll
 * and fades once you stop, so ten years read as one continuous surface.
 */
.year-float {
  position: fixed;
  top: calc(var(--bar) + 0.5rem);
  left: 50%;
  transform: translateX(-50%);
  z-index: 45;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.45s var(--ease);
}
.year-float.is-visible.is-scrolling { opacity: 1; }
.year-float span {
  display: inline-block;
  background: color-mix(in srgb, var(--ink) 88%, transparent);
  color: var(--paper);
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  font-size: 10px;
  letter-spacing: 0.07em;
  font-variant-numeric: tabular-nums;
}

/*
 * Staggered entry. Tiles fade and lift as they scroll in, each a beat after the
 * one before, so a dense sheet resolves in a wave instead of snapping into place.
 * `--i` cycles 0–13 so a tile far down the page never waits half a second.
 */
.js .tile { opacity: 0; transform: translateY(10px); }
.js .tile.is-in {
  opacity: 1;
  transform: none;
  transition:
    opacity 0.7s var(--ease) calc(var(--i, 0) * 28ms),
    transform 0.7s var(--ease) calc(var(--i, 0) * 28ms),
    width 0.5s var(--ease);
}
.js .gallery:has(.tile:hover) .tile.is-in:not(:hover) { transition: opacity 0.25s var(--ease); }

/* ---------------------------------------------------------------- teasers */

.teasers { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--pad);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); }
.teaser h3 { font-size: 12px; margin: 0.5rem 0 0.2rem; font-weight: 500; }
.teaser p { color: var(--ink-faint); font-size: 11px; line-height: 1.4; margin: 0; }

/* --------------------------------------------------------------- editorial */

.editorial-body { display: flex; flex-direction: column; gap: var(--block); }
.row { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--pad); align-items: start; }
.col { grid-column: span 12; }
@media (min-width: 800px) { .col { grid-column: span var(--span); } }

.col-images { display: flex; flex-direction: column; gap: var(--pad); }
.figure { margin: 0; }
.figure figcaption, .plate figcaption { color: var(--ink-faint); margin-top: 0.35rem; }

.prose { max-width: var(--measure); font-size: 13px; line-height: 1.55; }
.prose p { margin: 0 0 0.8em; }
.prose p:last-child { margin-bottom: 0; }
.prose a { border-bottom: 1px solid var(--rule); }
.prose a:hover { border-color: currentColor; }
.prose i, .prose em { font-style: italic; }
.prose strong { font-weight: 600; }

.longform { padding: 0 var(--pad) var(--block); }

.publication { padding: 0 var(--pad) var(--block); }
.spread { padding: var(--block) 0; border-top: 1px solid var(--rule); scroll-margin-top: calc(var(--bar) + 0.5rem); }
.spread:first-child { border-top: none; padding-top: 0; }
.spread-head { margin-bottom: var(--pad); }
.spread-index { color: var(--ink-faint); margin: 0 0 0.3rem; }
.spread-title { font-size: clamp(1.25rem, 2.6vw, 1.9rem); line-height: 1.05; font-weight: 500;
  max-width: 24ch; letter-spacing: -0.02em; }
.spread-facts { display: flex; flex-wrap: wrap; gap: 0.7rem; color: var(--ink-faint); margin: 0.45rem 0 0; }

.contents { list-style: none; margin: 1.2rem 0 0; padding: 0; max-width: 44rem; }
.contents li { border-top: 1px solid var(--rule); }
.contents li:last-child { border-bottom: 1px solid var(--rule); }
.contents a { display: grid; grid-template-columns: 2rem 1fr auto; gap: 0.75rem;
  align-items: baseline; padding: 0.4rem 0; color: var(--ink-soft);
  transition: color 0.2s var(--ease), padding-left 0.25s var(--ease); }
.contents a:hover { color: var(--ink); padding-left: 0.35rem; }
.contents-title { font-size: 12px; text-transform: none; letter-spacing: 0; }
.contents-num, .contents-year { color: var(--ink-faint); }

/* ------------------------------------------------------------------ detail */

.detail { padding: var(--block) var(--pad); }
.detail-back { color: var(--ink-faint); }
.detail-back::before { content: '← '; }
.detail-back:hover { color: var(--ink); }
.detail-head { margin: 0.9rem 0 var(--pad); }
.detail-title { font-size: clamp(1.25rem, 2.6vw, 1.9rem); line-height: 1.05; font-weight: 500; max-width: 24ch; }

.plate { margin: 0 0 var(--pad); max-width: min(100%, 48rem); }
.plate picture > img { max-height: 74vh; width: auto; }
.plate-extra { display: grid; gap: var(--gap); margin-top: var(--pad);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); }

.facts { display: flex; flex-wrap: wrap; gap: 0 clamp(1rem, 3vw, 2.5rem); margin: 0 0 var(--pad); }
.facts div { margin-bottom: 0.5rem; }
.facts dt { color: var(--ink-faint); margin-bottom: 0.1rem; }
.facts dd { margin: 0; font-size: 12px; }

@media (min-width: 900px) {
  .detail-work {
    display: grid;
    grid-template-columns: minmax(0, 1fr) clamp(11rem, 16vw, 14rem);
    grid-template-areas: 'back back' 'head head' 'main aside';
    column-gap: var(--block);
    align-items: start;
  }
  .detail-work .detail-back { grid-area: back; }
  .detail-work .detail-head { grid-area: head; }
  .detail-work .detail-main { grid-area: main; min-width: 0; }
  .detail-work .detail-aside { grid-area: aside; position: sticky; top: calc(var(--bar) + 1rem); }
  .detail-work .pager { grid-column: 1 / -1; }
  .detail-work .facts { display: block; margin-bottom: 0; }
  .detail-work .facts div { padding: 0.35rem 0; margin: 0; border-top: 1px solid var(--rule); }
  .detail-work .facts div:last-child { border-bottom: 1px solid var(--rule); }
}

.pager { display: flex; justify-content: space-between; gap: 1rem;
  margin-top: var(--block); padding-top: 0.7rem; border-top: 1px solid var(--rule); }
.pager-link { max-width: 45%; color: var(--ink-faint); transition: color 0.2s var(--ease); }
.pager-link:hover { color: var(--ink); }
.pager-next { text-align: right; }
.pager-dir { display: block; margin-bottom: 0.1rem; }
.pager-title { display: block; font-size: 12px; line-height: 1.25; text-transform: none; letter-spacing: 0; }

/* ------------------------------------------------------------------ footer */

.site-footer {
  display: grid; gap: var(--pad);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr));
  padding: var(--block) var(--pad);
  border-top: 1px solid var(--rule);
}
.footer-col { display: flex; flex-direction: column; gap: 0.2rem; }
.footer-col .label { color: var(--ink-faint); margin-bottom: 0.2rem; }
.footer-col a, .footer-col span:not(.label) { font-size: 12px; color: var(--ink-soft); }
.footer-col a:hover { color: var(--ink); }
.footer-note { grid-column: 1 / -1; color: var(--ink-faint); margin: 0.6rem 0 0; }

/* ------------------------------------------------------------------ cursor */

.cursor { position: fixed; top: 0; left: 0; z-index: 90; pointer-events: none;
  opacity: 0; transition: opacity 0.2s var(--ease); will-change: transform; }
.cursor.is-visible { opacity: 1; }
.cursor-label {
  display: inline-block; background: var(--ink); color: var(--paper);
  font-size: 10px; letter-spacing: 0.07em; text-transform: uppercase;
  padding: 0.25rem 0.45rem; white-space: nowrap;
  transform: translate(0.8rem, 0.8rem);
}
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ------------------------------------------------------------------ reveal */

.js .reveal { opacity: 0; transform: translateY(10px); }
.js .reveal.is-in { opacity: 1; transform: none;
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }

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

@view-transition { navigation: auto; }

/* ---------------------------------------------------------------- lightbox */

/*
 * A work opens over the sheet rather than replacing it. The grid stays exactly
 * where it was, blurred behind a translucent veil, so you never lose your place —
 * and the caption floats over the blur instead of sitting in a column beside it.
 */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  grid-template-rows: auto 1fr auto;
  opacity: 0;
  transition: opacity 0.32s var(--ease);
}
.lightbox.is-open { opacity: 1; }
.lightbox[hidden] { display: none; }

.lightbox-veil {
  position: absolute;
  inset: 0;
  background: color-mix(in srgb, var(--paper) 80%, transparent);
  backdrop-filter: blur(18px) saturate(115%);
  -webkit-backdrop-filter: blur(18px) saturate(115%);
}
/* Where backdrop-filter is unavailable the veil simply becomes more opaque,
   which keeps the plate readable instead of leaving the grid showing through. */
@supports not (backdrop-filter: blur(1px)) {
  .lightbox-veil { background: color-mix(in srgb, var(--paper) 96%, transparent); }
}

.lightbox-bar,
.lightbox-stage,
.lightbox-meta,
.lightbox-nav { position: relative; }

.lightbox-bar {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 0 var(--pad);
  height: var(--bar);
}
.lightbox-title { font-size: 11px; font-weight: 500; }
.lightbox-count {
  font-size: 10px; letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--ink-faint); font-variant-numeric: tabular-nums;
}
.lightbox-close {
  margin-inline: auto 0;
  background: none; border: 0; padding: 0; cursor: pointer; color: var(--ink);
  font: inherit; font-size: 10px; letter-spacing: 0.07em; text-transform: uppercase;
}

.lightbox-stage {
  grid-row: 2;
  grid-column: 1 / -1;
  display: grid;
  place-items: center;
  padding: 0 clamp(2.5rem, 8vw, 6rem);
  min-height: 0;
}
/* Both plates share one cell so the outgoing and incoming images cross over each
   other rather than the layout jumping between them. */
.lightbox-stage > * {
  grid-area: 1 / 1;
  max-height: 72vh;
  max-width: 100%;
  width: auto;
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.lightbox-stage img {
  max-height: 72vh;
  max-width: 100%;
  width: auto;
  height: auto;
}
.enter-from-right { opacity: 0; transform: translateX(22px); }
.enter-from-left  { opacity: 0; transform: translateX(-22px); }
.leave-to-left    { opacity: 0; transform: translateX(-22px); }
.leave-to-right   { opacity: 0; transform: translateX(22px); }

.lightbox-nav {
  grid-row: 2;
  align-self: center;
  width: clamp(2.5rem, 8vw, 6rem);
  height: 100%;
  background: none; border: 0; cursor: pointer; padding: 0;
  color: var(--ink-faint);
  transition: color 0.2s var(--ease);
}
.lightbox-nav:hover { color: var(--ink); }
.lightbox-prev { grid-column: 1; justify-self: start; }
.lightbox-next { grid-column: 1; justify-self: end; }
.lightbox-prev::before { content: '←'; font-size: 14px; }
.lightbox-next::before { content: '→'; font-size: 14px; }

.lightbox-meta {
  grid-row: 3;
  margin: 0;
  padding: 0 var(--pad) var(--pad);
  text-align: center;
  color: var(--ink-faint);
  font-size: 10px; letter-spacing: 0.07em; text-transform: uppercase;
}

@media (max-width: 599px) {
  .lightbox-stage { padding: 0 var(--pad); }
  .lightbox-nav { display: none; }   /* swipe instead */
  .lightbox-stage > *, .lightbox-stage img { max-height: 62vh; }
}

/* Stop the page behind an overlay from scrolling under it. */
body.is-locked { overflow: hidden; }

/* ------------------------------------------------------------------ about */

/*
 * About is not a destination. It opens over whatever you were reading, blurring
 * it, and closes back to the same scroll position — one less page, and you never
 * lose the work you were looking at.
 */
.about-overlay { position: fixed; inset: 0; z-index: 85; opacity: 0;
  transition: opacity 0.32s var(--ease); }
.about-overlay.is-open { opacity: 1; }
.about-overlay[hidden] { display: none; }

.about-veil {
  position: absolute; inset: 0;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: blur(20px) saturate(115%);
  -webkit-backdrop-filter: blur(20px) saturate(115%);
}
@supports not (backdrop-filter: blur(1px)) {
  .about-veil { background: color-mix(in srgb, var(--paper) 97%, transparent); }
}

.about-panel {
  position: relative;
  height: 100%;
  overflow-y: auto;
  padding: var(--bar) var(--pad) var(--block);
  -webkit-overflow-scrolling: touch;
}
.about-close {
  position: sticky; top: 0; float: right;
  background: none; border: 0; padding: 0.4rem 0; cursor: pointer;
  color: var(--ink); font: inherit;
  font-size: 10px; letter-spacing: 0.07em; text-transform: uppercase;
  z-index: 2;
}
.about-title { font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 500; margin: 0 0 var(--pad); }

/*
 * Newspaper setting: the text runs in columns and the photographs sit inside the
 * flow at a fraction of their old size, floated so the prose wraps around them
 * rather than being pushed aside by full-width plates.
 */
.about-body {
  max-width: 78rem;
  margin: 0 auto;
  columns: 1;
  column-gap: clamp(1.5rem, 3vw, 2.75rem);
}
@media (min-width: 700px) { .about-body { columns: 2; } }
@media (min-width: 1200px) { .about-body { columns: 3; } }

.about-title { column-span: all; }
.about-body .about-block {
  margin: 0 0 0.8em;
  font-size: 12.5px;
  line-height: 1.6;
  text-align: justify;
  hyphens: auto;
  max-width: none;
}
.about-body .about-block:is(h1, h2, h3, strong) { text-align: left; hyphens: none; }

/* Set into the column at about two thirds of its width, with the prose running
   around it — a picture in a news column, not a plate between paragraphs. */
.about-body .about-figure {
  break-inside: avoid;
  float: left;
  width: 66%;
  margin: 0.15rem 0.7rem 0.5rem 0;
}
.about-body .about-figure:nth-of-type(even) { float: right; margin: 0.15rem 0 0.5rem 0.7rem; }
.about-body .about-figure img { width: 100%; height: auto; }
.about-body .about-figure figcaption { font-size: 9px; margin-top: 0.25rem; text-align: left; }

@media (max-width: 699px) {
  .about-body .about-figure { float: none; width: 100%; margin: 0.6rem 0; }
}

@media (prefers-reduced-motion: reduce) {
  .lightbox, .about-overlay, .lightbox-stage > * { transition-duration: 0.001ms !important; }
}
