@import url("fonts.css");

/* ============================================================
   Plumbing only. Nothing here is a design decision — no colour,
   no typeface, no layout. Each site writes its own visual system
   on top; this file only carries the things that must be right
   on every site and are invisible when they are.
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* A sideways-scrollable page drags position:fixed elements out of view on
     phones. Clip rather than scroll. (clip, not hidden: hidden would make html
     a scroll container and break scroll-padding and sticky.) */
  overflow-x: clip;
}

body { margin: 0; }
/* Lock scrolling on the ROOT, not on body. html already has overflow-x:clip,
   so overflow:hidden on body turns body into its own scroll container — a
   position:sticky header then sticks to body and is thrown off-screen (with
   its close button) when the menu opens after scrolling. site.js puts
   .is-locked on <html> directly; a :has() selector was tried first and its
   style invalidation visibly lagged behind the menu opening. */
html.is-locked { overflow: hidden; }
/* [hidden] must win. A rule like `.gallery-more { display:flex }` outranks the
   browser's own `[hidden] { display:none }`, which left an empty "Show 0 more"
   button on screen whenever a gallery had nothing further to reveal. */
[hidden] { display: none !important; }

img, svg, video { max-width: 100%; height: auto; display: block; }
button { font: inherit; color: inherit; }
/* A <button> inherits the user agent's grey `buttonface` unless something says
   otherwise. An outline/ghost button that sets only border-color and color then
   renders as light-grey with (often white) text on it — invisible. Reset here;
   any variant that wants a fill sets one and wins on specificity. */
button { background: transparent; }
ul, ol { margin: 0; padding: 0; }
h1, h2, h3, h4, h5, h6 { margin: 0; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

.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;
}

/* Reveal-on-scroll. The JS failsafe shows everything if the observer
   never runs, so content can never be stranded invisible. */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease, ease), transform .7s var(--ease, ease); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

@media print {
  .site-header, .lightbox, .skip-link, .gallery-more, .filters, .map-consent, .callbar { display: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  body { background: #fff !important; color: #000 !important; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .75em; color: #555; }
}

/* =====================================================================
   Reborn Project Gallery — "white gallery"
   Paper white, ink, hairlines and generous space; photographs in justified
   rows at their true proportions, no captions.
   Source Serif 4 (light) + Noto Sans Display.
   ===================================================================== */
:root {
  --paper: #faf9f6;
  --white: #ffffff;
  --ink: #1b1a17;
  --ink-2: #3b3934;
  --mute: #6b675f;
  --line: #e4e0d8;
  --wood: #8a5a33;
  --serif: "Source Serif 4", "Iowan Old Style", Georgia, serif;
  --sans: "Noto Sans Display", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --header-h: 92px;
  --gap: clamp(8px, 1vw, 14px);
}

html { scroll-padding-top: calc(var(--header-h) + 16px); }
body { font: 400 1.04rem/1.78 var(--sans); color: var(--ink-2); background: var(--paper); -webkit-font-smoothing: antialiased; font-kerning: normal; }
h1, h2, h3 { font-family: var(--serif); font-weight: 300; color: var(--ink); letter-spacing: -.012em; line-height: 1.08; text-wrap: balance; }
h1 { font-size: clamp(2.8rem, 7vw, 6.2rem); }
h2 { font-size: clamp(2rem, 4vw, 3.3rem); }
h3 { font-size: 1.5rem; }
em { font-style: italic; }
a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: .22em; }
a:hover { color: var(--wood); }
p { text-wrap: pretty; }
.wrap { width: min(1320px, 100% - 2 * clamp(20px, 5vw, 64px)); margin-inline: auto; }
.muted { color: var(--mute); }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--paper); padding: .6rem 1rem; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 1px solid var(--ink); outline-offset: 4px; }
::selection { background: var(--ink); color: var(--paper); }

.label { display: flex; align-items: baseline; gap: .9rem; margin: 0 0 1.4rem; font: 500 .72rem/1.4 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--mute); }
.label .num { font-family: var(--serif); font-size: .95rem; letter-spacing: 0; font-style: italic; color: var(--ink); }
.label .num::after { content: ""; display: inline-block; width: 36px; height: 1px; margin-left: .9rem; vertical-align: middle; background: var(--line); }
.lede { font: 300 clamp(1.2rem, 1.9vw, 1.5rem)/1.55 var(--serif); color: var(--ink); }

.arrow-link { display: inline-flex; align-items: center; gap: .8rem; font: 500 .76rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--ink); text-decoration: none; padding: .5rem 0; }
.arrow-link i { position: relative; display: inline-block; width: 34px; height: 1px; background: currentColor; transition: width .4s var(--ease); }
.arrow-link i::after { content: ""; position: absolute; right: 0; top: -3px; width: 7px; height: 7px; border-top: 1px solid currentColor; border-right: 1px solid currentColor; transform: rotate(45deg); }
.arrow-link:hover { color: var(--wood); }
.arrow-link:hover i { width: 54px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--paper); transition: box-shadow .3s; }
.site-header.is-stuck { box-shadow: 0 1px 0 var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: .95rem; text-decoration: none; color: var(--ink); }
.brand-mark { flex: none; width: 52px; height: 52px; }
.brand-logo { display: block; width: 134px; height: auto; }
.brand:hover { color: var(--ink); }
.wordmark { display: inline-flex; flex-direction: column; gap: .35rem; }
.wm-name { font: 400 1.32rem/1 var(--serif); letter-spacing: .01em; }
.wm-sub { font: 500 .62rem/1 var(--sans); letter-spacing: .28em; text-transform: uppercase; color: var(--mute); }
.nav { display: flex; align-items: center; gap: clamp(1.2rem, 2.6vw, 2.6rem); }
.nav a { font: 400 .92rem/1 var(--sans); letter-spacing: .02em; color: var(--ink-2); text-decoration: none; padding: .5rem 0; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .4s var(--ease), color .2s; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); background-size: 100% 1px; }
.nav .lang { font-size: .78rem; letter-spacing: .14em; padding: .45rem .7rem; border: 1px solid var(--line); background: none; }
.nav .lang:hover { border-color: var(--ink); }
.nav-toggle { display: none; width: 44px; height: 44px; border: 0; position: relative; cursor: pointer; }
.nav-toggle span, .nav-toggle span::before { position: absolute; left: 50%; width: 24px; height: 1px; margin-left: -12px; background: var(--ink); transition: transform .35s var(--ease); }
.nav-toggle span { top: 19px; }
.nav-toggle span::before { content: ""; left: 0; margin: 0; top: 7px; }
.is-open .nav-toggle span { transform: translateY(3.5px) rotate(45deg); }
.is-open .nav-toggle span::before { transform: translateY(-7px) rotate(-90deg); }
@media (max-width: 860px) {
  :root { --header-h: 76px; }
  .wm-name { font-size: 1.15rem; }
  .brand { gap: .75rem; }
  .brand-mark { width: 44px; height: 44px; }
  .nav-toggle { display: block; }
  .nav { position: fixed; inset: var(--header-h) 0 0; flex-direction: column; align-items: flex-start; gap: 0; padding: 2rem clamp(20px, 5vw, 64px); background: var(--paper); opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
  .nav a { font: 300 2.3rem/1.2 var(--serif); padding: .55rem 0; letter-spacing: -.01em; background: none; }
  .nav a[aria-current="page"] { font-style: italic; }
  .nav .lang { margin-top: 2rem; font: 500 .8rem/1 var(--sans); letter-spacing: .2em; padding: .7rem 1rem; }
  .is-open .nav { opacity: 1; visibility: visible; }
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(72px, 11vw, 160px); border-top: 1px solid var(--line); }
.section-top { display: grid; gap: .2rem; margin-bottom: clamp(32px, 4vw, 56px); }
.section-top .label { margin-bottom: 1rem; }
.section-more { margin: clamp(28px, 3vw, 44px) 0 0; display: flex; justify-content: flex-end; }

/* ---------- Photos ---------- */
.tile { display: block; position: relative; width: 100%; padding: 0; border: 0; overflow: hidden; cursor: zoom-in; background: #eeebe5; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease), opacity .6s; }
.tile:hover img { transform: scale(1.025); }
.tile:focus-visible { outline-offset: 3px; }

/* Justified rows: every photo keeps its proportions; widths grow in step so each
   row ends flush on both sides; the last row is not stretched. */
.just { display: flex; flex-wrap: wrap; gap: var(--gap); --h: clamp(150px, 21vw, 330px); }
.just::after { content: ""; flex-grow: 1000000; }
.just .tile { height: auto; }
.just .r56 { flex: 56.25 1 calc(var(--h) * .5625); aspect-ratio: 9 / 16; }
.just .r67 { flex: 66.67 1 calc(var(--h) * .6667); aspect-ratio: 2 / 3; }
.just .r75 { flex: 75 1 calc(var(--h) * .75); aspect-ratio: 3 / 4; }
.just .r80 { flex: 80 1 calc(var(--h) * .8); aspect-ratio: 4 / 5; }
.just .r100 { flex: 100 1 var(--h); aspect-ratio: 1; }
.just .r150 { flex: 150 1 calc(var(--h) * 1.5); aspect-ratio: 3 / 2; }
.gallery-block .just { --h: clamp(150px, 24vw, 380px); }
/* with justify.js: exact sizes per row, no flex growth */
.just.is-justified .tile { flex: none; aspect-ratio: auto; }
.just.is-justified::after { display: none; }
/* home: six portrait works, an even grid at every width */
.works-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.works-grid .tile { aspect-ratio: 2 / 3; }
@media (max-width: 600px) { .works-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.gallery-block + .gallery-block { border-top: 1px solid var(--line); }

.bleed { margin: 0; }
.bleed .tile { aspect-ratio: 21 / 9; max-height: 84vh; cursor: zoom-in; }
@media (max-width: 700px) { .bleed .tile { aspect-ratio: 4 / 3; } }

/* ---------- Home ---------- */
.intro { padding-block: clamp(56px, 10vw, 150px) clamp(40px, 6vw, 80px); }
.intro h1 { max-width: 14ch; margin-bottom: clamp(28px, 4vw, 56px); }
.intro h1 em { display: block; color: var(--mute); font-weight: 300; }
.intro-foot { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 2rem clamp(32px, 6vw, 96px); align-items: end; }
.intro-foot .lede { max-width: 40ch; margin: 0; }
.intro-links { display: flex; flex-direction: column; align-items: flex-start; gap: .4rem; justify-self: end; }

.statement { text-align: center; border-top: 0; }
.statement blockquote { margin: 0 auto; }
.statement blockquote p { font: 300 italic clamp(1.8rem, 3.8vw, 3.2rem)/1.25 var(--serif); color: var(--ink); max-width: 24ch; margin: 0 auto 1.6rem; }
.statement footer { font: 500 .72rem/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--mute); }

.materials { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.materials li { padding: clamp(22px, 2.5vw, 34px) clamp(0px, 2vw, 32px) 0 0; }
.materials li + li { padding-left: clamp(16px, 2vw, 32px); border-left: 1px solid var(--line); }
.materials h3 { font-size: clamp(1.9rem, 3vw, 2.6rem); margin-bottom: .9rem; }
.materials p { margin: 0; color: var(--mute); max-width: 26ch; }

.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(36px, 7vw, 120px); align-items: center; }
.split-media .tile { aspect-ratio: 2 / 3; }
.split-text h2 { margin-bottom: 1.6rem; }
.split-text .lede { margin-bottom: 1.4rem; }
.split-text p { max-width: 54ch; }

.space { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(36px, 6vw, 100px); align-items: start; }
.space-text { position: sticky; top: calc(var(--header-h) + 40px); }
.space-text h2 { margin-bottom: 1.4rem; }
.space-media { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--gap); }
.space-media .space-1 { grid-row: span 2; aspect-ratio: auto; height: 100%; }
.space-media .space-2, .space-media .space-3 { aspect-ratio: 4 / 5; }

.visit-band h2 { max-width: 18ch; margin-bottom: clamp(32px, 4vw, 56px); }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--ink); margin-bottom: 2rem; }
.facts > div { padding: 1.4rem 1.5rem 0 0; }
.facts > div + div { padding-left: 1.5rem; border-left: 1px solid var(--line); }
.facts .label { margin-bottom: .6rem; }
.facts p { margin: 0; color: var(--ink); }

/* ---------- Page heads ---------- */
.page-head { padding-block: clamp(56px, 9vw, 130px) clamp(40px, 6vw, 80px); }
.page-head h1 { margin-bottom: clamp(20px, 3vw, 36px); }
.page-head .lede { max-width: 46ch; margin: 0; }
.page-head--split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.5rem clamp(32px, 6vw, 96px); align-items: end; }
.page-head--split h1 { margin: 0; }
.page-head--split .lede { margin-bottom: 1.2rem; }
.page-head--split p:last-child { color: var(--mute); margin: 0; max-width: 52ch; }
.gallery-block { padding-bottom: clamp(72px, 10vw, 140px); }
.page-head + .gallery-block { padding-top: 0; }

/* ---------- The artist ---------- */
.artist-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(36px, 7vw, 120px); align-items: end; padding-block: clamp(48px, 8vw, 110px) clamp(72px, 10vw, 140px); }
.artist-head h1 { margin-bottom: clamp(24px, 3vw, 40px); }
.artist-head .lede { max-width: 44ch; margin: 0; }
.artist-head-media { margin: 0; }
.artist-head-media .tile { aspect-ratio: 3 / 4; }
.bio { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(36px, 7vw, 120px); align-items: start; }
.bio-text p { font-size: 1.1rem; max-width: 58ch; }
.bio-text p:first-child::first-letter { float: left; font: 300 4.4em/.78 var(--serif); color: var(--ink); margin: .06em .12em 0 0; }
.bio-quote { margin: 0; padding-left: clamp(20px, 3vw, 40px); border-left: 1px solid var(--ink); position: sticky; top: calc(var(--header-h) + 40px); }
.bio-quote p { font: 300 italic clamp(1.6rem, 2.8vw, 2.4rem)/1.3 var(--serif); color: var(--ink); margin: 0; }
.words-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); }
.words-grid blockquote { margin: 0; padding-top: 1.6rem; border-top: 1px solid var(--ink); }
.words-grid p { font: 300 clamp(1.4rem, 2.3vw, 2rem)/1.35 var(--serif); color: var(--ink); margin: 0; }
.article-head { max-width: 900px; margin: 0 auto clamp(40px, 6vw, 80px); text-align: center; }
.article-head .label { justify-content: center; }
.article-head h2 { font-style: italic; margin-bottom: clamp(24px, 3vw, 40px); }
.article-head .lede { max-width: 56ch; margin: 0 auto; }
.article-body { max-width: 760px; margin: 0 auto; }
.article-part { margin-bottom: clamp(36px, 4vw, 56px); }
.article-part h3 { font-size: clamp(1.45rem, 2.2vw, 1.85rem); margin-bottom: .9rem; }
.article-part p { font-size: 1.08rem; margin: 0; }
.article-figure { margin: 0 calc(-1 * clamp(0px, 8vw, 140px)) clamp(36px, 4vw, 56px); }
.article-figure .tile { aspect-ratio: 16 / 10; }
.article-credit { max-width: 760px; margin: clamp(20px, 3vw, 40px) auto 0; padding-top: 1.2rem; border-top: 1px solid var(--line); font: 400 .9rem/1.5 var(--sans); color: var(--mute); }

/* ---------- Visit ---------- */
.visit { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(36px, 7vw, 120px); align-items: start; padding-block: clamp(48px, 8vw, 110px) clamp(72px, 10vw, 140px); }
.visit h1 { margin-bottom: clamp(20px, 3vw, 36px); }
.visit .lede { max-width: 38ch; margin-bottom: clamp(32px, 4vw, 56px); }
.visit-list { margin: 0; border-top: 1px solid var(--ink); }
.visit-list > div { display: grid; grid-template-columns: minmax(0, 11rem) minmax(0, 1fr); gap: 1rem; padding: 1.05rem 0; border-bottom: 1px solid var(--line); }
.visit-list dt { font: 500 .72rem/1.9 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--mute); }
.visit-list dd { margin: 0; color: var(--ink); overflow-wrap: anywhere; }
.visit-list .arrow-link { margin-top: .4rem; }
.visit-media { margin: 0; position: sticky; top: calc(var(--header-h) + 32px); }
.visit-media .tile { aspect-ratio: 9 / 14; }
.map-frame { position: relative; aspect-ratio: 21 / 9; background: #eeebe5; overflow: hidden; }
.map-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(.9) contrast(1.05); }
.map-consent { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; padding: 2rem; text-align: center; color: var(--mute); }
.map-consent p { margin: 0; }
.map-btn { font: 500 .74rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--ink); padding: 1rem 1.4rem; border: 1px solid var(--ink); cursor: pointer; transition: background-color .3s, color .3s; }
.map-btn:hover { background: var(--ink); color: var(--paper); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--ink); padding: clamp(48px, 7vw, 96px) 0 2rem; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 2rem clamp(24px, 4vw, 64px); }
.footer-col p { margin: 0 0 .35rem; color: var(--ink); overflow-wrap: anywhere; }
.footer-col .label { margin-bottom: .9rem; }
.footer-col .muted { color: var(--mute); }
.footer-col a { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .4s var(--ease); }
.footer-col a:hover { color: var(--ink); background-size: 100% 1px; }
.colophon { display: flex; justify-content: space-between; align-items: center; gap: 1rem 2rem; flex-wrap: wrap; margin-top: clamp(40px, 6vw, 80px); padding-top: 1.4rem; border-top: 1px solid var(--line); font-size: .8rem; color: var(--mute); }
.colophon nav { display: flex; gap: 1.6rem; flex-wrap: wrap; }
.colophon a { color: var(--mute); text-decoration: none; }
.colophon a:hover { color: var(--ink); }

/* ---------- Lightbox (no captions) ---------- */
.lightbox { position: fixed; inset: 0; z-index: 200; display: none; background: rgba(250, 249, 246, .98); opacity: 0; transition: opacity .35s var(--ease); }
.lightbox.is-open { display: block; }
.lightbox.is-visible { opacity: 1; }
.lb-stage { position: absolute; inset: 0; display: grid; place-items: center; padding: 72px 96px; }
.lb-figure { margin: 0; display: grid; place-items: center; max-width: 100%; max-height: 100%; }
.lb-img { max-width: min(1500px, 100%); max-height: calc(100vh - 144px); width: auto; height: auto; object-fit: contain; transition: opacity .3s; }
.lb-img.is-loading { opacity: .25; }
.lb-caption { display: none !important; }
.lb-counter { position: absolute; top: 28px; left: clamp(20px, 5vw, 64px); margin: 0; font: 500 .72rem/1 var(--sans); letter-spacing: .22em; color: var(--mute); font-variant-numeric: tabular-nums; }
.lb-btn { position: absolute; width: 52px; height: 52px; border: 0; display: grid; place-items: center; cursor: pointer; color: var(--ink); }
.lb-btn svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1; }
.lb-btn:hover { color: var(--wood); }
.lb-btn[disabled] { opacity: .2; }
.lb-prev { left: clamp(8px, 2vw, 28px); top: 50%; margin-top: -26px; }
.lb-next { right: clamp(8px, 2vw, 28px); top: 50%; margin-top: -26px; }
.lb-close { top: 14px; right: clamp(8px, 2vw, 28px); }
@media (max-width: 700px) { .lb-stage { padding: 64px 8px 96px; } .lb-prev, .lb-next { top: auto; bottom: 22px; margin: 0; } .lb-prev { left: calc(50% - 64px); } .lb-next { right: calc(50% - 64px); } }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .materials { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .materials li:nth-child(3) { padding-left: 0; border-left: 0; }
  .materials li:nth-child(n+3) { margin-top: 2rem; border-top: 1px solid var(--line); }
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
  .article-figure { margin-inline: 0; }
}
@media (max-width: 860px) {
  .intro-foot, .split, .space, .page-head--split, .artist-head, .bio, .visit, .words-grid { grid-template-columns: minmax(0, 1fr); }
  .intro-links { justify-self: start; }
  .space-text, .bio-quote, .visit-media { position: static; }
  .split-media { max-width: 460px; }
  .artist-head-media { max-width: 520px; }
  .facts { grid-template-columns: minmax(0, 1fr); }
  .facts > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); margin-top: 1.2rem; }
  .map-frame { aspect-ratio: 4 / 3; }
}
@media (max-width: 600px) {
  body { font-size: 1rem; }
  .just, .gallery-block .just { --h: 118px; }
  .materials { grid-template-columns: minmax(0, 1fr); }
  .materials li + li { padding-left: 0; border-left: 0; margin-top: 1.6rem; border-top: 1px solid var(--line); }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .visit-list > div { grid-template-columns: minmax(0, 1fr); gap: .2rem; }
  .space-media .space-1 { grid-row: auto; grid-column: span 2; aspect-ratio: 4 / 5; height: auto; }
}
