/* Galleri Tegn. Colours come from the place: whitewashed walls, tarred timber, cyanotype blue
   (the gallery's own printmaking), the Danish flag, and the magenta and green of the printed posters. */

@font-face { font-family: 'Archivo'; src: url('/fonts/archivo-normal.woff2') format('woff2'); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: 'Newsreader'; src: url('/fonts/newsreader-normal.woff2') format('woff2'); font-weight: 200 800; font-display: swap; }
@font-face { font-family: 'Newsreader'; src: url('/fonts/newsreader-italic.woff2') format('woff2'); font-weight: 200 800; font-style: italic; font-display: swap; }

:root {
  --paper: #f4f0e8;
  --paper-2: #ebe5d9;
  --ink: #1c1a17;
  --ink-soft: #57524a;
  --rule: #d5cdbd;
  --cyan: #173f69;
  --cyan-deep: #0f2d4d;
  --on-cyan: #f4f0e8;
  --on-cyan-soft: #b9cde3;
  --galleri: #a3459d;
  --tegn: #74b236;
  --flag: #c8102e;
  --focus: #c8102e;

  --sans: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --gutter: clamp(16px, 4vw, 48px);
  --wide: 1280px;
  --measure: 38rem;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #151412;
    --paper-2: #1f1d1a;
    --ink: #efe9dd;
    --ink-soft: #b5ad9f;
    --rule: #37332c;
    --cyan: #11304f;
    --cyan-deep: #0b2138;
    --galleri: #d48bce;
    --tegn: #9ad15f;
    --flag: #e8384f;
    --focus: #e8384f;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.125rem/1.6 var(--serif);
  font-optical-sizing: auto;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { text-decoration-color: var(--flag); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
/* red is too faint on the blue band, the footer and the lightbox */
.on-cyan :focus-visible, .site-foot :focus-visible, .lightbox :focus-visible { outline-color: #f4f0e8; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { font-family: var(--sans); line-height: 1.02; margin: 0; letter-spacing: -0.015em; text-wrap: balance; }

.skip { position: absolute; left: -999px; top: 0; z-index: 99; background: var(--ink); color: var(--paper); padding: 0.75rem 1rem; font-family: var(--sans); }
.skip:focus { left: var(--gutter); }

.wrap { width: min(100% - 2 * var(--gutter), var(--wide)); margin-inline: auto; }
.eyebrow {
  font: 600 0.78rem/1.2 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft);
  display: flex; gap: 0.6em; align-items: center; flex-wrap: wrap; margin: 0 0 1rem;
}
.eyebrow::before { content: ''; width: 1.6rem; height: 2px; background: currentColor; opacity: 0.6; }

/* Wordmark: the poster lockup, GALLERI over TEGN, both lines the same width. */
.wordmark { display: block; text-decoration: none; line-height: 0; }
.wordmark svg { width: 100%; height: auto; overflow: visible; }
.wordmark .w-galleri { fill: var(--galleri); font: 560 46px var(--sans); font-stretch: 100%; }
.wordmark .w-tegn { fill: var(--tegn); font: 900 78px var(--sans); font-stretch: 125%; }

/* Header */
.site-head { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--rule); }
.site-head .wrap { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 0.4rem clamp(1rem, 3vw, 2.2rem); min-height: 4rem; }
.site-nav { justify-self: end; }
.site-head .wordmark { width: 5.6rem; flex: none; }
.site-nav ul { list-style: none; display: flex; gap: clamp(0.85rem, 2.6vw, 2.2rem); margin: 0; padding: 0; }
.site-nav a { font: 600 0.95rem/1 var(--sans); text-decoration: none; padding: 0.5rem 0; display: inline-block; border-bottom: 2px solid transparent; }
.site-nav a:hover { border-bottom-color: var(--rule); }
.site-nav a[aria-current='page'] { border-bottom-color: var(--flag); }
/* Phones: wordmark and language switch on top, the menu on its own row underneath. */
@media (max-width: 640px) {
  .site-head { position: static; }
  .site-head .wrap { grid-template-columns: auto 1fr; grid-template-areas: 'mark lang' 'nav nav'; padding-top: 0.7rem; }
  .site-head .wordmark { grid-area: mark; width: 4.8rem; }
  .lang-switch { grid-area: lang; justify-self: end; }
  .site-nav { grid-area: nav; justify-self: start; }
}
@media (max-width: 380px) { .site-nav a { font-size: 0.86rem; } }

.lang-switch ul { list-style: none; display: flex; margin: 0; padding: 2px; border: 1.5px solid var(--rule); border-radius: 999px; }
.lang-switch a { display: block; font: 700 0.75rem/1 var(--sans); letter-spacing: 0.08em; text-decoration: none; padding: 0.45rem 0.6rem; border-radius: 999px; color: var(--ink-soft); }
.lang-switch a:hover { color: var(--ink); }
.lang-switch a[aria-current] { background: var(--ink); color: var(--paper); }

/* Status badge with the Danish flag: raised when open, lowered when closed. */
.status {
  display: inline-flex; align-items: center; gap: 0.75rem; padding: 0.55rem 1rem 0.55rem 0.75rem;
  border: 1px solid var(--rule); border-radius: 999px; background: var(--paper);
  font: 500 0.95rem/1.25 var(--sans); color: var(--ink);
}
.status[hidden] { display: none; }
.status b { font-weight: 750; }
.status .flag { width: 1.6rem; height: 1.9rem; flex: none; }
.status .flag .pole { stroke: var(--ink-soft); }
/* Closed: an empty outline on the pole. Open: the red Dannebrog, waving. */
.status .flag .cloth rect { fill: transparent; stroke: var(--ink-soft); stroke-width: 1.2; stroke-dasharray: 2 2; transition: fill 0.6s, stroke 0.6s; }
.status[data-state='open'] .flag .cloth { animation: wave 3.2s ease-in-out infinite; transform-origin: 4px 8px; }
.status[data-state='open'] .flag .cloth rect { fill: var(--flag); stroke: var(--flag); stroke-dasharray: none; }
.status .flag .cross { stroke: var(--paper); opacity: 0; }
.status[data-state='open'] .flag .cross { opacity: 1; }
@keyframes wave { 0%, 100% { transform: skewY(0deg); } 50% { transform: skewY(-4deg) scaleX(0.96); } }
.on-cyan .status { background: transparent; border-color: color-mix(in srgb, var(--on-cyan) 35%, transparent); color: var(--on-cyan); }
.on-cyan .status .flag .pole { stroke: var(--on-cyan-soft); }

/* Home hero */
.hero { padding: clamp(2.5rem, 7vw, 6rem) 0 clamp(2rem, 5vw, 3.5rem); }
.hero-grid { display: grid; gap: clamp(1.5rem, 4vw, 3rem); grid-template-columns: minmax(0, 1fr); align-items: end; }
@media (min-width: 880px) { .hero-grid { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); } }
.hero h1 { font-size: clamp(2.7rem, 7.6vw, 6.4rem); font-weight: 850; font-stretch: 88%; letter-spacing: -0.03em; line-height: 0.94; }
.hero h1 em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.02em; color: var(--cyan); }
@media (prefers-color-scheme: dark) { .hero h1 em { color: var(--on-cyan-soft); } }
.hero .lede { font-size: clamp(1.15rem, 1.8vw, 1.35rem); max-width: 32rem; margin-bottom: 1.5rem; }
.hero-photo { margin: 0; position: relative; }
.hero-photo img { width: 100%; height: clamp(18rem, 58vw, 42rem); object-fit: cover; object-position: 50% 18%; }
.hero-photo figcaption { position: absolute; right: var(--gutter); bottom: 1rem; color: #f4f0e8; font: 500 0.8rem/1.2 var(--sans); letter-spacing: 0.06em; text-shadow: 0 1px 8px rgb(0 0 0 / 0.6); }

/* Cyanotype band */
.on-cyan { background: var(--cyan); color: var(--on-cyan); position: relative; isolation: isolate; }
.on-cyan::before {
  /* a faint sun-print grain, like paper exposed in the cyanotype frame */
  content: ''; position: absolute; inset: 0; z-index: -1; opacity: 0.5;
  background: radial-gradient(120% 80% at 85% 10%, color-mix(in srgb, var(--on-cyan) 9%, transparent), transparent 60%),
              radial-gradient(90% 70% at 0% 100%, var(--cyan-deep), transparent 70%);
}
.on-cyan .eyebrow { color: var(--on-cyan-soft); }
.on-cyan a:hover { text-decoration-color: var(--on-cyan); }
.feature { padding: clamp(3rem, 8vw, 6.5rem) 0; }
.feature-card { display: grid; gap: clamp(2rem, 5vw, 4rem); grid-template-columns: minmax(0, 1fr); align-items: center; }
.feature-card[hidden] { display: none; }
@media (min-width: 880px) { .feature-card { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); } }
.feature h2 { font-size: clamp(2.4rem, 6vw, 4.8rem); font-weight: 850; font-stretch: 92%; letter-spacing: -0.03em; }
.feature .sub { font-style: italic; font-size: 1.35rem; color: var(--on-cyan-soft); margin: 0.6rem 0 1.4rem; }
.meta { font: 500 1rem/1.5 var(--sans); margin: 0 0 1.4rem; }
.meta strong { font-weight: 700; display: block; font-size: 1.15rem; }
.feature .excerpt { max-width: var(--measure); display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; color: color-mix(in srgb, var(--on-cyan) 88%, transparent); }
.button {
  display: inline-flex; align-items: center; gap: 0.6rem; font: 650 1rem/1 var(--sans); text-decoration: none;
  padding: 0.95rem 1.3rem; border-radius: 999px; background: var(--ink); color: var(--paper); border: 0; cursor: pointer;
}
.button::after { content: '\2192'; transition: transform 0.2s; }
.button:hover::after { transform: translateX(3px); }
.on-cyan .button { background: var(--on-cyan); color: var(--cyan-deep); }
.mosaic { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.mosaic a:first-child { grid-row: span 2; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 5; }
.mosaic a:not(:first-child) img { aspect-ratio: 1; }
.mosaic.single { grid-template-columns: 1fr; }
.mosaic.single img { aspect-ratio: 4 / 3; }

/* Sections */
.section { padding: clamp(3rem, 8vw, 6rem) 0; }
.section + .section { border-top: 1px solid var(--rule); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 1rem 2rem; flex-wrap: wrap; margin-bottom: clamp(1.5rem, 4vw, 2.75rem); }
.section-head h2 { font-size: clamp(2rem, 4.6vw, 3.4rem); font-weight: 800; font-stretch: 90%; }
.section-head p { margin: 0; max-width: 30rem; color: var(--ink-soft); }

/* Programme list */
.programme { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.programme li { border-bottom: 1px solid var(--rule); }
.programme a { display: grid; grid-template-columns: 1fr; gap: 0.4rem 2rem; padding: 1.3rem 0; text-decoration: none; align-items: center; }
@media (min-width: 720px) { .programme a { grid-template-columns: 13rem minmax(0, 1fr) 7.5rem; } }
.programme .dates { font: 600 0.95rem/1.3 var(--sans); font-variant-numeric: tabular-nums; color: var(--ink-soft); display: flex; gap: 0.6rem; align-items: center; }
.programme h3 { font-size: clamp(1.45rem, 3vw, 2.1rem); font-weight: 750; font-stretch: 95%; transition: color 0.2s; }
.programme a:hover h3 { color: var(--cyan); }
@media (prefers-color-scheme: dark) { .programme a:hover h3 { color: var(--on-cyan-soft); } }
.programme .who { font-size: 1.05rem; color: var(--ink-soft); margin-top: 0.3rem; }
.programme .who i { margin-right: 0.4rem; }
.programme img { width: 7.5rem; height: 5.5rem; object-fit: cover; display: none; }
@media (min-width: 720px) { .programme img { display: block; } }
.programme li[data-past] h3 { color: var(--ink-soft); }
.programme li[data-past] img { opacity: 0.55; }
.now-tag { display: none; font: 750 0.7rem/1 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; background: #b30d27; color: #fff; padding: 0.35rem 0.5rem; border-radius: 3px; }
.programme li[data-current] .now-tag { display: inline-block; }
.poster-link { margin-top: 1.5rem; font: 500 0.95rem/1.4 var(--sans); }
.feature h2 + .excerpt { margin-top: 1.25rem; }
.actions-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.5rem; margin-top: 1.5rem; font: 600 1rem/1.3 var(--sans); }

/* Hosts */
.hosts { display: grid; gap: clamp(2rem, 5vw, 4rem); grid-template-columns: minmax(0, 1fr); align-items: center; }
@media (min-width: 880px) { .hosts { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr); } }
.hosts img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.pull { font: italic 400 clamp(1.7rem, 3.6vw, 2.6rem)/1.15 var(--serif); margin: 0 0 1.4rem; letter-spacing: -0.01em; }
.prose { max-width: var(--measure); }
.prose p:last-child { margin-bottom: 0; }
.prose + p { margin-top: 1em; }

/* Visit */
.visit-grid { display: grid; gap: 2rem 3rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 720px) { .visit-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.visit-grid h3 { font-size: 0.82rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700; margin-bottom: 1rem; padding-bottom: 0.8rem; border-bottom: 2px solid var(--ink); }
.visit-grid p, .visit-grid dl { font-size: 1.05rem; }
.hours { margin: 0 0 1rem; }
.hours dt { font: 650 1rem/1.3 var(--sans); }
.hours dd { margin: 0 0 0.9rem; }
.hours .note { color: var(--ink-soft); font-style: italic; }

/* Page header (inner pages) */
.page-head { padding: clamp(2.5rem, 7vw, 5rem) 0 clamp(1.5rem, 4vw, 2.5rem); }
.page-head h1 { font-size: clamp(2.6rem, 7vw, 5.6rem); font-weight: 850; font-stretch: 88%; letter-spacing: -0.03em; }
.page-head .lede { font-size: clamp(1.15rem, 1.8vw, 1.35rem); max-width: 36rem; margin: 1.2rem 0 1.5rem; }

/* Exhibition article */
.show { padding: clamp(2.5rem, 6vw, 4.5rem) 0; border-top: 2px solid var(--ink); display: grid; gap: 1.5rem clamp(2rem, 5vw, 4rem); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 960px) { .show { grid-template-columns: 17rem minmax(0, 1fr); } }
.show-meta { font: 500 0.98rem/1.5 var(--sans); }
@media (min-width: 960px) { .show-meta { position: sticky; top: 5.5rem; align-self: start; } }
.show-meta .dates { font-weight: 700; font-variant-numeric: tabular-nums; }
.show-meta .who { margin-top: 0.4rem; }
.show-meta .medium { color: var(--ink-soft); }
.show h2 { font-size: clamp(2rem, 4.8vw, 3.6rem); font-weight: 800; font-stretch: 90%; letter-spacing: -0.025em; }
.show h3 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); font-weight: 800; font-stretch: 92%; letter-spacing: -0.02em; }
.show .sub { font-style: italic; font-size: 1.3rem; color: var(--ink-soft); margin: 0.5rem 0 0; }
.show-body > * + * { margin-top: 1.5rem; }
.show .prose { margin-top: 1.5rem; }
details.more { max-width: var(--measure); }
details.more summary { font: 650 0.95rem/1 var(--sans); cursor: pointer; padding: 0.7rem 0; list-style: none; display: inline-flex; gap: 0.5rem; align-items: center; }
details.more summary::-webkit-details-marker { display: none; }
details.more summary::before { content: '+'; display: inline-grid; place-items: center; width: 1.4rem; height: 1.4rem; border: 1.5px solid currentColor; border-radius: 50%; font-weight: 700; }
details.more[open] summary::before { content: '\2212'; }
details.more summary .close-label { display: none; }
details.more[open] summary .open-label { display: none; }
details.more[open] summary .close-label { display: inline; }
.brief { background: var(--paper-2); padding: clamp(1.25rem, 3vw, 2rem); max-width: var(--measure); }
.brief h3 { font-size: 1.1rem; margin-bottom: 0.8rem; }
.brief p { font-size: 1rem; }
.brief h4 { font: 700 0.95rem/1.3 var(--sans); margin: 1.4em 0 0.5em; }
.brief h4:first-child { margin-top: 0; }
.brief ul { padding-left: 1.2em; margin: 0 0 1em; }
.brief li { font-size: 1rem; margin-bottom: 0.6em; }
.show .lead { font-style: italic; font-size: 1.15rem; max-width: var(--measure); margin-top: 1.25rem; }
.translated { font: 500 0.82rem/1.4 var(--sans); color: var(--ink-soft); margin-top: 0.75rem; }
.poster-card details.more { margin-top: 0.5rem; }
.poster-card .prose p { font: 400 0.98rem/1.55 var(--serif); color: var(--ink); margin: 0 0 0.8em; }

/* Gallery: masonry columns keep each artwork's own proportions. */
.gallery { columns: 4 9rem; column-gap: 0.75rem; list-style: none; margin: 0; padding: 0; }
.gallery li { break-inside: avoid; margin-bottom: 0.75rem; }
.gallery a { display: block; position: relative; background: var(--paper-2); }
.gallery img { width: 100%; transition: opacity 0.2s; }
.gallery a:hover img { opacity: 0.88; }
.gallery.lg { columns: 3 12rem; }

/* Archive */
.year-nav { display: flex; gap: 0.5rem; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.year-nav a { font: 700 1rem/1 var(--sans); text-decoration: none; padding: 0.65rem 1rem; border: 1.5px solid var(--ink); border-radius: 999px; font-variant-numeric: tabular-nums; }
.year-nav a:hover { background: var(--ink); color: var(--paper); }
.year { padding-top: clamp(2.5rem, 6vw, 4rem); }
.year-title { display: flex; align-items: baseline; gap: 1.2rem; flex-wrap: wrap; margin-bottom: 1rem; }
.year-title .num { font: 900 clamp(4rem, 14vw, 10rem)/0.8 var(--sans); font-stretch: 110%; letter-spacing: -0.04em; color: transparent; -webkit-text-stroke: 2px var(--ink); }
.year-title h2 { font-size: clamp(1.1rem, 2vw, 1.4rem); font-weight: 650; color: var(--ink-soft); }
.year-intro { color: var(--ink-soft); font-style: italic; }
.year-2024 .shows-compact { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); list-style: none; padding: 0; margin: 1.5rem 0 0; }
.poster-card { border-top: 2px solid var(--ink); padding-top: 1rem; }
.poster-card a { text-decoration: none; display: block; }
.poster-card img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: top; background: #fff; margin-bottom: 0.9rem; }
.poster-card h3 { font-size: 1.3rem; font-weight: 750; }
.poster-card p { font: 500 0.92rem/1.4 var(--sans); color: var(--ink-soft); margin: 0.4rem 0 0; }

/* About */
.about-grid { display: grid; gap: clamp(2rem, 5vw, 4rem); grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 880px) { .about-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .about-grid.flip > :first-child { order: 2; } }
.about-grid figure { margin: 0; }
.about-grid figcaption { font: 500 0.85rem/1.4 var(--sans); color: var(--ink-soft); margin-top: 0.6rem; }
.about-grid h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 800; font-stretch: 92%; margin-bottom: 1.2rem; }
/* Contained photos, cropped towards their subject: the gallery sign, the ship's hull. */
.photo { margin-block: 0; }
.photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.photo.focus-sign img { object-position: 50% 15%; }
.photo.focus-ship img { object-position: 50% 55%; }

/* Footer */
.site-foot { background: #1c1a17; color: #e9e3d7; padding: clamp(3rem, 7vw, 5rem) 0 2rem; margin-top: clamp(2rem, 6vw, 4rem); }
.site-foot .wrap { display: grid; gap: 2.5rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 720px) { .site-foot .wrap { grid-template-columns: 1.2fr 1fr 1fr; } .site-foot.slim .wrap { grid-template-columns: 1fr; } }
.site-foot .wordmark { width: 9rem; }
.site-foot .wordmark .w-galleri { fill: #d48bce; }
.site-foot .wordmark .w-tegn { fill: #9ad15f; }
.site-foot h2 { font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700; color: #a9a193; margin-bottom: 0.8rem; }
.site-foot p, .site-foot ul { font-size: 1rem; margin: 0; }
.site-foot ul { list-style: none; padding: 0; display: grid; gap: 0.4rem; }
.site-foot .small { grid-column: 1 / -1; border-top: 1px solid #3a362f; padding-top: 1.5rem; font: 500 0.82rem/1.4 var(--sans); color: #a9a193; }

/* Lightbox */
.lightbox { border: 0; padding: 0; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; background: rgb(12 11 10 / 0.96); color: #f4f0e8; }
.lightbox::backdrop { background: rgb(12 11 10 / 0.9); }
.lightbox[open] { display: grid; grid-template-rows: 1fr auto; }
.lightbox figure { margin: 0; display: grid; place-items: center; padding: 3.5rem 3.5rem 0; min-height: 0; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 9rem); object-fit: contain; }
.lightbox figcaption { text-align: center; padding: 1rem var(--gutter) 1.5rem; font: 400 1rem/1.4 var(--serif); color: #d8d0c2; max-width: 46rem; margin: 0 auto; }
.lightbox button { position: absolute; background: rgb(255 255 255 / 0.08); color: #f4f0e8; border: 1px solid rgb(255 255 255 / 0.25); border-radius: 999px; width: 3rem; height: 3rem; font: 500 1.4rem/1 var(--sans); cursor: pointer; display: grid; place-items: center; }
.lightbox button[hidden] { display: none; }
.lightbox button:hover { background: rgb(255 255 255 / 0.18); }
.lightbox .lb-close { top: 1rem; right: 1rem; }
.lightbox .lb-prev { left: 1rem; top: 50%; translate: 0 -50%; }
.lightbox .lb-next { right: 1rem; top: 50%; translate: 0 -50%; }
@media (max-width: 600px) { .lightbox figure { padding: 4rem 0.5rem 0; } .lightbox .lb-prev, .lightbox .lb-next { top: auto; bottom: 0.75rem; translate: none; } }

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
