/* MILITARY ART (white edition: one light look on purpose, like the printed calendar)
   Layout: the calendar's red band becomes the spine of the site. Each story is a two-page spread:
   a white story page, then the artwork on a dark gallery stage. */
:root {
  --paper: #ffffff;
  --paper-2: #f6f2f2;
  --ink: #161213;
  --muted: #645b5e;
  --line: #e4dddf;
  --red: #e40b14;        /* measured from the 2022 calendar */
  --red-text: #c90910;   /* red for small text on paper */
  --on-red: #ffffff;
  --stage: #ffffff;      /* gallery wall: white, as in the calendar */
  --stage-2: #f3f0f0;
  --stage-fg: #161213;
  --stage-muted: #645b5e;
  --ornament: #d9d6d6;   /* line poppies, as in the calendar */
  --caption: #e6e1e2;
  --caption-fg: #1a1617;

  --f-display: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
  --f-ui: "Barlow", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --f-text: "Source Serif 4", "Source Serif Pro", Georgia, "Times New Roman", serif;

  --band: 92px;
  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  --measure: 38rem;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 1rem/1.6 var(--f-ui);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: .5rem 1rem; z-index: 50; }
.skip:focus { left: calc(var(--band) + 8px); }
.label, .eyebrow {
  font: 600 .78rem/1.2 var(--f-display); letter-spacing: .16em; text-transform: uppercase;
}
.eyebrow { color: var(--red-text); margin: 0; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 500; line-height: 1; margin: 0; text-wrap: balance; }
.wrap { padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
.inner { max-width: 74rem; margin: 0 auto; }

/* ---------- The red band ---------- */
.band {
  position: fixed; inset: 0 auto 0 0; width: var(--band); z-index: 20;
  background: var(--red); color: var(--on-red);
  display: flex; flex-direction: column; align-items: center; gap: 1.25rem;
  padding: calc(18px + env(safe-area-inset-top, 0px)) 0 calc(18px + env(safe-area-inset-bottom, 0px)) env(safe-area-inset-left, 0px);
  overflow: hidden; box-shadow: inset -1px 0 0 rgba(0,0,0,.14);
}
.band::after { /* the calendar's line poppy, in white */
  content: ""; position: absolute; left: -70px; bottom: 4%; width: 230px; height: 220px; opacity: .45; pointer-events: none;
  background: #fff;
  -webkit-mask: url("../img/brand/poppy-line.png") no-repeat center / contain;
          mask: url("../img/brand/poppy-line.png") no-repeat center / contain;
}
.band-logo { display: grid; justify-items: center; gap: 6px; text-decoration: none; }
.band-logo img { width: 60px; height: auto; }
.band-logo span { font: 600 .62rem/1 var(--f-display); letter-spacing: .2em; }
.band nav { display: flex; flex-direction: column; align-items: center; gap: 2px; position: relative; z-index: 1; }
.band nav a {
  font: 500 1.05rem/1 var(--f-display); letter-spacing: .04em; text-decoration: none;
  width: 44px; padding: 7px 0; text-align: center; opacity: .72; border-radius: 2px;
  font-variant-numeric: tabular-nums;
}
.band nav a:hover { opacity: 1; }
.band nav a[aria-current="true"] { opacity: 1; background: var(--on-red); color: var(--red); }
.band .band-yr { font: 600 .7rem/1 var(--f-display); letter-spacing: .14em; writing-mode: vertical-rl; transform: rotate(180deg); opacity: .9; }
.band .band-links { margin-top: auto; display: flex; flex-direction: column; gap: 10px; align-items: center; position: relative; z-index: 1; }
.band .band-links a { font: 600 .74rem/1 var(--f-display); letter-spacing: .16em; text-transform: uppercase; text-decoration: none; writing-mode: vertical-rl; transform: rotate(180deg); padding: 6px 0; }
.band .band-links a:hover { text-decoration: underline; }
.band-menu, .band .band-m { display: none; }
.band-fb { position: relative; z-index: 1; display: grid; place-items: center; width: 44px; height: 44px; flex: none; color: var(--on-red); border: 1.5px solid rgba(255,255,255,.7); }
.band-fb:hover, .band-fb:focus-visible { background: var(--on-red); color: var(--red); }
main { margin-left: var(--band); }

/* ---------- Hero ---------- */
/* The hero fits one screen, calls to action included: spacing and the headline also follow the viewport height. */
.hero { position: relative; overflow: hidden; padding-block: clamp(2rem, min(8vw, 9vh), 6.5rem) clamp(2.5rem, 6vw, 5rem); }
.hero-deco { position: absolute; right: -8%; top: -6%; width: min(52vw, 640px); aspect-ratio: 625 / 566; pointer-events: none;
  background: var(--ornament); -webkit-mask: url("../img/brand/poppy-line.png") no-repeat center / contain; mask: url("../img/brand/poppy-line.png") no-repeat center / contain; }
.hero::after { content: ""; position: absolute; left: -5%; bottom: -14%; width: min(30vw, 360px); aspect-ratio: 625 / 566; pointer-events: none; opacity: .7;
  background: var(--ornament); -webkit-mask: url("../img/brand/poppy-line.png") no-repeat center / contain; mask: url("../img/brand/poppy-line.png") no-repeat center / contain; transform: scaleX(-1) rotate(-12deg); }
.hero .inner { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.mark { width: min(100%, 360px); justify-self: center; }
.mark img { width: 100%; height: auto; }
.mark .wordmark { display: block; margin-top: .8rem; text-align: center; font: 500 clamp(1.6rem, 3.4vw, 2.6rem)/1 var(--f-display); letter-spacing: .22em; }
.mark .wordmark b { font-weight: 700; }
.hero h1 { font-size: clamp(2.6rem, min(7.4vw, 10.5vh), 6.4rem); font-weight: 600; text-transform: uppercase; letter-spacing: -.005em; margin-top: .9rem; }
.hero h1 em { font-style: normal; color: var(--red-text); display: block; }
.hero .lede { font: 400 clamp(1.08rem, 1.6vw, 1.3rem)/1.55 var(--f-text); max-width: var(--measure); margin: 1.4rem 0 0; color: var(--ink); }
.hero .lede + .lede { margin-top: .7rem; }
.facts { display: flex; flex-wrap: wrap; gap: 1.5rem 2.75rem; margin: 2.4rem 0 0; padding: 0; list-style: none; }
.facts li { display: grid; gap: .2rem; }
.facts b { font: 500 clamp(2rem, 3.6vw, 2.8rem)/1 var(--f-display); font-variant-numeric: tabular-nums; }
.facts span { font-size: .86rem; color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.8rem; }
.btn {
  display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; cursor: pointer;
  font: 600 .9rem/1 var(--f-display); letter-spacing: .14em; text-transform: uppercase;
  padding: .95rem 1.3rem; border: 1.5px solid var(--ink); background: transparent; color: var(--ink);
}
.btn:hover { background: var(--ink); color: var(--paper); }
.btn.primary { background: var(--red); border-color: var(--red); color: var(--on-red); }
.btn.primary:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }

/* ---------- Exhibition wall ---------- */
.wall { background: var(--stage); color: var(--stage-fg); padding-block: clamp(3rem, 6vw, 5rem); }
.wall-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1.5rem 2rem; margin-bottom: 2.4rem; }
.wall-head h2 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); text-transform: uppercase; font-weight: 600; }
.wall-head .eyebrow { margin-bottom: .6rem; }
.wall-head p.sum { max-width: 44rem; color: var(--stage-muted); margin: .9rem 0 0; font-family: var(--f-text); font-size: 1.05rem; }
.tabs { display: inline-flex; border: 1.5px solid var(--ink); }
.tabs button {
  font: 600 .82rem/1 var(--f-display); letter-spacing: .14em; text-transform: uppercase; cursor: pointer;
  background: transparent; color: var(--stage-fg); border: 0; padding: .85rem 1.1rem; display: grid; gap: .3rem; text-align: left;
}
.tabs button b { font: 500 1.35rem/1 var(--f-display); letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.tabs button[aria-selected="true"] { background: var(--red); color: #fff; }
.tabs button + button { border-left: 1.5px solid var(--ink); }
.hang { columns: 4 220px; column-gap: 14px; }
.hang { column-gap: 22px; }
.hang a { display: block; break-inside: avoid; margin: 0 0 26px; position: relative; text-decoration: none; }
.hang img { width: 100%; height: auto; transition: filter .4s ease; }
.hang a:hover img:not(.face) { filter: brightness(.9); }
/* The hero's photo lies over the work and fades in on hover or keyboard focus. Touch screens have no hover:
   they keep the work and do not even load the photo (a lazy image that is not displayed is not fetched). */
.hang .art-face { display: block; position: relative; overflow: hidden; }
.hang .art-face .face {
  display: none; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%;
  opacity: 0; transform: scale(1.06); transition: opacity .6s ease, transform 1.4s cubic-bezier(.2, .7, .2, 1); pointer-events: none;
}
@media (hover: hover) { .hang .art-face .face { display: block; } }
.hang a:hover .face, .hang a:focus-visible .face { opacity: 1; transform: none; }
/* The hero of the story on a plate over a finished work (the caption below carries the work's title); it stays above the hero's photo too.
   Work and plate share one grid cell: on a low, wide work the plate (large text, phones) makes the card taller instead of spilling out. */
.hang .art-face:has(.plate) { display: grid; align-items: start; }
.hang .art-face:has(.plate) > :not(.face) { grid-area: 1 / 1; }
.hang .plate {
  position: relative; z-index: 1; align-self: end; justify-self: end; margin: 10px; max-width: calc(100% - 20px); display: grid; gap: .2rem;
  padding: .45rem .65rem .5rem; background: #fff; color: var(--ink); box-shadow: 0 2px 10px rgba(0, 0, 0, .18); overflow-wrap: break-word;
}
.hang .plate small { font: 600 .62rem/1 var(--f-display); letter-spacing: .16em; text-transform: uppercase; color: var(--red-text); }
.hang .plate b { font: 600 .95rem/1.1 var(--f-display); letter-spacing: .02em; }
@media (max-width: 560px) {
  .hang .plate { margin: 6px; max-width: calc(100% - 12px); padding: .3rem .45rem .35rem; gap: .12rem; }
  .hang .plate small { font-size: .55rem; }
  .hang .plate b { font-size: .8rem; }
}
.hang a:hover .tag b { color: var(--red-text); }
.hang .tag {
  display: grid; gap: .2rem; padding: .7rem .85rem .75rem; background: var(--caption); color: var(--caption-fg);
}
.hang .tag b { font: 600 1.05rem/1.1 var(--f-display); letter-spacing: .02em; }
.hang .tag span { font-size: .8rem; color: var(--muted); }
.hang .tag i { font: 600 .7rem/1 var(--f-display); font-style: normal; letter-spacing: .16em; color: var(--red-text); }
.noimg {
  aspect-ratio: 4 / 3; display: grid; place-items: center; padding: 1.2rem; text-align: center;
  background: var(--stage-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 160' fill='none' stroke='%23574d50' stroke-width='1.6'%3E%3Cpath d='M60 158c-2-26 2-46 0-66M60 92c-22 0-38-12-38-30 0-18 14-28 28-24 2-12 20-16 28-4 14-4 24 10 20 24 6 16-10 34-38 34zM50 38c-4 14 0 32 10 40 10-8 16-26 18-44M44 60c8 6 24 6 32-2'/%3E%3C/svg%3E") no-repeat center 40% / auto 46%;
}
.wall-note { color: var(--stage-muted); font-size: .85rem; margin-top: 1.2rem; max-width: 46rem; }
.prologue { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; margin-top: clamp(3rem, 6vw, 5rem); padding-top: clamp(2.5rem, 5vw, 4rem); border-top: 1px solid var(--line); }
.prologue blockquote { margin: 0; font: italic 400 clamp(1.1rem, 1.7vw, 1.35rem)/1.55 var(--f-text); }
.prologue .by { color: var(--stage-muted); margin: 1rem 0 0; font-size: .9rem; }

/* ---------- Chapters ---------- */
.chapter, .section, .wall { scroll-margin-top: 0; }
/* Story page: a way back above the story, the neighbouring stories below it */
.story-top { padding-top: clamp(1.6rem, 3vw, 2.4rem); }
.story-top a { display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; text-decoration: none; color: var(--red-text); font: 600 .82rem/1 var(--f-display); letter-spacing: .14em; text-transform: uppercase; }
.story-top a:hover { text-decoration: underline; text-underline-offset: .3em; }
.story-top + .chapter .spread-story { padding-top: clamp(1.2rem, 3vw, 2.4rem); }
.story-top + .chapter .ed-label { display: none; } /* the link above already names the edition */
.story-nav { padding-block: clamp(2.4rem, 5vw, 4rem); }
.story-nav .inner { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem 2rem; align-items: start; }
.story-nav .pg { display: grid; gap: .35rem; padding-block: .4rem; text-decoration: none; color: var(--ink); }
.story-nav .pg.prev { grid-column: 1; }
.story-nav .pg.next { grid-column: 2; text-align: right; justify-items: end; }
.story-nav .pg-k { display: inline-flex; align-items: center; gap: .35rem; font: 600 .78rem/1 var(--f-display); letter-spacing: .16em; text-transform: uppercase; color: var(--red-text); }
.story-nav .pg b { font: 600 1.5rem/1.1 var(--f-display); text-transform: uppercase; }
.story-nav .pg-t { color: var(--muted); font: 400 1rem/1.4 var(--f-text); }
.story-nav .pg:hover b { color: var(--red-text); }
.story-nav .all { grid-column: 1 / -1; justify-self: center; margin-top: 1rem; }
@media (max-width: 700px) {
  .story-nav .inner { grid-template-columns: minmax(0, 1fr); }
  .story-nav .pg.next { grid-column: 1; }
  .story-nav .all { justify-self: stretch; justify-content: center; }
}
.spread-story { padding-block: clamp(3.5rem, 8vw, 7rem) clamp(3rem, 6vw, 5rem); position: relative; }
.spread-story .inner { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 5rem); }
.folio { display: grid; grid-template-columns: auto auto; justify-content: start; align-items: end; column-gap: .5rem; }
.folio .mon { grid-column: 1 / -1; font: 400 clamp(1.5rem, 2.6vw, 2.1rem)/1 var(--f-display); text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.folio .num { font: 300 clamp(6rem, 13vw, 10.5rem)/.82 var(--f-display); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.folio .yr { font: 500 clamp(1rem, 1.6vw, 1.3rem)/1 var(--f-display); letter-spacing: .12em; writing-mode: vertical-rl; transform: rotate(180deg); color: var(--muted); padding-bottom: .4rem; }
.who { margin-top: 2rem; display: grid; gap: .5rem; padding-top: 1.2rem; border-top: 2px solid var(--red); max-width: 22rem; }
.who .name { font: 600 1.3rem/1.15 var(--f-display); letter-spacing: .01em; margin: 0; }
.who .ctx { margin: 0; color: var(--muted); font-size: .95rem; line-height: 1.5; }
.era { display: inline-flex; gap: .5rem; align-items: center; margin: 0; }
.era::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--red); }
.era.modern::before { background: transparent; border: 2px solid var(--red); }
.story h1 { font-size: clamp(2.5rem, 6vw, 5rem); font-weight: 600; text-transform: uppercase; letter-spacing: -.005em; margin-bottom: 1.8rem; }
.story p { font: 400 1.12rem/1.72 var(--f-text); max-width: var(--measure); margin: 0 0 1.1em; hyphens: auto; }
.story p.first { font-size: clamp(1.2rem, 1.8vw, 1.42rem); line-height: 1.6; }
.story p.first.sign { text-align: right; font-style: italic; }
.story details { max-width: var(--measure); }
.story summary, .story .fold {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: .6rem; margin-top: .4rem;
  font: 600 .86rem/1 var(--f-display); letter-spacing: .14em; text-transform: uppercase; color: var(--red-text);
  padding: .7rem 0; border: 0; border-bottom: 1.5px solid currentColor; background: none;
}
.story summary::-webkit-details-marker { display: none; }
.story summary::after { content: "+"; font-size: 1.2rem; line-height: .6; }
.story .fold::after { content: "−"; font-size: 1.2rem; line-height: .6; }
.story details[open] summary { display: none; }
.story details[open] > div { animation: unfold .5s ease both; }
@keyframes unfold { from { transform: translateY(8px); } to { transform: none; } }
.story .src { font-size: .85rem; color: var(--muted); }
/* "Zdieľať príbeh": a text link like "Čítať celý príbeh"; top right on computers, under the person's name on phones */
.story-top .inner { display: flex; justify-content: space-between; align-items: flex-start; gap: .4rem 2rem; flex-wrap: wrap; }
.share-toggle { display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; padding: 0; border: 0; background: none; cursor: pointer; color: var(--red-text); font: 600 .82rem/1 var(--f-display); letter-spacing: .14em; text-transform: uppercase; }
.share-toggle:hover span { text-decoration: underline; text-underline-offset: .3em; }
.share-top { display: grid; justify-items: end; }
.share-top .share-panel { justify-content: flex-end; }
.share-who { margin-top: .6rem; }
.share-who .share-toggle { color: var(--muted); }
.share-who { display: none; }
@media (max-width: 700px) {
  .share-top { display: none; }
  .share-who { display: block; }
}
/* The revealed links read like "Čítať celý príbeh": red display caps, no boxes. */
.share-panel { display: flex; flex-wrap: wrap; gap: .2rem 1.6rem; margin-top: .7rem; }
.share-panel[hidden] { display: none; }
.share-panel a, .share-panel button {
  display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; padding: 0; border: 0; background: none; cursor: pointer; text-decoration: none;
  font: 600 .82rem/1 var(--f-display); letter-spacing: .14em; text-transform: uppercase; color: var(--red-text);
}
.share-panel a:hover span, .share-panel button:hover span { text-decoration: underline; text-underline-offset: .3em; }
.share-panel .share-copy.done { color: var(--ink); }
.to-art {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 1rem; max-width: var(--measure);
  margin: 2.2rem 0 1.4rem; padding: .9rem 1.1rem .9rem .9rem; text-decoration: none; color: var(--ink);
  background: var(--paper-2); border-left: 3px solid var(--red); transition: background .2s ease;
}
.to-art:not(:has(img)) { grid-template-columns: minmax(0, 1fr) auto; padding-left: 1.2rem; }
.to-art img { width: 64px; height: 64px; object-fit: cover; filter: grayscale(1); transition: filter .2s ease; }
.to-art-text { display: grid; gap: .3rem; min-width: 0; }
.to-art-k { font: 600 .74rem/1 var(--f-display); letter-spacing: .16em; text-transform: uppercase; color: var(--red-text); }
.to-art b { font: 600 1.15rem/1.15 var(--f-display); letter-spacing: .06em; text-transform: uppercase; }
.to-art-t { font: 400 .95rem/1.3 var(--f-display); color: var(--muted); }
.to-art-arrow {
  display: inline-flex; align-items: center; gap: .4rem; white-space: nowrap; color: var(--red-text);
  font: 600 .74rem/1 var(--f-display); letter-spacing: .14em; text-transform: uppercase;
}
.to-art-arrow svg { flex: none; transition: transform .2s ease; }
.to-art:hover img, .to-art:focus-visible img { filter: none; }
.to-art:hover .to-art-arrow, .to-art:focus-visible .to-art-arrow { text-decoration: underline; text-underline-offset: .25em; }
.to-art:hover .to-art-arrow svg, .to-art:focus-visible .to-art-arrow svg { transform: translateY(2px); }
.to-art[target]:hover .to-art-arrow svg, .to-art[target]:focus-visible .to-art-arrow svg { transform: translate(2px, -2px); }
/* Phones: the action goes under the text so the title keeps the full width */
@media (max-width: 560px) {
  .to-art:not(:has(img)) { grid-template-columns: minmax(0, 1fr); }
  .to-art:has(img) { grid-template-columns: auto minmax(0, 1fr); }
  .to-art:has(img) .to-art-arrow { grid-column: 2; }
  .to-art .to-art-arrow { justify-self: start; margin-top: .2rem; }
}
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.spread-art { background: var(--stage-2); color: var(--stage-fg); position: relative; overflow: hidden; }
.spread-art::before { /* gallery light that warms up when you arrive */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: var(--ornament); opacity: .0; transition: opacity 1.4s ease;
  -webkit-mask: url("../img/brand/poppy-line.png") no-repeat left -60px bottom -40px / 420px auto;
          mask: url("../img/brand/poppy-line.png") no-repeat left -60px bottom -40px / 420px auto;
}
.spread-art::before { opacity: .55; }
.spread-art.lit::before { opacity: 1; }
.spread-art .inner { position: relative; display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(1.5rem, 4vw, 4rem); padding-block: clamp(3rem, 7vw, 6rem); align-items: center; }
.spread-art figure { margin: 0; grid-column: 2; grid-row: 1; display: grid; justify-items: center; }
.spread-art figure img { max-height: min(84vh, 900px); width: auto; height: auto; box-shadow: 0 18px 40px rgba(40,20,22,.18); }
.spread-art figure.photo img { max-height: none; width: 100%; }
.spread-art .noimg { width: 100%; }
.statement { grid-column: 1; grid-row: 1; align-self: center; }

.statement blockquote { margin: 1rem 0 0; font: italic 400 1.08rem/1.65 var(--f-text); color: var(--stage-fg); }
.statement blockquote::before { content: "„"; display: block; font: 600 4.2rem/.5 var(--f-display); color: var(--red); margin-bottom: .6rem; font-style: normal; }
.statement .by { margin: 1.1rem 0 0; color: var(--stage-muted); font-size: .9rem; }
.statement .plain { margin: 1rem 0 0; font: 400 1.08rem/1.65 var(--f-text); }
.caption {
  grid-column: 1 / -1; justify-self: end; background: var(--caption); color: var(--caption-fg);
  padding: .8rem 1.2rem; display: flex; flex-wrap: wrap; gap: .3rem 1.2rem; align-items: baseline; max-width: 100%;
}
.caption b { font: 600 1.05rem/1.2 var(--f-display); letter-spacing: .06em; text-transform: uppercase; }
/* The work's title first and larger, as its author wrote it, then the artist */
.caption .cap-title { font-size: 1.5rem; line-height: 1.05; font-weight: 400; text-transform: none; letter-spacing: .01em; }
.caption small { font-size: .88rem; }
.caption .sep { color: var(--red); font-weight: 700; padding: 0 .35rem; }

.divider { display: grid; place-items: center; padding-block: 2.6rem .4rem; }
.divider span { display: block; width: 120px; aspect-ratio: 625 / 566; background: var(--ornament);
  -webkit-mask: url("../img/brand/poppy-line.png") no-repeat center / contain; mask: url("../img/brand/poppy-line.png") no-repeat center / contain;
  transition: transform 1.2s ease, opacity 1.2s ease; }
.divider.pre span { transform: translateY(10px) rotate(-6deg); opacity: .5; }
.divider.draw span { transform: none; opacity: 1; }

/* ---------- Timeline ---------- */
.section { padding-block: clamp(4rem, 8vw, 7rem); }
.section-head { display: grid; gap: .8rem; margin-bottom: 2.8rem; max-width: 46rem; }
.section-head h2 { font-size: clamp(2.3rem, 5vw, 4rem); text-transform: uppercase; font-weight: 600; }
.section-head p:not(.eyebrow) { margin: 0; font: 400 1.1rem/1.6 var(--f-text); color: var(--muted); }
.line { list-style: none; margin: 0; padding: 0; position: relative; }
.line::before { content: ""; position: absolute; left: 6.5rem; top: .6rem; bottom: .6rem; width: 2px; background: var(--line); }
.yr-row { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: 0 2rem; padding: .55rem 0; position: relative; }
.yr-row > b { font: 300 2.1rem/1 var(--f-display); font-variant-numeric: tabular-nums; text-align: right; padding-right: 1.1rem; }
.yr-row ul { list-style: none; margin: 0; padding: 0 0 0 1.4rem; display: flex; flex-wrap: wrap; gap: .5rem; align-content: start; }
.yr-row ul::before { content: ""; position: absolute; left: calc(6.5rem - 5px); top: 1.15rem; width: 12px; height: 12px; border-radius: 50%; background: var(--red); }
.yr-row a {
  display: inline-flex; gap: .55rem; align-items: baseline; text-decoration: none; padding: .45rem .75rem;
  border: 1px solid var(--line); background: var(--paper); font-size: .95rem;
}
.yr-row a { position: relative; }
.yr-row a > svg { flex: none; align-self: center; color: var(--red-text); transition: transform .2s ease; } /* every story entry shows it opens */
.yr-row a:hover { border-color: var(--red); }
.yr-row a:hover > svg { transform: translateX(2px); }
.yr-row a:target { border-color: var(--red); box-shadow: inset 3px 0 0 var(--red); scroll-margin-block: 40vh; animation: os-hit 1.6s ease 1; }
@keyframes os-hit { 0%, 40% { background: #fde8e9; } 100% { background: var(--paper); } }
.spread-art .to-os { background: var(--paper); margin: 1.8rem 0 0; }
.yr-row a small { font: 600 .68rem/1 var(--f-display); letter-spacing: .14em; color: var(--red-text); }
.gap-row { padding: 1.4rem 0 1.4rem calc(6.5rem + 2.4rem); color: var(--muted); font: italic 400 1rem/1.4 var(--f-text); position: relative; }
.gap-row::before { content: ""; position: absolute; left: 6.5rem; top: 0; bottom: 0; width: 2px; background: repeating-linear-gradient(var(--paper) 0 6px, var(--muted) 6px 10px); }

/* ---------- Impact ---------- */
.impact { background: var(--paper-2); }
.impact .inner { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.impact .auct-sum { margin-top: clamp(1.8rem, 4vw, 2.6rem); }
.impact .big { font: 500 clamp(3.6rem, 8vw, 6.4rem)/.9 var(--f-display); color: var(--red-text); font-variant-numeric: tabular-nums; margin: 0; }
.impact .auct-cap { display: grid; gap: .45rem; margin: 1.1rem 0 0; }
.impact .auct-cap b { font: 600 .74rem/1 var(--f-display); letter-spacing: .16em; text-transform: uppercase; color: var(--red-text); }
.impact .auct-cap span { font: 400 1.15rem/1.35 var(--f-display); color: var(--ink); }
/* The article as a teaser card: photo, title, a line of what it is about, date and arrow */
.auct-article { display: block; max-width: 30rem; margin-top: 1.8rem; background: var(--paper); color: var(--ink); text-decoration: none; border-left: 3px solid var(--red); }
.auct-article img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.auct-body { display: grid; gap: .4rem; padding: 1rem 1.2rem 1.1rem; }
.auct-body b { font: 600 1.15rem/1.15 var(--f-display); letter-spacing: .06em; text-transform: uppercase; }
.auct-teaser { font: 400 .98rem/1.4 var(--f-display); color: var(--muted); }
.auct-more { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: .4rem; font: 400 .9rem/1.3 var(--f-display); color: var(--muted); }
a.auct-article:hover .to-art-arrow, a.auct-article:focus-visible .to-art-arrow { text-decoration: underline; text-underline-offset: .25em; }
a.auct-article:hover .to-art-arrow svg, a.auct-article:focus-visible .to-art-arrow svg { transform: translate(2px, -2px); }
.gala-cta { display: grid; gap: .8rem; justify-items: start; max-width: 30rem; padding: 1.5rem; background: var(--paper); border-left: 3px solid var(--red); }
.gala-cta h3 { font-size: 1.5rem; font-weight: 600; text-transform: uppercase; letter-spacing: .02em; }
.gala-cta p { margin: 0; font: 400 1rem/1.45 var(--f-display); color: var(--muted); }

/* ---------- Support ---------- */
.support { background: var(--red); color: var(--on-red); }
.support .section-head p:not(.eyebrow) { color: #ffe1e2; }
.support .eyebrow { color: #fff; }
.ways { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid rgba(255,255,255,.5); }
.way { padding: 1.6rem 1.6rem 1.8rem 0; display: grid; gap: .7rem; align-content: start; }
.way + .way { border-left: 1px solid rgba(255,255,255,.5); padding-left: 1.6rem; }
.way h3 { font-size: 1.5rem; font-weight: 600; text-transform: uppercase; letter-spacing: .02em; }
.way .code { font: 500 clamp(1.35rem, 2.2vw, 1.75rem)/1.15 var(--f-display); letter-spacing: .04em; font-variant-numeric: tabular-nums; user-select: all; word-break: break-word; }
#iban { text-decoration: underline 1.5px; text-underline-offset: .22em; }
#iban a[x-apple-data-detectors] { color: inherit; text-decoration: none; pointer-events: none; } /* in case iOS still detects a number */
.way p { margin: 0; color: #ffe8e9; font-size: .95rem; }
.copy { justify-self: start; font: 600 .78rem/1 var(--f-display); letter-spacing: .14em; text-transform: uppercase; background: #fff; color: var(--red); border: 0; padding: .7rem .95rem; cursor: pointer; }
.copy:hover { background: var(--ink); color: #fff; }
.way a.lnk { color: #fff; font-weight: 600; }
.fine { margin-top: 2rem; font-size: .82rem; color: #ffd7d9; }

/* ---------- About ---------- */
.about { border-top: 1px solid var(--line); }
.about .inner { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.about .section-head, .people .section-head { position: sticky; top: 2rem; }
.about .to-ludia, .people .to-join { margin: 1.6rem 0 0; max-width: 28rem; }
.people .to-join-team { display: none; }
.about-text p { font: 400 1.12rem/1.72 var(--f-text); max-width: var(--measure); margin: 0 0 1.1em; hyphens: auto; }
.about-text p:first-child { font-size: clamp(1.2rem, 1.8vw, 1.42rem); line-height: 1.6; padding-left: 1.2rem; border-left: 3px solid var(--red); }
.about-text p:last-child { margin-bottom: 0; }

/* ---------- Join ---------- */
.join { border-top: 3px solid var(--red); }
.join-ways { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem; }
.join-ways li { display: grid; grid-template-rows: auto 1fr auto; gap: .8rem; padding: 1.6rem 1.5rem 1.5rem; background: var(--paper-2); border-left: 3px solid var(--red); }
.join-ways h3 { font-size: 1.5rem; font-weight: 600; text-transform: uppercase; letter-spacing: .02em; }
.join-ways p { margin: 0; font: 400 1rem/1.45 var(--f-display); color: var(--muted); }
.join-ways .btn { justify-self: start; }
.join-mail { margin: 1.4rem 0 0; max-width: none; } /* full width of the cards above, a closing strip rather than a stray box */
.join-mail b { text-transform: none; letter-spacing: .02em; overflow-wrap: anywhere; }
.join-mail:hover .to-art-arrow svg, .join-mail:focus-visible .to-art-arrow svg { transform: none; }
@media (max-width: 900px) { .join-ways { grid-template-columns: minmax(0, 1fr); } }

/* ---------- People & footer ---------- */
.people .inner { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.roster-title { margin-bottom: 1rem; }
.roster { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem 2rem; }
.roster li { display: grid; gap: .2rem; padding-top: .9rem; border-top: 1px solid var(--line); }
.roster b { font: 600 1.2rem/1.1 var(--f-display); }
.roster span { color: var(--muted); font-size: .9rem; }
.credits-block { margin-top: 3rem; padding-top: 1.6rem; border-top: 1px solid var(--line); }
.credits-block dl { display: grid; gap: 1.6rem; margin: 1.2rem 0 0; }
.credits-block dl > div { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: .4rem 1.6rem; align-items: baseline; }
.credits-block dt { font: 600 .78rem/1.3 var(--f-display); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.credits-block dd { margin: 0; }
.credits-block ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .35rem 0; }
.credits-block li { font: 500 1.12rem/1.3 var(--f-display); letter-spacing: .02em; }
.credits-block li:not(:last-child)::after { content: "·"; color: var(--red); padding: 0 .55rem; }
@media (max-width: 900px) { .credits-block dl > div { grid-template-columns: minmax(0, 1fr); } }
.credits-block dl > div:has(.partner-logo) { align-items: start; }
/* The Ministry of Defence: its logo, small, with the grant notice under it */
.credits-block .partner-logo { display: grid; gap: .5rem; }
.credits-block .partner-logo img { display: block; height: 42px; width: auto; }
.credits-block .partner-logo small { display: block; max-width: 52ch; font: 400 .8rem/1.5 var(--f-ui); letter-spacing: 0; text-transform: none; color: var(--muted); }
/* Ministry of Defence grant notice in the footer, where the contacts used to be: logo with clear space, small print */
footer .funding { display: flex; align-items: center; gap: 1rem; max-width: 34rem; }
footer .funding img { flex: none; box-sizing: content-box; height: 44px; width: auto; padding: 11px; background: #fff; }
footer .funding p { margin: 0; font: 400 .78rem/1.5 var(--f-ui); color: var(--muted); text-align: left; }
@media (max-width: 700px) {
  footer .funding { flex-direction: column; gap: .2rem; }
  footer .funding p { text-align: center; }
}
footer { border-top: 1px solid var(--line); padding-block: 2rem 2.4rem; font-size: .85rem; color: var(--muted); }
footer .inner { display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; align-items: center; }
.footer-brand { display: inline-flex; align-items: center; gap: 1rem; margin: 0; font-size: .95rem; line-height: 1.45; }
.footer-brand a { color: var(--ink); font-weight: 600; text-decoration: none; }
.footer-brand a:hover, .footer-brand a:focus-visible { color: var(--red-text); text-decoration: underline; text-underline-offset: .2em; }
.footer-brand a:has(img) { display: block; line-height: 0; }
.footer-brand img { width: 64px; height: 64px; }

/* ---------- Phone and tablet ---------- */
@media (max-width: 900px) {
  :root { --band: 0px; }
  .band { /* inset before top: the shorthand would reset top and the bar would scroll away */
    position: sticky; inset: auto; top: 0; width: auto; height: auto; flex-direction: row; gap: .8rem;
    padding: calc(8px + env(safe-area-inset-top, 0px)) var(--gutter-r) 8px var(--gutter-l);
  }
  .band::after, .band .band-yr, .band .band-links { display: none; }
  .band-logo { grid-auto-flow: column; gap: 8px; align-items: center; }
  .band-logo img { width: 38px; }
  .band nav { flex-direction: row; overflow-x: auto; scrollbar-width: none; min-width: 0; flex: 1; }
  .band nav::-webkit-scrollbar { display: none; }
  .band nav a { width: auto; padding: 8px 9px; flex: none; }
  .skip:focus { left: 8px; }
  main { margin-left: 0; }
  .chapter, .section, .wall, .hero, #chapters { scroll-margin-top: var(--band-h, 54px); }
  .band { box-shadow: 0 1px 0 rgba(0,0,0,.14); overflow: visible; }
  /* Menu: the side links drop down under the red bar */
  .band-menu {
    display: grid; place-items: center; flex: none; width: 40px; height: 40px; margin-right: -6px; padding: 0;
    background: none; border: 0; color: var(--on-red); cursor: pointer;
  }
  .band-menu[aria-expanded="true"] { background: var(--on-red); color: var(--red); }
  .band-fb { order: 2; width: 32px; height: 40px; border: 0; } /* narrow, so the three years still fit next to it on a 375px phone */
  .band { gap: .5rem; }
  .band-menu { order: 3; }
  /* Tiles in the style of the edition tabs: a numbered label over a large name, the section in view in red */
  .band.menu-open .band-links {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; position: absolute; top: 100%; left: 0; right: 0; gap: 0; margin: 0;
    padding: 1rem var(--gutter-r) 1.2rem var(--gutter-l); background: var(--paper); box-shadow: 0 10px 24px rgba(0,0,0,.18);
    max-height: calc(100vh - 100%); overflow-y: auto; counter-reset: menu;
  }
  .band.menu-open .band-links a, .band.menu-open .band-m {
    display: grid; gap: .35rem; writing-mode: horizontal-tb; transform: none; padding: .85rem 1rem; color: var(--ink);
    font: 500 1.35rem/1 var(--f-display); letter-spacing: .04em; text-transform: none;
    border: 1.5px solid var(--ink); border-width: 0 1.5px 1.5px 0; counter-increment: menu;
  }
  .band.menu-open .band-links a::before {
    content: counter(menu, decimal-leading-zero); font: 600 .82rem/1 var(--f-display); letter-spacing: .14em; color: var(--red-text);
  }
  .band.menu-open .band-links a:nth-child(odd) { border-left-width: 1.5px; }
  .band.menu-open .band-links a:nth-child(-n+2) { border-top-width: 1.5px; }
  .band.menu-open .band-links a:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .band.menu-open .band-links a[aria-current="location"] { background: var(--red); border-color: var(--ink); color: var(--on-red); }
  .band.menu-open .band-links a[aria-current="location"]::before { color: var(--on-red); }
  .band.menu-open .band-links a:hover { text-decoration: none; }
  .hero .inner, .spread-story .inner, .impact .inner, .people .inner, .about .inner, .prologue { grid-template-columns: minmax(0, 1fr); }
  .mark { width: min(44%, 170px); justify-self: start; }
  .spread-art .inner { grid-template-columns: minmax(0, 1fr); }
  .spread-art figure, .statement { grid-column: 1; grid-row: auto; }
  .spread-art figure img { max-height: 78vh; }
  .caption { justify-self: stretch; }
  /* One column: the caption belongs right under the artwork, before the artist */
  .spread-art figure { order: -2; }
  .spread-art .caption { order: -1; margin-top: calc(-1 * clamp(1.5rem, 4vw, 4rem) + .6rem); }
  .about .section-head, .people .section-head { position: static; }
  .people .to-join-head { display: none; }
  .people .to-join-team { display: grid; max-width: none; margin-top: 2rem; }
  .chapters-head { display: grid; gap: .6rem; padding-top: 2.6rem; border-top: 3px solid var(--red); }
  .chapters-head h2 { font-size: clamp(2.3rem, 9vw, 3rem); text-transform: uppercase; font-weight: 600; }
  .chapters-head + .chapter .spread-story { padding-top: 1.6rem; }
  .chapters-head + .chapter .ed-label { display: none; } /* the heading already names the edition */
  .ways { grid-template-columns: minmax(0, 1fr); }
  .way, .way + .way { border-left: 0; padding-left: 0; padding-right: 0; border-bottom: 1px solid rgba(255,255,255,.5); }
  .folio .num { font-size: 6.5rem; }
}
@media (max-width: 560px) {
  .line::before, .gap-row::before { left: 3.6rem; }
  .yr-row { grid-template-columns: 3.6rem minmax(0, 1fr); gap: 0 .8rem; }
  .yr-row > b { font-size: 1.35rem; padding-right: .7rem; }
  .yr-row ul::before { left: calc(3.6rem - 5px); top: .75rem; }
  .gap-row { padding-left: calc(3.6rem + 1.4rem); }
  .roster { grid-template-columns: minmax(0, 1fr); }
  .hang { columns: 2 140px; column-gap: 10px; }
  .hang a, .hang .pending { margin-bottom: 10px; }
  /* Folded: a plain two-column grid, Safari keeps the hidden works' height in a multi-column layout (a big gap above "Zobraziť viac") */
  .hang.folded { columns: auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; align-items: start; }
  .hang.folded > * { margin: 0; }
  .hang .tag span { display: none; }
  /* Edition switcher in the bar: just the years, "1. 2. 3." made the last one run off the screen */
  .band nav a b { display: none; }
  .band nav a { padding: 6px 8px; }
  .band nav a span { font-size: .9rem; letter-spacing: .08em; }
  .hang.folded > :nth-child(n+5) { display: none; }
  .hang-more { display: block; margin: .4rem auto 0; }
}
/* First open card of each edition and first timeline story: a pulsing frame and a label, always on (user testing: people scroll past) */
.hang a.hint, .yr-row a.hint { outline: 2px solid var(--red); outline-offset: 4px; animation: hint-pulse 1.8s ease-in-out infinite; }
@keyframes hint-pulse { 50% { outline-offset: 9px; outline-color: color-mix(in srgb, var(--red) 25%, transparent); } }
.hint-label {
  position: absolute; z-index: 1; top: 10px; left: 10px; right: 10px; padding: .45rem .6rem; text-align: center;
  background: var(--red); color: var(--on-red); font: 600 .72rem/1.25 var(--f-display); letter-spacing: .12em; text-transform: uppercase;
  box-shadow: 0 4px 14px rgba(0,0,0,.18); transition: opacity .5s ease;
}
.yr-row .hint-label { top: auto; bottom: calc(100% + 10px); left: 0; right: auto; white-space: nowrap; padding: .4rem .6rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .divider.pre span { transform: none; opacity: 1; }
}

/* ---------- Edition switcher in the band ---------- */
.band nav a { display: grid; gap: 3px; width: 64px; padding: 9px 0; }
.band nav a b { font: 600 1.35rem/1 var(--f-display); }
.band nav a span { font: 600 .62rem/1 var(--f-display); letter-spacing: .14em; text-transform: uppercase; }
.band nav a.next { margin-top: 10px; border: 1px dashed rgba(255,255,255,.7); opacity: .9; }
.ed-label { color: var(--muted); margin: 0 0 1.2rem; }
@media (min-width: 901px) { .chapters-head { display: none; } } /* desktop: the side band and the spread already set the stories apart */
.who { margin-top: 0; }
.who .name { font-size: clamp(1.7rem, 2.8vw, 2.3rem); line-height: 1.05; font-weight: 500; }
.hang .tag i { text-transform: uppercase; }

/* ---------- Upcoming edition ---------- */
.upcoming { background: var(--paper); border-top: 3px solid var(--red); border-bottom: 1px solid var(--line); padding-block: clamp(3rem, 6vw, 5rem); }
.upcoming .inner { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.next-head { display: grid; gap: 1rem; justify-items: start; }
.next-head h2 { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 600; text-transform: uppercase; }
.next-lede { margin: 0; font: 400 1.12rem/1.6 var(--f-text); max-width: 32rem; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.6rem 2rem; }
.steps li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.step-n { font: 300 2.6rem/.9 var(--f-display); color: var(--red-text); font-variant-numeric: tabular-nums; }
.steps h3 { font-size: 1.35rem; font-weight: 600; text-transform: uppercase; letter-spacing: .02em; margin-bottom: .35rem; }
.steps p { margin: 0; color: var(--muted); font-size: .95rem; }
.next-note { grid-column: 1 / -1; margin: 0; font-size: .88rem; color: var(--muted); }
@media (max-width: 900px) {
  .upcoming .inner, .steps { grid-template-columns: minmax(0, 1fr); }
  .band nav a { width: auto; padding: 6px 10px; grid-auto-flow: column; align-items: baseline; gap: 6px; }
  .band nav a b { font-size: 1.05rem; }
  .band nav a.next { margin-top: 0; }
}


/* ---------- WordPress integration (plugin additions) ---------- */
body.vpnma { margin: 0; }
[hidden] { display: none !important; }
.admin-bar .band { top: 32px; }
@media (max-width: 782px) { .admin-bar .band { top: 46px; } }
@media (max-width: 600px) { .admin-bar .band { top: 0; } }

/* Edition intro, unfolded on demand */
.ed-intro { margin-top: 2rem; max-width: 46rem; }
.ed-intro summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: .6rem;
  font: 600 .86rem/1 var(--f-display); letter-spacing: .14em; text-transform: uppercase; color: var(--red-text);
  padding: .7rem 0; border-bottom: 1.5px solid currentColor;
}
.ed-intro summary::-webkit-details-marker { display: none; }
.ed-intro summary::after { content: "+"; font-size: 1.2rem; line-height: .6; }
.ed-intro[open] summary::after { content: "−"; }
.ed-intro p { font: 400 1.05rem/1.7 var(--f-text); margin: 1rem 0 0; }

/* Photos from the articles (vernissage, studio, gala) */
.ed-photos { margin-top: clamp(2.5rem, 5vw, 4rem); padding-top: clamp(2rem, 4vw, 3rem); border-top: 1px solid var(--line); }
.ed-photos .eyebrow { margin-bottom: 1rem; }
.photos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.photos a { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--stage-2); }
.photos img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease, filter .4s ease; }
.photos a:hover img { transform: scale(1.03); filter: brightness(.92); }
.spread-art .photos { grid-column: 1 / -1; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
.story .src a { color: var(--red-text); }

/* Exhibition panel thumbnail next to the artist statement */
.panel-link { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: .9rem; align-items: center; margin-top: 1.6rem; text-decoration: none; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.panel-link img { width: 92px; height: auto; box-shadow: 0 4px 12px rgba(40,20,22,.14); }
.panel-link span { font: 600 .8rem/1.3 var(--f-display); letter-spacing: .12em; text-transform: uppercase; color: var(--red-text); }
.panel-link:hover span { text-decoration: underline; }

/* Lightbox */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
/* Quick clicks on the arrows must not select the photo or the page behind; only the caption stays selectable. */
.lightbox { -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.lightbox figure > img, .lightbox-thumbs img { -webkit-user-drag: none; }
.lightbox figcaption { -webkit-user-select: text; user-select: text; }
.lightbox::backdrop { background: rgba(14, 10, 11, .96); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox figure { margin: 0; height: 100dvh; width: 100vw; box-sizing: border-box; padding: 64px 76px 16px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; }
.lightbox figure > img { flex: 0 1 auto; min-height: 0; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.lightbox figcaption { flex: none; max-width: 70ch; max-height: 32dvh; overflow-y: auto; color: #f3eeee; font: 400 .95rem/1.5 var(--f-text); text-align: left; }
.lightbox figcaption[hidden] { display: none; }
/* Gallery: square arrows like the page's buttons, inverted on the dark backdrop; current thumbnail framed in red. */
.lightbox-nav {
  position: fixed; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; display: grid; place-items: center; padding: 0; cursor: pointer;
  border: 1.5px solid #fff; background: rgba(14, 10, 11, .55); color: #fff; transition: background .2s ease, color .2s ease;
}
.lightbox-nav.prev { left: calc(14px + env(safe-area-inset-left, 0px)); }
.lightbox-nav.next { right: calc(14px + env(safe-area-inset-right, 0px)); }
.lightbox-nav:hover { background: #fff; color: var(--ink); }
.lightbox-nav[hidden], .lightbox-count[hidden], .lightbox-thumbs[hidden] { display: none; }
.lightbox-count { position: fixed; top: calc(24px + env(safe-area-inset-top, 0px)); left: calc(16px + env(safe-area-inset-left, 0px)); margin: 0; color: #fff; font: 600 .9rem/1 var(--f-display); letter-spacing: .14em; }
.lightbox-thumbs { flex: none; display: flex; gap: 8px; max-width: 100%; margin: 0; padding: 2px; list-style: none; overflow-x: auto; scrollbar-width: none; }
.lightbox-thumbs button { display: block; width: 64px; height: 48px; padding: 0; border: 2px solid transparent; background: none; cursor: pointer; opacity: .55; transition: opacity .2s ease; }
.lightbox-thumbs button:hover { opacity: 1; }
.lightbox-thumbs button[aria-current="true"] { border-color: var(--red); opacity: 1; }
.lightbox-thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; max-height: none; }
@media (max-width: 700px) {
  .lightbox figure { padding: 64px 12px 12px; }
  /* Phones: arrows sit on the photo's edges; swiping works too. */
  .lightbox-nav { width: 44px; height: 44px; }
  .lightbox-nav.prev { left: 6px; } .lightbox-nav.next { right: 6px; }
  .lightbox-thumbs button { width: 52px; height: 40px; }
}
.lightbox-close {
  position: fixed; top: calc(12px + env(safe-area-inset-top, 0px)); right: calc(12px + env(safe-area-inset-right, 0px));
  width: 44px; height: 44px; border: 0; border-radius: 50%; background: #fff; color: var(--ink); font: 400 1.8rem/1 var(--f-ui); cursor: pointer;
}
.more-photos { margin-top: 10px; }
.more-photos summary { list-style: none; cursor: pointer; display: inline-block; font: 600 .82rem/1 var(--f-display); letter-spacing: .12em; text-transform: uppercase; color: var(--ink); border: 1.5px solid var(--ink); padding: .7rem 1rem; margin-bottom: 10px; }
.more-photos summary::-webkit-details-marker { display: none; }
.more-photos summary:hover { background: var(--ink); color: var(--paper); }
.more-photos[open] summary { display: none; }

/* Edition in preparation: announced stories, progress steps */
@media (min-width: 561px) { .hang-more { display: none; } } /* only phones fold the works */
.hang .pending { display: block; break-inside: avoid; margin: 0 0 26px; }
.hang .pending .noimg, .hang > a .noimg { aspect-ratio: 3 / 4; }
.hang .pending .tag b { color: var(--ink); }
.hang .pending .tag span { display: block; color: var(--red-text); font: 600 .7rem/1.2 var(--f-display); letter-spacing: .14em; text-transform: uppercase; }
.ed-steps { margin-top: clamp(2.5rem, 5vw, 4rem); }
.ed-steps .steps-title { margin: .5rem 0 1.4rem; font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-weight: 600; text-transform: uppercase; }
.yr-row .soon { display: inline-flex; gap: .55rem; align-items: baseline; padding: .45rem .75rem; border: 1px dashed var(--line); color: var(--muted); font-size: .95rem; }
.yr-row .soon small { font: 600 .68rem/1 var(--f-display); letter-spacing: .14em; color: var(--red-text); }
.footer-links { display: flex; flex-wrap: wrap; gap: .6rem; }
.footer-links a {
  display: inline-flex; align-items: center; gap: .5rem; padding: .6rem .9rem; border: 1px solid var(--line); color: var(--ink); text-decoration: none;
  font: 600 .78rem/1 var(--f-display); letter-spacing: .12em; text-transform: uppercase; transition: border-color .2s ease, color .2s ease;
}
.footer-links a:first-child { text-transform: none; letter-spacing: .04em; font-size: .9rem; }
.footer-links a svg { color: var(--red-text); flex: none; }
.footer-links a:hover, .footer-links a:focus-visible { border-color: var(--red); color: var(--red-text); }
/* Phones: logo, sentence and contacts stacked and centred instead of a wrapped row */
@media (max-width: 600px) {
  footer .inner { flex-direction: column; text-align: center; gap: 1.4rem; }
  .footer-brand { flex-direction: column; gap: .8rem; max-width: 22rem; text-wrap: balance; }
  .footer-links { justify-content: center; }
}
body:has(.preview-badge) footer { padding-bottom: 5.5rem; } /* the editors' badge must not cover the contacts */
.artist-web { margin: 1rem 0 0; }
.artist-web a { font: 600 .8rem/1.3 var(--f-display); letter-spacing: .12em; text-transform: uppercase; color: var(--red-text); text-decoration: none; border-bottom: 1.5px solid currentColor; }

/* Short artist profile (medailón) next to the artwork */
.artist-card { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 1rem; align-items: center; margin-top: 1rem; }
.artist-card img { width: 96px; height: 96px; object-fit: cover; filter: grayscale(1); }
.artist-card.no-photo { grid-template-columns: minmax(0, 1fr); } /* no portrait: the name alone */
.artist-card .plain, .artist-card .by { margin: 0; }
/* The name reads like the artwork caption below: display face, upper case, a short red rule as its separator. */
.artist-card .plain { font: 600 1.3rem/1.15 var(--f-display); letter-spacing: .06em; text-transform: uppercase; }
.artist-card .plain::after { content: ""; display: block; width: 1.6rem; height: 2px; margin-top: .55rem; background: var(--red); }
.artist-card .by { margin-top: .5rem; }
.artist-bio { margin: 1.1rem 0 0; font: 400 1rem/1.65 var(--f-text); color: var(--stage-fg); }
/* What the finished work is about: in the artist's column, under the profile */
.artwork-about { margin-top: 2.2rem; }
.artwork-about p:not(.eyebrow) { margin: 1rem 0 0; font: 400 1rem/1.65 var(--f-text); color: var(--stage-fg); }
@media (min-width: 901px) {
  /* The artist's column runs beside the image and its caption, so the caption follows the image without a gap */
  /* The long column's extra height goes to an empty last row, not between the image and its caption */
  .spread-art .has-about { grid-template-rows: auto auto 1fr; }
  .spread-art .has-about .statement { grid-row: 1 / span 3; align-self: start; } /* level with the image, not centred down the long column */
  .spread-art .has-about .caption { grid-column: 2; grid-row: 2; }
}
.spread-art figure > a { display: block; cursor: zoom-in; }
/* Placeholder until the artwork is photographed: the subtle line poppy used for the page dividers */
.noimg { position: relative; background: var(--stage-2); }
.noimg::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; background: var(--ornament);
  -webkit-mask: url("../img/brand/poppy-line.png") no-repeat center 45% / 58% auto;
          mask: url("../img/brand/poppy-line.png") no-repeat center 45% / 58% auto;
}
.hang .tag span.read { display: block; color: var(--red-text); font: 600 .7rem/1.2 var(--f-display); letter-spacing: .14em; text-transform: uppercase; }
.spread-art figure .noimg { aspect-ratio: 3 / 4; width: min(100%, 420px); background-color: var(--paper); border: 1px dashed var(--line); }

/* Photos of the person, under their name in the story spread */
.hero-photos { margin-top: 1.8rem; max-width: 22rem; display: grid; gap: 8px; }
.hero-photos .lead { display: block; }
.hero-photos .lead img { width: 100%; height: auto; }
/* The person's photos are shown whole, as delivered, never cropped to a tile: two columns stacked like a wall. */
.hero-photos .photos { display: block; columns: 2; column-gap: 8px; }
.hero-photos .photos li { break-inside: avoid; margin-bottom: 8px; }
.hero-photos .photos a { aspect-ratio: auto; background: none; }
.hero-photos .photos img { height: auto; }
@media (max-width: 900px) { .hero-photos { max-width: none; } }
.noimg > span { position: absolute; left: 0; right: 0; bottom: 22%; text-align: center; font: 600 .82rem/1 var(--f-display); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }

/* ---------- Back up one section ---------- */
.to-prev {
  position: fixed; z-index: 55; right: calc(16px + env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  display: grid; place-items: center; width: 52px; height: 52px; padding: 0; border-radius: 50%; cursor: pointer;
  background: var(--paper); color: var(--red-text); border: 1.5px solid var(--red); box-shadow: 0 4px 16px rgba(0,0,0,.12);
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.to-prev:hover, .to-prev:focus-visible { background: var(--red); color: var(--on-red); transform: translateY(-2px); }

/* ---------- Preview badge (microsite visible to editors only) ---------- */
.preview-badge {
  position: fixed; z-index: 60; left: calc(var(--band) + 12px); bottom: 12px; display: inline-flex; align-items: center; gap: .6rem;
  padding: .55rem .8rem; background: var(--ink); color: var(--paper); text-decoration: none; box-shadow: 0 4px 16px rgba(0,0,0,.18);
  font: 400 .85rem/1.2 var(--f-display); letter-spacing: .02em;
}
.preview-badge b { background: var(--red); color: var(--on-red); padding: .2rem .45rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; font-size: .72rem; }
@media (max-width: 380px) {
  .band-logo span { display: none; } /* 375px phones: the poppy alone, so all three years fit beside Facebook and the menu */
}
/* Lower screens (laptops): the side band tightens up so the years, all links and Facebook still fit */
@media (min-width: 901px) and (max-height: 860px) {
  .band { gap: .7rem; padding-top: 12px; padding-bottom: 12px; }
  .band-logo img { width: 44px; }
  .band nav a { padding: 5px 0; }
  .band nav a b { font-size: 1.1rem; }
  .band .band-links { gap: 4px; }
  .band .band-links a { padding: 3px 0; letter-spacing: .1em; }
  .band-fb { width: 38px; height: 38px; }
}
/* PAY by square in the support section: Milan's transparent PNG as it is (checked: it scans on the red too) */
.way-qr img { display: block; width: 168px; height: auto; margin: .4rem 0 .9rem; }

/* Mená osôb s titulmi a hodnosťami bez veľkých písmen (MgA., pplk. v. v.) */
.artist-card .plain, .to-art b, .caption .cap-artist, .story-nav .pg b { text-transform: none; letter-spacing: .01em; }

/* Pohľady na dielo (predná, zadná strana, detaily): pás náhľadov priamo pod obrazom, klik prepne veľký obraz */
.spread-art figure.has-views { gap: 14px; }
.spread-art figure.has-views .art-main { cursor: zoom-in; }
.spread-art figure.has-views .art-main img { transition: opacity .28s ease; }
.spread-art figure.has-views.swapping .art-main img { opacity: .12; }
.spread-art .art-views { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.spread-art .art-views li { width: 64px; }
.spread-art .art-views a { aspect-ratio: 1; opacity: .55; outline: 2px solid transparent; outline-offset: 3px; transition: opacity .2s ease, outline-color .2s ease; }
.spread-art .art-views a:hover, .spread-art .art-views a:focus-visible { opacity: 1; }
.spread-art .art-views a[aria-current="true"] { opacity: 1; outline-color: var(--red); }
.spread-art .art-views a:hover img { transform: none; filter: none; }

/* Popiska diela: viac vzduchu medzi názvom, autorom a technikou */
.caption { padding: .95rem 1.5rem; gap: .5rem 1.6rem; }
.caption .sep { padding: 0 .8rem; }
/* Photo credit for an artist portrait (required by the photographer) */
.artist-card .portrait-credit { margin: .35rem 0 0; font: 400 .78rem/1.3 var(--f-ui); color: var(--stage-muted); }
