/* ---------- Tokens — neutral grey + darkroom amber accent ---------- */
:root {
  --bg: #666666;
  --bg-panel: #666666;
  --bg-sidebar: #555555;
  --bg-chrome: #555555;
  --ink: #f0f0f0;
  --ink-muted: #c8c8c8;
  --ink-soft: #969696;
  --accent: #d49a5b;
  --accent-soft: rgba(212, 154, 91, 0.16);
  --rule: #4d4d4d;
  --rule-soft: #5c5c5c;
  --hover: #5c5c5c;
  --selected: #f0f0f0;
  --selected-ink: #2a2a2a;

  --font-sans: 'Geist Mono', Consolas, 'Cascadia Mono', ui-monospace, Menlo, monospace;
  --font-serif: 'Geist Mono', Consolas, 'Cascadia Mono', ui-monospace, Menlo, monospace;
  --font-mono: 'Geist Mono', Consolas, 'Cascadia Mono', ui-monospace, Menlo, monospace;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
/* the page is dark; without this the browser paints white system scrollbars */
:root { color-scheme: dark; }
html, body { margin: 0; padding: 0; height: 100%; overflow: hidden; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: 'cv11', 'ss01';
}
button { font-family: inherit; font-size: inherit; color: inherit; background: none; border: none; cursor: pointer; padding: 0; }
input { font-family: inherit; font-size: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }

/* ---------- App shell ---------- */
.app {
  display: grid;
  grid-template-rows: 1fr auto;
  height: 100vh;
  width: 100vw;
  background: var(--bg-panel);
}

/* ---------- Layout ---------- */
.layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 0;
  overflow: hidden;
}

/* ---------- Sidebar ---------- */
.sidebar {
  background: var(--bg-sidebar);
  border-right: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}
.sidebar__section { padding: 8px 0; }
.sidebar__section + .sidebar__section { border-top: 1px solid var(--rule-soft); }
.sidebar__bottom { margin-top: auto; padding-bottom: 12px; }
.sidebar__heading {
  padding: 6px 14px;
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 500;
}
.tree { flex: 1; overflow-y: auto; padding: 0 6px; }

/* ---- search, under the home/back/up row and above the tree ------------ */
.find {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 14px 12px;
  padding: 0 9px;
  height: 30px;
  border: 1px solid var(--accent);
  color: var(--ink-soft);
  transition: background .12s ease, color .12s ease;
}
.find:focus-within { background: var(--accent-soft); color: var(--ink-muted); }
.find svg { width: 12px; height: 12px; flex-shrink: 0; }
.find input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: none;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .02em;
  color: var(--ink);
}
.find input::placeholder { color: var(--ink-soft); letter-spacing: .06em; }
.find input::-webkit-search-cancel-button { display: none; }
.find__clear {
  flex-shrink: 0;
  width: 16px; height: 16px;
  line-height: 1;
  font-size: 15px;
  color: var(--ink-soft);
  cursor: pointer;
}
.find__clear:hover { color: var(--accent); }
.find__none {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.9;
  color: var(--ink-muted);
}
.find__none code {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  border: 1px solid var(--rule);
  padding: 1px 5px;
}

.extlink {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  font-size: 13px;
  color: var(--ink-muted);
  cursor: pointer;
}
.extlink:hover { color: var(--ink); }
.extlink svg { width: 13px; height: 13px; flex-shrink: 0; }

.tree__node { user-select: none; }
.tree__row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
  color: var(--ink);
  width: 100%;
  text-align: left;
}
.tree__row:hover { background: var(--hover); }
.tree__row[aria-selected="true"] {
  background: rgba(255, 255, 255, .07);
  color: var(--ink);
  font-weight: 500;
}
.tree__row[aria-selected="true"] .tree__icon { color: var(--accent); }
.tree__row[aria-selected="true"] .tree__count { color: var(--ink-soft); }
.tree__icon {
  width: 14px; height: 14px;
  flex-shrink: 0;
  color: var(--accent);
}
.tree__chev {
  width: 8px; height: 8px;
  flex-shrink: 0;
  opacity: .55;
  transition: transform .15s ease;
  color: var(--ink-muted);
}
.tree__node[data-open="true"] > .tree__row .tree__chev { transform: rotate(90deg); }
.tree__chev--placeholder { width: 8px; flex-shrink: 0; }
.tree__children { display: none; padding-left: 14px; }
.tree__node[data-open="true"] > .tree__children { display: block; }
.tree__name {
  flex: 0 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
/* the count sits against the name, not out at the panel edge, so it still
   reads as "Ladakh 16" when the row is deeply indented */
.tree__count {
  font-size: 11px;
  color: var(--ink-muted);
  font-variant-numeric: tabular-nums;
  margin-left: 8px;
  margin-right: auto;
  flex-shrink: 0;
  opacity: .75;
}

/* ---------- Viewer ---------- */
.viewer {
  overflow-y: auto;
  background: var(--bg-panel);
  position: relative;
}
.content { min-height: 100%; }

/* ---------- Folder grid view ---------- */
.gridview {
  padding: 28px 36px 56px;
}
.gridview__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--rule-soft);
}
.gridview__title {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 0;
}
.gridview__count {
  font-size: 11px;
  color: var(--ink-soft);
  font-family: var(--font-mono);
  letter-spacing: .04em;
  text-transform: uppercase;
}

.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}
.tile {
  cursor: pointer;
  border-radius: 2px;
  overflow: hidden;
  background: transparent;
  border: 1px solid var(--rule);
  /* no transform on hover: a sub-pixel translate re-rasterises the cover
     background and the photograph visibly shimmers. Composite only. */
  transition: border-color .15s ease, box-shadow .18s ease;
  display: flex;
  flex-direction: column;
}
.tile:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 18px rgba(0,0,0,.22);
}
.tile__thumb {
  aspect-ratio: 4/3;
  background: var(--bg-chrome);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
  opacity: .86;
  transition: opacity .16s ease;
}
.tile:hover .tile__thumb,
.tile:focus-visible .tile__thumb { opacity: 1; }
.tile:focus-visible { outline: 1px solid var(--accent); outline-offset: 2px; }
.tile__thumb--folder {
  background: var(--bg-sidebar);
}
.tile__thumb svg { width: 40px; height: 40px; opacity: .6; }
.tile__body { padding: 12px 14px; }
.tile__name {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  margin: 0 0 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  letter-spacing: -0.01em;
}
.tile__meta {
  font-size: 11px;
  color: var(--ink-soft);
  font-family: var(--font-mono);
  letter-spacing: .03em;
}

/* ---------- Post view (no hero) ---------- */
.post {
  display: block;
}
.post__inner {
  max-width: none;
  margin: 0;
  padding: 40px 32px 96px 32px;
  width: 100%;
}
.post__inner > .post__meta,
.post__inner > .post__title,
.post__inner > .post__lede,
.post__inner > .post__head {
  max-width: 760px;
}

/* the album title, with the way around it sitting on the same baseline */
.post__head {
  display: flex;
  align-items: baseline;
  gap: 22px;          /* sits just off the title, not flung to the far edge */
  flex-wrap: wrap;
  margin: 0 0 20px;
}
.post__head .post__title { margin: 0; }

/* light enough not to compete with the title it shares a line with */
.post__hint {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: .08em;
  white-space: nowrap;
}
.post__hint::before { content: '('; margin-right: 7px; color: var(--ink-soft); }
.post__hint::after  { content: ')'; margin-left: 7px;  color: var(--ink-soft); }
.post__hint__keys {
  color: var(--accent);
  letter-spacing: .18em;
  margin-right: 9px;
}
.post__meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 14px;
}
.post__title {
  font-family: var(--font-serif);
  font-size: clamp(36px, 4.5vw, 56px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
}
.post__lede {
  font-family: var(--font-serif);
  font-size: 20px;
  font-style: italic;
  color: var(--ink-muted);
  margin-bottom: 36px;
  line-height: 1.45;
}
.post__body {
  font-family: var(--font-serif);
  font-size: 18px;
  line-height: 1.7;
  color: var(--ink);
}
.post__body > p,
.post__body > h2,
.post__body > h3,
.post__body > ul,
.post__body > ol,
.post__body > blockquote {
  max-width: 760px;
}
.post__body h2 {
  font-size: 26px; font-weight: 600;
  margin: 40px 0 12px; letter-spacing: -0.01em;
}
.post__body h3 { font-size: 20px; font-weight: 600; margin-top: 28px; }
.post__body p { margin: 0 0 18px; }
.post__body a { color: var(--accent); text-decoration: underline; text-decoration-color: var(--accent-soft); text-underline-offset: 3px; }
.post__body a:hover { text-decoration-color: var(--accent); }
.post__body p:has(> img:only-child) { max-width: none; margin: 0; }
.post__body img {
  width: auto;
  max-width: 100%;
  height: auto;
  margin: 0 0 40px 0;
  display: block;
  border: 1px solid #7a7a7a;
}
.photo-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin: 32px 0 10px 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.photo-tools a {
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
  transition: color .12s ease, border-color .12s ease;
}
.photo-tools a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.photo-tools .sep { color: var(--rule); }
.photo-tools .photo-num { color: var(--ink-muted); font-weight: 500; }
.photo-tools .exif {
  display: contents;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
  letter-spacing: .04em;
}
.photo-tools .exif:empty { display: none; }
.photo-anchor { display: block; position: relative; }
/* photo corners, the paper kind — four faint triangles holding the print down */
.photo-anchor::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  --corner: rgba(255, 255, 255, .13);
  --tab: 26px;
  background-repeat: no-repeat;
  background-image:
    linear-gradient(135deg, var(--corner) 0 var(--tab), transparent var(--tab)),
    linear-gradient(225deg, var(--corner) 0 var(--tab), transparent var(--tab)),
    linear-gradient( 45deg, var(--corner) 0 var(--tab), transparent var(--tab)),
    linear-gradient(315deg, var(--corner) 0 var(--tab), transparent var(--tab));
  background-size: var(--tab) var(--tab);
  background-position: left top, right top, left bottom, right bottom;
}
.photo-anchor img { cursor: zoom-in; }
.post__body blockquote {
  border-left: 2px solid var(--ink);
  margin: 24px 0; padding: 4px 0 4px 20px;
  color: var(--ink-muted);
}
.post__body code {
  font-family: var(--font-mono); font-size: 13px;
  background: var(--bg-sidebar); padding: 2px 6px; border-radius: 3px;
}
.post__body pre {
  background: var(--bg-sidebar); padding: 16px;
  border-radius: 4px; overflow-x: auto; font-size: 13px;
}
.post__body pre code { background: none; padding: 0; }
.post__body hr { border: none; border-top: 1px solid var(--rule); margin: 40px 0; }
.post__body ul, .post__body ol { padding-left: 22px; }
.post__body li { margin-bottom: 6px; }

/* ---------- Landing ---------- */
.landing {
  padding: 88px 56px;
  max-width: 880px;
}
.landing__eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-soft);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.landing h1 {
  font-family: var(--font-serif);
  font-size: clamp(36px, 4.5vw, 56px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
}
.landing p {
  font-family: var(--font-serif);
  font-size: 18px;
  color: var(--ink-muted);
  line-height: 1.5;
  margin: 0 0 10px;
  max-width: 56ch;
}
.landing__hint {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 36px;
}

/* ---- photo captions -------------------------------------------------- */
.photo-caption {
  display: block;
  margin: 10px 0 34px;
  font-family: var(--font-mono);
  line-height: 1.5;
}
.photo-caption span { display: block; }
.photo-caption__title {
  font-size: 13px;
  letter-spacing: .01em;
  color: var(--ink);
}
.photo-caption__where {
  font-size: 12px;
  color: var(--ink-soft);
  margin-top: 2px;
}
.photo-caption__note {
  font-size: 12px;
  color: var(--ink-soft);
  margin-top: 6px;
  max-width: 62ch;
}

.photo-tools .photo-file {
  font-family: var(--font-mono);
  color: var(--ink-muted);
  letter-spacing: .02em;
  text-transform: none;   /* filenames are case-sensitive — don't uppercase them */
}

/* landing: the albums sit under the title, sharing the tile grid */
.landing + .gridview--landing { padding-top: 0; }
.gridview--landing { padding: 0 56px 72px; }
.landing { padding-bottom: 40px; }

/* ---- always-there navigation at the head of the sidebar ---------------- */
.sidenav {
  display: flex;
  gap: 4px;
  margin: 0 0 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--rule);
}
.sidenav__btn {
  flex: 1 1 0;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 9px 4px 7px;
  border: 1px solid var(--rule);
  background: transparent;
  color: var(--ink-muted);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color .12s ease, border-color .12s ease, background .12s ease;
}
.sidenav__btn svg { width: 16px; height: 16px; }
.sidenav__btn:hover:not(:disabled) {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(255,255,255,.03);
}
.sidenav__btn:disabled { opacity: .3; cursor: default; }

/* the bar above each photograph: title and place keep their own case */
.photo-tools .photo-title {
  color: var(--ink);
  font-weight: 500;
  text-transform: none;
  letter-spacing: .01em;
}
.photo-tools .photo-place {
  color: var(--ink-muted);
  text-transform: none;
  letter-spacing: .01em;
}
.photo-tools .photo-year { color: var(--ink-soft); }

/* photo bar: description and settings left, the file itself hard right */
.photo-tools__left,
.photo-tools__right {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  min-width: 0;
}
.photo-tools__right { margin-left: auto; flex-wrap: nowrap; }
.photo-tools .photo-title { overflow: hidden; text-overflow: ellipsis; }

/* Each photograph and its bar are one unit, sized by the IMAGE.
   width:0 + min-width:100% keeps the bar from widening the figure, so the
   bar can never run past the edge of a portrait frame. */
.frame {
  width: fit-content;
  max-width: 100%;
  margin: 0 0 40px;
}
.frame .photo-tools,
.frame .photo-caption {
  width: 0;
  min-width: 100%;
  box-sizing: border-box;
}
.frame .photo-tools { margin: 32px 0 10px; }
.frame img { margin-bottom: 0; }
.frame .photo-caption { margin: 10px 0 0; }

/* ---------- Status bar ---------- */
.statusbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 26px;
  padding: 0 14px;
  background: var(--bg-chrome);
  border-top: 1px solid var(--rule);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .03em;
  color: var(--ink-soft);
  white-space: nowrap;
  overflow: hidden;
}

/* ---------- Album navigator, in the sidebar --------------------------- */
/* Sits under the arrow-key note, above the links at the foot of the panel.
   Only there while you are inside an album. */
.filmnav[hidden] { display: none !important; }
.filmnav {
  flex: 0 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 14px;
}
.filmnav__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .08em;
  color: var(--ink-soft);
}
.filmnav__count b { color: var(--ink-muted); font-weight: 500; }
.filmnav__steps { display: flex; gap: 4px; }
.filmnav__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 20px;
  border: 1px solid var(--rule);
  color: var(--ink-soft);
  cursor: pointer;
  transition: color .12s ease, border-color .12s ease;
}
.filmnav__arrow:hover:not(:disabled) { color: var(--accent); border-color: var(--accent); }
.filmnav__arrow:disabled { opacity: .3; cursor: default; }
.filmnav__arrow svg { width: 11px; height: 11px; }

.filmnav__rail {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  min-height: 0;
  max-height: 232px;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  padding-right: 1px;
}
.filmnav__rail::-webkit-scrollbar { display: none; }
.filmnav__cell {
  width: 100%;
  aspect-ratio: 3 / 2;
  padding: 0;
  border: 1px solid transparent;
  background: var(--rule);
  cursor: pointer;
  opacity: .5;
  transition: opacity .12s ease;
}
.filmnav__cell:hover { opacity: .85; }
.filmnav__cell.is-active { opacity: 1; border-color: var(--accent); }
.filmnav__cell img { width: 100%; height: 100%; object-fit: cover; display: block; }

.post__body { padding-bottom: 40px; }
.frame { scroll-margin-top: 18px; }

/* an album has no children in the tree — hide its twisty */
.tree__node[data-leaf="true"] > .tree__row .tree__chev { visibility: hidden; }

/* ---- how to get around ------------------------------------------------
   Lives in the empty space between the tree and the links at the foot of
   the sidebar, and owns it: the keys are drawn as the keypad cross people
   actually reach for. */
.keyhint {
  flex: 0 0 auto;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 14px;
  margin: auto 14px 0;       /* auto top: this and the strip sit at the foot */
  padding: 14px 0 18px;      /* 14px left edge = the tree rows and the headings */
  border-top: 1px solid var(--rule-soft);
  text-align: left;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.7;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--ink-soft);
  transition: color .18s ease;
}
.keyhint__pad {
  display: grid;
  grid-template-columns: repeat(3, 32px);
  grid-template-rows: repeat(2, 32px);
  gap: 5px;
}
.keyhint kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--rule);
  font-family: inherit;
  font-size: 14px;
  line-height: 1;
  color: var(--ink-soft);
  transition: color .18s ease, border-color .18s ease, background .18s ease;
}
.keyhint .k-up    { grid-column: 2; grid-row: 1; }
.keyhint .k-left  { grid-column: 1; grid-row: 2; }
.keyhint .k-down  { grid-column: 2; grid-row: 2; }
.keyhint .k-right { grid-column: 3; grid-row: 2; }
.keyhint__text { margin: 0; }

/* it lights up once you are actually inside an album */
.keyhint.is-live { color: var(--ink-muted); }
.keyhint.is-live kbd {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-soft);
}

/* With the strip in the panel there is more here than a screen holds, so the
   tree — and only the tree — takes the scroll and yields height to it. */
.sidebar > .sidebar__section:first-child {
  display: flex;
  flex-direction: column;
  flex: 0 1 auto;      /* shrink when the tree is long, never grow */
  min-height: 0;
}
.sidebar > .sidebar__section:first-child > .sidebar__heading,
.sidebar > .sidebar__section:first-child > .sidenav { flex: 0 0 auto; }
.tree {
  flex: 0 1 auto;
  min-height: 80px;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
}

/* nothing sits below the strip now, so it keeps its own breathing room */
.filmnav { margin-bottom: 14px; }

/* ======================================================================
   Phones. The desktop is where this site is meant to be read; this is the
   short version that keeps it usable in a hand. The sidebar goes, the
   album becomes a deck you swipe through, everything else stacks.
   ====================================================================== */
.mobilenav { display: none; }

@media (max-width: 760px) {
  .sidebar { display: none; }
  .find { display: none; }
  .layout { grid-template-columns: 1fr; }
  .app { grid-template-rows: auto 1fr auto; }

  .mobilenav {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 46px;
    padding: 0 12px;
    background: var(--bg-chrome);
    border-bottom: 1px solid var(--rule);
  }
  .mobilenav__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 30px;
    border: 1px solid var(--rule);
    color: var(--ink-muted);
  }
  .mobilenav__btn svg { width: 15px; height: 15px; }
  .mobilenav__where {
    flex: 1;
    min-width: 0;
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: .04em;
    color: var(--ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .mobilenav__count { font-family: var(--font-mono); font-size: 11px; color: var(--ink-soft); }

  /* folders */
  .gridview { padding: 18px 14px 40px; }
  .gridview--landing { padding: 0 14px 40px; }
  .landing { padding: 32px 14px 20px; }
  .tiles { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
  .gridview__title { font-size: 24px; }

  /* an album: one photograph per screen, swiped left and right.
     scroll-snap does the whole gesture natively — no JS, no library. */
  .post__inner { padding: 16px 0 0; }
  .post__inner > .post__head,
  .post__inner > .post__meta,
  .post__inner > .post__lede { padding: 0 14px; }
  .post__title { font-size: 26px; }
  .post__hint { display: none; }          /* no keyboard to speak of */
  .post__body--album {
    display: flex;
    padding: 0;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .post__body--album::-webkit-scrollbar { display: none; }
  .post__body--album .frame {
    flex: 0 0 100vw;
    width: 100vw;
    max-width: 100vw;
    margin: 0;
    padding: 0 14px 24px;
    scroll-snap-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  /* a tall frame must still fit the screen, so cap the height and let the
     width fall out of it rather than the other way round */
  .post__body--album .frame img {
    max-width: 100%;
    max-height: 68vh;
    width: auto;
    height: auto;
    margin: 0 auto;
    display: block;
  }
  .post__body--album .frame .photo-anchor { text-align: center; }
  .frame .photo-tools { margin: 10px 0 8px; }
  .photo-tools { flex-wrap: wrap; gap: 6px 10px; font-size: 10px; }
  .photo-tools__right { margin-left: auto; }

  /* a single photograph on its own page */
  .post__body { padding: 0 14px 32px; }
}
