/* margotberghaus.de – site stylesheet (EXT:site_margot)
 * Plain modern CSS, no build step. Tokens: see docs/02-design.md. Started from the approved GATE 2 prototype.
 * No inline styles anywhere → compatible with a strict CSP (style-src 'self').
 */

/* ---------- Fonts (self-hosted, OFL – see ../Fonts/OFL.txt) ---------- */
@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("../Fonts/open-sans-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("../Fonts/open-sans-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Open Sans";
  font-style: italic;
  font-weight: 300 800;
  font-display: swap;
  src: url("../Fonts/open-sans-latin-wght-italic.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Open Sans";
  font-style: italic;
  font-weight: 300 800;
  font-display: swap;
  src: url("../Fonts/open-sans-latin-ext-wght-italic.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Tokens ---------- */
:root {
  /* colour – taken from the old site, adjusted only where contrast failed */
  --c-bg: #ffffff;
  --c-ink: #000000;          /* brand name (old .navbar-brand) */
  --c-text: #333333;         /* body text (old Bootstrap @text-color) – 12.6:1 */
  --c-muted: #666666;        /* subline, sub-nav (old #subLine) – 5.7:1 */
  --c-subtle: #737373;       /* small meta text; old #999 failed (2.8:1) – 4.7:1 */
  --c-accent: #00689a;       /* active/hover/link (old active nav colour) – 6.1:1 */
  --c-accent-strong: #004e74;/* link hover – 8.9:1 */
  --c-rule: #d6d6d6;         /* hairlines (old #e7e7e7 / #999 unified) */
  --c-rule-strong: #333333;  /* brand divider (old border-right) */
  --c-surface: #f4f4f2;      /* tile backgrounds */
  --c-focus: #00689a;
  --c-lb-bg: #161616;        /* lightbox */
  --c-lb-text: #e6e6e6;
  --c-lb-muted: #a8a8a8;

  /* type */
  --font: "Open Sans", "Lucida Grande", "Lucida Sans Unicode", "Lucida Sans", system-ui, sans-serif;
  --fs-xs: 0.8125rem;  /* 13 – utility links, counters */
  --fs-sm: 0.875rem;   /* 14 – captions, sub-nav, subline, footer */
  --fs-base: 1rem;     /* 16 – body */
  --fs-md: 1.125rem;   /* 18 – lead, h3 */
  --fs-lg: 1.375rem;   /* 22 – h2 */
  --fs-xl: 1.75rem;    /* 28 – h1, brand */
  --lh-tight: 1.25;
  --lh-base: 1.6;
  --tracking-brand: 0.05em; /* old letter-spacing */

  /* space (4-px base) */
  --s-1: 0.25rem;  /* 4 */
  --s-2: 0.5rem;   /* 8 */
  --s-3: 0.75rem;  /* 12 */
  --s-4: 1rem;     /* 16 */
  --s-5: 1.5rem;   /* 24 */
  --s-6: 2rem;     /* 32 */
  --s-7: 3rem;     /* 48 */
  --s-8: 4rem;     /* 64 */
  --s-9: 6rem;     /* 96 */

  /* layout */
  --page-max: 75rem;     /* 1200 – header, galleries */
  --text-max: 40rem;     /* 640 – ~70 characters */
  --gutter: var(--s-4);  /* 16 mobile */
  --header-h: 4.5rem;
  --thumb-h: 140px;      /* gallery row height, grows with viewport */
  --thumb-gap: var(--s-3);
  --radius: 2px;
  --t-fast: 150ms ease;
}
@media (min-width: 40em) { :root { --gutter: var(--s-5); --thumb-h: 170px; --thumb-gap: var(--s-4); } }
@media (min-width: 64em) { :root { --gutter: var(--s-6); --thumb-h: 200px; --thumb-gap: var(--s-5); } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: var(--s-6); }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--c-bg);
  color: var(--c-text);
  font: 400 var(--fs-base) / var(--lh-base) var(--font);
  font-optical-sizing: auto;
}
main { flex: 1 0 auto; }
img, video { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { color: var(--c-text); font-weight: 400; line-height: var(--lh-tight); margin: 0 0 var(--s-4); text-wrap: balance; }
h1 { font-size: var(--fs-xl); }
h2 { font-size: var(--fs-lg); margin-top: var(--s-6); }
h3 { font-size: var(--fs-md); font-weight: 600; margin-top: var(--s-5); }
p, ul, ol, dl, figure { margin: 0 0 var(--s-4); }
strong { font-weight: 600; }

a { color: var(--c-accent); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--c-accent-strong); text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--c-focus); outline-offset: 3px; border-radius: var(--radius); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: var(--s-4); top: -10rem; z-index: 100;
  background: var(--c-bg); color: var(--c-accent); padding: var(--s-2) var(--s-4);
  border: 2px solid var(--c-accent);
}
.skip-link:focus { top: var(--s-2); }

.wrap { width: 100%; max-width: calc(var(--page-max) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Header ---------- */
.site-header { border-bottom: 1px solid var(--c-rule); background: var(--c-bg); }
.site-header__inner {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2);
  min-height: var(--header-h); padding-block: var(--s-3);
}
.brand { display: block; color: var(--c-ink); text-decoration: none; line-height: 1.15; margin-right: auto; }
.brand:hover { color: var(--c-ink); }
.brand__name { display: block; font-size: var(--fs-lg); letter-spacing: var(--tracking-brand); }
@media (max-width: 23.99em) { .brand__name { font-size: 1.25rem; } .brand__sub { font-size: var(--fs-xs); } }
.brand__sub { display: block; font-size: var(--fs-sm); color: var(--c-muted); letter-spacing: 0; margin-top: var(--s-1); }

/* bullet-separated inline lists (main nav, sub-nav, footer) – the old "•" separators */
.dots { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: baseline; }
.dots > li + li::before { content: "•"; content: "•" / ""; color: var(--c-text); padding-inline: var(--s-3); }

.nav-main a, .subnav a, .lang a { text-decoration: none; }
.nav-main a { color: var(--c-text); }
.nav-main a:hover, .nav-main .is-active > a, .nav-main a[aria-current="page"] { color: var(--c-accent); }

.lang { display: flex; gap: var(--s-1); font-size: var(--fs-xs); letter-spacing: 0.06em; text-transform: uppercase; }
.lang a, .lang span { color: var(--c-subtle); padding: var(--s-2); min-width: 2.75rem; min-height: 2.75rem; display: inline-grid; place-items: center; }
.lang a:hover { color: var(--c-ink); }
.lang [aria-current] { color: var(--c-ink); font-weight: 600; }
@media (max-width: 51.99em) { .lang [aria-current] { display: none; } } /* phones: only the link to the other language */

.nav-toggle {
  display: inline-grid; place-items: center; width: 2.75rem; height: 2.75rem; padding: 0;
  border: 1px solid var(--c-rule); border-radius: var(--radius); background: var(--c-bg); color: var(--c-text); cursor: pointer;
}
.nav-toggle svg { width: 1.375rem; height: 1.375rem; }
.nav-toggle .i-close { display: none; }
.nav-toggle[aria-expanded="true"] .i-open { display: none; }
.nav-toggle[aria-expanded="true"] .i-close { display: block; }

/* mobile: collapsible panel below the header bar */
.site-nav { display: none; flex-basis: calc(100% + 2 * var(--gutter)); order: 10; margin-inline: calc(-1 * var(--gutter)); border-top: 1px solid var(--c-rule); }
.site-nav.is-open { display: block; }
.site-nav .dots { display: block; }
.site-nav .dots > li + li::before { content: none; }
.site-nav .nav-main > li + li { border-top: 1px solid var(--c-rule); }
.site-nav .nav-main a { display: block; padding: var(--s-3) var(--gutter); }
.nav-main .nav-sub { list-style: none; margin: 0 0 var(--s-2); padding: 0; }
.nav-main .nav-sub a { padding-block: var(--s-2); padding-left: calc(var(--gutter) + var(--s-5)); color: var(--c-muted); font-size: var(--fs-sm); }
.nav-main .nav-sub a:hover, .nav-main .nav-sub a[aria-current="page"], .nav-main .nav-sub .is-active > a { color: var(--c-accent); }
/* without JS the menu is simply open: Css/nojs.css, loaded in <noscript> (no layout shift when JS runs) */

@media (min-width: 52em) {
  :root { --header-h: 5.5rem; }
  .site-header__inner { flex-wrap: nowrap; gap: 0; padding-block: var(--s-4); align-items: stretch; }
  .brand { margin-right: 0; padding-right: var(--s-6); border-right: 1px solid var(--c-rule-strong); align-self: center; }
  .brand__name { font-size: var(--fs-xl); }
  .nav-toggle { display: none; }
  .site-nav { display: flex; align-items: flex-end; flex: 1; order: 0; margin: 0; border: 0; padding-left: var(--s-6); }
  .site-nav .dots { display: flex; }
  .site-nav .dots > li + li::before { content: "•"; content: "•" / ""; }
  .site-nav .nav-main > li + li { border: 0; }
  .site-nav .nav-main a { display: inline; padding: 0; }
  .nav-main .nav-sub { display: none; } /* desktop uses the separate sub-nav row */
  .lang { order: 2; align-self: flex-start; margin-top: calc(-1 * var(--s-2)); margin-right: calc(-1 * var(--s-2)); }
}

/* sub-nav row (galleries, profile) – centred like the old #subMenu */
.subnav { border-bottom: 1px solid var(--c-rule); font-size: var(--fs-sm); }
.subnav .dots { justify-content: center; padding-block: var(--s-3); row-gap: var(--s-1); }
.subnav a { color: var(--c-muted); display: inline-block; padding-block: var(--s-1); }
.subnav a:hover, .subnav a[aria-current="page"], .subnav .is-active > a { color: var(--c-accent); }
.subnav .dots > li + li::before { color: var(--c-muted); }
@media (max-width: 51.99em) { .subnav { display: none; } } /* phones: sub-pages are in the burger panel */

/* ---------- Page scaffolding ---------- */
.page { padding-block: var(--s-6) var(--s-8); }
@media (min-width: 64em) { .page { padding-block: var(--s-7) var(--s-9); } }
.page-head { margin-bottom: var(--s-5); }
.page-head h1 { margin: 0; }
.page-head .eyebrow { margin: 0 0 var(--s-1); font-size: var(--fs-sm); color: var(--c-muted); }
.page-head .meta { margin: var(--s-1) 0 0; font-size: var(--fs-sm); color: var(--c-subtle); }

/* key visual banner on text pages (content-defined, never upscaled: max = page width ≤ source width) */
.banner { margin: 0 auto; max-width: calc(var(--page-max) + 2 * var(--gutter)); padding-inline: var(--gutter); padding-top: var(--s-5); }
.banner img { width: 100%; aspect-ratio: 14 / 3; min-height: 7.5rem; object-fit: cover; }

/* ---------- Home ---------- */
.layout-home main { display: grid; align-content: center; }
.home-visual { padding: var(--s-5) var(--gutter) var(--s-7); display: grid; justify-items: center; }
.home-visual img {
  /* intrinsic size is the cap: never wider/taller than the file, never taller than the viewport */
  width: auto; height: auto; max-width: 100%;
  max-height: calc(100svh - var(--header-h) - var(--s-7) - var(--s-5));
}
@media (max-width: 39.99em) { .layout-home main { display: grid; align-content: center; }
.home-visual { padding: 0 0 var(--s-6); } .home-visual img { max-height: none; } }
.home-intro { text-align: center; color: var(--c-muted); font-size: var(--fs-sm); padding-bottom: var(--s-6); }
.home-intro .prose { margin-inline: auto; }

/* ---------- Content elements ---------- */
.ce + .ce { margin-top: var(--s-7); }
.ce > h2:first-child { margin-top: 0; }
.ce-figure { margin: 0 0 var(--s-5); }
.ce-figure img { max-width: 100%; }

/* ---------- Prose (text pages) ---------- */
.prose { max-width: var(--text-max); }
.prose > :first-child { margin-top: 0; }
.prose ul { list-style: none; padding: 0; }
.prose ul > li { position: relative; padding-left: var(--s-5); margin-bottom: var(--s-1); }
.prose ul > li::before { content: "–"; content: "–" / ""; position: absolute; left: 0; color: var(--c-subtle); }
.prose ol { padding-left: var(--s-5); }
.prose ul + ul { margin-top: var(--s-5); }

/* text & media: text column + figure on the right, like the old csc-textpic "intext-right" */
.textmedia { display: grid; gap: var(--s-5) var(--s-7); }
.textmedia__media { display: grid; gap: var(--s-5); align-content: start; justify-items: start; }
.textmedia__figure { margin: 0; justify-self: start; }
.textmedia__figure img { max-width: min(100%, 20rem); } /* width/height attributes = processed size: space reserved, never upscaled */
@media (min-width: 52em) {
  .textmedia--right { grid-template-columns: minmax(0, var(--text-max)) minmax(12rem, 20rem); justify-content: space-between; }
  .textmedia--right .textmedia__media { grid-column: 2; grid-row: 1; justify-items: end; }
  .textmedia--left { grid-template-columns: minmax(12rem, 20rem) minmax(0, var(--text-max)); }
  .textmedia__figure img { max-width: 100%; }
}
figcaption, .caption { font-size: var(--fs-sm); color: var(--c-muted); margin-top: var(--s-2); line-height: 1.45; }

.media-block { max-width: var(--text-max); margin: 0 0 var(--s-5); }
.media-block video { width: 100%; background: #000; aspect-ratio: 16 / 9; }

/* ---------- Gallery overview (tiles) ---------- */
.tiles { list-style: none; margin: 0 0 var(--s-7); padding: 0; display: grid; gap: var(--s-5) var(--s-3); grid-template-columns: repeat(auto-fill, minmax(min(100%, 9.5rem), 1fr)); }
@media (min-width: 40em) { .tiles { gap: var(--s-5); grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); } }
.tile { position: relative; }
.tile a { color: inherit; text-decoration: none; display: block; }
.tile__media { --pad: var(--s-3); aspect-ratio: 4 / 3; background: var(--c-surface); display: grid; place-items: center; padding: var(--pad); container-type: inline-size; }
.tile__media img { width: auto; height: auto; max-width: 100%; max-height: calc(75cqi - 0.5 * var(--pad)); /* 4:3 box: content height = 0.75 × content width − padding/2 */ object-fit: contain; box-shadow: 0 1px 3px rgb(0 0 0 / 0.12); }
@media (min-width: 40em) { .tile__media { --pad: var(--s-4); } }
.tile__title { display: block; margin-top: var(--s-3); font-size: var(--fs-md); color: var(--c-text); }
.tile__meta { display: block; font-size: var(--fs-sm); color: var(--c-subtle); }
.tile a:hover .tile__title { color: var(--c-accent); }
.tile a:hover .tile__media img { box-shadow: 0 2px 10px rgb(0 0 0 / 0.18); }
.tile a:focus-visible { outline-offset: 4px; }
.section-title { font-size: var(--fs-lg); margin: var(--s-7) 0 var(--s-2); padding-top: var(--s-6); border-top: 1px solid var(--c-rule); }
.section-title a { color: inherit; text-decoration: none; }
.section-title a:hover { color: var(--c-accent); text-decoration: underline; }
.section-intro { color: var(--c-muted); max-width: var(--text-max); margin-bottom: var(--s-5); }
@media (min-width: 40em) { .tiles--small { grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)); gap: var(--s-4); } }
.tiles--small .tile__title { font-size: var(--fs-base); }

/* ---------- Gallery detail: centred rows of fixed-height thumbnails (old layout, aspect ratios kept) ---------- */
.gallery { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: var(--thumb-gap); }
.gallery__item { margin: 0; }
.gallery__link { display: block; }
.gallery__link img {
  height: var(--thumb-h); width: auto;              /* width follows the width/height attributes → no layout shift */
  max-width: calc(100vw - 2 * var(--gutter));
  object-fit: contain; background: var(--c-surface);
  transition: opacity var(--t-fast), box-shadow var(--t-fast);
}
.gallery__link:hover img { opacity: 0.88; box-shadow: 0 2px 10px rgb(0 0 0 / 0.18); }
.gallery__link:focus-visible { outline-offset: 4px; }
.gallery__caption { display: none; } /* read by the lightbox; title is also in the img alt text */

/* previous / next gallery below the grid (G2-6) */
.gallery-pager {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: baseline; gap: var(--s-4);
  margin-top: var(--s-8); padding-top: var(--s-5); border-top: 1px solid var(--c-rule); font-size: var(--fs-sm);
}
.gallery-pager a { text-decoration: none; display: inline-block; padding-block: var(--s-2); }
.gallery-pager a:hover { text-decoration: underline; }
.gallery-pager__up { text-align: center; }
.gallery-pager__up a { color: var(--c-muted); }
.gallery-pager__next { text-align: right; }
@media (max-width: 39.99em) {
  .gallery-pager { grid-template-columns: 1fr 1fr; }
  .gallery-pager__up { grid-column: 1 / -1; grid-row: 2; }
}

/* ---------- Exhibitions ---------- */
.exhibitions { display: grid; gap: var(--s-7); }
@media (min-width: 64em) { .exhibitions { grid-template-columns: minmax(0, 1fr) 20rem; } }
.exh-year { font-size: var(--fs-md); font-weight: 600; margin: var(--s-6) 0 var(--s-2); }
.exh-year:first-child { margin-top: 0; }
.exh-list { list-style: none; padding: 0; margin: 0; }
.exh-list li { display: grid; gap: 0 var(--s-5); padding-block: var(--s-2); border-top: 1px solid var(--c-rule); }
@media (min-width: 40em) { .exh-list li { grid-template-columns: 11rem minmax(0, 1fr); } }
.exh-date { color: var(--c-muted); font-size: var(--fs-sm); padding-top: 0.1em; }
.exh-solo { font-size: var(--fs-xs); color: var(--c-subtle); text-transform: uppercase; letter-spacing: 0.05em; }
.exh-aside img { max-width: 100%; }
/* exhibition list = core "Table" element: date | exhibition */
.exh-table { border-collapse: collapse; width: 100%; }
.exh-table tr { border-top: 1px solid var(--c-rule); }
.exh-table th, .exh-table td { text-align: left; vertical-align: baseline; padding: var(--s-2) 0; font-weight: 400; }
.exh-table .exh-date { color: var(--c-muted); font-size: var(--fs-sm); width: 11rem; padding-right: var(--s-5); }
@media (max-width: 39.99em) {
  .exh-table tr { display: block; padding-block: var(--s-2); }
  .exh-table th, .exh-table td { display: block; padding: 0; width: auto; }
}

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--c-rule); font-size: var(--fs-sm); color: var(--c-muted); }
.site-footer__inner { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--s-2) var(--s-5); padding-block: var(--s-5); }
.site-footer p { margin: 0; padding-block: var(--s-1); }
.site-footer a { color: var(--c-muted); text-decoration: none; display: inline-block; padding-block: var(--s-1); }
.site-footer a:hover { color: var(--c-accent); text-decoration: underline; }
.site-footer .dots > li + li::before { color: var(--c-muted); }

/* ---------- Lightbox (native <dialog>) ---------- */
.lightbox {
  width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: var(--c-lb-bg); color: var(--c-lb-text);
  overscroll-behavior: contain;
}
.lightbox::backdrop { background: var(--c-lb-bg); }
.lightbox[open] { display: grid; grid-template-rows: minmax(0, 1fr) auto; }
.lightbox__stage {
  position: relative; display: grid; place-items: center; min-height: 0;
  padding: var(--s-7) var(--s-4) var(--s-3); touch-action: pan-y pinch-zoom; user-select: none;
}
@media (min-width: 52em) { .lightbox__stage { padding: var(--s-7) var(--s-9) var(--s-4); } }
.lightbox__img {
  /* width/height attributes = file size in px → width:auto never exceeds them: no upscaling */
  width: auto; height: auto; max-width: 100%; max-height: 100%; min-height: 0;
  object-fit: contain; background: #222;
  transition: opacity 200ms ease;
}
.lightbox__img.is-loading { opacity: 0; }
.lightbox__bar {
  display: flex; justify-content: center; align-items: baseline; gap: var(--s-5);
  padding: var(--s-2) var(--s-5) var(--s-5); text-align: center; font-size: var(--fs-sm); line-height: 1.5;
}
.lightbox__caption { margin: 0; max-width: 46rem; }
.lightbox__caption .t { color: #fff; font-size: var(--fs-base); }
.lightbox__caption .s { color: var(--c-lb-muted); }
.lightbox__count { color: var(--c-lb-muted); font-size: var(--fs-xs); white-space: nowrap; font-variant-numeric: tabular-nums; }
.lightbox button {
  position: absolute; display: grid; place-items: center; width: 3rem; height: 3rem; padding: 0;
  border: 0; border-radius: 50%; background: rgb(255 255 255 / 0.08); color: #fff; cursor: pointer;
  transition: background var(--t-fast);
}
.lightbox button:hover { background: rgb(255 255 255 / 0.2); }
.lightbox button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.lightbox button svg { width: 1.5rem; height: 1.5rem; }
.lightbox__close { top: var(--s-3); right: var(--s-3); }
.lightbox__prev, .lightbox__next { top: 50%; translate: 0 -50%; }
.lightbox__prev { left: var(--s-4); }
.lightbox__next { right: var(--s-4); }
@media (max-width: 51.99em) {
  /* on phones the arrows sit in the caption bar so they never cover the artwork; swipe also works */
  .lightbox__prev, .lightbox__next { top: auto; bottom: var(--s-4); translate: none; width: 2.75rem; height: 2.75rem; }
  .lightbox__bar { padding-inline: 4rem; min-height: 5rem; flex-direction: column-reverse; align-items: center; gap: var(--s-1); }
}
html.lb-open { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}


@media print {
  .site-header .site-nav, .nav-toggle, .lang, .subnav, .site-footer ul { display: none !important; }
  .gallery__link img { height: 120px; }
  .gallery-pager { display: none; }
}
