/* ========================================================
   WEBGL CINEMATIC GALLERY UI (STANDALONE)
   ======================================================== */
body {
  margin: 0;
  padding: 0;
  width: 100vw;
  min-height: 100vh;
  background-color: #F5E9D8;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  font-family: 'Inter', sans-serif;
}

.gallery-content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: 90%;
  max-width: 1000px;
}

.webgl-box {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  background: #000;
}

#webgl-canvas-container canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
}

/* UI Controls (Top Right Fullscreen/Close) */
.webgl-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(42,38,35,0.1);
  color: #2A2623;
  font-size: 1.2rem;
  width: 50px;
  height: 50px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}
.webgl-close-btn:hover {
  background: rgba(42,38,35,0.2);
}

/* Nav Arrows Inside Box */
.webgl-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(5px);
  color: #fff;
  font-size: 1.2rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}
.webgl-nav-btn.prev {
  left: 20px;
}
.webgl-nav-btn.next {
  right: 20px;
}
.webgl-nav-btn:hover {
  background: rgba(255,255,255,0.4);
}

/* Dots Inside Box */
.webgl-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}
.webgl-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  cursor: pointer;
  transition: all 0.3s ease;
}
.webgl-dot.active {
  background: #fff;
  width: 20px;
  border-radius: 10px;
}

/* Thumbnails Below Box */
.webgl-thumbnails {
  display: flex;
  gap: 15px;
  justify-content: center;
  width: 100%;
}
.webgl-thumb {
  width: 120px;
  height: 70px;
  background-size: cover;
  background-position: center;
  border-radius: 6px;
  cursor: pointer;
  opacity: 0.5;
  border: 2px solid transparent;
  transition: all 0.3s ease;
}
.webgl-thumb:hover {
  opacity: 0.8;
}
.webgl-thumb.active {
  opacity: 1;
  border-color: #fff;
}
