#tour-debug {
  position: fixed;
  z-index: 10000;
  left: 8px;
  bottom: 8px;
  width: min(360px, calc(100vw - 16px));
  max-height: calc(100dvh - 72px);
  overflow: auto;
  padding: 10px;
  border: 1px solid #8c98a6;
  border-radius: 8px;
  background: rgba(20, 28, 37, .96);
  color: white;
  font: 13px/1.4 system-ui, sans-serif;
}
#moreInfoBtn[hidden], #autorotateToggle[hidden], #musicToggle[hidden] { display: none; }
#tour-debug summary { cursor: pointer; font-weight: bold; }
#tour-debug .tour-debug-body { padding-top: 8px; }
#tour-debug select, #tour-debug textarea { width: 100%; }
#tour-debug .tour-debug-angles { display: flex; gap: 8px; margin: 8px 0; }
#tour-debug .tour-debug-angles label { flex: 1; min-width: 0; }
#tour-debug input[type=number] { width: 100%; }
#tour-debug input, #tour-debug select, #tour-debug textarea, #tour-debug button {
  font: inherit; color: #13202b; background: #fff; border: 1px solid #9aa5b1;
  border-radius: 4px; padding: 5px; min-height: 32px;
}
#tour-debug textarea { margin: 8px 0; font: 11px/1.3 monospace; resize: vertical; }
#tour-debug textarea, #tour-debug pre, #tour-debug input { user-select: text; -webkit-user-select: text; }
#tour-debug pre { white-space: pre-wrap; font: 11px/1.3 monospace; margin: 8px 0; }
#tour-debug input[type=checkbox] { min-height: auto; }
* {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  -moz-user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -ms-text-size-adjust: none;
  -moz-text-size-adjust: none;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
  -ms-content-zooming: none;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

html,
body {
  width: 100%;
  height: 100%;
  padding: 0;
  margin: 0;
  overflow: hidden;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  background-color: #000;
  color: #fff;
}

a,
a:hover,
a:active,
a:visited {
  text-decoration: none;
  color: inherit;
}

#moreInfoBtn {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  font-family: "Times New Roman", Times, serif;
  bottom: 0px;
  right: 0px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  background-color: rgba(103, 115, 131, 0.8);
  border-radius: 20px 0 0 0;
  color: #fff;
  cursor: pointer;

  user-select: none;
}

#moreInfoBtn img {
  width: 40px;
  height: 40px;
  pointer-events: none;
}

@media screen and (max-width: 600px) {
}

#pano {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

#titleBar {
  position: absolute;
  top: 0;
  left: 0;
  right: 40px;
  height: 40px;
  text-align: center;
}

.mobile #titleBar {
  height: 50px;
  right: 50px;
}

/* If there is a fullscreen button the title bar must make space for it */
body.fullscreen-enabled #titleBar {
  right: 80px;
}

body.fullscreen-enabled.mobile #titleBar {
  right: 100px;
}

/* If there are multiple scenes the title bar must make space for the scene list toggle */
body.multiple-scenes #titleBar {
  left: 40px;
}

body.multiple-scenes.mobile #titleBar {
  left: 50px;
}

#titleBar .sceneName {
  width: 100%;
  height: 100%;
  line-height: 30px;
  padding: 5px;
  background-color: rgb(58, 68, 84);
  background-color: rgba(58, 68, 84, 0.8);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;

  -moz-user-select: text;
  -webkit-user-select: text;
  -ms-user-select: text;
  user-select: text;
}

.mobile #titleBar .sceneName {
  line-height: 40px;
}

#fullscreenToggle {
  display: none;
  position: absolute;
  top: 0;
  right: 0;
  width: 40px;
  height: 40px;
  padding: 5px;
  background-color: rgb(103, 115, 131);
  background-color: rgba(103, 115, 131, 0.8);
}

.mobile #fullscreenToggle {
  width: 50px;
  height: 50px;
}

body.fullscreen-enabled #fullscreenToggle {
  display: block;
}

#fullscreenToggle .icon {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 30px;
  height: 30px;
}

.mobile #fullscreenToggle .icon {
  top: 10px;
  right: 10px;
}

#fullscreenToggle .icon.on {
  display: none;
}

#fullscreenToggle .icon.off {
  display: block;
}

#fullscreenToggle.enabled .icon.on {
  display: block;
}

#fullscreenToggle.enabled .icon.off {
  display: none;
}

#autorotateToggle {
  display: block;
  position: absolute;
  top: 0;
  right: 0;
  width: 40px;
  height: 40px;
  padding: 5px;
  background-color: rgb(103, 115, 131);
  background-color: rgba(103, 115, 131, 0.8);
}

.mobile #autorotateToggle {
  width: 50px;
  height: 50px;
}

/* If there is a fullscreen button, autorotate must placed a bit to the left */
body.fullscreen-enabled #autorotateToggle {
  right: 40px;
}

body.fullscreen-enabled.mobile #autorotateToggle {
  right: 50px;
}

#autorotateToggle .icon {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 30px;
  height: 30px;
}

.mobile #autorotateToggle .icon {
  top: 10px;
  right: 10px;
}

#autorotateToggle .icon.on {
  display: none;
}

#autorotateToggle .icon.off {
  display: block;
}

#autorotateToggle.enabled .icon.on {
  display: block;
}

#autorotateToggle.enabled .icon.off {
  display: none;
}

#musicToggle {
  display: block;
  position: absolute;
  top: 0;
  right: 0;
  width: 40px;
  height: 40px;
  padding: 5px;
  background-color: rgb(103, 115, 131);
  background-color: rgba(103, 115, 131, 0.8);
}

.mobile #musicToggle {
  width: 50px;
  height: 50px;
}

/* If there is a fullscreen button, autorotate must placed a bit to the left */
body.fullscreen-enabled #musicToggle {
  right: 40px;
}

body.fullscreen-enabled.mobile #musicToggle {
  right: 50px;
}

#musicToggle .icon {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 30px;
  height: 30px;
}

.mobile #musicToggle .icon {
  top: 10px;
  right: 10px;
}

@keyframes MusicBounce {
  0% {
    transform: rotate(-2deg);
  }
  50% {
    transform: rotate(2deg) scaleY(0.95);
  }
  100% {
    transform: rotate(-2deg);
  }
}

#musicToggle .icon.on {
  display: none;
}

#musicToggle .icon.off {
  display: block;
}

#musicToggle.enabled .icon.on {
  display: block;
  opacity: 0.4;
  transition: opacity 0.3s;
}

#musicToggle.isPlaying .icon.on {
  opacity: 1;
  animation: MusicBounce 1s infinite;
}

#musicToggle.enabled .icon.off {
  display: none;
}

#sceneListToggle {
  position: absolute;
  top: 0;
  left: 0;
  width: 40px;
  height: 40px;
  padding: 5px;
  background-color: rgb(103, 115, 131);
  background-color: rgba(103, 115, 131, 0.8);
}

.mobile #sceneListToggle {
  width: 50px;
  height: 50px;
}

#sceneListToggle .text {
  position: absolute;
  top: 5px;
  left: 15px;
  width: 100%;
  line-height: 30px;
}

#sceneListToggle .icon {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 30px;
  height: 30px;
}

.mobile #sceneListToggle .icon {
  top: 10px;
  right: 10px;
}

#sceneListToggle .icon.on {
  display: none;
}

#sceneListToggle .icon.off {
  display: block;
}

#sceneListToggle.enabled .icon.on {
  display: block;
}

#sceneListToggle.enabled .icon.off {
  display: none;
}

#sceneList {
  position: absolute;
  top: 0;
  left: 0;
  padding-top: 40px;
  min-width: 220px;
  max-width: 50%;
  max-height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
  transform: translateX(-100%);
  transition: transform 0.5s ease-in-out;
}

.mobile #sceneList {
  padding-top: 50px;
  max-width: 100%;
  min-width: unset;
}

#sceneList .scenes {
  width: 100%;
  background-color: rgb(58, 68, 84);
  background-color: rgba(58, 68, 84, 0.8);
}

.mobile #sceneList {
  width: 100%;
  height: 100%;
}

.mobile #sceneList.enabled {
  transform: translateX(0);
}

/* .mobile #sceneList .scenes {
  height: 100%;
} */

#sceneList.enabled {
  transform: translateX(0);
}

#sceneList .scene {
  display: block;
  width: 100%;
  height: 30px;
}

.mobile #sceneList .scene {
  height: 40px;
}

#sceneList .scene .text {
  width: 100%;
  height: 100%;
  padding: 0 15px;
  line-height: 30px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#sceneList .scene .text .indent {
  font-family: monospace;
  transform: scaleY(1.8);
  transform-origin: left center;
  display: inline-block;
}

.mobile #sceneList .scene .text {
  line-height: 40px;
}

.no-touch #sceneList .scene:hover {
  background-color: rgb(103, 115, 131);
  background-color: rgba(103, 115, 131, 0.8);
}

#sceneList .scene.current {
  background-color: rgb(103, 115, 131);
  background-color: rgba(103, 115, 131, 0.8);
}

/* Hide scene list when only a single scene exists */
body.single-scene #sceneList,
body.single-scene #sceneListToggle {
  display: none;
}

/* Link hotspot */

.hotspot:hover {
  z-index: 1000;
}

.link-hotspot {
  width: 44px;
  height: 44px;
  margin-left: -22px;
  margin-top: -22px;
  border-radius: 50%;
  background: transparent;
  opacity: 1;
  -webkit-transition: opacity 0.2s;
  transition: opacity 0.2s;
}

.no-touch .link-hotspot:hover {
  opacity: 1;
}

.mobile .link-hotspot {
  width: 50px;
  height: 50px;
  margin-left: -25px;
  margin-top: -25px;
  opacity: 1;
}

.link-hotspot-icon {
  position: absolute;
  width: 32px;
  height: 32px;
  left: 6px;
  top: 6px;
  border-radius: 50%;
  background: rgba(35, 44, 56, 0.42);
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .45));
  cursor: pointer;
}

.mobile .link-hotspot-icon {
  width: 36px;
  height: 36px;
  left: 7px;
  top: 7px;
  margin: 0;
}
.navigation-hotspot.edge-represented { visibility: hidden; }
.navigation-hotspot:focus-visible { outline: 2px solid white; outline-offset: 2px; }

#navigation-hints { position: fixed; inset: 0; pointer-events: none; z-index: 5; }
#navigation-hints[hidden], .navigation-hint[hidden] { display: none; }
.navigation-hint {
  position: absolute;
  width: 44px;
  height: 44px;
  margin: -22px 0 0 -22px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: white;
  opacity: .68;
  pointer-events: auto;
  cursor: pointer;
  touch-action: manipulation;
}
.navigation-hint img {
  position: absolute;
  width: 26px;
  height: 26px;
  left: 9px;
  top: 9px;
  border-radius: 50%;
  background: rgba(35, 44, 56, .6);
  filter: drop-shadow(0 1px 2px #0008);
}
.navigation-hint-pointer { position: absolute; inset: 0; transform: rotate(var(--bearing)); }
.navigation-hint-pointer::after {
  content: "";
  position: absolute;
  left: 37px;
  top: 18px;
  border-left: 6px solid white;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  filter: drop-shadow(0 1px 1px #000b);
}
.navigation-hint:hover, .navigation-hint:focus-visible { opacity: 1; }
.navigation-hint:focus-visible { outline: 2px solid white; outline-offset: 2px; }
.navigation-hint-label {
  display: none;
  position: absolute;
  top: 44px;
  left: 50%;
  transform: translateX(-50%);
  max-width: min(220px, calc(100vw - 64px));
  padding: 6px 8px;
  border-radius: 4px;
  background: #232c38e6;
  color: white;
  font: 13px/1.3 sans-serif;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
}
.navigation-hint[data-side=left] .navigation-hint-label { left: 30px; top: 8px; transform: none; }
.navigation-hint[data-side=right] .navigation-hint-label { left: auto; right: 30px; top: 8px; transform: none; }
.navigation-hint[data-side=middle] .navigation-hint-label { top: -30px; }
.no-touch .navigation-hint:hover .navigation-hint-label,
.navigation-hint:focus-visible .navigation-hint-label { display: block; }

.link-hotspot-tooltip {
  position: absolute;
  left: 100%;
  top: 14px; /* ( 60 - (16 + 2*8) ) / 2 */

  margin-left: 3px;

  font-size: 16px;

  width: max-content;
  max-width: 300px;

  padding: 8px 10px;

  border-radius: 5px;

  background-color: rgb(58, 68, 84);
  background-color: rgba(58, 68, 84, 0.8);

  color: #fff;

  white-space: normal;
  overflow-wrap: anywhere;
  overflow: hidden;

  cursor: pointer;

  opacity: 0;

  -ms-transform: translateX(-8px);
  -webkit-transform: translateX(-8px);
  transform: translateX(-8px);

  -webkit-transition:
    -ms-transform 0.3s,
    -webkit-transform 0.3s,
    transform 0.3s,
    opacity 0.3s;
  transition:
    -ms-transform 0.3s,
    -webkit-transform 0.3s,
    transform 0.3s,
    opacity 0.3s;
}

.link-hotspot-tooltip.tooltip-left {
  left: auto;
  right: 100%;
  margin-left: 0;
  margin-right: 3px;
  transform: translateX(8px);
}

.no-touch .link-hotspot:hover .link-hotspot-tooltip {
  opacity: 1;
  -ms-transform: translateX(0);
  -webkit-transform: translateX(0);
  transform: translateX(0);
}

.link-hotspot:focus-visible { outline: 2px solid white; outline-offset: 2px; }
.link-hotspot:focus-visible .link-hotspot-tooltip {
  opacity: 1;
  transform: translateX(0);
}

/* Prevent tooltip from triggering */
.link-hotspot-tooltip {
  pointer-events: none;
}
.no-touch .link-hotspot:hover .link-hotspot-tooltip {
  pointer-events: all;
}

/* Fallback mode without pointer-events (IE8-10) */
.tooltip-fallback .link-hotspot-tooltip {
  display: none;
}
.no-touch .tooltip-fallback .link-hotspot:hover .link-hotspot-tooltip {
  display: block;
}

/* View control buttons */

.viewControlButton {
  display: none;
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 40px;
  height: 40px;
  padding: 5px;
  background-color: rgb(103, 115, 131);
  background-color: rgba(103, 115, 131, 0.8);
}

#audioContainer {
  --plyr-color-main: hsl(214, 12%, 86%);
  --plyr-audio-controls-background: rgb(103, 115, 131);
  --plyr-audio-control-color: hsl(214, 12%, 95%);
  --plyr-audio-control-color-hover: hsl(214, 12%, 45%);

  --plyr-menu-background: var(--plyr-audio-controls-background);
  --plyr-menu-color: var(--plyr-audio-control-color);

  display: none;
  position: absolute;
  bottom: 50px;
  left: 50%;
  transform: translateX(-50%);
  width: 290px;
}

.plyr__controls .plyr__progress__container {
  min-width: 60px;
}

.plyr--audio .plyr__controls {
  padding: 4px;
}

#audioContainer .plyr {
  border-radius: 5px;
  transform-origin: center center;
  animation: none;
  opacity: 0;
}

#audioContainer.show {
  display: block;
}

#audioContainer audio {
  width: 100%;
  height: 100%;
}

@keyframes AudioFadeIn {
  0% {
    transform: scale(0.7);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

#audioContainer.show .plyr {
  animation: AudioFadeIn 200ms ease-out;
  opacity: 1;
}

#audioContainer audio::-webkit-media-controls-enclosure {
  border-radius: 5px;
}

.pin-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 12000;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}

.pin-modal.visible {
  display: flex;
}

.pin-modal [hidden] { display: none; }

.pin-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
}

.pin-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(640px, 100%);
  max-height: calc(100vh - 40px);
  padding: 24px;
  box-sizing: border-box;
  overflow-y: auto;
  border-radius: 5px;
  background: rgb(58, 68, 84);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
  animation: pin-modal-enter 180ms ease-out;
}

@keyframes pin-modal-enter {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .pin-modal-dialog { animation: none; }
}

.pin-modal-close {
  position: absolute;
  top: 0;
  right: 0;
  width: 40px;
  height: 40px;
  padding: 8px;
  border: 0;
  border-radius: 0 5px 0 5px;
  background: rgb(78, 88, 104);
  cursor: pointer;
}

.pin-modal-close img {
  width: 100%;
  height: 100%;
}

.pin-modal-dialog h2 {
  margin: 0 40px 16px 0;
  font-size: 1.25em;
  font-weight: 600;
}

.pin-modal #audioContainer {
  display: block;
  position: static;
  width: auto;
  margin: 0;
  transform: none;
}

.pin-modal #audioContainer .plyr {
  opacity: 1;
  animation: none;
}

.pin-modal-images {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.pin-modal-thumbnail {
  display: block;
  width: 96px;
  height: 68px;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 3px;
}

.pin-modal-thumbnail:hover,
.pin-modal-thumbnail:focus {
  border-color: rgb(170, 180, 195);
}

.pin-modal-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pin-modal-text {
  margin-top: 18px;
  color: #fff;
  line-height: 1.5em;
  white-space: pre-line;
  user-select: text;
}

.pin-modal-text.is-html { white-space: normal; }
.pin-modal-text.is-html > :first-child { margin-top: 0; }
.pin-modal-text.is-html p + p { margin-top: 1em; }
.pin-modal-text.is-html > :last-child { margin-bottom: 0; }

.pin-modal-video {
  margin-top: 18px;
  aspect-ratio: 16 / 9;
}

.pin-modal-video iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

body.view-control-buttons .viewControlButton {
  display: block;
}

/* Hide controls when width is too small */
@media (max-width: 600px) {
  body.view-control-buttons .viewControlButton {
    display: none;
  }

  #audioContainer {
    bottom: 0;
    width: calc(100% - 50px);
    transform: unset;
    left: 0;
  }
}

.viewControlButton .icon {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 30px;
  height: 30px;
}

/* Center is at margin-left: -20px */
.viewControlButton-1 {
  margin-left: -145px;
}
.viewControlButton-2 {
  margin-left: -95px;
}
.viewControlButton-3 {
  margin-left: -45px;
}
.viewControlButton-4 {
  margin-left: 5px;
}
.viewControlButton-5 {
  margin-left: 55px;
}
.viewControlButton-6 {
  margin-left: 105px;
}
.glightbox-clean .gdesc-inner {
  padding: 0.5em 0.8em;
}
.glightbox-clean .gslide-description {
  background: #000a;
}
.glightbox-clean .gslide-title {
  color: #fff;
  font-weight: 600;
  font-size: 120%;
  margin-bottom: 0.05em;
}
.glightbox-clean .gslide-description {
  color: #ccc;
}

/* The vendor skin places these controls above the viewport on small screens. */
@media (max-width: 768px) {
  .glightbox-clean .gprev,
  .glightbox-clean .gnext {
    top: auto;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    width: 44px;
    height: 44px;
  }
  .glightbox-clean .gprev { left: calc(50% - 54px); }
  .glightbox-clean .gnext { right: calc(50% - 54px); }
  .glightbox-mobile .glightbox-container .gslide-description {
    padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px));
  }
}

.gslide-inline {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: transparent;
}

#pr-info {
  font-size: 110%;
  line-height: 1.4em;
  text-align: center;
}
#pr-info .logo_cnt {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
}
#pr-info strong {
  display: inline-block;
  font-weight: 700;
  margin-bottom: 0.2em;
}
#pr-info .tmdlogo {
  height: 80px;
  vertical-align: middle;
  margin: 1.5em 1.2em 0.3em 1.2em;
  transition: transform 0.3s ease-in-out;
  will-change: transform;
}
#pr-info .tmdlogo:hover {
  transform: scale(1.1);
  transform-origin: center;
}
