* {
  -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: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 16px;
  background-color: #000;
  color: #fff;
}

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

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

/* Powered By Branding */
.powered-by {
  position: fixed;
  bottom: 30px;
  left: 30px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: white;
  font-size: 12px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
  z-index: 100;
  background: rgba(0,0,0,0.5);
  padding: 8px 15px;
  border-radius: 20px;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.powered-by svg {
  width: 18px;
  height: 18px;
  fill: white;
}

.powered-by a {
  color: #ff6600;
  font-weight: 600;
  transition: color 0.3s;
}

.powered-by a:hover {
  color: #ff8533;
}

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

.mobile #titleBar {
  height: 50px;
  right: 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: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  bottom: 80px;
  right: 15px;
  width: 50px;
  height: 50px;
  padding: 0;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 50%;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255,255,255,0.3);
  cursor: pointer;
  transition: all 0.3s;
}

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

#fullscreenToggle:hover {
  background: rgb(123 20 54 / 98%);
  transform: scale(1.1);
  border-color: rgba(255,255,255,0.5);
}

#fullscreenToggle .icon {
  position: static;
  width: 24px;
  height: 24px;
}

.mobile #fullscreenToggle .icon {
  width: 24px;
  height: 24px;
}

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

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

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

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

#autorotateToggle {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  bottom: 15px;
  right: 15px;
  width: 50px;
  height: 50px;
  padding: 0;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 50%;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255,255,255,0.3);
  cursor: pointer;
  transition: all 0.3s;
}

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

#autorotateToggle:hover {
  background: rgb(123 20 54 / 98%);
  transform: scale(1.1);
  border-color: rgba(255,255,255,0.5);
}

#autorotateToggle .icon {
  position: static;
  width: 24px;
  height: 24px;
}

.mobile #autorotateToggle .icon {
  width: 24px;
  height: 24px;
}

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

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

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

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

#sceneListToggle {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  bottom: 80px;
  right: 15px;
  width: 50px;
  height: 50px;
  padding: 0;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 50%;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255,255,255,0.3);
  cursor: pointer;
  transition: all 0.3s;
}

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

#sceneListToggle:hover {
  background: rgb(123 20 54 / 98%);
  transform: scale(1.1);
  border-color: rgba(255,255,255,0.5);
}

#sceneListToggle .text {
  display: none;
}

#sceneListToggle .icon {
  position: static;
  width: 24px;
  height: 24px;
}

.mobile #sceneListToggle .icon {
  width: 24px;
  height: 24px;
}

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

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

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

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

#sceneList {
  position: fixed;
  left: 30px;
  top: 50%;
  transform: translateY(-50%);
  width: auto;
  max-width: 250px;
  max-height: 70vh;
  overflow-x: hidden;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  -webkit-transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
  transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
  z-index: 100;
  padding-right: 10px;
}

/* Hide scrollbar for scene list while keeping scroll functionality */
#sceneList {
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
}

#sceneList::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

.mobile #sceneList {
  top: 60px;
  transform: none;
  max-height: calc(100vh - 80px);
}

#sceneList .scenes {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
  background: transparent;
}

.mobile #sceneList .scenes {
  gap: 10px;
}

#sceneList.enabled {
  opacity: 1;
  visibility: visible;
}

#sceneList .scenes li {
  display: block;
  width: 100%;
  list-style: none;
}

#sceneList .scenes li a.location {
  display: block;
  background: transparent;
  color: white;
  padding: 8px 20px;
  border-radius: 0;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  border-left: 2px solid rgba(0, 0, 0, 0.8);
  text-decoration: none;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

#sceneList .scenes li a.location .text {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mobile #sceneList .scenes li a.location {
  padding: 10px 18px;
  font-size: 13px;
}

/* Default location icon */
#sceneList .scenes li a.location .text::before {
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  content: '\f3c5';
  margin-right: 10px;
  opacity: 0.9;
}

/* Specific icons for each location */
/* Flag Stand - 0-inside1 */
#sceneList .scenes li a[data-scene-id="0-inside1"] .text::before {
  content: '\f024';  /* Flag icon */
}

/* Admin Block - 1-inside2 */
#sceneList .scenes li a[data-scene-id="1-inside2"] .text::before {
  content: '\f19c';  /* Building icon */
}

/* Electronics & Communication Department - 3-left2 */
#sceneList .scenes li a[data-scene-id="3-left2"] .text::before {
  content: '\f2db';  /* Microchip icon */
}

/* Civil Engineering Department - 4-left3 */
#sceneList .scenes li a[data-scene-id="4-left3"] .text::before {
  content: '\f6d1';  /* Hard hat icon */
}

/* Mechanical Engineering - 5-left4 */
#sceneList .scenes li a[data-scene-id="5-left4"] .text::before {
  content: '\f013';  /* Gear/Cog icon */
}

/* Cafeteria - 7-right2 */
#sceneList .scenes li a[data-scene-id="7-right2"] .text::before {
  content: '\f2e7';  /* Utensils icon */
}

/* Center Library - 8-right3 */
#sceneList .scenes li a[data-scene-id="8-right3"] .text::before {
  content: '\f02d';  /* Book icon */
}

/* Back Stage - 9-back */
#sceneList .scenes li a[data-scene-id="9-back"] .text::before {
  content: '\f5a0';  /* Stage/Theater icon */
}

/* Bus Stand - 12-outside4 */
#sceneList .scenes li a[data-scene-id="12-outside4"] .text::before {
  content: '\f207';  /* Bus icon */
}

/* Student Parking - 16-outside8 */
#sceneList .scenes li a[data-scene-id="16-outside8"] .text::before {
  content: '\f1b9';  /* Car icon */
}

/* College Entrance - 19-outside11 */
#sceneList .scenes li a[data-scene-id="19-outside11"] .text::before {
  content: '\f52b';  /* Door/Entrance icon */
}

/* Bus Stand - 27-outside19 */
#sceneList .scenes li a[data-scene-id="27-outside19"] .text::before {
  content: '\f55e';  /* Shuttle Bus icon */
}

.no-touch #sceneList .scenes li:hover a.location,
#sceneList .scenes li a.location.current {
  background: rgba(0, 0, 0, 0.2);
  color: rgba(255, 255, 255, 1);
  border-left-color: rgba(0, 0, 0, 1);
  transform: translateX(5px);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7);
}

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

/* Link hotspot */

.link-hotspot {
  width: 60px;
  height: 60px;
  margin-left: -30px;
  margin-top: -30px;
  opacity: 0.9;
  -webkit-transition: opacity 0.2s;
  transition: opacity 0.2s;
}

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

.mobile .link-hotspot {
  width: 70px;
  height: 70px;
}

.link-hotspot-icon {
  width: 100%;
  height: 100%;
  cursor: pointer;
}

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

  margin-left: 3px;

  font-size: 16px;

  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: nowrap;
  text-overflow: ellipsis;
  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;
}

.mobile .link-hotspot {
  top: 19px; /* ( 70 - (16 + 2*8) ) / 2 */
}

.no-touch .link-hotspot:hover .link-hotspot-tooltip {
  opacity: 1;
  -ms-transform: translateX(0);
  -webkit-transform: translateX(0);
  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;
}

/* Info hotspot */

.info-hotspot {
  line-height: 1.2em;
  opacity: 0.9;
  -webkit-transition: opacity 0.2s 0.2s;
  transition: opacity 0.2s 0.2s;
}

.no-touch .info-hotspot:hover {
  opacity: 1;
  -webkit-transition: opacity 0.2s;
  transition: opacity 0.2s;
}

.info-hotspot.visible {
  opacity: 1;
}

.info-hotspot .info-hotspot-header {
  width: 40px;
  height: 40px;
  border-radius: 20px;
  background-color: rgb(103,115,131);
  cursor: pointer;
  -webkit-transition: width 0.3s ease-in-out 0.5s,
                      border-radius 0.3s ease-in-out 0.5s;
  transition: width 0.3s ease-in-out 0.5s,
              border-radius 0.3s ease-in-out 0.5s;
}

.mobile .info-hotspot .info-hotspot-header {
  width: 50px;
  height: 50px;
  border-radius: 25px;
}

.desktop.no-touch .info-hotspot .info-hotspot-header:hover {
  width: 260px;
  border-radius: 5px;
  -webkit-transition: width 0.3s ease-in-out,
                      border-radius 0.3s ease-in-out;
  transition: width 0.3s ease-in-out,
              border-radius 0.3s ease-in-out;
}

.desktop .info-hotspot.visible .info-hotspot-header,
.desktop.no-touch .info-hotspot.visible .info-hotspot-header:hover {
  width: 260px;
  border-radius: 5px;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  border-bottom-left-radius: 0;
  -webkit-transition: width 0.3s ease-in-out,
                      border-radius 0.3s ease-in-out;
  transition: width 0.3s ease-in-out,
              border-radius 0.3s ease-in-out;
}

.info-hotspot .info-hotspot-icon-wrapper {
  width: 40px;
  height: 40px;
}

.mobile .info-hotspot .info-hotspot-icon-wrapper {
  width: 50px;
  height: 50px;
}

.info-hotspot .info-hotspot-icon {
  width: 90%;
  height: 90%;
  margin: 5%;
}

.info-hotspot .info-hotspot-title-wrapper {
  position: absolute;
  left: 40px;
  top: 0;
  width: 0;
  height: 40px;
  padding: 0;
  overflow: hidden;
  -webkit-transition: width 0s 0.4s,
                      padding 0s 0.4s;
  transition: width 0s 0.4s,
              padding 0s 0.4s;
}

.desktop .info-hotspot.visible .info-hotspot-title-wrapper,
.desktop.no-touch .info-hotspot .info-hotspot-header:hover .info-hotspot-title-wrapper {
  width: 220px;
  padding: 0 5px;
  -webkit-transition: width 0s 0.4s,
                      padding 0s 0.4s;
  transition: width 0s 0.4s,
              padding 0s 0.4s;
}

.info-hotspot .info-hotspot-title-wrapper:before {
  content: '';
  display: inline-block;
  vertical-align: middle;
  height: 100%;
}

.info-hotspot .info-hotspot-title {
  display: inline-block;
  vertical-align: middle;

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

.info-hotspot .info-hotspot-close-wrapper {
  position: absolute;
  left: 260px;
  top: 0;
  height: 40px;
  width: 40px;
  border-top-right-radius: 5px;
  background-color: rgb(78,88,104);
  visibility: hidden;
  -ms-transform: perspective(200px) rotateY(90deg);
  -webkit-transform: perspective(200px) rotateY(90deg);
  transform: perspective(200px) rotateY(90deg);
  -ms-transform-origin: 0 50% 0;
  -webkit-transform-origin: 0 50% 0;
  transform-origin: 0 50% 0;
  -webkit-transition: -ms-transform 0.3s 0.3s,
                      -webkit-transform 0.3s 0.3s,
                      transform 0.3s 0.3s,
                      visibility 0s 0.6s;
  transition: -ms-transform 0.3s 0.3s,
              -webkit-transform 0.3s 0.3s,
              transform 0.3s 0.3s,
              visibility 0s 0.6s;
}

.desktop .info-hotspot.visible .info-hotspot-close-wrapper {
  visibility: visible;
  -ms-transform: perspective(200px) rotateY(0deg);
  -webkit-transform: perspective(200px) rotateY(0deg);
  transform: perspective(200px) rotateY(0deg);
  -webkit-transition: -ms-transform 0.3s,
                      -webkit-transform 0.3s,
                      transform 0.3s,
                      visibility 0s 0s;
  transition: -ms-transform 0.3s,
              -webkit-transform 0.3s,
              transform 0.3s,
              visibility 0s 0s;
}

.info-hotspot .info-hotspot-close-icon {
  width: 70%;
  height: 70%;
  margin: 15%;
}

.info-hotspot .info-hotspot-text {
  position: absolute;
  width: 300px;
  height: auto;
  max-height: 200px;
  top: 40px;
  left: 0;
  padding: 10px;
  background-color: rgb(58,68,84);
  border-bottom-right-radius: 5px;
  border-bottom-left-radius: 5px;
  overflow-y: auto;
  visibility: hidden;
  /* rotate(90deg) causes transition flicker on Firefox 58 */
  -ms-transform: perspective(200px) rotateX(-89.999deg);
  -webkit-transform: perspective(200px) rotateX(-89.999deg);
  transform: perspective(200px) rotateX(-89.999deg);
  -ms-transform-origin: 50% 0 0;
  -webkit-transform-origin: 50% 0 0;
  transform-origin: 50% 0 0;
  -webkit-transition: -ms-transform 0.3s,
                      -webkit-transform 0.3s,
                      transform 0.3s,
                      visibility 0s 0.3s;
  transition: -ms-transform 0.3s,
              -webkit-transform 0.3s,
              transform 0.3s,
              visibility 0s 0.3s;

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

.desktop .info-hotspot.visible .info-hotspot-text {
  visibility: visible;
  -ms-transform: perspective(200px) rotateX(0deg);
  -webkit-transform: perspective(200px) rotateX(0deg);
  transform: perspective(200px) rotateX(0deg);
  -webkit-transition: -ms-transform 0.3s 0.3s,
                      -webkit-transform 0.3s 0.3s,
                      transform 0.3s 0.3s,
                      visibility 0s 0s;
  transition: -ms-transform 0.3s 0.3s,
              -webkit-transform 0.3s 0.3s,
              transform 0.3s 0.3s,
              visibility 0s 0s;
}

/* Info hotspot modal */

.desktop .info-hotspot-modal {
  display: none;
}

.info-hotspot-modal {
  top: 0;
  left: 0;
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 11000 !important;
  background-color: rgba(0,0,0,.5);
  line-height: 1.2em;
  opacity: 0;
  visibility: hidden;
  -webkit-transition: opacity 0.2s ease-in-out 0.5s,
                      visibility 0s 0.7s;
  transition: opacity 0.2s ease-in-out 0.5s,
              visibility 0s 0.7s;
}

.info-hotspot-modal.visible {
  opacity: 1;
  visibility: visible;
  -webkit-transition: opacity 0.2s ease-in-out,
                      visibility 0s 0s;
  transition: opacity 0.2s ease-in-out,
              visibility 0s 0s;
}

.info-hotspot-modal .info-hotspot-header {
  position: absolute;
  top: 60px;
  left: 10px;
  right: 10px;
  width: auto;
  height: 50px;
  background-color: rgb(103,115,131);
  background-color: rgba(103,115,131,0.8);
  opacity: 0;
  -webkit-transition: opacity 0.3s ease-in-out 0.2s;
  transition: opacity 0.3s ease-in-out 0.2s;
}

.info-hotspot-modal.visible .info-hotspot-header {
  opacity: 1;
  -webkit-transition: opacity 0.3s ease-in-out 0.2s;
  transition: opacity 0.3s ease-in-out 0.2s;
}

.info-hotspot-modal .info-hotspot-icon-wrapper {
  width: 50px;
  height: 50px;
}

.info-hotspot-modal .info-hotspot-icon {
  width: 90%;
  height: 90%;
  margin: 5%;
}

.info-hotspot-modal .info-hotspot-title-wrapper {
  position: absolute;
  top: 0;
  left: 50px;
  right: 50px;
  width: auto;
  height: 50px;
  padding: 0 10px;
}

.info-hotspot-modal .info-hotspot-title-wrapper:before {
  content: '';
  display: inline-block;
  vertical-align: middle;
  height: 100%;
}

.info-hotspot-modal .info-hotspot-title {
  display: inline-block;
  vertical-align: middle;

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

.info-hotspot-modal .info-hotspot-close-wrapper {
  position: absolute;
  top: 0;
  right: 0;
  width: 50px;
  height: 50px;
  background-color: rgb(78,88,104);
  background-color: rgba(78,88,104,0.8);
  cursor: pointer;
}

.info-hotspot-modal .info-hotspot-close-icon {
  width: 70%;
  height: 70%;
  margin: 15%;
}

.info-hotspot-modal .info-hotspot-text {
  position: absolute;
  top: 110px;
  bottom: 10px;
  left: 10px;
  right: 10px;
  padding: 10px;
  background-color: rgb(58,68,84);
  background-color: rgba(58,68,84,0.8);
  overflow-y: auto;
  opacity: 0;
  -webkit-transition: opacity 0.3s ease-in-out;
  transition: opacity 0.3s ease-in-out;

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

.info-hotspot-modal.visible .info-hotspot-text {
  opacity: 1;
  -webkit-transition: opacity 0.3s ease-in-out 0.4s;
  transition: opacity 0.3s ease-in-out 0.4s;
}

/* View control buttons */

.viewControlButton {
  display: none;
  align-items: center;
  justify-content: center;
  position: absolute;
  right: 15px;
  width: 50px;
  height: 50px;
  padding: 0;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 50%;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255,255,255,0.3);
  cursor: pointer;
  transition: all 0.3s;
}

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

body.view-control-buttons .viewControlButton:hover {
  background: rgb(123 20 54 / 98%);
  transform: scale(1.1);
  border-color: rgba(255,255,255,0.5);
}

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

.viewControlButton .icon {
  position: static;
  width: 24px;
  height: 24px;
}

/* Stack vertically on right side from bottom */
.viewControlButton-1 {
  bottom: 340px;
}
.viewControlButton-2 {
  bottom: 275px;
}
.viewControlButton-3 {
  bottom: 210px;
}
.viewControlButton-4 {
  bottom: 145px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  #sceneList {
    left: 15px;
    max-width: 200px;
  }

  #sceneList .scenes li a.location {
    padding: 10px 16px;
    font-size: 13px;
  }
}

@media (max-width: 768px) {
  #sceneList {
    max-height: 50vh;
  }

  body.view-control-buttons .viewControlButton,
  #autorotateToggle,
  #fullscreenToggle,
  #sceneListToggle {
    width: 45px;
    height: 45px;
  }

  .viewControlButton .icon,
  #autorotateToggle .icon,
  #fullscreenToggle .icon,
  #sceneListToggle .icon {
    width: 20px;
    height: 20px;
  }

  /* Make link hotspots smaller on small screens */
  .link-hotspot {
    width: 45px !important;
    height: 45px !important;
    margin-left: -22.5px !important;
    margin-top: -22.5px !important;
  }

  .link-hotspot-tooltip {
    top: 10px !important;
    font-size: 13px !important;
    padding: 6px 8px !important;
  }

  /* Make info hotspots smaller on small screens */
  .info-hotspot .info-hotspot-header {
    width: 35px !important;
    height: 35px !important;
    border-radius: 17.5px !important;
  }

  .info-hotspot .info-hotspot-icon-wrapper {
    width: 35px !important;
    height: 35px !important;
  }

  .mobile .info-hotspot .info-hotspot-icon-wrapper {
    width: 35px !important;
    height: 35px !important;
  }

  .info-hotspot .info-hotspot-title-wrapper {
    left: 35px !important;
    height: 35px !important;
  }

  .desktop .info-hotspot.visible .info-hotspot-title-wrapper,
  .desktop.no-touch .info-hotspot .info-hotspot-header:hover .info-hotspot-title-wrapper {
    width: 180px !important;
    padding: 0 4px !important;
  }

  .info-hotspot .info-hotspot-close-wrapper {
    left: 215px !important;
    height: 35px !important;
    width: 35px !important;
  }

  .desktop .info-hotspot.visible .info-hotspot-header,
  .desktop.no-touch .info-hotspot.visible .info-hotspot-header:hover {
    width: 215px !important;
  }

  .info-hotspot .info-hotspot-text {
    top: 35px !important;
    width: 250px !important;
    max-height: 150px !important;
    padding: 8px !important;
    font-size: 13px !important;
  }

  .powered-by {
    font-size: 11px;
    padding: 6px 12px;
    left: 15px;
    bottom: 20px;
  }

  .powered-by svg {
    width: 16px;
    height: 16px;
  }
}

/* Responsive for small screens in landscape */
@media (max-height: 500px) and (orientation: landscape) {
  /* Make buttons smaller */
  #autorotateToggle,
  #fullscreenToggle,
  #sceneListToggle {
    width: 35px;
    height: 35px;
    right: 10px;
  }

  #autorotateToggle {
    bottom: 10px;
  }

  #fullscreenToggle {
    bottom: 55px;
  }

  #sceneListToggle {
    bottom: 55px;
  }

  #autorotateToggle .icon,
  #fullscreenToggle .icon,
  #sceneListToggle .icon {
    width: 18px;
    height: 18px;
  }

  /* Adjust view control buttons for landscape - match toggle button style */
  body.view-control-buttons .viewControlButton {
    display: flex !important;
    width: 35px !important;
    height: 35px !important;
    right: 10px !important;
  }

  .viewControlButton .icon {
    width: 18px !important;
    height: 18px !important;
  }

  .viewControlButton-1 {
    bottom: 240px !important;
  }
  .viewControlButton-2 {
    bottom: 195px !important;
  }
  .viewControlButton-3 {
    bottom: 150px !important;
  }
  .viewControlButton-4 {
    bottom: 105px !important;
  }

  /* Make link hotspots smaller */
  .link-hotspot {
    width: 45px !important;
    height: 45px !important;
    margin-left: -22.5px !important;
    margin-top: -22.5px !important;
  }

  .link-hotspot-tooltip {
    top: 10px !important;
    font-size: 13px !important;
    padding: 6px 8px !important;
  }

  /* Make info hotspots smaller */
  .info-hotspot .info-hotspot-header {
    width: 35px !important;
    height: 35px !important;
    border-radius: 17.5px !important;
  }

  .info-hotspot .info-hotspot-icon-wrapper {
    width: 35px !important;
    height: 35px !important;
  }

  .mobile .info-hotspot .info-hotspot-icon-wrapper {
    width: 35px !important;
    height: 35px !important;
  }

  .info-hotspot .info-hotspot-title-wrapper {
    left: 35px !important;
    height: 35px !important;
  }

  .desktop .info-hotspot.visible .info-hotspot-title-wrapper,
  .desktop.no-touch .info-hotspot .info-hotspot-header:hover .info-hotspot-title-wrapper {
    width: 180px !important;
    padding: 0 4px !important;
  }

  .info-hotspot .info-hotspot-close-wrapper {
    left: 215px !important;
    height: 35px !important;
    width: 35px !important;
  }

  .desktop .info-hotspot.visible .info-hotspot-header,
  .desktop.no-touch .info-hotspot.visible .info-hotspot-header:hover {
    width: 215px !important;
  }

  .info-hotspot .info-hotspot-text {
    top: 35px !important;
    width: 250px !important;
    max-height: 150px !important;
    padding: 8px !important;
    font-size: 13px !important;
  }

  /* Adjust scene list */
  #sceneList {
    max-height: 80vh;
    max-width: 180px;
    left: 10px;
  }

  #sceneList .scenes li a.location {
    padding: 8px 14px;
    font-size: 12px;
  }

  /* Make powered-by smaller and reposition */
  .powered-by {
    font-size: 10px;
    padding: 5px 10px;
    left: 10px;
    bottom: 10px;
  }

  .powered-by a {
    padding: 3px 6px;
    border-width: 1px;
    font-size: 10px;
  }
}
