html, body {
  height: 100dvh;
  margin: 0;
  padding: 0;
  overflow: hidden;
  font-family: 'Poppins', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #07111d;
}

.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

body {
  position: relative;
  color: #fff;
}

.glass-panel {
  background: linear-gradient(145deg, rgba(28, 45, 66, 0.94), rgba(17, 31, 48, 0.90));
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 18px 40px rgba(0,0,0,0.32);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.top-icon-btn {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}

.top-icon-btn:hover {
  background: rgba(142, 203, 255, 0.12);
  border-color: rgba(142, 203, 255, 0.40);
  transform: translateY(-1px);
}

.right-circle-btn {
  width: 42px;
  height: 42px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: all .25s ease;
  border: 1px solid rgba(255,255,255,0.16);
  box-shadow: 0 12px 28px rgba(0,0,0,0.26);
  background: linear-gradient(145deg, rgba(78,102,132,0.42), rgba(37,52,72,0.66));
  color: #fff;
}

.right-circle-btn:hover {
  transform: translateY(-1px) scale(1.04);
  border-color: rgba(173,217,255,0.34);
  background: linear-gradient(145deg, rgba(101,128,160,0.48), rgba(46,64,87,0.78));
}

.wa-btn {
  background: linear-gradient(145deg, #29d765, #17b653);
  border: 1px solid rgba(255,255,255,0.24);
  box-shadow: 0 10px 24px rgba(23, 182, 83, 0.28);
}

.wa-btn:hover {
  background: linear-gradient(145deg, #35e270, #18ba56);
  box-shadow: 0 14px 30px rgba(23, 182, 83, 0.35);
}

.wa-btn img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  display: block;
  filter: brightness(0) invert(1);
}

.left-nav {
  background: linear-gradient(145deg, rgba(28,45,66,0.94), rgba(17,31,48,0.90));
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 18px 40px rgba(0,0,0,0.32);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.left-nav-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  border-radius: 14px;
  transition: all .25s ease;
}

.left-nav-btn:hover,
.left-nav-btn.active {
  background: rgba(142, 203, 255, 0.12);
  box-shadow: inset 0 0 0 1px rgba(142, 203, 255, 0.20);
}

.left-nav-btn img {
  object-fit: contain;
  display: block;
}

#gallery {
  position: relative;
  z-index: 1;
  width: 100vw;
  height: 100dvh;
  overflow: hidden;
  background: #07111d;
}

.gallery-stage {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 16px 110px;
}

#galleryImage {
  display: block;
  width: 100vw;
  height: 100dvh;
  object-fit: cover;
  transition: opacity .45s ease;
  user-select: none;
  -webkit-user-drag: none;
}

.gallery-bottom-bar {
  background: linear-gradient(145deg, rgba(28,45,66,0.92), rgba(17,31,48,0.88));
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 18px 40px rgba(0,0,0,0.30);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.gallery-nav-btn {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 9999px;
  color: white;
  transition: all .25s ease;
  flex-shrink: 0;
}

.gallery-nav-btn:hover {
  background: rgba(255,255,255,0.08);
}

.view-all-btn {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}

.view-all-btn:hover {
  background: rgba(142,203,255,0.12);
  border-color: rgba(142,203,255,0.26);
}

/* --- LEFT SIDE GALLERY DRAWER PANEL --- */
.left-gallery-drawer {
  background: linear-gradient(180deg, rgba(17, 31, 48, 0.98), rgba(11, 20, 34, 0.99));
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 20px 0 40px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 100;
}

.gallery-dropdown-select {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  transition: all 0.25s ease;
}

.gallery-dropdown-select:hover, 
.gallery-dropdown-select:focus {
  background: rgba(142, 203, 255, 0.15);
  border-color: rgba(142, 203, 255, 0.4);
  outline: none;
}

.gallery-dropdown-select option {
  background: #111f30;
  color: #fff;
}

#featuresMenu {
  background: linear-gradient(180deg, rgba(18,31,47,0.96), rgba(10,18,30,0.98));
  border-left: 1px solid rgba(255,255,255,0.12);
  box-shadow: -20px 0 40px rgba(0,0,0,0.32);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.menu-icon-shell {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
  transition: all .25s ease;
}

.menu-item:hover .menu-icon-shell,
.menu-item.active .menu-icon-shell {
  background: rgba(142, 203, 255, 0.12);
  border-color: rgba(142, 203, 255, 0.30);
}

.device-rotation {
  display: none;
}

@media screen and (max-width: 768px) and (orientation: portrait) {
  .device-rotation {
    display: flex;
  }
}

@media (max-width: 1024px) {
  .gallery-stage {
    padding: 94px 18px 108px;
  }
  #galleryImage {
    max-width: 94vw;
    max-height: calc(100vh - 220px);
  }
}

/* ======================================================
   MOBILE LANDSCAPE SCALEDOWN
   (matches the reduction pattern used on the interior page:
   top-left header, top-right icon group, bottom-left nav,
   right-side features menu, and spim logo all shrink here)
   ====================================================== */
@media (max-height: 520px) and (orientation: landscape) {

  /* --- Stage / main image / bottom bar --- */
  .gallery-stage {
    padding: 40px 10px 46px !important;
  }
  #galleryImage {
    max-height: calc(100vh - 86px) !important;
  }
  .gallery-bottom-bar {
    bottom: 6px !important;
    padding: 2px 8px !important;
    gap: 6px !important;
  }
  .gallery-nav-btn {
    width: 24px !important;
    height: 24px !important;
  }
  .gallery-nav-btn i {
    font-size: 9px !important;
  }
  #galleryItemLabel {
    font-size: 9px !important;
    max-width: 90px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .view-all-btn {
    font-size: 9px !important;
    padding: 4px 8px !important;
    gap: 4px !important;
  }
  .view-all-btn i {
    font-size: 7px !important;
  }

  /* --- Top-left header panel (logo / title / home / back) --- */
  .top-header-panel {
    top: 4px !important;
    left: 4px !important;
    padding: 4px !important;
    border-radius: 12px !important;
    gap: 4px !important;
  }
  .top-header-logo { height: 14px !important; width: 14px !important; }
  .top-header-paddco { font-size: 5.5px !important; }
  .top-header-title { font-size: 8.5px !important; }
  .top-header-loc { font-size: 6px !important; }
  .top-header-divider { height: 20px !important; margin: 0 2px !important; }
  .top-header-btn { height: 18px !important; width: 18px !important; border-radius: 6px !important; }
  .top-header-btn svg { height: 8px !important; width: 8px !important; }

  /* --- Top-right icon group (WhatsApp / menu / fullscreen) --- */
  .top-right-group {
    top: 4px !important;
    right: 4px !important;
    gap: 6px !important;
  }
  .right-circle-btn {
    width: 22px !important;
    height: 22px !important;
  }
  .wa-btn img {
    width: 10px !important;
    height: 10px !important;
  }
  #menuBtn img {
    height: 8px !important;
    width: 8px !important;
  }
  #fullScreenToggle i {
    font-size: 9px !important;
  }

  /* --- Bottom-left nav (webverse / gallery / brochure / zone iq / location) --- */
  .left-controls-wrapper {
    bottom: 4px !important;
    left: 4px !important;
  }
  .left-nav {
    padding: 3px !important;
    gap: 4px !important;
    border-radius: 20px !important;
  }
  .left-nav-btn {
    height: 22px !important;
    width: 22px !important;
    border-radius: 8px !important;
  }
  .left-nav-btn i {
    font-size: 10px !important;
  }
  .left-nav-btn img {
    height: 10px !important;
    width: 10px !important;
  }
  .left-nav-btn span {
    display: none !important; /* hover tooltips add clutter on touch screens */
  }

  /* --- Right-side features/menu panel --- */
  #featuresMenu {
    width: 62px !important;
    padding: 4px !important;
  }
  #featuresMenu .flex-col {
    gap: 8px !important;
  }
  #featurePanelCloseBtn {
    height: 22px !important;
    width: 22px !important;
  }
  #featurePanelCloseBtn i {
    font-size: 10px !important;
  }
  #featuresList ul {
    gap: 8px !important;
  }
  #featuresList .menu-icon-shell {
    height: 24px !important;
    width: 24px !important;
  }
  #featuresList .menu-icon-shell img {
    height: 12px !important;
    width: 12px !important;
  }
  #featuresList p {
    font-size: 8px !important;
  }

  /* --- Left thumbnail "View All" drawer --- */
  #galleryItemsListWrapper {
    width: 240px !important;
    padding-top: 56px !important;
  }
  #galleryItemsListWrapper > .flex.items-center.p-4 {
    padding: 8px !important;
  }
  #galleryItemsListWrapper label {
    font-size: 8px !important;
  }
  .gallery-dropdown-select {
    font-size: 10px !important;
    padding: 6px !important;
  }
  #galleryItemsList {
    gap: 8px !important;
  }
  #galleryItemsList li {
    padding: 6px !important;
    gap: 8px !important;
  }
  #galleryItemsList li img {
    width: 56px !important;
    height: 40px !important;
  }
  #galleryItemsList li span:first-child {
    font-size: 9.5px !important;
  }
  #galleryItemsList li span:last-child {
    font-size: 8px !important;
  }
  #galleryCollapse {
    height: 24px !important;
    width: 24px !important;
    top: 8px !important;
    right: 8px !important;
  }
}