/* The side panel layout for the desktop version.
   desktop.html loads this after desktop.css. desktop-classic.html does not, so the classic layout is untouched.
   On a narrow window (under 900px wide) none of this applies and the bottom panel is used as before. */

@media (min-width: 900px) {
  :root {
    --side-w: clamp(420px, 34vw, 560px);
    --side-top: var(--banner-h, 0px);
  }

  /* The globe takes everything to the left of the panel, full height */
  .desktop-side .map-element { right: var(--side-w); bottom: 0; transition: none; }

  /* The header stops at the panel, so the pointer button stays on the globe */
  .desktop-side #header { right: var(--side-w); }

  /* The section buttons run along the top of the panel */
  .desktop-side .tab-button-container {
    top: var(--side-top);
    bottom: auto;
    left: auto;
    right: 0;
    width: var(--side-w);
    height: 64px;
    padding-bottom: 0;
    border-top: 0;
    border-bottom: 1px solid var(--line);
    border-left: 1px solid var(--line);
  }
  .desktop-side .tab-button.active::before { top: auto; bottom: 0; border-radius: 3px 3px 0 0; }
  .desktop-side .tab-button { cursor: pointer; }
  .desktop-side .tab-button:hover { color: var(--text); }

  /* The panel is always open, down the right hand side */
  .desktop-side #sheet,
  html[data-sheet="closed"] .desktop-side #sheet {
    visibility: visible;
    top: calc(var(--side-top) + 64px);
    bottom: 0;
    left: auto;
    right: 0;
    width: var(--side-w);
    height: auto;
    border-radius: 0;
    border: 0;
    border-left: 1px solid var(--line);
    box-shadow: none;
    transition: none;
  }
  .desktop-side #sheet-handle { cursor: default; pointer-events: none; padding-top: 12px; }
  .desktop-side #sheet-handle::before { display: none; }
  .desktop-side #sheet-title { font-size: 17px; }

  /* Pop-ups that open from the header stay on the globe side */
  .desktop-side #cameraSettingsContainer { right: calc(var(--side-w) + 12px); max-height: calc(100% - var(--header-h) - 20px); }

  /* The dials are a little smaller, so less scrolling is needed */
  .desktop-side #camOrientationDiv svg.dial { width: 120px; height: 120px; }
}
