:root {
  color-scheme: dark;
  --paper: #0b0c0f;
  --surface: #111216;
  --ink: #f2ede4;
  --muted: #a5a5a4;
  --line: #37383d;
  --accent: #f01886;
  --action: #d60b77;
  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'Golos Text', 'Segoe UI', Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; display: flex; flex-direction: column; height: 100vh; height: 100dvh; overflow: hidden; background: var(--paper); color: var(--ink); font: 14px/1.5 var(--sans); }
body.modal-open { overflow: hidden; }
button, a, summary { -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible, canvas:focus-visible, input:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
svg { width: 20px; height: 20px; flex: none; }
.svg-library { position: absolute; width: 0; height: 0; overflow: hidden; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
h1, h2, h3, p { margin: 0; }
.eyebrow { display: flex; align-items: center; gap: 8px; font-size: 9px; font-weight: 650; letter-spacing: .14em; line-height: 1.4; text-transform: uppercase; }
.accent { color: var(--accent); }
.status-dot { width: 5px; height: 5px; border-radius: 0; background: var(--accent); }
.small-rule { width: 16px; height: 1px; background: var(--accent); opacity: .65; }

/* The page frame stays quiet; the exhibition takes the remaining height. */
.masthead { flex: none; border-bottom: 1px solid var(--line); }
.masthead-inner, .exhibition { width: 100%; max-width: 1760px; margin-inline: auto; padding-inline: clamp(20px, 2.5vw, 48px); }
.masthead-inner { min-height: 68px; display: grid; grid-template-columns: minmax(190px, 1fr) auto minmax(80px, 1fr); align-items: center; gap: 22px; }
.brand { display: inline-flex; align-items: center; gap: 10px; width: fit-content; white-space: nowrap; }
.brand-mark { width: 31px; height: 31px; display: grid; place-items: center; border: 1px solid transparent; background: var(--accent); color: var(--accent); clip-path: inset(5px); }
.brand-mark svg { display: none; width: 29px; height: 29px; }
.brand-name { font: 650 23px/1.1 var(--sans); letter-spacing: -.02em; }
.catalog-link { justify-self: end; display: inline-flex; align-items: center; gap: 5px; min-height: 44px; white-space: nowrap; font-size: 12px; color: var(--muted); }
.catalog-link:hover { color: var(--ink); }
.catalog-link svg { width: 15px; height: 15px; transform: rotate(180deg); }
.room-nav { min-width: 0; display: flex; align-items: center; gap: 4px; }
.room-nav .room-link { display: inline-flex; align-items: center; gap: 7px; min-height: 68px; padding: 3px 13px; border-bottom: 2px solid transparent; white-space: nowrap; color: var(--muted); font-size: 12px; transition: color .15s, border-color .15s; }
.room-nav .room-link:hover { color: var(--ink); }
.room-nav .room-link[aria-current]:not([aria-current="false"]) { color: var(--ink); border-bottom-color: var(--accent); }
.room-nav-number { color: var(--accent); font-size: 9px; font-weight: 600; letter-spacing: .05em; }
.exhibition { display: flex; flex: 1; flex-direction: column; min-height: 0; padding-top: 16px; }
.exhibition > :not(.gallery-stage) { flex: none; }

/* One toolbar, also available inside the fullscreen stage. */
.gallery-stage { display: flex; flex: 1; flex-direction: column; min-height: 0; }
.gallery-toolbar { position: relative; z-index: 3; display: flex; flex: none; justify-content: space-between; align-items: center; gap: 16px; min-height: 60px; padding: 8px 16px; border: 1px solid var(--line); border-bottom: 0; border-radius: 2px 2px 0 0; background: var(--surface); }
.toolbar-context { min-width: 0; display: flex; align-items: center; gap: 21px; }
.room-caption { display: flex; align-items: center; gap: 10px; min-width: 0; }
.room-caption-number { color: var(--accent); font-size: 10px; font-weight: 600; letter-spacing: .09em; }
.room-caption h1 { font: 600 25px/1.05 var(--sans); letter-spacing: -.015em; white-space: nowrap; }
.works-menu { position: relative; }
.works-summary { display: flex; align-items: center; gap: 9px; min-height: 40px; padding: 5px 2px; list-style: none; cursor: pointer; color: var(--muted); font-size: 12px; white-space: nowrap; }
.works-summary::-webkit-details-marker { display: none; }
.works-summary:hover, .works-menu[open] .works-summary { color: var(--ink); }
.works-count { display: grid; place-items: center; min-width: 20px; height: 20px; padding-inline: 4px; border: 1px solid var(--line); border-radius: 50%; color: var(--muted); font-size: 10px; }
.works-chevron { width: 12px; height: 12px; transform: rotate(90deg); transition: transform .16s; }
.works-menu[open] .works-chevron { transform: rotate(-90deg); }
[data-room="forest"] [data-for-room]:not([data-for-room="forest"]),
[data-room="workshop"] [data-for-room]:not([data-for-room="workshop"]),
[data-room="portraits"] [data-for-room]:not([data-for-room="portraits"]),
[data-room="credits"] [data-for-room]:not([data-for-room="credits"]) { display: none !important; }
.shots-nav { position: absolute; z-index: 6; top: calc(100% + 8px); left: -12px; display: flex; flex-direction: column; gap: 2px; width: min(330px, calc(100vw - 48px)); max-height: min(480px, calc(100dvh - 210px)); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; padding: 7px; border: 1px solid var(--line); border-radius: 2px; background: var(--surface); box-shadow: 0 14px 38px #00000066; }
.shot-link { min-height: 44px; display: flex; align-items: center; gap: 12px; padding: 7px 11px; border: 1px solid transparent; border-radius: 2px; font-size: 12px; }
.shot-link:hover { background: color-mix(in srgb, var(--ink) 5%, transparent); }
.shot-link[aria-current="true"] { background: color-mix(in srgb, var(--accent) 9%, var(--surface)); border-color: color-mix(in srgb, var(--accent) 22%, var(--line)); }
.shot-link svg { width: 14px; height: 14px; margin-left: auto; color: var(--muted); }
.shot-number { color: var(--accent); font-size: 10px; font-weight: 600; letter-spacing: .04em; }
.shot-featured-title { line-height: 1.3; }
.shot-featured-short { display: none; }
.gallery-tools { display: flex; flex: none; align-items: center; gap: 6px; }
.gallery-tools button { display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 40px; padding: 6px 11px; border: 1px solid transparent; border-radius: 2px; background: transparent; color: var(--muted); font-size: 12px; white-space: nowrap; }
.gallery-tools button:hover { color: var(--ink); background: color-mix(in srgb, var(--ink) 5%, transparent); }
.gallery-tools svg { width: 17px; height: 17px; }
.gallery-tools .sound-button { border-color: var(--line); }
.gallery-tools .fullscreen-button { padding-inline: 14px; border-color: var(--action); background: var(--action); color: #fff7fc; }
.gallery-tools .fullscreen-button:hover { background: color-mix(in srgb, var(--action) 90%, black); color: #fff7fc; }
.gallery-stage:is(:fullscreen, .is-expanded) { width: 100%; height: 100%; padding: 0; background: var(--paper); }
.gallery-stage.is-expanded { position: fixed; inset: 0; z-index: 10; }
.gallery-stage:is(:fullscreen, .is-expanded) .gallery-toolbar { padding-inline: 20px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; }
.gallery-stage:is(:fullscreen, .is-expanded) .gallery { border: 0; border-radius: 0; }
.gallery-stage:is(:fullscreen, .is-expanded) .wall-controls { margin: 0; border-inline: 0; border-bottom: 0; border-radius: 0; }

.gallery { position: relative; flex: 1; min-height: 0; overflow: hidden; isolation: isolate; border: 1px solid var(--line); border-radius: 0 0 2px 2px; background: #0b0c0f; }
.gallery-view { height: 100%; background: #0b0c0f; }
.room-transition { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; pointer-events: none; background: #0b0c0f; color: #f2ede4; transition: opacity .26s ease-out; }
.room-transition.is-visible { opacity: 1; pointer-events: auto; transition: opacity .14s ease-in; }
.transition-label { display: grid; justify-items: center; gap: 8px; padding: 16px; text-align: center; }
.transition-number { color: #f01886; font-size: 11px; font-weight: 650; letter-spacing: .16em; text-transform: uppercase; }
.transition-name { font: 600 clamp(26px, 5vw, 54px)/1.05 var(--sans); }
@media (prefers-reduced-motion: reduce) { .room-transition, .room-transition.is-visible, .works-chevron, .room-nav .room-link { transition: none; } }
#gallery-canvas { width: 100%; height: 100%; display: block; touch-action: none; cursor: grab; }
#gallery-canvas:active { cursor: grabbing; }
#gallery-canvas:focus-visible { outline-offset: -3px; }
.scene-fallback { position: relative; display: block; width: 100%; height: 100%; background: #0b0c0f; }
.scene-fallback img { width: 100%; height: 100%; object-fit: contain; display: block; }
.scene-fallback span { position: absolute; top: 16px; left: 16px; padding: 5px 10px; background: var(--surface); font-size: 13px; }
.no-scene .scene-only { display: none !important; }
body:not(.no-scene) .fallback-only { display: none; }
.seat-button { position: absolute; left: 16px; bottom: 16px; display: flex; align-items: center; gap: 8px; min-height: 42px; padding: 5px 12px; border: 1px solid var(--line); border-radius: 2px; background: var(--surface); font-size: 12px; box-shadow: 0 6px 20px #00000066; touch-action: manipulation; }
.seat-button:hover { background: color-mix(in srgb, var(--ink) 5%, var(--surface)); }
.seat-button svg { width: 17px; height: 17px; }
[data-room="portraits"] .seat-help, [data-room="credits"] .seat-help { display: none; }
.sound-hint { position: absolute; top: 16px; left: 16px; max-width: min(310px, calc(100% - 32px)); padding: 8px 11px; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 2px; font-size: 11px; pointer-events: none; }



.gallery-controls { position: absolute; right: 16px; bottom: 16px; display: grid; justify-items: end; gap: 9px; }
.plan { width: 104px; padding: 9px; background: var(--surface); border: 1px solid #37383d; border-radius: 2px; box-shadow: 0 6px 20px #00000066; }
.plan .eyebrow { justify-content: center; font-size: 8px; letter-spacing: .11em; margin-bottom: 8px; }
.plan-room { height: 65px; position: relative; background: #16171c; border: 1px solid #666770; border-bottom: 0; }
.plan-room::after { content: ''; position: absolute; inset: auto 0 0; height: 1px; background: linear-gradient(to right, #666770 39%, transparent 39% 60%, #666770 60%); }
.plan-stop { position: absolute; display: grid; place-items: center; width: 18px; height: 18px; padding: 0; background: var(--surface); border: 1px solid #5b5c63; border-radius: 2px; color: var(--ink); font-size: 8px; font-weight: 800; z-index: 1; }
.plan-stop:hover, .plan-stop:focus-visible { background: #30202c; }
.stop-center { top: 1px; left: 50%; transform: translateX(-50%); border-color: var(--accent); }
.stop-left { top: 41%; left: 0; }
.stop-right { top: 31%; right: 0; }
.stop-bubbles, .stop-kentavr, .stop-aug, .stop-astro, .plan-portal { top: 1px; transform: translateX(-50%); }
.stop-bubbles { left: 24%; }
.stop-kentavr { left: 78%; }
.stop-barrels { top: 24%; right: 1px; }
.stop-aug { left: 26%; }
.stop-astro { left: 74%; }
.stop-abut { left: -8px; top: 67%; }
.stop-digital-makeup { right: -8px; top: 67%; }
.stop-fufu { right: -8px; top: 57%; }
.plan-to-credits { left: -8px; top: 14%; }
.plan-portal { position: absolute; display: grid; place-items: center; width: 18px; height: 18px; border: 1px dashed var(--accent); border-radius: 2px; background: var(--surface); color: var(--accent); font-size: 12px; font-weight: 700; line-height: 1; z-index: 1; }
.plan-portal:hover, .plan-portal:focus-visible { background: #30202c; }
.plan-to-workshop { left: 88%; }
.plan-to-forest { left: 50%; }
.plan-to-portraits { left: -7px; top: max(1px, calc(10% - 9px)); transform: none; }
.plan-from-portraits { right: -7px; top: max(1px, calc(15.4% - 9px)); transform: none; }
[data-room="portraits"] .plan-room::after { background: #666770; }
.plan-bench { position: absolute; top: 32.7%; width: 17.2%; height: 3.7%; background: #55565e; transform: translate(-50%, -50%); }
.plan-bench-left { left: 29.9%; }
.plan-bench-right { left: 70.1%; }
.plan-position { position: absolute; left: var(--map-x, 39%); top: var(--map-y, 75%); width: 12px; height: 12px; background: var(--accent); clip-path: polygon(50% 0, 100% 96%, 50% 69%, 0 96%); transform: translate(-50%, -50%) rotate(var(--map-angle, 0rad)); z-index: 2; pointer-events: none; }
.stop-roots { left: 0; top: 57%; }
.stop-highway { right: 0; top: 48%; }
.stop-crash { right: 0; top: 76%; }
.stop-back { bottom: 0; left: 50%; transform: translateX(-50%); }
.stop-zabava-first { left: 0; top: 49%; }
.stop-zabava-second { left: 0; bottom: 0; }
.dpad { display: grid; grid-template-columns: repeat(3, 32px); grid-template-areas: '. forward .' 'left back right'; gap: 3px; }
.dpad button { height: 30px; display: grid; place-items: center; padding: 0; border: 1px solid #37383d; border-radius: 2px; background: var(--surface); touch-action: manipulation; }
.dpad button:hover { background: #24252b; }
.dpad svg { width: 17px; height: 17px; }
.go-forward { grid-area: forward; }
.go-left { grid-area: left; }
.go-back { grid-area: back; }
.go-right { grid-area: right; }
.go-forward svg { transform: rotate(-90deg); }
.go-left svg { transform: rotate(180deg); }
.go-back svg { transform: rotate(90deg); }


.wall-controls { display: grid; flex: none; grid-template-columns: minmax(125px, .7fr) minmax(140px, 1fr) auto; align-items: center; gap: clamp(12px, 2vw, 24px); margin-top: 8px; padding: 10px 16px; border: 1px solid var(--line); border-radius: 2px; background: var(--surface); }
.wall-controls:has(.wall-adjust[hidden]) { grid-template-columns: 1fr auto; }
.wall-heading h2 { margin: 3px 0 0; font: 600 clamp(23px, 2.1vw, 29px)/1.05 var(--sans); letter-spacing: -.014em; text-wrap: balance; }
.wall-heading .eyebrow { color: var(--muted); letter-spacing: .12em; }
.wall-credit { margin-top: 4px; color: var(--muted); font-size: 12px; }
.wall-adjust { min-width: 0; }
#wall-split { display: block; width: 100%; height: 28px; margin: 0; accent-color: var(--accent); cursor: ew-resize; }
.wall-sides { display: flex; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 11px; line-height: 1.2; }
.wall-actions { display: flex; flex-wrap: wrap; gap: 5px; }
.wall-actions button { min-height: 40px; padding: 4px 11px; border: 1px solid var(--line); border-radius: 2px; background: transparent; font-size: 12px; white-space: nowrap; touch-action: manipulation; }
.wall-actions button:hover { background: color-mix(in srgb, var(--ink) 5%, transparent); }
.wall-actions button[aria-pressed="true"] { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 9%, var(--surface)); }
.wall-actions .wall-primary { min-width: 84px; border-color: var(--action); background: var(--action); color: #fff7fc; }
.wall-actions .wall-primary:hover { border-color: var(--action); background: color-mix(in srgb, var(--action) 90%, black); }
.wall-actions button:disabled { cursor: default; opacity: .6; }
.gallery-footer { display: flex; justify-content: space-between; align-items: center; min-height: 42px; gap: 12px; color: var(--muted); font-size: 10px; }
.input-help, .input-help > span { display: flex; align-items: center; gap: 4px; }
.input-help { gap: 15px; }
.input-help > span > span { margin-left: 3px; }
.input-help .touch-help { display: none; }
.input-help svg { width: 15px; height: 15px; }
kbd { display: grid; place-items: center; width: 18px; height: 19px; font: 10px/1 var(--sans); border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 2px; background: var(--surface); color: var(--muted); }
.wide-key { width: auto; padding-inline: 5px; }
.gallery-credit { margin-left: auto; text-align: right; font-size: 10px; }
.gallery-credit span { color: var(--accent); margin-inline: 4px; }
.credits-controls { display: flex; align-items: center; gap: 12px; padding: 10px 16px; background: #0b0c0f; color: #f2ede4; border-top: 1px solid #37383d; }
.credits-controls input { flex: 1; min-width: 40px; accent-color: #f01886; }
.credits-controls button { min-height: 38px; padding: 5px 12px; border: 1px solid #46474d; border-radius: 2px; background: #111216; color: #f2ede4; font-size: 12px; white-space: nowrap; }
.credits-fallback { height: 100%; overflow: auto; padding: 30px 22px; background: #000; color: #f2ede4; text-align: center; }
.credits-fallback p { max-width: 650px; margin: 14px auto; }
.credits-fallback h2 { margin-block: 26px; font: 600 40px/1.1 var(--serif); }
body[data-room="credits"] { color-scheme: dark; --paper: #070707; --surface: #111216; --ink: #f2ede4; --muted: #a5a5a4; --line: #37383d; --accent: #f01886; }
[data-room="credits"] .gallery, [data-room="credits"] .gallery-view { background: #000; border-color: #111; }
[data-room="credits"] .gallery-controls { display: none; }
[data-room="credits"] .gallery-tools .fullscreen-button { color: #fff7fc; }

.painting-dialog { width: min(980px, calc(100% - 40px)); max-height: calc(100% - 40px); max-height: 92dvh; overflow: auto; padding: 0; border: 1px solid #46474d; border-radius: 2px; background: var(--surface); color: var(--ink); box-shadow: 0 20px 70px #00000099; }
.painting-dialog::backdrop { background: #030305cc; backdrop-filter: blur(2px); }
.painting-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px clamp(12px, 3vw, 24px); border-bottom: 1px solid var(--line); }
.painting-heading h2 { font: 600 clamp(27px, 4vw, 41px)/1.12 var(--sans); letter-spacing: -.014em; }
.close-painting { min-height: 42px; display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; background: transparent; border: 1px solid var(--line); border-radius: 2px; font-size: 13px; }
.close-painting:hover { background: #24252b; }
.close-painting svg { width: 17px; height: 17px; }
.painting-content { max-width: 100%; padding: clamp(10px, 2vw, 20px) clamp(12px, 3vw, 24px) 10px; }
shot-painting { display: block; min-width: 0; }
.painting-still { display: block; width: 100%; max-height: 75vh; object-fit: contain; }
.painting-link { display: inline-flex; gap: 6px; align-items: center; min-height: 42px; color: var(--muted); font-size: 13px; }
.painting-link:hover { color: var(--ink); text-decoration: underline; }
.painting-link svg { width: 17px; height: 17px; }


@media (max-width: 1100px) {
  .masthead-inner { grid-template-columns: 1fr auto; gap: 0 20px; padding-top: 8px; }
  .brand { min-height: 38px; }
  .room-nav { grid-column: 1 / -1; grid-row: 2; justify-content: center; }
  .room-nav .room-link { min-height: 44px; }
  .toolbar-context { gap: 16px; }
  .gallery-tools .home-button span { display: none; }
  .gallery-credit { display: none; }
}

@media (max-width: 760px) {
  .masthead-inner, .exhibition { padding-inline: 14px; }
  .masthead-inner { padding-top: 6px; }
  .brand { gap: 8px; min-height: 38px; }
  .brand-name { font-size: 21px; }
  .brand-mark { width: 27px; height: 27px; }
  .brand-mark svg { width: 25px; height: 25px; }
  .catalog-link { font-size: 11px; min-height: 38px; gap: 4px; }
  .catalog-link svg { width: 13px; height: 13px; }
  .room-nav { justify-content: flex-start; gap: 0; overflow-x: auto; scrollbar-width: none; }
  .room-nav::-webkit-scrollbar { display: none; }
  .room-nav .room-link { min-height: 42px; gap: 5px; padding-inline: 11px; font-size: 11px; }
  .room-nav .room-link:first-child { padding-left: 0; }
  .room-nav .room-link:last-child { padding-right: 0; }
  .room-nav-number { font-size: 9px; }
  .exhibition { padding-top: 10px; }
  .gallery-toolbar { min-height: 58px; gap: 8px; padding: 6px 8px; }
  .toolbar-context { flex: 1; }
  .room-caption { display: none; }
  .works-menu { min-width: 0; }
  .works-summary { min-height: 44px; gap: 6px; font-size: 11px; }
  .works-count { min-width: 18px; height: 18px; font-size: 9px; }
  .works-chevron { width: 11px; height: 11px; }
  .shots-nav { left: -1px; width: min(330px, calc(100vw - 46px)); max-height: min(440px, calc(100dvh - 190px)); }
  .gallery-tools { gap: 3px; }
  .gallery-tools button { min-width: 44px; min-height: 44px; padding: 5px; }
  .gallery-tools button span { display: none; }
  .gallery-tools .fullscreen-button { padding-inline: 5px; }
  .gallery-stage:is(:fullscreen, .is-expanded) .gallery-toolbar { padding-inline: 10px; }
  .gallery-stage:is(:fullscreen, .is-expanded) .shots-nav { width: min(330px, calc(100vw - 24px)); }
  .seat-button { left: 9px; bottom: 9px; min-height: 44px; padding-inline: 10px; }
  .seat-button kbd { display: none; }
  .sound-hint { left: 9px; top: 9px; max-width: calc(100% - 18px); padding: 7px 9px; font-size: 10px; }
  .gallery-controls { right: 9px; bottom: 9px; }
  .plan { display: none; }
  .dpad { grid-template-columns: repeat(3, 44px); }
  .dpad button { height: 44px; }
  .wall-controls { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; margin-top: 7px; padding: 8px; }
  .wall-heading .eyebrow, .wall-credit { display: none; }
  .wall-heading h2 { margin: 0; font-size: 21px; }
  #wall-split { height: 26px; }
  .wall-sides { font-size: 10px; }
  .wall-actions { grid-column: 1 / -1; }
  .wall-actions button { flex: 1 1 auto; min-height: 44px; font-size: 11px; padding-inline: 7px; }
  .gallery-footer { min-height: 34px; padding-block: 5px; font-size: 9px; }
  .input-help .desktop-help { display: none; }
  .input-help .touch-help { display: inline; }
  .painting-dialog { width: calc(100% - 20px); }
  .credits-controls { gap: 5px; padding: 8px; }
  .credits-controls button { min-height: 42px; padding-inline: 7px; font-size: 11px; }
}

@media (pointer: fine) and (min-width: 761px) {
  .dpad { display: none; }
}
@media (pointer: coarse) { .seat-button kbd { display: none; } }

@media (max-height: 700px) and (min-width: 761px) {
  .masthead-inner { min-height: 54px; }
  .room-nav .room-link { min-height: 54px; }
  .exhibition { padding-top: 9px; }
  .gallery-toolbar { min-height: 52px; padding-block: 5px; }
  .wall-controls { margin-top: 6px; padding-block: 7px; }
  .wall-heading h2 { font-size: 23px; }
  .wall-actions button { min-height: 36px; }
  .gallery-footer { min-height: 33px; }
}

@media (max-height: 550px) {
  .gallery-footer, .wall-heading .eyebrow, .wall-credit, .plan { display: none; }
  .masthead-inner { min-height: 38px; grid-template-columns: minmax(130px, 1fr) auto minmax(48px, 1fr); padding-top: 0; gap: 10px; }
  .brand { gap: 6px; min-height: 38px; }
  .brand-name { font-size: 18px; }
  .brand-mark { width: 23px; height: 23px; }
  .brand-mark svg { width: 21px; height: 21px; }
  .catalog-link { min-height: 38px; font-size: 10px; }
  .room-nav { grid-column: auto; grid-row: auto; }
  .room-nav .room-link { min-height: 38px; font-size: 10px; padding-inline: 7px; }
  .room-nav-number { display: none; }
  .exhibition { padding-top: 6px; padding-bottom: 6px; }
  .gallery-toolbar { min-height: 48px; padding-block: 2px; }
  .room-caption { display: none; }
  .works-summary { min-height: 40px; }
  .gallery-tools button { min-height: 40px; min-width: 40px; }
  .gallery-tools button span { display: none; }
  .wall-controls { grid-template-columns: minmax(65px, .6fr) minmax(85px, 1fr) auto; gap: 5px 8px; margin-top: 5px; padding-block: 5px; }
  .wall-heading h2 { font-size: 17px; }
  #wall-split { height: 24px; }
  .wall-sides { font-size: 10px; }
  .wall-actions { grid-column: auto; }
  .wall-actions button, .wall-actions .wall-primary { min-width: 0; min-height: 34px; padding-inline: 6px; font-size: 10px; }
  .shots-nav { max-height: calc(100dvh - 112px); }
  .credits-controls { padding-block: 5px; }
  .credits-controls button { min-height: 34px; }
}
@media (max-height: 550px) and (max-width: 650px) {
  .masthead { display: none; }
  .wall-controls { grid-template-columns: 1fr 1fr; }
  .wall-actions { grid-column: 1 / -1; }
}
@media (max-width: 360px) {
  .masthead-inner, .exhibition { padding-inline: 9px; }
  .gallery-toolbar { padding-inline: 6px; gap: 4px; }
  .works-summary { gap: 5px; font-size: 10px; }
  .gallery-tools { gap: 1px; }
  .gallery-tools button { min-width: 40px; }
  .shots-nav { width: calc(100vw - 32px); }
}
