body {
  margin: 0;
  overflow: hidden;
  background: #020304;
  color: #fff;
  overscroll-behavior: none;
}

.gallery-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  touch-action: none;
  z-index: 0;
}

.gallery-hud {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: calc(18px + env(safe-area-inset-top, 0)) calc(18px + env(safe-area-inset-right, 0)) 18px calc(18px + env(safe-area-inset-left, 0));
  pointer-events: none;
  background: linear-gradient(180deg, rgba(8, 12, 18, 0.78), rgba(8, 12, 18, 0));
}

.gallery-copy {
  max-width: min(540px, calc(100vw - 40px));
}

.gallery-kicker {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

#gallery-title {
  margin: 0;
  font-size: clamp(24px, 4vw, 42px);
  line-height: 1.05;
}

#gallery-subtitle {
  margin: 10px 0 0;
  max-width: 44rem;
  font-size: 14px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.8);
}

.gallery-toolbar {
  display: flex;
  gap: 10px;
  pointer-events: auto;
  align-items: flex-start;
}

.gallery-btn,
.gallery-pad-btn {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(11, 15, 22, 0.74);
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 12px 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(12px);
  touch-action: manipulation;
}

.gallery-btn:hover,
.gallery-pad-btn:hover {
  background: rgba(28, 36, 51, 0.88);
}

.gallery-move-pad {
  position: fixed;
  left: calc(18px + env(safe-area-inset-left, 0));
  bottom: calc(18px + env(safe-area-inset-bottom, 0));
  z-index: 5;
  width: min(230px, calc(100vw - 36px));
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.gallery-pad-btn {
  min-height: 58px;
}

.gallery-pad-btn-forward {
  background: rgba(81, 66, 252, 0.86);
}

.gallery-pad-btn-wide {
  grid-column: 1 / -1;
}

body.is-xr-active .gallery-hud,
body.is-xr-active .gallery-move-pad {
  display: none;
}

#VRButton {
  background: rgba(81, 66, 252, 0.9) !important;
  opacity: 1 !important;
  width: min(300px, calc(100vw - 36px)) !important;
  border: none !important;
  color: #fff !important;
  left: calc(50% - min(150px, calc((100vw - 36px) / 2))) !important;
  font-family: "Urbanist", sans-serif !important;
  font-size: 18px !important;
  border-radius: 30px !important;
  padding: 11px 35px !important;
  font-weight: bold !important;
  z-index: 6 !important;
}

@media (max-width: 760px) {
  .gallery-hud {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .gallery-toolbar {
    width: 100%;
  }

  .gallery-btn {
    flex: 1 1 auto;
  }

  .gallery-move-pad {
    width: calc(100vw - 36px);
  }
}
