:root {
  --ink: #171817;
  --muted: #6c6c67;
  --paper: #ece9e2;
  --line: rgba(23, 24, 23, 0.18);
  --accent: #28627a;
  --room-color: #28627a;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, sans-serif;
}

body {
  overflow: hidden;
}

button {
  color: inherit;
  font: inherit;
}

button:focus-visible {
  outline: 2px solid var(--room-color);
  outline-offset: 4px;
}

.app-shell {
  height: 100dvh;
  min-height: 0;
  display: grid;
  grid-template-rows: 68px minmax(0, 1fr) 58px;
}

.topbar {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  padding: 0 24px;
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 10;
}

.wordmark {
  justify-self: center;
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.wordmark strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  font-weight: 600;
}

.wordmark span {
  color: var(--muted);
  font-size: 12px;
}

.icon-button, .nav-arrow, .dialog-close {
  border: 0;
  background: transparent;
  cursor: pointer;
}

.icon-button {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  padding: 8px;
}

.menu-button {
  gap: 6px;
  align-content: center;
}

.menu-button span {
  width: 22px;
  height: 1px;
  background: currentColor;
  display: block;
}

.sound-button svg {
  width: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}

#stage {
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-behavior: smooth;
  position: relative;
  scrollbar-width: thin;
  scrollbar-color: var(--room-color) transparent;
}

.room {
  min-height: 100%;
  animation: room-enter 650ms cubic-bezier(.22,.8,.24,1) both;
}

@keyframes room-enter {
  from { opacity: 0; transform: translateX(-22px); }
  to { opacity: 1; transform: translateX(0); }
}

.room.enter-back { animation-name: room-enter-back; }

@keyframes room-enter-back {
  from { opacity: 0; transform: translateX(22px); }
  to { opacity: 1; transform: translateX(0); }
}

.entrance {
  height: 100%;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.entrance-image {
  position: relative;
  overflow: hidden;
}

.entrance-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(.9);
}

.entrance-image:first-child img { object-position: center 26%; }

.entrance-copy {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-content: center;
  text-align: center;
  pointer-events: none;
  color: white;
  background: rgba(0, 0, 0, .18);
  text-shadow: 0 2px 24px rgba(0,0,0,.55);
}

.entrance-copy h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(54px, 8vw, 118px);
  line-height: .9;
  margin: 0 0 16px;
  font-weight: 600;
}

.entrance-copy p {
  font-size: 16px;
  margin: 0;
}

.enter-button {
  pointer-events: auto;
  justify-self: center;
  margin-top: 34px;
  border: 1px solid rgba(255,255,255,.75);
  background: rgba(0,0,0,.15);
  color: white;
  padding: 11px 25px;
  cursor: pointer;
  backdrop-filter: blur(8px);
}

.room-hero {
  min-height: min(58vh, 580px);
  display: grid;
  grid-template-columns: minmax(300px, .8fr) minmax(0, 1.25fr);
  border-bottom: 1px solid var(--line);
}

.hero-copy {
  padding: clamp(38px, 6vw, 88px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.room-index {
  font-size: 11px;
  color: var(--room-color);
  font-weight: 600;
  margin-bottom: 24px;
}

.hero-copy h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 600;
  font-size: clamp(48px, 6vw, 86px);
  line-height: 1;
  margin: 0 0 22px;
}

.hero-copy p {
  max-width: 410px;
  color: var(--muted);
  line-height: 1.8;
  font-size: 15px;
  margin: 0;
}

.hero-image {
  min-height: 420px;
  position: relative;
  overflow: hidden;
  background: #d9d6ce;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-label {
  position: absolute;
  inset-inline-end: 18px;
  bottom: 18px;
  max-width: min(340px, calc(100% - 36px));
  padding: 9px 12px;
  background: rgba(245, 243, 238, .92);
  font-size: 12px;
}

.exhibit-section {
  padding: clamp(44px, 6vw, 86px) clamp(24px, 7vw, 110px) 90px;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
  margin-bottom: 30px;
}

.section-head h2 {
  font-size: 15px;
  margin: 0;
  font-weight: 500;
}

.section-head span {
  color: var(--muted);
  font-size: 11px;
}

.exhibit-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 44px) clamp(14px, 2vw, 30px);
}

.exhibit {
  grid-column: span 4;
  border: 0;
  padding: 0;
  text-align: right;
  background: transparent;
  cursor: zoom-in;
  min-width: 0;
}

.exhibit:nth-child(5n + 1) { grid-column: span 5; }
.exhibit:nth-child(5n + 4) { grid-column: span 3; }

.exhibit-image {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #d9d6ce;
  margin-bottom: 12px;
}

.exhibit img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 500ms ease, filter 500ms ease;
}

.exhibit:hover img {
  transform: scale(1.025);
  filter: saturate(1.08);
}

.exhibit p {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
}

.video-exhibit {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.3fr .7fr;
  border-top: 1px solid var(--line);
  padding-top: 30px;
  margin-top: 22px;
  gap: 28px;
}

.video-exhibit video {
  width: 100%;
  max-height: 66vh;
  background: #111;
}

.video-copy {
  align-self: center;
}

.video-copy span {
  color: var(--room-color);
  font-size: 11px;
  font-weight: 600;
}

.video-copy h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1.1;
  margin: 13px 0;
}

.video-copy p { color: var(--muted); line-height: 1.7; }

.finale {
  height: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .7fr);
  background: #111817;
  color: white;
}

.finale-video {
  min-height: 100%;
  display: grid;
  place-items: center;
  background: black;
}

.finale video {
  width: 100%;
  height: 100%;
  max-height: calc(100dvh - 126px);
  object-fit: contain;
}

.finale-copy {
  padding: clamp(38px, 6vw, 80px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.finale-copy span { color: #9cbeb8; font-size: 12px; }

.finale-copy h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(58px, 7vw, 100px);
  line-height: .95;
  margin: 20px 0;
}

.finale-copy p { color: rgba(255,255,255,.68); line-height: 1.8; }

.finale-actions {
  display: flex;
  gap: 10px;
  margin-top: 28px;
}

.finale-actions button {
  border: 1px solid rgba(255,255,255,.45);
  background: transparent;
  color: white;
  padding: 10px 16px;
  cursor: pointer;
}

.finale-actions .restart-tour {
  background: white;
  color: #111817;
}

.room-nav {
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  position: relative;
  z-index: 9;
  direction: ltr;
}

.room-scroll-nav {
  position: fixed;
  z-index: 15;
  left: 22px;
  bottom: 78px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  transition: opacity 180ms ease;
}

.room-scroll-nav.hidden {
  opacity: 0;
  pointer-events: none;
}

.room-scroll-nav button {
  min-width: 108px;
  border: 1px solid var(--line);
  background: rgba(242, 240, 234, .94);
  padding: 9px 12px;
  cursor: pointer;
  font-size: 12px;
  backdrop-filter: blur(8px);
}

.room-scroll-nav button:disabled {
  display: none;
}

.room-exit {
  border: 0;
  background: transparent;
  height: 100%;
  padding: 7px 20px;
  display: flex;
  align-items: center;
  gap: 13px;
  cursor: pointer;
  text-align: right;
}

.next-room { justify-self: start; }
.prev-room { justify-self: end; }

.room-exit small {
  display: block;
  color: var(--muted);
  font-size: 9px;
}

.room-exit strong {
  display: block;
  font-size: 12px;
  font-weight: 500;
}

.exit-arrow {
  color: var(--room-color);
  font-size: 20px;
}

.room-exit:disabled { opacity: .18; cursor: default; }

.museum-button {
  border: 0;
  border-inline: 1px solid var(--line);
  align-self: stretch;
  background: transparent;
  padding: 0 24px;
  cursor: pointer;
  font-size: 12px;
}

.room-map {
  position: fixed;
  inset: 0;
  z-index: 30;
  width: 100%;
  background: #e7e3db;
  padding: clamp(22px, 4vw, 58px);
  transform: translateY(105%);
  transition: transform 500ms cubic-bezier(.22,.8,.24,1);
}

.room-map.open { transform: translateY(0); }

.map-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.map-head span {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(30px, 4vw, 56px);
}

.map-head p { color: var(--muted); margin: 5px 0 0; font-size: 12px; }

.close-map { font-size: 28px; }

.map-list {
  margin-top: clamp(22px, 4vh, 48px);
  display: grid;
  grid-template-columns: repeat(9, minmax(82px, 1fr));
  gap: clamp(10px, 1.5vw, 22px);
  height: min(36vh, 350px);
  align-items: end;
}

.map-item {
  --door-height: 82%;
  border: 1px solid rgba(23,24,23,.32);
  background-color: #d6d0c5;
  background-image: linear-gradient(to top, rgba(0,0,0,.75), transparent 65%), var(--preview);
  background-size: cover;
  background-position: center;
  height: var(--door-height);
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  text-align: right;
  cursor: pointer;
  color: white;
  box-shadow: inset 0 0 0 7px rgba(231,227,219,.42);
  transition: height 300ms ease, filter 300ms ease, transform 300ms ease;
}

.map-item:nth-child(even) { --door-height: 92%; }
.map-item:hover, .map-item.active { height: 100%; filter: saturate(1.1); transform: translateY(-3px); }
.map-item span { color: rgba(255,255,255,.7); font-size: 10px; }
.map-item strong { font-size: clamp(13px, 1.4vw, 20px); font-weight: 500; }
.map-item.active { outline: 3px solid var(--room-color); outline-offset: 3px; }
.map-item.endpoint {
  --door-height: 68%;
  border-width: 2px;
  box-shadow: inset 0 0 0 10px rgba(231,227,219,.54);
}

.map-item.endpoint strong { font-family: Georgia, "Times New Roman", serif; }
.map-item.entrance { order: -1; }
.map-item.finale {
  order: 10;
  background-image: linear-gradient(to top, rgba(0,0,0,.76), transparent 65%), var(--preview);
}

.scrim {
  position: fixed;
  inset: 0;
  z-index: 20;
  background: rgba(0,0,0,.28);
  opacity: 0;
  pointer-events: none;
  transition: opacity 350ms ease;
}

.scrim.open { opacity: 1; pointer-events: auto; }

.exhibit-dialog {
  width: min(1100px, calc(100vw - 32px));
  height: min(820px, calc(100dvh - 32px));
  border: 0;
  padding: 0;
  background: #141514;
  color: white;
}

.exhibit-dialog::backdrop { background: rgba(0,0,0,.78); }

.dialog-close {
  position: absolute;
  top: 10px;
  left: 12px;
  z-index: 2;
  width: 42px;
  height: 42px;
  font-size: 30px;
  color: white;
}

.exhibit-dialog figure {
  height: 100%;
  margin: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
}

.dialog-image {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
}

.exhibit-dialog figcaption {
  border-top: 1px solid rgba(255,255,255,.15);
  padding: 15px 22px 18px;
}

.dialog-room {
  color: rgba(255,255,255,.5);
  font-size: 11px;
}

.dialog-caption { margin: 5px 0 0; }

.spatial-room {
  height: 100%;
  overflow: hidden;
  position: relative;
  background: #171817;
}

.spatial-room::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(20, 16, 12, .18), transparent 16%),
    linear-gradient(to top, rgba(20, 16, 12, .2), transparent 20%);
}

.app-shell:has(.spatial-room) {
  grid-template-rows: 68px minmax(0, 1fr) 0;
}

.app-shell:has(.spatial-room) .room-nav {
  display: none;
}

.spatial-canvas, .spatial-canvas canvas {
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
  cursor: grab;
}

.spatial-canvas canvas:active { cursor: grabbing; }

.spatial-title {
  position: absolute;
  top: 18px;
  right: 20px;
  z-index: 3;
  color: white;
  padding: 10px 13px 11px;
  border-right: 2px solid rgba(255, 224, 174, .78);
  background: rgba(29, 24, 19, .5);
  backdrop-filter: blur(10px);
  text-shadow: 0 2px 12px rgba(0,0,0,.65);
  pointer-events: none;
}

.spatial-title span {
  display: block;
  font-size: 10px;
  color: rgba(255,255,255,.7);
}

.spatial-title strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  font-weight: 500;
}

.spatial-help {
  position: absolute;
  z-index: 3;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,.78);
  background: rgba(29,24,19,.58);
  padding: 8px 12px 9px;
  font-size: 10px;
  pointer-events: none;
  backdrop-filter: blur(8px);
  text-align: center;
}

.spatial-help strong,
.spatial-help span {
  display: block;
}

.spatial-help strong {
  color: white;
  margin-bottom: 3px;
  font-size: 11px;
}

.spatial-caption {
  position: absolute;
  z-index: 4;
  bottom: 74px;
  left: 50%;
  transform: translate(-50%, 12px);
  max-width: min(480px, calc(100% - 30px));
  color: #282019;
  border-top: 2px solid #8f704c;
  background: rgba(248,244,235,.96);
  padding: 11px 16px 12px;
  box-shadow: 0 12px 34px rgba(20,15,10,.24);
  opacity: 0;
  transition: opacity 220ms ease, transform 220ms ease;
  pointer-events: none;
  font-size: 13px;
  text-align: center;
}

.spatial-caption.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.spatial-controls {
  position: absolute;
  z-index: 4;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  direction: ltr;
  padding: 5px;
  background: rgba(24, 20, 17, .38);
  backdrop-filter: blur(10px);
}

.spatial-controls button {
  border: 1px solid rgba(255,255,255,.32);
  background: rgba(30,25,21,.78);
  color: white;
  min-width: 58px;
  min-height: 46px;
  padding: 5px 10px;
  cursor: pointer;
  font-size: 15px;
  transition: background 160ms ease, transform 160ms ease;
  touch-action: none;
}

.spatial-controls button:hover,
.spatial-controls button:active {
  background: rgba(119, 92, 61, .92);
  transform: translateY(-1px);
}

.spatial-controls button span,
.spatial-controls button small {
  display: block;
}

.spatial-controls button small {
  margin-top: 1px;
  color: rgba(255,255,255,.72);
  font-size: 8px;
}

.museum-room {
  height: 100%;
  overflow: hidden;
  background:
    linear-gradient(to bottom, rgba(255,255,255,.38), transparent 18%),
    #e6e1d7;
  position: relative;
}

.museum-room::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 17%;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(115,92,64,.08), rgba(115,92,64,.23));
  border-top: 1px solid rgba(23,24,23,.15);
}

.wall-track {
  height: 100%;
  display: flex;
  direction: rtl;
  transition: transform 720ms cubic-bezier(.22,.8,.24,1);
}

.museum-wall {
  flex: 0 0 100%;
  height: 100%;
  min-width: 0;
  padding: clamp(25px, 4vw, 58px) clamp(28px, 7vw, 110px) 78px;
  position: relative;
  z-index: 1;
}

.intro-wall {
  display: grid;
  grid-template-columns: .75fr 1.25fr;
  gap: clamp(28px, 5vw, 80px);
  align-items: center;
}

.wall-intro-copy span, .exhibit-wall header span {
  color: var(--room-color);
  font-size: 11px;
  font-weight: 600;
}

.wall-intro-copy h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(60px, 8vw, 118px);
  line-height: .95;
  margin: 18px 0 24px;
}

.wall-intro-copy p {
  max-width: 450px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.9;
}

.enter-gallery, .leave-gallery {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.28);
  padding: 11px 16px;
  margin-top: 24px;
  cursor: pointer;
}

.wall-intro-image {
  justify-self: stretch;
  height: min(68vh, 620px);
  position: relative;
  padding: 12px;
  background: #f1eee7;
  border: 1px solid rgba(23,24,23,.28);
  box-shadow: 0 18px 42px rgba(30,27,20,.16);
}

.wall-intro-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wall-intro-image small, .wall-exhibit span {
  position: absolute;
  bottom: 18px;
  inset-inline-end: 18px;
  max-width: calc(100% - 36px);
  padding: 7px 9px;
  background: rgba(247,245,239,.94);
  color: var(--ink);
  font-size: 11px;
}

.exhibit-wall {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 25px;
}

.exhibit-wall header {
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}

.exhibit-wall h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 4vw, 60px);
  margin: 5px 0 0;
  font-weight: 500;
}

.wall-hang {
  min-height: 0;
  display: grid;
  gap: clamp(18px, 3vw, 42px);
  align-items: center;
  justify-content: center;
}

.wall-hang-four { grid-template-columns: 1.25fr .9fr .9fr .8fr; }
.wall-hang-three { grid-template-columns: 1.25fr 1fr 1fr; }

.wall-exhibit {
  border: 0;
  padding: 9px;
  background: #f3f0e9;
  position: relative;
  cursor: zoom-in;
  box-shadow: 0 15px 28px rgba(36,31,23,.18);
  max-height: 54vh;
  align-self: center;
}

.wall-exhibit:nth-child(even) { transform: translateY(22px); }
.wall-exhibit.featured { transform: translateY(-18px); }

.wall-exhibit img {
  width: 100%;
  height: 100%;
  max-height: calc(54vh - 18px);
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.wall-navigation {
  position: absolute;
  z-index: 5;
  bottom: 17px;
  left: 50%;
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: 38px auto 38px;
  align-items: center;
  gap: 12px;
  direction: ltr;
}

.wall-navigation > button {
  border: 1px solid rgba(23,24,23,.25);
  background: rgba(242,240,234,.9);
  width: 38px;
  height: 34px;
  cursor: pointer;
}

.wall-navigation > button:disabled { opacity: .25; cursor: default; }

.wall-dots { display: flex; gap: 7px; }
.wall-dots button {
  width: 24px;
  height: 2px;
  padding: 0;
  border: 0;
  background: rgba(23,24,23,.25);
  cursor: pointer;
}
.wall-dots button.active { background: var(--room-color); }

.leave-gallery {
  position: absolute;
  inset-inline-start: clamp(28px, 7vw, 110px);
  bottom: 75px;
}

@media (max-width: 760px) {
  .app-shell { grid-template-rows: 58px minmax(0, 1fr) 52px; }
  .topbar { padding: 0 10px; }
  .wordmark span { display: none; }
  .entrance { grid-template-columns: 1fr; grid-template-rows: 1fr 1fr; }
  .entrance-copy {
    place-content: center;
    padding: 0 18px 140px;
    background: linear-gradient(to bottom, transparent 35%, rgba(0,0,0,.52) 75%, rgba(0,0,0,.12));
  }
  .entrance-copy h1 { font-size: 58px; }
  .entrance-copy p { font-size: 13px; }
  .enter-button { margin-top: 20px; }
  .room-hero { display: block; min-height: auto; }
  .hero-copy { padding: 35px 22px; }
  .hero-copy h1 { font-size: 51px; }
  .hero-image { height: 47vh; min-height: 0; }
  .exhibit-section { padding: 38px 16px 65px; }
  .exhibit-grid { gap: 25px 12px; }
  .exhibit, .exhibit:nth-child(5n + 1), .exhibit:nth-child(5n + 4) { grid-column: span 6; }
  .exhibit p { font-size: 12px; }
  .video-exhibit { display: block; }
  .video-copy { padding-top: 20px; }
  .finale { display: grid; grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; }
  .finale-video { min-height: 0; }
  .finale video { max-height: 54vh; }
  .finale-copy { padding: 24px 22px 35px; }
  .finale-copy h1 { font-size: 56px; margin: 10px 0; }
  .finale-actions { margin-top: 16px; flex-wrap: wrap; }
  .room-scroll-nav {
    left: 10px;
    bottom: 62px;
  }
  .room-scroll-nav button {
    min-width: 94px;
    padding: 8px 9px;
    font-size: 11px;
  }
  .room-exit { padding: 5px 8px; gap: 5px; }
  .room-exit small { display: none; }
  .room-exit strong { font-size: 10px; max-width: 70px; line-height: 1.2; }
  .museum-button { padding: 0 10px; font-size: 10px; }
  .room-map { padding: 18px 14px; }
  .map-list {
    height: auto;
    max-height: calc(100dvh - 138px);
    overflow-y: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    padding-bottom: 24px;
  }
  .map-item, .map-item:nth-child(even), .map-item:hover, .map-item.active, .map-item.endpoint {
    height: 190px;
    transform: none;
  }
  .spatial-help {
    top: auto;
    bottom: 72px;
    white-space: nowrap;
    font-size: 9px;
    padding: 6px 9px;
  }
  .spatial-help strong {
    display: none;
  }
  .app-shell:has(.spatial-room) {
    grid-template-rows: 58px minmax(0, 1fr) 0;
  }
  .spatial-title { top: 12px; right: 12px; }
  .spatial-title strong { font-size: 22px; }
  .spatial-caption { bottom: 126px; font-size: 11px; }
  .spatial-controls {
    bottom: 8px;
    width: calc(100% - 12px);
    justify-content: center;
    gap: 4px;
    padding: 4px;
  }
  .spatial-controls button {
    flex: 1 1 0;
    min-width: 0;
    padding: 4px 2px;
    min-height: 48px;
    font-size: 14px;
  }
  .spatial-controls button small { font-size: 8px; }
  .museum-wall {
    padding: 25px 16px 70px;
  }
  .intro-wall {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 14px;
  }
  .wall-intro-copy h1 { font-size: 48px; margin: 8px 0 10px; }
  .wall-intro-copy p { font-size: 12px; line-height: 1.6; margin: 0; }
  .enter-gallery { margin-top: 10px; padding: 8px 11px; }
  .wall-intro-image { height: auto; min-height: 0; align-self: stretch; }
  .exhibit-wall { gap: 12px; }
  .exhibit-wall h2 { font-size: 29px; }
  .wall-hang-four, .wall-hang-three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px 10px;
    align-content: center;
  }
  .wall-exhibit, .wall-exhibit:nth-child(even), .wall-exhibit.featured {
    transform: none;
    padding: 5px;
    max-height: 29vh;
  }
  .wall-exhibit img {
    max-height: calc(29vh - 10px);
  }
  .wall-exhibit span {
    position: static;
    display: block;
    max-width: none;
    padding: 6px 2px 2px;
    background: transparent;
    font-size: 9px;
  }
  .leave-gallery {
    inset-inline-start: 16px;
    bottom: 62px;
    margin: 0;
    padding: 8px 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 1ms !important;
    transition-duration: 1ms !important;
  }
}
