/* Cinema's navigation stays at the edge of the view. Advanced tools are a disclosure. */
.stage:not(.cinema-ready) .museum-toolbar,
.stage:not(.cinema-ready) .room-hud {
  display: none;
}
.stage.cinema-ready .museum-toolbar {
  top: 12px;
  right: 14px;
  left: auto;
  width: max-content;
  max-width: calc(100% - 28px);
  transform: none;
  overflow: visible;
  align-items: start;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px;
  background: rgb(12 17 23 / 93%);
  box-shadow: 0 4px 18px #0005;
}
.stage.cinema-ready .museum-toolbar button,
.cinema-tools > summary,
.cinema-help > summary {
  min-height: 44px;
  padding: 6px 10px;
  font: 600 .79rem/1.28 var(--sans);
  white-space: normal;
}
.stage.cinema-ready #fullBtn {
  border-color: #ad8a5b;
  color: #f5ddba;
}
.cinema-tools > summary,
.cinema-help > summary {
  display: flex;
  align-items: center;
  gap: .35em;
  border: 1px solid #465263;
  border-radius: 3px;
  background: #1a2430;
  color: #ece6de;
  cursor: pointer;
  list-style: none;
}
.cinema-tools > summary::-webkit-details-marker,
.cinema-help > summary::-webkit-details-marker {
  display: none;
}
.cinema-tools > summary::after,
.cinema-help > summary::after {
  content: '⌄';
  margin-inline-start: auto;
}
.cinema-toolset {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  width: min(350px, calc(100vw - 28px));
  max-height: min(58dvh, 450px);
  overflow: auto;
  overscroll-behavior: contain;
  padding: 7px;
  border: 1px solid #796c55;
  border-radius: 5px;
  background: #131b24;
  box-shadow: 0 12px 30px #000a;
}
.cinema-toolset > button {
  text-align: start;
}
.cinema-help {
  grid-column: 1 / -1;
}
.cinema-help p {
  margin: .45em .2em;
  color: #ece6de;
  font: 400 .82rem/1.45 var(--sans);
}
.cinema-ready .hud-title {
  top: 12px;
  max-width: min(41%, 355px);
  margin: 0;
  padding: 5px 8px;
  background: rgb(9 12 16 / 65%);
}
.cinema-ready .hud-title strong {
  font-size: clamp(14px, 1.65vw, 22px);
}
.cinema-ready .hud-title span {
  font-size: .72rem;
}
.cinema-ready .lookhint,
.cinema-ready .cinema-airpad {
  display: none;
}
.cinema-ready[data-cinema-view=bird] .cinema-airpad,
.cinema-ready.cinema-tools-open .cinema-airpad {
  display: grid;
}
.cinema-ready .cinema-map {
  top: 70px;
}
.cinema-ready .walkpad button {
  min-width: 44px;
  min-height: 44px;
}
.cinema-ready #cinemaCanvas {
  cursor: grab;
}
.cinema-ready #cinemaCanvas.cinema-dragging {
  cursor: grabbing;
}
.cinema-ready .exhibit-panel[data-document=true] .panel-controls,
.cinema-ready .exhibit-panel[data-document=true] .panel-result,
.cinema-ready .exhibit-panel[data-document=true] [hidden] {
  display: none;
}
.stage:fullscreen,
.stage.cinema-expanded {
  width: 100%;
  height: 100%;
  min-height: 0;
}
.stage.cinema-expanded {
  position: fixed;
  inset: 0;
  z-index: 1000;
}
body.cinema-scroll-lock {
  overflow: hidden;
}
@media (max-width: 820px) {
  .stage.cinema-ready .museum-toolbar {
    top: 7px;
    right: 7px;
    left: 7px;
    width: auto;
    max-width: none;
    justify-content: center;
  }
  .cinema-ready .hud-title {
    top: 66px;
    left: 7px;
    max-width: min(78%, 310px);
  }
  .cinema-ready .hud-title span {
    display: none;
  }
}
@media (max-width: 460px) {
  .stage.cinema-ready .museum-toolbar button,
  .cinema-tools > summary {
    padding-inline: 7px;
    font-size: .71rem;
  }
  .cinema-ready .walkpad {
    grid-template-columns: repeat(3, 44px);
    grid-template-rows: repeat(3, 44px);
  }
  .cinema-ready .cinema-airpad {
    grid-template-columns: repeat(2, 44px);
  }
  .cinema-ready .cinema-airpad button {
    min-width: 44px;
    min-height: 44px;
  }
}
[data-contrast=high] .stage.cinema-ready .museum-toolbar,
[data-contrast=high] .cinema-toolset {
  color: #fff;
  background: #000;
  border-color: #fff;
}
[data-contrast=high] .stage.cinema-ready .museum-toolbar button,
[data-contrast=high] .cinema-tools > summary,
[data-contrast=high] .cinema-help > summary {
  color: #fff;
  background: #000;
  border-color: #fff;
}
