/* Layout: a quiet gallery wall. Large uncropped images, a wall label set in
   serif type, catalogue numbers in a sturdy grotesk. One accent: ballpoint blue. */
@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 200 800; font-display: swap; src: url(fonts/newsreader-latin-opsz-normal.woff2) format("woff2"); }
@font-face { font-family: "Newsreader"; font-style: italic; font-weight: 200 800; font-display: swap; src: url(fonts/newsreader-latin-opsz-italic.woff2) format("woff2"); }
@font-face { font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 400 900; font-display: swap; src: url(fonts/schibsted-grotesk-latin-wght-normal.woff2) format("woff2"); }

:root {
  --wall: #eceee9;      /* plaster-grey ground */
  --panel: #e2e5df;     /* image placeholder, hover rows */
  --ink: #1b1d1a;
  --muted: #5d6159;
  --rule: #cfd3cb;
  --accent: #2b3fc0;    /* ballpoint blue: links, focus */
  --ok: #2d6b3c;
  --warn: #87580f;
  --shadow: 0 1px 1px rgba(20, 22, 18, .06), 0 22px 44px -26px rgba(20, 22, 18, .45);

  --serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Schibsted Grotesk", "Helvetica Neue", Arial, system-ui, sans-serif;

  --s-1: .8125rem;
  --s0: 1rem;
  --s1: 1.25rem;
  --s2: 1.5625rem;
  --s3: 1.953rem;
  --s4: 2.441rem;
  --s5: 3.052rem;

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1480px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --wall: #151614; --panel: #1e201d; --ink: #e5e6e1; --muted: #9a9e96; --rule: #30332e;
    --accent: #a4b0ff; --ok: #8cc797; --warn: #dcaa63;
    --shadow: 0 1px 1px rgba(0, 0, 0, .4), 0 24px 48px -24px rgba(0, 0, 0, .8);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --wall: #151614; --panel: #1e201d; --ink: #e5e6e1; --muted: #9a9e96; --rule: #30332e;
  --accent: #a4b0ff; --ok: #8cc797; --warn: #dcaa63;
  --shadow: 0 1px 1px rgba(0, 0, 0, .4), 0 24px 48px -24px rgba(0, 0, 0, .8);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.viewing { overflow: hidden; }
body {
  margin: 0;
  background: var(--wall);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--serif);
  font-optical-sizing: auto;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--accent); }
::selection { background: var(--accent); color: var(--wall); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
h1, h2, h3 { text-wrap: balance; font-weight: 400; margin: 0; }
p { margin: 0; }
button { font: inherit; color: inherit; }
.muted { color: var(--muted); }
.small { font-size: var(--s-1); font-family: var(--sans); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.selectable { user-select: all; color: var(--ink); }

.skip { position: absolute; left: var(--gutter); top: -100px; background: var(--ink); color: var(--wall); padding: .5em 1em; font-family: var(--sans); z-index: 20; }
.skip:focus { top: 8px; }

/* ---------- Header ---------- */
.site-head {
  max-width: var(--max);
  margin: 0 auto;
  padding: 22px var(--gutter) 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px 32px;
  font-family: var(--sans);
}
.brand { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 2px 14px; text-decoration: none; }
.brand-name { font-size: var(--s1); font-weight: 600; letter-spacing: -.01em; }
.brand-project { font-size: .9375rem; font-weight: 400; color: var(--muted); letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.brand:hover .brand-project { color: var(--accent); }
.site-nav { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 22px; font-size: .9375rem; }
.site-nav a { text-decoration: none; padding: 4px 0; border-bottom: 1px solid transparent; }
.site-nav a[aria-current="page"] { border-bottom-color: currentColor; }
.lang { display: inline-flex; gap: 2px; margin-left: 6px; white-space: nowrap; }
.lang button { background: none; border: 0; padding: 4px 5px; cursor: pointer; color: var(--muted); font-size: var(--s-1); letter-spacing: .04em; }
.lang button[aria-pressed="true"] { color: var(--ink); text-decoration: underline; text-underline-offset: .25em; }

main { max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); padding-block: clamp(28px, 5vw, 64px) 0; outline: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font: 500 .9375rem/1.2 var(--sans);
  padding: .8em 1.15em;
  background: var(--ink);
  color: var(--wall);
  border: 1px solid var(--ink);
  border-radius: 2px;
  text-decoration: none;
  cursor: pointer;
}
.btn:hover { background: var(--accent); border-color: var(--accent); color: var(--wall); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { color: var(--accent); background: transparent; }

/* ---------- Status ---------- */
.status { font: 500 var(--s-1)/1.3 var(--sans); color: var(--muted); }
.status-available { color: var(--ok); }
.status-available::before { content: ""; display: inline-block; width: .55em; height: .55em; border-radius: 50%; background: currentColor; margin-right: .5em; vertical-align: .08em; }
.status-reserved { color: var(--warn); }
.status-raw { font: italic 400 var(--s0)/1.4 var(--serif); color: var(--muted); }

/* ---------- Hero: the latest work and its wall label ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: clamp(28px, 5vw, 88px);
  align-items: end;
  padding-bottom: clamp(48px, 7vw, 104px);
}
.hero-fig { margin: 0; display: flex; justify-content: center; }
/* The image box takes the full column width, or the width that keeps the
   height within --maxh, whichever is smaller. Small originals are scaled up
   to fill it; proportions always come from the file itself. */
.hero-img, .work-img {
  all: unset;
  --maxh: min(78vh, 920px);
  display: block;
  cursor: zoom-in;
  width: min(100%, calc(var(--maxh) * var(--ar, 1)));
}
.hero-img img, .work-img img {
  width: 100%;
  height: auto;
  aspect-ratio: auto var(--ar, 1);
  box-shadow: var(--shadow);
  background: var(--panel);
}
.hero-img:focus-visible, .work-img:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; }
.label { display: flex; flex-direction: column; gap: 14px; padding-bottom: 6px; min-width: 0; }
.label-kicker { font: 400 var(--s-1)/1.3 var(--sans); color: var(--muted); }
.label-no { font: 500 var(--s0)/1.2 var(--sans); letter-spacing: .01em; }
.no-word { font: italic 400 var(--s0)/1.2 var(--serif); letter-spacing: 0; color: var(--muted); margin-left: .45em; }
.label-title { font: italic 400 var(--s3)/1.1 var(--serif); }
.label-title a { text-decoration: none; }
.label-materials { font: 400 clamp(1.4rem, 2.35vw, 2.15rem)/1.22 var(--serif); letter-spacing: -.005em; max-width: 22ch; }
.label-facts { font: 400 .9375rem/1.55 var(--sans); color: var(--muted); }
.label-facts a { color: var(--ink); }
.label .btn { align-self: flex-start; margin-top: 6px; }

@media (prefers-reduced-motion: no-preference) {
  .hero-img img { animation: hang .9s cubic-bezier(.2, .7, .2, 1) both; }
  .label > * { animation: settle .7s ease both; animation-delay: .35s; }
  @keyframes hang { from { opacity: 0; transform: translateY(10px); box-shadow: none; } to { opacity: 1; transform: none; } }
  @keyframes settle { from { opacity: 0; } to { opacity: 1; } }
}

/* ---------- Intro ---------- */
.intro {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: 18px clamp(28px, 5vw, 88px);
  padding-block: clamp(36px, 5vw, 64px);
  border-top: 1px solid var(--rule);
}
.intro-name { font: 600 var(--s2)/1.15 var(--sans); letter-spacing: -.015em; }
.intro-text { font-size: var(--s1); line-height: 1.5; max-width: 40ch; }
.intro .statement { grid-column: 2; }
.statement { margin: 0; max-width: 40ch; font: 400 var(--s1)/1.5 var(--serif); }

/* ---------- Blocks ---------- */
.block { padding-block: clamp(36px, 5vw, 64px); border-top: 1px solid var(--rule); }
.block-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 28px; font-family: var(--sans); }
.block-head h2 { font: 600 var(--s1)/1.2 var(--sans); letter-spacing: -.01em; }
.block-head a { font-size: .9375rem; }

/* ---------- Tiles: rows of equal height, images never cropped ---------- */
.tiles { display: flex; flex-wrap: wrap; gap: 36px 24px; }
.tiles::after { content: ""; flex-grow: 1e4; }
.tile {
  flex-grow: calc(var(--ar) * 100);
  flex-basis: calc(var(--ar) * 13.5rem);
  max-width: calc(var(--ar) * 24rem);
  min-width: 0;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.tile-img { display: block; aspect-ratio: var(--ar); background: var(--panel); overflow: hidden; }
.tile-img img { width: 100%; height: 100%; object-fit: contain; transition: opacity .2s; }
.tile:hover .tile-img img { opacity: .88; }
.tile-cap { font: 400 .9375rem/1.35 var(--serif); }
.tile-no { font: 500 var(--s-1)/1 var(--sans); font-variant-numeric: tabular-nums; color: var(--muted); margin-right: .35em; }
.tile-title { font-style: italic; }
.tile-year { color: var(--muted); }
.tile:hover .tile-title { color: var(--accent); }

/* ---------- Series ---------- */
.series-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.series-list.compact { grid-template-columns: repeat(auto-fill, minmax(min(100%, 30rem), 1fr)); column-gap: clamp(28px, 4vw, 64px); }
.series-row { border-top: 1px solid var(--rule); padding-block: 18px 22px; display: grid; gap: 14px; min-width: 0; }
.series-head { display: grid; grid-template-columns: 2.4rem minmax(0, 1fr) auto; gap: 12px; align-items: baseline; text-decoration: none; }
.series-no { font: 500 var(--s-1)/1 var(--sans); font-variant-numeric: tabular-nums; color: var(--muted); }
.series-name { font: italic 400 var(--s2)/1.15 var(--serif); }
.series-head:hover .series-name { color: var(--accent); }
.series-meta { font: 400 var(--s-1)/1.45 var(--sans); color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }
.series-note { padding-left: calc(2.4rem + 12px); max-width: 60ch; color: var(--muted); }
.series-thumbs { display: flex; gap: 10px; padding-left: calc(2.4rem + 12px); overflow-x: auto; scrollbar-width: thin; }
.thumb { flex: none; display: block; background: var(--panel); border: 0; padding: 0; cursor: pointer; }
.thumb img { height: 84px; width: auto; max-width: none; }
.series-list:not(.compact) .thumb img { height: 120px; }
.thumb:hover img { opacity: .85; }

/* ---------- Pages ---------- */
.page { padding-bottom: clamp(48px, 7vw, 96px); }
.page.narrow { max-width: 44rem; }
.page.narrow-wide { max-width: 62rem; }
.page-head { display: grid; gap: 10px; margin-bottom: clamp(24px, 4vw, 44px); }
.page-head h1 { font: italic 400 var(--s5)/1.05 var(--serif); letter-spacing: -.01em; }
.page-kicker { font: 400 .9375rem/1.3 var(--sans); }
.page-sub { font: 400 .9375rem/1.4 var(--sans); color: var(--muted); }
.page-lede { font-size: var(--s1); line-height: 1.5; max-width: 52ch; }
.state-msg { display: grid; gap: 18px; padding-block: 40px; }
.state-msg p { max-width: 52ch; }
.state-msg h1 { font: italic 400 var(--s3)/1.2 var(--serif); }
.loading { color: var(--muted); font-family: var(--sans); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Filters ---------- */
.filters {
  display: flex; flex-wrap: wrap; align-items: end; gap: 14px 22px;
  padding-block: 14px; margin-bottom: 32px;
  border-block: 1px solid var(--rule);
  font-family: var(--sans); font-size: .9375rem;
}
.field { display: grid; gap: 4px; }
.field span { font-size: var(--s-1); color: var(--muted); }
select {
  font: inherit; color: var(--ink); background: var(--wall);
  border: 1px solid var(--rule); border-radius: 2px; padding: .45em 2em .45em .6em;
  max-width: 100%;
}
.check { display: inline-flex; align-items: center; gap: 8px; padding-bottom: .45em; cursor: pointer; }
.check input { accent-color: var(--ink); width: 1rem; height: 1rem; margin: 0; }
.seg { display: inline-flex; border: 1px solid var(--rule); border-radius: 2px; }
.seg button { background: none; border: 0; padding: .45em .85em; cursor: pointer; color: var(--muted); }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--wall); }
.result-count { margin-left: auto; color: var(--muted); padding-bottom: .45em; font-variant-numeric: tabular-nums; }

/* ---------- Index table ---------- */
.table-wrap { overflow-x: auto; }
.index { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.index th { font: 400 var(--s-1)/1.3 var(--sans); color: var(--muted); text-align: left; padding: 0 12px 10px 0; border-bottom: 1px solid var(--rule); }
.index td { padding: 12px 12px 12px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.index tr:hover td { background: var(--panel); }
.c-no { font: 500 .9375rem/1.4 var(--sans); font-variant-numeric: tabular-nums; width: 9.5rem; padding-left: 4px !important; }
.c-word { display: block; font: italic 400 .8125rem/1.35 var(--serif); color: var(--muted); white-space: nowrap; }
.c-img { width: 76px; }
.c-img img { width: 64px; height: 64px; object-fit: contain; background: var(--panel); }
.c-title a { font-style: italic; font-size: var(--s0); text-decoration: none; }
.c-title a:hover { text-decoration: underline; }
.c-series, .c-medium { display: block; font-size: .875rem; color: var(--muted); }
.c-medium { max-width: 46ch; }
.c-year, .c-dims { font: 400 .875rem/1.5 var(--sans); white-space: nowrap; }

/* ---------- Work page ---------- */
.work { padding-bottom: clamp(48px, 7vw, 96px); }
.work-nav { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font: 400 .9375rem/1.3 var(--sans); margin-bottom: clamp(20px, 3vw, 36px); }
.work-steps { display: flex; gap: 22px; }
.work-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: clamp(28px, 5vw, 80px); align-items: start; padding-bottom: clamp(36px, 5vw, 64px); }
.work-media { position: sticky; top: 24px; display: grid; gap: 18px; justify-items: center; }
.work-more { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.work-more .thumb img { height: 72px; }
.work-media .work-img { justify-self: center; }
.work-text { display: grid; gap: 16px; min-width: 0; padding-top: 4px; align-items: start; }
.work-id, .work-info { display: grid; gap: 16px; min-width: 0; }
.work-info .facts { margin-top: 8px; }

/* Wide works (e.g. 100×40): image across the whole page, label underneath */
.work-grid.is-wide { grid-template-columns: minmax(0, 1fr); }
.work-grid.is-wide .work-media { position: static; }
.work-grid.is-wide .work-img { --maxh: min(72vh, 860px); }
.work-grid.is-wide .work-text { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); column-gap: clamp(28px, 5vw, 80px); padding-top: 8px; }
.work-grid.is-wide .facts { margin-top: 0; }
.work-title { font: italic 400 var(--s4)/1.08 var(--serif); letter-spacing: -.01em; outline: none; }
.facts { margin: 8px 0 0; display: grid; border-top: 1px solid var(--rule); }
.facts > div { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: 12px; padding-block: 11px; border-bottom: 1px solid var(--rule); }
.facts dt { font: 400 var(--s-1)/1.6 var(--sans); color: var(--muted); }
.facts dd { margin: 0; line-height: 1.5; }
.facts dd .muted { font-family: var(--sans); font-size: .875rem; margin-left: .4em; }
.work-extra { font-style: italic; max-width: 52ch; }
.enquire { display: grid; gap: 10px; justify-items: start; margin-top: 6px; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
/* With a portrait: biography, then portrait in the left column; lists on the right */
.about-grid.has-portrait { grid-template-areas: "prose side" "portrait side"; grid-template-rows: auto 1fr; row-gap: 48px; }
.about-grid.has-portrait .prose { grid-area: prose; }
.about-grid.has-portrait .about-side { grid-area: side; }
.portrait { grid-area: portrait; margin: 0; max-width: 26rem; align-self: start; }
.portrait img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; background: var(--panel); }
.plain-list .pub { display: block; font: 400 .8125rem/1.45 var(--sans); color: var(--muted); }
.prose { display: grid; gap: 1.1em; font-size: var(--s1); line-height: 1.55; max-width: 36em; }
.prose .statement { max-width: none; font: inherit; }
.about-side { display: grid; gap: 14px; font-size: .9375rem; }
.about-side h2 { font: 600 var(--s0)/1.3 var(--sans); margin-top: 18px; }
.about-side h2:first-child { margin-top: 0; }
.plain-list { list-style: none; margin: 0; padding: 0; display: grid; border-top: 1px solid var(--rule); }
.plain-list li { display: grid; grid-template-columns: 3.4rem minmax(0, 1fr); gap: 10px; padding-block: 8px; border-bottom: 1px solid var(--rule); }
.plain-list.simple li { grid-template-columns: 1fr; }
.plain-list .yr { font: 400 .875rem/1.6 var(--sans); color: var(--muted); font-variant-numeric: tabular-nums; }
.plain-list .muted { font-family: var(--sans); font-size: .8125rem; }

/* ---------- Exhibitions ---------- */
.ex-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.ex { display: grid; grid-template-columns: 6rem minmax(0, 1fr); gap: 16px; padding-block: 22px; border-bottom: 1px solid var(--rule); }
.ex-year { font: 500 var(--s0)/1.6 var(--sans); font-variant-numeric: tabular-nums; }
.ex-body { display: grid; gap: 4px; }
.ex-title { font: italic 400 var(--s2)/1.2 var(--serif); }
.ex-type { font: 400 var(--s-1)/1.4 var(--sans); color: var(--muted); margin-bottom: 4px; }

/* ---------- Contact ---------- */
.contact-list { margin: 0; display: grid; border-top: 1px solid var(--rule); }
.contact-list > div { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: 12px; padding-block: 16px; border-bottom: 1px solid var(--rule); align-items: baseline; }
.contact-list dt { font: 400 var(--s-1)/1.6 var(--sans); color: var(--muted); }
.contact-list dd { margin: 0; font-size: var(--s1); overflow-wrap: anywhere; }
.contact-list .big { font-size: var(--s2); }
.copy { margin-left: 10px; background: none; border: 1px solid var(--rule); border-radius: 2px; padding: .2em .6em; font: 400 var(--s-1)/1.4 var(--sans); cursor: pointer; vertical-align: middle; }
.copy:hover { border-color: var(--ink); }

/* ---------- Footer ---------- */
.site-foot { border-top: 1px solid var(--rule); margin-top: clamp(24px, 4vw, 48px); }
.foot-inner {
  max-width: var(--max); margin: 0 auto;
  padding: 28px var(--gutter) calc(36px + env(safe-area-inset-bottom, 0px));
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 40px;
  font: 400 .875rem/1.6 var(--sans);
}
.foot-inner a { margin-right: 14px; }

/* ---------- Image viewer ---------- */
.viewer {
  width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: var(--wall); color: var(--ink);
}
.viewer[open] { display: grid; place-items: center; }
.viewer::backdrop { background: var(--wall); }
.viewer figure { margin: 0; display: grid; gap: 14px; justify-items: center; padding: 64px 72px 28px; width: 100%; height: 100%; align-content: center; cursor: zoom-out; }
.viewer img { max-width: 100%; max-height: calc(100vh - 150px); width: auto; height: auto; box-shadow: var(--shadow); cursor: default; }
.viewer figcaption { font: 400 .9375rem/1.4 var(--serif); text-align: center; }
.viewer-close, .viewer-prev, .viewer-next {
  position: absolute; background: none; border: 0; cursor: pointer;
  font: 500 .9375rem/1 var(--sans); padding: 12px 14px; color: var(--ink);
}
.viewer-close { top: calc(10px + env(safe-area-inset-top, 0px)); right: 10px; }
.viewer-prev { left: 6px; top: 50%; transform: translateY(-50%); }
.viewer-next { right: 6px; top: 50%; transform: translateY(-50%); }
.viewer button:hover { color: var(--accent); }

/* ---------- Narrow screens ---------- */
@media (max-width: 860px) {
  .hero, .intro, .work-grid, .about-grid { grid-template-columns: 1fr; }
  .about-grid.has-portrait { grid-template-areas: "portrait" "prose" "side"; row-gap: 32px; }
  .portrait { max-width: 22rem; }
  .intro .statement { grid-column: auto; }
  .hero-img, .work-img, .work-grid.is-wide .work-img { --maxh: 70vh; }
  .work-grid.is-wide .work-text { grid-template-columns: 1fr; }
  .work-media { position: static; }
  .label-materials { max-width: none; }
}
@media (max-width: 640px) {
  .site-head { padding-top: 16px; }
  .site-nav { gap: 4px 16px; font-size: .9375rem; }
  .tiles { gap: 26px 14px; }
  .tile { flex-basis: calc(var(--ar) * 8.5rem); max-width: calc(var(--ar) * 15rem); }
  .page-head h1 { font-size: var(--s4); }
  .work-title { font-size: var(--s3); }
  .facts > div, .contact-list > div { grid-template-columns: 1fr; gap: 2px; }
  .series-note, .series-thumbs { padding-left: 0; }
  .c-dims, .c-medium, .c-img, .c-word { display: none; }
  .c-no { width: 3rem; }
  .result-count { margin-left: 0; width: 100%; }
  .ex { grid-template-columns: 1fr; gap: 6px; }
  .viewer figure { padding: 56px 12px 24px; }
  .viewer-prev, .viewer-next { top: auto; bottom: 12px; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
