/* Terrain House: the photographic elevation and the associated drawing sheet. */
#theater #vesper-study:not([hidden]) {
  --drawing-paper: #efe7d0;
  --drawing-ink: #37382d;
  --drawing-gutter: clamp(18px, 2.2vw, 36px);
  display: grid;
  grid-template-columns: minmax(0, 1.9fr) minmax(310px, .9fr);
  grid-template-areas: "elevation exposure" "elevation details" "elevation drawing";
  grid-template-rows: auto auto minmax(0, 1fr);
  align-items: stretch;
  color: var(--drawing-ink);
  background: var(--drawing-paper);
}
#theater #vesper-study #light-plate {
  grid-area: elevation;
  align-self: stretch;
  height: auto;
  min-height: 330px;
  aspect-ratio: auto;
}
#theater #vesper-study .light-photo {object-fit: cover}
#theater #vesper-study .light-instrument {
  grid-area: exposure;
  display: grid;
  grid-template: "title lens" auto "exposure exposure" auto / minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px 8px;
  padding: var(--drawing-gutter) var(--drawing-gutter) 7px;
  background: transparent;
}
#theater #vesper-study .light-caption {grid-area: title; min-width: 0; padding: 0}
#theater #vesper-study .light-caption span {
  display: block; font: italic 400 clamp(26px, 2.4vw, 39px)/1.1 Georgia, serif;
  letter-spacing: -.05em;
}
#theater #vesper-study .light-caption small {
  display: block; margin-top: 5px; color: #545446;
  font: 500 11px/1.3 Consolas, monospace; letter-spacing: .025em;
}
#theater #vesper-study .light-adjust {grid-area: exposure; width: 100%; max-width: none}
#theater #vesper-study #lens-toggle {
  grid-area: lens; align-self: start; min-height: 44px; width: auto; margin: 0;
  padding: 7px 10px; border: 1px solid #89856e; border-radius: 2px;
  color: #37382d; background: transparent; font: 600 13px/1.2 var(--sans);
}
#theater #vesper-study #lens-toggle[aria-pressed=true] {background: #4a4e3f;color: #fffaf0}
#theater #vesper-study .model-details {
  grid-area: details; display: flex; padding: 0 var(--drawing-gutter);
  background: transparent;
}
#theater #vesper-study .model-details button {
  min-height: 46px; padding: 5px 6px; justify-content: start; text-align: left;
  color: #554f3f; background: transparent; font: 500 clamp(12px,1vw,15px)/1.25 var(--sans);
}
#theater #vesper-study .model-details button[aria-pressed=true] {
  color: #24291e; border-bottom-color: #5b644b;
}
#theater #vesper-study .wk-junction-index {
  grid-area: drawing; grid-template-columns: minmax(0, 1fr); align-content: center;
  justify-items: start; gap: 10px; margin: 0; padding: 12px var(--drawing-gutter) var(--drawing-gutter);
  background: transparent;
}
#theater #vesper-study .wk-junction-image {
  width: 100%; height: clamp(100px, 12.3vw, 185px); object-fit: contain; align-self: center; mix-blend-mode: normal;
  mask-image: linear-gradient(to right, transparent, black 4%, black 96%, transparent);
}
#theater #vesper-study .wk-junction-index strong {
  font: italic 400 clamp(21px, 1.85vw, 29px)/1.12 Georgia, serif; letter-spacing: -.035em;
}
#theater #vesper-study .wk-junction-index figcaption span {
  max-width: 35ch; font: 400 14px/1.45 var(--sans);
}
#theater #vesper-study :is(button,input):focus-visible {outline: 2px solid #4b543b; outline-offset: 1px}

/* The coachwork occupies one bay, with the photographs of its actual beam on the bench. */
#theater #stage .wk-valence {
  display: grid; width: 100%; min-width: 0;
  grid-template-columns: minmax(0, 1.78fr) minmax(300px, .87fr);
}
#theater #stage .wk-valence .va-stage {
  height: auto; min-height: clamp(375px, 37vw, 580px);
  background-position: 53% 53%;
}
#theater #stage .wk-valence .va-stage::before {background-position: 53% 53%}
/* Center on the whole exhibition width, including the projection bay. */
#theater #stage .wk-valence .va-entry-slot {
  left: 50cqw; right: auto; width: max-content; max-width: 100%;
  transform: translateX(-50%); justify-content: center;
}
#theater #stage .wk-valence .va-stage::after {
  background: linear-gradient(to right, transparent 91%, #191b18),
    linear-gradient(to bottom, var(--join-head), transparent 22px, transparent 91%, #191b18);
}
#theater #stage .wk-valence .va-editorial {left: 6%; top: 10%}
#theater #stage .wk-valence .va-editorial h2 {font-size: clamp(64px, 6.6vw, 106px)}
#theater #stage .wk-valence .va-console {
  display: grid;
  grid-template-columns: auto minmax(0,1fr);
  grid-template-areas: "beam beam" "dial positions";
  align-content: center; align-items: center; justify-content: normal;
  gap: clamp(18px, 2.1vw, 35px) clamp(10px, 1.2vw, 18px);
  padding: clamp(18px, 2.2vw, 36px);
  background: #191b18; box-shadow: none;
}
#theater #stage .wk-valence .wk-beam {
  grid-area: beam; display: grid; gap: 10px; margin: 0;width: 100%;
}
#theater #stage .wk-valence .wk-beam figcaption {
  grid-row: 1; text-align: left; color: #e3dac8;
  font: italic 400 clamp(20px, 1.95vw, 32px)/1.1 Georgia, serif;
  text-transform: none;letter-spacing: -.035em;
}
#theater #stage .wk-valence .wk-beam img {grid-row: 2;width: 100%;height: auto}
#theater #stage .wk-valence .va-dial-mount {grid-area: dial; width: auto; height: auto}
#theater #stage .wk-valence .va-dial {display: block;width: clamp(48px, 4.8vw, 75px);height: auto;aspect-ratio:1}
#theater #stage .wk-valence .va-bank {grid-area: positions; min-width:0; width:100%}
#theater #stage .wk-valence .va-caption {color: #eae5da;font: 600 12px/1.3 var(--sans); letter-spacing: .02em}
#theater #stage .wk-valence .va-detents {width:100%; min-width:0}
#theater #stage .wk-valence .va-detents label {min-height:44px; min-width:0}
#theater #stage .wk-valence .va-detents label span {
  min-width:0; padding-inline:3px; font-family:var(--sans);letter-spacing: .015em;
}

/* Meridian: the observing plate and its log book share one reading spread. */
#theater #stage .mde-room .mde-switch {padding: 12px clamp(17px, 2.4vw, 38px)}
#theater #stage .mde-room .mde-switch button {min-height:44px}
#theater #stage .mde-room .md-galaxies {
  --log-gutter: clamp(20px, 2.3vw, 40px);
  display: grid; align-items: start;
  grid-template-columns: minmax(0, 1.55fr) minmax(310px, .9fr);
  grid-template-areas: "plate title" "plate targets" "plate scales" "plate notes" "proof rights";
  grid-template-rows: auto auto auto minmax(0,1fr) auto;
}
#theater #stage .mde-room .md-galaxies .md-image {
  grid-area: plate; align-self: stretch; height: auto; min-height: 390px; aspect-ratio: auto;
}
#theater #stage .mde-room .md-galaxies .md-panel,
#theater #stage .mde-room .md-galaxies .md-toolbox {display: contents}
#theater #stage .mde-room .md-titles {
  grid-area: title; padding: 13px var(--log-gutter) 2px;
}
#theater #stage .mde-room .md-titles h3 {
  margin: 8px 0; color: #f2eee2; font: 400 clamp(36px, 4.3vw, 75px)/.97 Georgia,serif;
  letter-spacing: -.057em;
}
#theater #stage .mde-room .md-titles .md-description {font: 400 clamp(14px, 1.1vw, 17px)/1.42 var(--sans)}
#theater #stage .mde-room .md-targets {
  grid-area: targets; margin: 5px var(--log-gutter) 0; min-width: 0; gap: 16px;
}
#theater #stage .mde-room .md-scales {
  grid-area: scales; margin: 2px var(--log-gutter) 0; min-width: 0;
}
#theater #stage .mde-room .fde-observations {
  grid-area: notes; grid-template-columns: minmax(0,1fr); align-content: start;
  gap: 10px; padding: 14px var(--log-gutter) 20px; background: transparent;
}
#theater #stage .mde-room .fde-specimens {display: flex;align-items: stretch;gap: 12px}
#theater #stage .mde-room .fde-specimens button {
  display: flex; width: fit-content; min-width:0; align-items:center; gap:7px; text-align:left;
}
#theater #stage .mde-room .fde-specimens img {width:40px;height:40px}
#theater #stage .mde-room .md-proof-line {grid-area:proof; padding:6px var(--log-gutter) 12px}
#theater #stage .mde-room .md-rights {grid-area:rights;align-self:center; padding:6px var(--log-gutter) 12px}

@media (max-width: 900px) {
  #theater #vesper-study:not([hidden]) {
    grid-template-columns:minmax(0,1fr);grid-template-areas:"elevation" "exposure" "details" "drawing";
    grid-template-rows:auto; --drawing-gutter:clamp(15px,3.6vw,28px);
  }
  #theater #vesper-study #light-plate {height:auto; min-height:0;aspect-ratio:1.9}
  #theater #vesper-study .light-instrument {padding-top:14px;gap:4px 8px}
  #theater #vesper-study .light-caption span {font-size:clamp(26px,4vw,34px)}
  #theater #vesper-study .model-details button {justify-content:center;text-align:center}
  #theater #vesper-study .wk-junction-index {
    grid-template-columns:minmax(0,.95fr) minmax(0,1fr);gap:clamp(12px,3vw,28px); padding-block:16px 20px;
  }
  #theater #vesper-study .wk-junction-image {height:auto;max-height:155px}
  #theater #stage .wk-valence {grid-template-columns:minmax(0,1fr)}
  #theater #stage .wk-valence .va-stage {min-height:0; height:clamp(245px,60vw,430px)}
  #theater #stage .wk-valence .va-editorial h2 {font-size:clamp(48px,12vw,80px)}
  #theater #stage .wk-valence .va-stage::after {
    background:linear-gradient(to bottom,var(--join-head),transparent 17px,transparent 80%,#191b18);
  }
  #theater #stage .wk-valence .va-console {
    grid-template-columns:auto minmax(0,1fr); gap:12px 14px; padding:17px clamp(15px,4vw,36px) 20px;
  }
  #theater #stage .mde-room .md-galaxies {
    --log-gutter:clamp(16px,4.3vw,32px);
    grid-template-columns:minmax(0,1fr);grid-template-rows:auto;
    grid-template-areas:"title" "plate" "targets" "scales" "notes" "proof" "rights";
  }
  #theater #stage .mde-room .md-galaxies .md-image {min-height:0; aspect-ratio:1.5}
  #theater #stage .mde-room .md-titles {padding-block:10px 12px}
  #theater #stage .mde-room .md-titles h3 {font-size:clamp(33px,6vw,51px); margin-block:5px}
  #theater #stage .mde-room .md-scales {margin-top:2px}
  #theater #stage .mde-room .fde-observations {padding-block:14px 11px}
  #theater #stage .mde-room .md-proof-line {gap:5px 11px; padding-block:6px}
  #theater #stage .mde-room .md-rights {padding-top:0}
}
@media(max-width:520px) {
  #theater #stage .mde-room .mde-switch {flex-wrap:wrap;gap:0 12px;padding:9px 16px 3px}
  #theater #stage .mde-room .mde-switch h2 {font-size:20px}
  #theater #stage .mde-room .mde-switch>div {gap:12px}
  #theater #stage .mde-room .md-targets {justify-content:space-between;gap:7px}
  #theater #stage .mde-room .md-scales {
    display:flex; align-items:center; justify-content:space-between; gap:3px; flex-wrap:wrap;
  }
  #theater #stage .mde-room .md-scales :is([data-action=minus],[data-action=plus]) {width:44px;min-width:44px}
  #theater #stage .mde-room .md-scales .md-zoom-readout {min-width:20px;width:auto}
  #theater #stage .mde-room .md-scales :is([data-action=detail],[data-action=reset]) {padding-inline:7px;font-size:12px}
  #theater #stage .mde-room .fde-observe-copy p {font-size:14px}
}
@media(forced-colors: active) {
  #theater #vesper-study :is(button,input):focus-visible {outline-color:Highlight}
  #theater #vesper-study .model-details button[aria-pressed=true] {border-color:Highlight}
}
