/* World Map Archive – monochrome: ink + paper only */

/* Nimbus Roman No9 L (URW++), served from this site. To go back to Times: delete these two blocks
   and the first name in --serif. */
@font-face { font-family: "Nimbus Roman"; src: url("fonts/nimbus-roman.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Nimbus Roman"; src: url("fonts/nimbus-roman-italic.woff") format("woff"); font-weight: 400; font-style: italic; font-display: swap; }


:root {
  --bg: #F1EDE2;          /* exact paper tone of the scanned maps */
  --ink: #0A0A0A;
  --pad: 40px;
  --gap: 28px;
  --serif: "Nimbus Roman", "Times New Roman", Times, serif;
  --mono-size: 14px;                          /* mono: only the second caption line under the maps */
  --small: 18px;                              /* secondary serif text: filter popup, hints */
  --text: 24px;                               /* all normal serif text – always larger than the mono */
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace; /* always set smaller than the serif next to it */
  --header-h: 64px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font: var(--text)/1.3 var(--serif);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; }
button, input, select, textarea { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
body { overflow-x: clip; }                                 /* never any sideways scrolling */
.menu-btn { display: none; }
/* underlines are drawn as an exact 1px line under the text (background), the same in every browser */
* { text-decoration-thickness: 1px !important; text-decoration-skip-ink: none; }
::placeholder { color: var(--ink); opacity: 1; }
::selection { background: var(--ink); color: var(--bg); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 1px solid var(--ink); outline-offset: 3px; }

/* header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  display: flex; justify-content: space-between; align-items: baseline; gap: 24px;
  padding: 20px var(--pad);
  background: var(--bg);
  font-size: var(--text);
}
.site-nav { display: flex; gap: 22px; }
/* logo in capitals */
.site-title { text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; }
.site-title:hover { background: none; }
.site-nav a.active { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; }

main { padding: 0 var(--pad); flex: 1 0 auto; }
.view { padding-bottom: 80px; }
.narrow { max-width: 680px; }

/* pills: 1px outline, black when active */
.chip, .btn {
  border: 1px solid var(--ink); border-radius: 100px;
  background: transparent; color: var(--ink);
}
.chip {
  cursor: pointer; padding: 6px 14px;
  font-size: var(--text); letter-spacing: .03em; line-height: 1.2;
}
.chip sup { font-size: 12.5px; margin-left: 2px; letter-spacing: 0; }
.chip:hover, .chip[aria-pressed="true"], .step:hover { background: var(--ink); color: var(--bg); }
.chip.more { border-color: transparent; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; }
.chip.more:hover { background: transparent; color: var(--ink); }

/* toolbar: quiet text controls, details in a popup */
.toolbar { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 10px 28px; padding: 28px 0 4px; font-size: var(--text); }
/* the bar stays under the header while the maps scroll beneath it, on cream */
.toolbar { position: sticky; top: var(--header-h); z-index: 15; background: var(--bg); }
.card { scroll-margin-top: calc(var(--header-h) + 140px); }
.modes { font-size: var(--text); line-height: 1.3; }      /* Map / Grid as large as the navigation */
.modes, .tools, .find { display: flex; align-items: baseline; gap: 22px; }
.tl { border: 0; background: none; padding: 0; cursor: pointer; font: inherit; color: var(--ink); }
.tl:focus { outline: none; }
.tl:focus-visible { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; }
.tl:hover, .tl[aria-pressed="true"], .tl[aria-expanded="true"], .tl.on { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; }
.size { display: inline-flex; align-items: center; gap: 10px; }
input[type=range] { -webkit-appearance: none; appearance: none; width: 110px; height: 18px; background: transparent; cursor: pointer; margin: 0; }
input[type=range]::-webkit-slider-runnable-track { height: 1px; background: var(--ink); }
input[type=range]::-moz-range-track { height: 1px; background: var(--ink); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 11px; height: 11px; border-radius: 50%; background: var(--ink); margin-top: -5px; border: 0; }
input[type=range]::-moz-range-thumb { width: 11px; height: 11px; border-radius: 50%; background: var(--ink); border: 0; }
input[type=range]:focus { outline: none; }
.size { align-self: center; }
/* − and + drawn as 1px lines, so they sit exactly on the slider's centre line (font glyphs sit higher) */
.size .tl { position: relative; width: 20px; height: 20px; font-size: 0; flex: 0 0 auto; }
.size .tl::before { content: ""; position: absolute; left: 3px; right: 3px; top: 50%; height: 1px; margin-top: -.5px; background: var(--ink); }
#cols-plus::after { content: ""; position: absolute; top: 3px; bottom: 3px; left: 50%; width: 1px; margin-left: -.5px; background: var(--ink); }
.size .tl:hover, .size .tl:focus-visible { background: none; }
.size .tl:hover::before, .size .tl:hover::after { height: 2px; }
#cols-plus:hover::after { width: 2px; height: auto; }
.pop input[type=search] {
  width: 100%; border: 1px solid var(--ink); border-radius: 100px; background: transparent; color: var(--ink);
  padding: 9px 16px 6px; font: inherit; font-size: max(16px, var(--small)); line-height: 1.2; -webkit-appearance: none; appearance: none;
}
.pop input[type=search]:focus { outline: none; box-shadow: inset 0 0 0 1px var(--ink); }
.pop input[type=search]::-webkit-search-cancel-button { filter: grayscale(1) brightness(0); }
.pop-wrap { position: relative; }
.pop {
  position: absolute; right: 0; top: calc(100% + 12px); z-index: 30;
  width: 320px; padding: 18px; display: grid; gap: 14px;
  background: var(--bg); border: 1px solid var(--ink); border-radius: 16px;
}
.pop label { display: grid; gap: 6px; font-size: var(--small); }
.pop select {
  width: 100%; border: 1px solid var(--ink); border-radius: 100px; background: transparent; color: var(--ink);
  padding: 7px 30px 7px 14px; font: inherit; font-size: var(--small); cursor: pointer;
  -webkit-appearance: none; appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: right 16px top 55%, right 12px top 55%; background-size: 4px 4px; background-repeat: no-repeat;
}
.pop .reset { justify-self: start; font-size: var(--small); }
.status { margin: 14px 0 32px; font-size: var(--text); min-height: 1.3em; }   /* same place and size as the breadcrumb (World / Europe) */
.status:has(#active:empty) { min-height: 0; margin: 0 0 28px; }   /* nothing filtered: no extra space */
.status .tl { font-size: var(--small); text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; margin-left: 10px; }  /* Clear stays small */

/* grid */
.grid {
  --cols: 12;
  display: grid;
  grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
  gap: calc(var(--gap) * 1.6) var(--gap);
}
.grid[data-cols="1"] { justify-items: center; gap: 72px; }
.grid[data-cols="1"] .card { width: min(100%, 1180px, calc((100svh - var(--header-h) - 120px) * 1.414)); }
.grid.dense { gap: 10px; }
.grid.dense .cap { display: none; }

.card { margin: 0; cursor: zoom-in; min-width: 0; }
.card .ph { aspect-ratio: 1600 / 1131; background: var(--bg); }
.card img { width: 100%; height: 100%; object-fit: contain; transition: opacity .3s; }
.card img[data-loading] { opacity: 0; }
.grid { --cap: 1; }
.cap { margin-top: calc(8px * var(--cap)); font-size: calc(var(--text) * var(--cap)); line-height: 1.2; }
.cap .nm, .cap .meta { display: block; }
.cap .meta { font-family: var(--mono); font-size: calc(var(--mono-size) * var(--cap)); letter-spacing: -.01em; margin-top: 3px; }
.cap .no { font-variant-numeric: tabular-nums; }
.empty { padding: 40px 0; }

/* world map mode: map centred in the window, controls float above it */
#view-maps { position: relative; }
.is-world .toolbar { position: absolute; top: 0; left: 0; right: 0; z-index: 5; background: transparent; }
/* on the world map only the words Map / Grid get a cream ground (covering a bit of Alaska), the rest of the map stays visible */
.is-world .toolbar { pointer-events: none; }
.is-world .modes { pointer-events: auto; background: var(--bg); padding: 0 12px 8px 0; margin-bottom: -8px; }
.is-world .status { position: absolute; top: 60px; left: 0; z-index: 5; }
#world {
  /* everything between header and footer: footer visible at once, the map as large as the screen allows,
     the Map/Grid bar floats over its top edge */
  height: calc(100svh - var(--header-h) - var(--footer-h, 50px));
  display: flex; flex-direction: column; justify-content: center; position: relative;
}
.world-frame { width: min(100%, calc((100svh - var(--header-h) - var(--footer-h, 50px) - 16px) * var(--world-ratio, 1.916))); margin: 0 auto; }
.world-note { position: absolute; bottom: 0; left: 0; }
.is-world { padding-bottom: 0; }
.world-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.world-scroll::-webkit-scrollbar { display: none; }
#world-svg { display: block; width: 100%; height: auto; min-width: 680px; overflow: hidden; }
.world-frame { position: relative; }
@media (max-width: 800px) { .world-frame { width: 100%; } }
#world-svg.zooming .bubble, #world-svg.zooming .hover-lbl { opacity: 0; transition: opacity .15s; }
.hover-lbl { fill: var(--ink); font-family: var(--serif); text-anchor: middle; pointer-events: none; opacity: 0; }
.hover-lbl.on { opacity: 1; }
#world-svg .land { fill: none; stroke: var(--ink); stroke-width: .6; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.bubble { cursor: pointer; }
.bubble circle { fill: var(--bg); stroke: var(--ink); stroke-width: 1; vector-effect: non-scaling-stroke; }
.bubble text { fill: var(--ink); font-family: var(--serif); text-anchor: middle; pointer-events: none; font-variant-numeric: lining-nums tabular-nums; }
.bubble:hover circle, .bubble:focus-visible circle { fill: var(--ink); }
.bubble:hover .num, .bubble:focus-visible .num { fill: var(--bg); }
.bubble:focus { outline: none; }
.world-note { font-size: var(--small); margin: 0; }
.world-note .chip { font-size: var(--small); }
.world-note button { margin-left: 6px; }
.crumbs { font-size: var(--text); margin: 14px 0 32px; }
.crumbs .sep { margin: 0 .3em; }
.is-world .crumbs { position: absolute; left: 0; z-index: 5; margin: 0; }

/* info: text left, photo filling the right half of the window, multiplied onto the cream */
.info-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: start; padding-bottom: 0; }
.info-text { max-width: 640px; padding-bottom: 80px; }
.info-text p { margin: 0 0 18px; line-height: 1.35; }
.info-text a { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; }
.info-img {
  margin: 0 calc(-1 * var(--pad)) 0 0;                  /* to the right edge of the window */
  position: sticky; top: var(--header-h);
  height: calc(100svh - var(--header-h));
  background: var(--bg);                                 /* sticky isolates the image – give it the cream to multiply with */
}
.info-img img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; }

/* history: vertical timeline – a 1px line on the left, interrupted by the years */
.h-head { max-width: 860px; padding: 0 0 40px; }
.h-intro { margin: 0; line-height: 1.35; }
.h-item { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 0 48px; }
/* the year starts level with the title next to it */
.h-rail { position: relative; display: flex; align-items: flex-start; justify-content: center; padding-top: 48px; }
.h-rail::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 1px; background: var(--ink); }
.h-item:first-child .h-rail::before { top: 64px; }
.h-item:last-child .h-rail::before { bottom: auto; height: 64px; }
.h-year {
  position: sticky; top: calc(var(--header-h) + 24px);   /* the year stays in view while its story scrolls */
  background: var(--bg); padding: 12px 0;
  font-size: clamp(36px, 4vw, 56px); line-height: 1; margin-top: 1px; white-space: nowrap; font-variant-numeric: lining-nums;
}
.h-body { padding: 64px 0; display: grid; gap: 28px 56px; align-items: start; }
.h-has-media .h-body { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.h-title { font-size: var(--text); font-weight: normal; margin: 0 0 14px; }
.h-text { margin: 0 0 14px; max-width: 32em; line-height: 1.35; }
.h-credit { font-size: var(--small); margin: 10px 0 0; }
.h-credit a { text-decoration: none; }
.h-img { display: block; width: 100%; border: 0; padding: 0; background: none; cursor: zoom-in; }
/* historic images in black and cream like the rest of the site – also in the large view */
.h-img { overflow: hidden; }
/* never taller than the window: the width shrinks so the crop stays 3:4 / 1:1 / 4:3 */
.h-img { width: min(100%, calc((100svh - var(--header-h) - 128px) * var(--r, 1.3333))); }
.h-img img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); mix-blend-mode: multiply; }
.h-copy { max-width: 900px; }
.h-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.h-pair figure { margin: 0; }
.h-pair figcaption { font-size: var(--small); margin-top: 8px; }
.h-pair figcaption a { text-decoration: none; }
.h-type-end .h-body { padding-bottom: 120px; }
.h-cta a { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; }

/* events */
.section-label { font-size: var(--text); font-weight: normal; letter-spacing: .08em; text-transform: uppercase; margin: 32px 0 20px; }
.event { padding: 12px 0 64px; display: grid; grid-template-columns: minmax(220px, 1fr) 3fr; gap: 24px 40px; }
.event h3 { font-size: 35px; font-weight: normal; margin: 0 0 6px; line-height: 1.1; }
.event .where { margin: 0 0 14px; font-style: italic; }
.event p { margin: 0 0 12px; max-width: 46ch; }
.event .credit { font-size: var(--text); }
.event-imgs { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-right: calc(-1 * var(--pad)); } /* runs to the right edge of the window */
.event-imgs::-webkit-scrollbar { display: none; }
.event-imgs button { flex: 0 0 auto; border: 0; padding: 0; background: none; cursor: zoom-in; scroll-snap-align: start; }
.event-imgs img { height: 340px; width: auto; }
.no-events { padding: 0 0 24px; }

/* text pages */
.lead { font-size: clamp(35px, 4vw, 50px); font-weight: normal; line-height: 1.1; margin: 28px 0 28px; }
.narrow p { margin: 0 0 18px; }
.narrow a { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; }
.legal h2 { font-weight: normal; text-transform: uppercase; letter-spacing: .06em; margin: 32px 0 10px; font-size: var(--text); }
.small-links { font-size: var(--text); }
.steps { padding-left: 1.3em; margin: 0 0 36px; }
.steps li { margin-bottom: 6px; }

/* form */
.form { display: grid; gap: 18px; }
.form > *, .row > * { min-width: 0; }
.form label { display: grid; gap: 6px; font-size: var(--text); }
.form small { font-size: var(--text); font-style: italic; }
.form input:not([type=checkbox]):not([type=file]), .form textarea {
  width: 100%; border: 1px solid var(--ink); border-radius: 100px;
  background: transparent; padding: 8px 16px; font-size: var(--text); color: var(--ink);
}
.form textarea { resize: vertical; border-radius: 16px; }
.form input:focus, .form textarea:focus { outline: none; box-shadow: inset 0 0 0 1px var(--ink); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 24px; }
.row:has(.short) { grid-template-columns: 1fr 1fr 90px; }
.check { grid-template-columns: auto 1fr !important; align-items: start; gap: 10px !important; }
.check input { margin-top: 4px; accent-color: var(--ink); width: 16px; height: 16px; }
.hp { position: absolute; left: -9999px; }
.drop {
  position: relative; border: 1px dashed var(--ink); border-radius: 16px;
  min-height: 200px; display: grid; place-items: center; text-align: center; padding: 20px;
}
.drop.over { border-style: solid; }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop-inner { display: grid; gap: 6px; pointer-events: none; }
.drop-inner small { font-style: italic; }
.drop img { max-height: 320px; pointer-events: none; }
.btn { justify-self: start; cursor: pointer; background: var(--ink); color: var(--bg); padding: 10px 26px; font-size: var(--text); letter-spacing: .03em; }
.btn:hover { background: transparent; color: var(--ink); }
.btn:disabled { opacity: .5; cursor: wait; }
.form-msg { min-height: 1.3em; margin: 0; }
.form-msg.err { font-style: italic; }

/* footer */
.site-footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 24px; padding: 14px var(--pad) 18px; font-size: calc(var(--text) / 2); } /* half size */

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 100; background: var(--bg); display: grid; grid-template-rows: 1fr auto; }
.lb-fig { margin: 0; padding: 56px var(--pad) 12px; display: grid; place-items: center; min-height: 0; }
.lb-fig { position: relative; }
/* the image fills exactly the space left above the caption */
.lb-fig img { position: absolute; top: 56px; bottom: 12px; left: var(--pad); width: calc(100% - 2 * var(--pad)); height: calc(100% - 68px); object-fit: contain; }
.lightbox.mono .lb-fig img { filter: grayscale(1) contrast(1.05); mix-blend-mode: multiply; }
.lb-bar { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; padding: 14px var(--pad) 20px; font-size: var(--text); }
.lb-bar #lb-idx { font-variant-numeric: tabular-nums; }
.lb-hint { justify-self: end; }
.lb-close { position: absolute; top: 18px; right: var(--pad); z-index: 2; border: 1px solid var(--ink); border-radius: 100px; background: none; cursor: pointer; font-size: var(--text);
  display: inline-flex; align-items: center; justify-content: center; height: 1.9em; padding: .34em .8em 0; line-height: 1; } /* letters optically centred: Nimbus/Times sit high in their box */
.lb-close:hover { background: var(--ink); color: var(--bg); }
.lb-nav { position: absolute; top: 0; bottom: 60px; width: 30%; border: 0; background: none; z-index: 1; }
.lb-prev { left: 0; cursor: w-resize; }
.lb-next { right: 0; cursor: e-resize; }

/* responsive */
@media (max-width: 800px) {
  :root { --pad: 16px; --gap: 16px; --text: 20px; --small: 15px; }
  body { font-size: var(--text); }

  /* header with burger menu */
  .site-header { padding: 16px var(--pad); align-items: center; }
  .menu-btn { display: flex; flex-direction: column; justify-content: center; gap: 7px; width: 32px; height: 32px; padding: 0; border: 0; background: none; cursor: pointer; }
  .menu-btn span { display: block; width: 26px; height: 1px; background: var(--ink); transition: transform .2s, opacity .2s; }
  .menu-open .menu-btn span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .menu-open .menu-btn span:nth-child(2) { opacity: 0; }
  .menu-open .menu-btn span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .site-nav { display: none; }
  .menu-open .site-nav a { align-self: flex-start; line-height: 1.1; }  /* underline only as long as the word; same line height as page titles */
  .menu-open { overflow: hidden; }
  .menu-open .site-nav {
    display: flex; flex-direction: column; gap: 18px; position: fixed; z-index: 50;
    top: var(--header-h); left: 0; right: 0; bottom: 0; padding: 28px var(--pad); background: var(--bg); font-size: clamp(35px, 4vw, 50px); /* same as page titles */
  }

  /* maps toolbar: Map / Grid with the grid slider across the remaining width, search + filter small on the left below */
  .toolbar { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 12px 20px; }
  .tools { display: contents; }
  /* first row always the same height, with or without the slider (iPhones draw sliders taller than text) */
  .modes { align-items: baseline; }
  .size { height: 32px; align-items: center; }
  .size { grid-column: 2; grid-row: 1; display: flex; align-items: center; gap: 12px; overflow: visible; }
  .size input[type=range] { height: 20px; max-height: 20px; }
  .size input[type=range] { flex: 1; width: auto; min-width: 0; }
  .find { grid-column: 1 / -1; grid-row: 2; gap: 20px; font-size: var(--small); justify-content: flex-end; }  /* search + filter on the right */
  .find { position: relative; }
  .find .pop-wrap { position: static; }                  /* popups hang from the right edge of the bar, never off screen */
  .pop { right: 0; left: auto; width: min(320px, calc(100vw - 2 * var(--pad))); }
  .world-frame { width: 100%; }
  /* home: the world map uses the full height of the screen; it is wider than the phone, centred, swipe sideways */
  #world { justify-content: flex-start; padding-top: 64px; }
  #world-svg { min-width: 0; width: calc((100svh - var(--header-h) - var(--footer-h, 50px) - 64px) * var(--world-ratio, 1.916)); height: calc(100svh - var(--header-h) - var(--footer-h, 50px) - 64px); max-width: none; }

  /* grid: one map per row, as large as the screen allows; smaller captions */
  /* one map per row: edge to edge (the scans have their own paper margin), title 16 px above the map */
  .grid[data-cols="1"] { gap: 44px; margin: 0 calc(-1 * var(--pad)); }
  .grid[data-cols="1"] .card { width: 100%; display: flex; flex-direction: column; }
  .grid[data-cols="1"] .cap { order: -1; margin: 0 0 1px; padding: 0 var(--pad); }
  .cap { font-size: calc(var(--text) * var(--cap) * .85); }
  .cap .meta { font-size: calc(var(--mono-size) * var(--cap) * .85); }

  /* about: square photo below the text */
  .info-split { grid-template-columns: 1fr; gap: 0; }
  .info-img { position: static; height: auto; margin: 0 calc(-1 * var(--pad)); }
  .info-img img { height: auto; aspect-ratio: 1 / 1; }

  /* history: rail on the left, images complete (never cropped on phones) */
  .h-item { grid-template-columns: 56px minmax(0, 1fr); gap: 0 16px; }
  .h-rail { align-items: flex-start; padding-top: 40px; }
  .h-item:first-child .h-rail::before { top: 40px; }
  .h-year { font-size: 22px; writing-mode: vertical-rl; transform: rotate(180deg); padding: 10px 0; top: calc(var(--header-h) + 16px); }
  .h-body, .h-has-media .h-body { grid-template-columns: 1fr; padding: 40px 0; }
  .h-img { width: 100%; aspect-ratio: auto !important; }
  .h-img img { height: auto; object-fit: contain; }
  .h-pair { grid-template-columns: 1fr; }

  /* events, upload */
  .event { grid-template-columns: 1fr; }
  .event-imgs img { height: 220px; }
  .narrow { max-width: none; }
  .row, .row:has(.short) { grid-template-columns: 1fr 1fr; }

  /* footer and lightbox caption: half size */
  .lb-bar { font-size: 12px; grid-template-columns: 1fr auto; }
  .lb-fig img { left: 0; width: 100%; }                  /* phones: map across the full screen width */
  .lb-close { font-size: 20px; top: 14px; }                 /* bigger tap target on phones */
  .lb-hint { display: none; }
}
