/* Pannellum 2.5.7 adjustments for the Langley tours (see ../js/pannellum-tour.js). */

/* Keep the tour's own fonts and a dark backdrop instead of Pannellum's defaults. */
#pano.pnlm-container {
  font-family: inherit;
  line-height: inherit;
  background: #000;
  contain: none;
  /* Keep Pannellum's layers (its drag layer has z-index 1) inside the viewer, so the
     tour's own buttons (arrows, zoom, autorotate, fullscreen, scene list) stay on top
     and clickable. */
  isolation: isolate;
  z-index: 0;
}

/* Hotspot anchor: zero-size, so the tour's hotspot element is placed exactly
   as before (its top-left corner on the hotspot point). */
.pnlm-hotspot-base.vt-hotspot {
  width: 0;
  height: 0;
  overflow: visible;
  cursor: default;
}
/* Pannellum forces "box-sizing: content-box" on everything inside the viewer, but the
   tours' hotspots are designed for border-box (css/style.css). Without this, ringed
   hotspots draw their inner dot off-centre. */
#pano .vt-hotspot,
#pano .vt-hotspot *,
#pano .vt-hotspot *::before,
#pano .vt-hotspot *::after { box-sizing: border-box; }

/* Bring the hotspot under the pointer above its neighbours (hover pop-ups). */
.pnlm-hotspot-base.vt-hotspot:hover,
.pnlm-hotspot-base.vt-hotspot:focus-within { z-index: 5; }

/* Scene list is <li><a class="scene"><span class="text">: keep the span sized like the old <li>. */
#sceneList .scene .text { display: block; }

/* Show the arrow/zoom buttons on phones in every tour (the tours' own CSS hid them
   under 600px in some tours only). Home/Map (js/back-to-map.js) sits above this row. */
@media (max-width: 600px) {
  .viewControlButton,
  body.view-control-buttons .viewControlButton { display: block; }
}

/* Hide Pannellum's right-click "About" pop-up. */
#pano .pnlm-about-msg { display: none !important; }
