/*
 * Injected into the SuperSplat viewer by scripts/sync-supersplat-viewer.mjs.
 * The scan is meant to be looked at, not navigated: the only interaction we
 * keep is orbiting the scene, so every control that changes the camera mode or
 * opens viewer chrome is removed.
 */

#play,
#pause,
#orbitCamera,
#flyCamera,
#fpsCamera,
#info,
#settings,
#enterFullscreen,
#exitFullscreen {
  display: none !important;
}

/*
 * The viewer collapses a button group once all its children carry .hidden.
 * Ours are hidden by id instead, so the same rule is restated with those ids
 * treated as invisible — otherwise an empty translucent pill would be left
 * floating over the scan.
 */
#controlsWrap
  > #buttonsContainer
  .buttonGroup:not(
    :has(
      > :not(
        .hidden,
        #play,
        #pause,
        #orbitCamera,
        #flyCamera,
        #fpsCamera,
        #info,
        #settings,
        #enterFullscreen,
        #exitFullscreen
      )
    )
  ) {
  display: none;
}
