.exhibition-preview {
  color: #e9e6df;
  background: #191918;
  color-scheme: dark;
  min-height: 100svh;
}

.preview-frame {
  width: min(92%, 1390px);
  margin-inline: auto;
}

.preview-frame header {
  padding-block: 16px;
  border-color: #43413e;
}

.preview-frame header .exhibitions-link {
  font-size: .875rem;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
}

.preview-title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 24px;
  margin-block: clamp(18px, 3vw, 38px) clamp(16px, 2.5vw, 26px);
}

.preview-title h1 {
  font-size: clamp(3.25rem, 7vw, 6rem);
}

.preview-title p {
  margin: 0;
  color: #bcb5a9;
}

.room {
  position: relative;
  background: #141413;
}

.corridor {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  padding: 25px;
}

.print {
  display: block;
  padding: 9px;
  background: #fff;
  border: 3px solid #161616;
  box-shadow: 2px 6px 9px #0008;
}

.print img {
  display: block;
  width: 264px;
  height: auto;
  max-width: 100%;
}

.print-portrait img {
  width: 139px;
}

.surface {
  display: none;
}

.room.is-interactive {
  height: clamp(320px, 64svh, 700px);
  overflow: hidden;
  perspective: var(--eye-distance);
  touch-action: pan-y;
}

.is-interactive .corridor {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 0;
  transform-style: preserve-3d;
}

.is-interactive .surface,
.is-interactive .print {
  position: absolute;
  backface-visibility: hidden;
  transform: var(--world-position);
}

.is-interactive .surface {
  display: block;
  pointer-events: none;
}

.room.is-interactive::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(#292928, #30302f 34%, #232323);
  opacity: 0;
  pointer-events: none;
}

.room.facing-print::before {
  opacity: 1;
}

@media (prefers-reduced-motion: no-preference) {
  .room.is-interactive::before {
    transition: opacity 320ms ease-out;
  }
}

.wall {
  background:
    linear-gradient(0deg, #111110 0 2%, transparent 2.3% 96%, #171716 99.5%),
    linear-gradient(0deg, #202020, #30302f 63%, #242423);
}

.wall-lit::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 37% 38% at 50% 29%, #e2b87936, transparent 98%),
    radial-gradient(ellipse 52% 56% at 50% 42%, #c9a37561, #b0986f22 68%, transparent 99%);
}

.wall-end {
  background:
    radial-gradient(ellipse at 50% 73%, #54463766, transparent 65%),
    linear-gradient(#252523, #30302d 55%, #1f1f1e);
}

.ceiling,
.floor {
  clip-path: var(--edges);
}

.ceiling {
  background: linear-gradient(90deg, #10100f 0%, #242423 19%, #292928 50%, #242423 81%, #10100f 100%);
}

.floor {
  background:
    repeating-linear-gradient(90deg, transparent 0 82px, #100e0c40 82px 83px),
    linear-gradient(90deg, #262522, #413b33 21%, #4d4438 51%, #3c372f 80%, #242321);
}

.spotlight {
  width: 23px;
  height: 19px;
  border-radius: 5px 5px 7px 7px;
  background: linear-gradient(90deg, #151513, #53524a 46%, #242321);
  border-bottom: 3px solid #ffe2b7;
  box-shadow: 0 2px 7px #ffca8d6b;
}

.spotlight::before {
  content: "";
  position: absolute;
  left: 9px;
  bottom: 100%;
  width: 5px;
  height: 12px;
  background: #171716;
}

.is-interactive .print:focus-visible,
.visit-controls button:focus-visible {
  outline-color: #f3c486;
}

.visit-controls:not([hidden]) {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
  gap: .75rem;
  padding-top: 16px;
}

.visit-controls button {
  min-height: 44px;
  width: fit-content;
  border: 1px solid #8a8275;
  border-radius: 0;
  padding-inline: clamp(.65rem, 2vw, 1.1rem);
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.visit-controls button:disabled {
  opacity: .45;
  cursor: default;
}

.visit-next {
  justify-self: end;
}

.visit-position {
  display: grid;
  text-align: center;
  white-space: nowrap;
}

.visit-count,
#visit-instructions {
  color: #bcb5a9;
  font-size: .875rem;
}

#visit-instructions {
  margin: .65rem 0 1.25rem;
  text-align: center;
}

.exhibition-preview dialog p {
  margin: 0;
}
