/* Framing and controls apply only to the Birkirkara cutaway. */
#tour[data-mode="model"] .stage {
  height: clamp(420px, calc(100svh - 115px), 1350px);
  max-height: none;
}
#model-scene .render-viewport {
  position: absolute;
  inset: 0 calc(var(--edge) + 54px) 0 0;
  overflow: hidden;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
#model-scene .render-viewport[data-zoomed] { cursor: grab; }
#model-scene .render-viewport:active[data-zoomed] { cursor: grabbing; }
#model-scene .render-viewport:focus-visible { outline-offset: -4px; }
#model-scene .render-image {
  display: block;
  position: absolute;
  left: 0;
  top: 0;
  pointer-events: none;
  max-width: none;
  mask-image: linear-gradient(to right, transparent, black 1.6%, black 98.4%, transparent),
    linear-gradient(to bottom, transparent, black 4%, black 96%, transparent);
  mask-composite: intersect;
}
#model-scene .render-marker, #model-scene .render-toolbar {
  position: absolute;
  font-family: inherit;
  color: var(--cream);
  background: #25261fe8;
  border: 1px solid #f4e8cf58;
  border-radius: 5px;
  box-shadow: 0 5px 20px #14151021;
}
#model-scene .render-marker {
  transform: translate(-50%, -100%);
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  gap: 6px;
  min-height: 32px;
  padding: 3px 9px;
  font-size: .81rem;
}
#model-scene .render-marker::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background:var(--brass); }
#model-scene .render-toolbar { display: flex; align-items: center; padding: 2px; bottom: 12px; z-index: 2; }
#model-scene .render-switch { left: var(--edge); }
#model-scene .render-zoom { right: 12px; }
#model-scene .render-toolbar button { display: inline-flex; gap: 6px; align-items: center; justify-content: center; border-radius: 3px; min-height: 40px; min-width: 42px; font-size: .875rem; font-weight: 550; }
#model-scene .render-toolbar button:hover:not(:disabled) { background: #ffffff19; }
#model-scene .render-switch button { padding-inline: 10px; }
#model-scene .render-switch button[aria-pressed="true"] { color: var(--ink); background: #f0debb; }
#model-scene .render-toolbar svg { width: 16px; height: 16px; }
#model-scene .render-switch [data-expand] { border-left: 1px solid #f4e8cf58; border-radius: 0; min-width: 42px; padding-inline: 7px; }
#model-scene .orbit-frame { position: absolute; inset: 0; }
#model-scene .render-status { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); font-size: .875rem; margin: 0; }
#tour[data-mode="model"] .stage:fullscreen, #tour[data-expanded][data-mode="model"] .stage {
  width: 100%; height: 100dvh; max-height: none;
}
#tour[data-expanded][data-mode="model"] .stage { position: fixed; inset: 0; z-index: 100; }
body:has(#tour[data-expanded][data-mode="model"]) { overflow: hidden; }
@media(max-width:740px) {
  #tour[data-mode="model"] .stage { height: max(386px, calc(100svh - 100px)); }
  #model-scene .render-viewport { inset: 0 0 40px; }
  #model-scene .render-toolbar { bottom: 1px; }
  #model-scene .render-switch { left: 10px; }
  #model-scene .render-switch button { padding-inline: 8px; }
  #model-scene .render-zoom { right: 10px; }
  #model-scene .render-toolbar button { min-width: 36px; }
  #model-scene .orbit-frame { bottom: 50px; }
}
@media(max-height:480px) and (orientation:landscape) {
  #tour[data-mode="model"] .stage { height: max(260px, calc(100svh - 54px)); }
}
