/* View animation is separate from the time and position demonstrations. */
.perspective-view-control {
  display: none;
  position: absolute;
  z-index: 6;
  top: 58px;
  right: 20px;
  padding: 7px 10px;
  border: 1px solid #c0a58280;
  background: #2c2524e8;
  color: #eadfce;
  font: 10px var(--sans);
  letter-spacing: .04em;
  cursor: pointer;
}
.webgl-ready > .perspective-view-control { display: block; }
.perspective-view-control[aria-pressed="true"] {
  border-color: #dab77d;
  background: #b7955f40;
  color: #fff0d5;
}
.perspective-view-control:hover { border-color: #e4c28c; background: #b6976755; }
.perspective-view-control:focus-visible { outline: 2px solid #f1d29d; outline-offset: 3px; }
.season-stage > .perspective-view-control { top: 96px; right: 18px; }
/* Keep the moon-path controls in their own row above the moving model. */
.moonpath-stage.webgl-ready > .moon-3d { margin-top: 38px; }
.moonpath-stage.webgl-ready > .scene-auto,
.moonpath-stage.webgl-ready > .scene-reset-moon { top: 32px; }
/* Give the objects a larger stage; keep labels and controls outside the sky. */
@media (min-width: 921px) and (min-height: 601px) {
  .landscape-exhibit .prologue {
    grid-template-columns: minmax(300px,.88fr) minmax(360px,1.12fr);
    gap: clamp(24px,4vw,60px);
  }
  .landscape-exhibit .hero-visual { height: clamp(390px,72vh,640px); }
  .landscape-exhibit .prologue-visual { height: clamp(420px,72vh,630px); }
  .landscape-exhibit :is(.season-experience,.calendar-grid,.instrument-layout,.moonpath-layout) {
    grid-template-columns: minmax(0,1.15fr) minmax(0,.85fr);
    gap: 4%;
  }
  .landscape-exhibit .season-experience { height: clamp(480px,82vh,640px); }
  .landscape-exhibit .season-stage.webgl-ready > .scene3d { top: 84px; bottom: 35px; }
  .landscape-exhibit .season-stage.webgl-ready > :is(.season-scene-play,.perspective-view-control,.scene-reset) { top: 46px; }
  .landscape-exhibit .season-stage.webgl-ready > .season-scene-play { left: 28px; }
  .landscape-exhibit .season-stage.webgl-ready > .perspective-view-control { right: 98px; }
  .landscape-exhibit .season-stage.webgl-ready > .scene-reset { right: 18px; }
  .landscape-exhibit :is(.calendar-illustration,.instrument-stage) { height: clamp(430px,70vh,560px); }
  .landscape-exhibit .star-lab-layout { grid-template-columns: minmax(0,1.25fr) minmax(0,.9fr); gap: 5%; }
  .landscape-exhibit .star-wheel-wrap { width: min(100%,calc(100svh - 245px),580px); max-width: 580px; }
  .landscape-exhibit .star-atlas-layout { grid-template-columns: minmax(0,1.22fr) minmax(0,.85fr); gap: 5%; }
  .landscape-exhibit .atlas-stage { height: clamp(440px,72vh,560px); }
  .landscape-exhibit #eclipse > .wrap { grid-template-columns: 1.25fr .85fr; }
  .landscape-exhibit #eclipse .inline-scene { height: clamp(300px,49vh,400px); }
  .landscape-exhibit .lunar-stage { min-height: 480px; }
  .landscape-exhibit .moonpath-stage.webgl-ready > .moon-3d { height: clamp(390px,65vh,520px); }
}
.landscape-exhibit .atlas-stage #atlas-canvas { top: 34px; bottom: 40px; }
.landscape-exhibit .atlas-overlay { top: 4px; }
@media (max-width: 760px) {
  .perspective-view-control { top: 50px; right: 14px; }
  .season-stage > .perspective-view-control { top: 84px; right: 12px; }
}
@media (min-width: 701px) and (max-height: 600px) and (orientation: landscape) {
  /* The right-hand explanation can be long; it must not stretch the canvas. */
  .landscape-exhibit .season-experience { height: auto; align-items: start; }
  .landscape-exhibit .season-stage {
    height: clamp(300px, calc(100svh - 90px), 360px);
    min-height: 0;
  }
  .landscape-exhibit .season-panel { height: clamp(300px, calc(100svh - 90px), 360px); overflow-y: auto; }
  .landscape-exhibit :is(.calendar-illustration,.instrument-stage) { height: clamp(235px,calc(100svh - 132px),320px); }
  .landscape-exhibit .star-wheel-wrap { width: min(100%,calc(100svh - 120px),520px); }
  .landscape-exhibit .atlas-stage { height: clamp(245px,calc(100svh - 130px),320px); }
  .landscape-exhibit .moonpath-stage.webgl-ready > .moon-3d { height: clamp(235px,calc(100svh - 145px),300px); }
  .landscape-exhibit #eclipse .inline-scene { height: clamp(200px,calc(100svh - 150px),300px); }
  .landscape-exhibit .season-stage .stage-top { top: 6px; }
  .landscape-exhibit .season-stage.webgl-ready > .season-scene-play,
  .landscape-exhibit .season-stage.webgl-ready > .perspective-view-control,
  .landscape-exhibit .season-stage.webgl-ready > .scene-reset { top: 26px; }
  .landscape-exhibit .season-stage.webgl-ready > .season-scene-play { left: 6px; }
  .landscape-exhibit .season-stage.webgl-ready > .perspective-view-control { right: 76px; }
  .landscape-exhibit .season-stage.webgl-ready > .scene-reset { right: 6px; }
  .landscape-exhibit .season-stage.webgl-ready > .scene3d { top: 62px; bottom: 24px; }
  .landscape-exhibit .season-stage .scene-hint { bottom: 0; }
}
@media (min-width: 701px) and (max-width: 760px) and (max-height: 600px) and (orientation: landscape) {
  .landscape-exhibit .season-stage.webgl-ready > :is(.season-scene-play,.perspective-view-control,.scene-reset) {
    padding-inline: 5px;
    font-size: 9px;
  }
}
