/* ------------------------------------------------------------------
   GC Royal Emporium — home hero 3D viewer
   Adapted from the supplied standalone banner-model viewer to sit
   inside .hero-slides. The photo slider stays underneath as fallback.
   ------------------------------------------------------------------ */

.site-hero.has-gc3d .hero-slides {
  height: clamp(420px, 42vw, 520px);
}

.gc3d-viewer {
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  background: #0a101d;
  transition: opacity .6s ease, visibility .6s ease;
}

.site-hero.gc3d-ready .gc3d-viewer {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.site-hero.gc3d-ready .hero-dots {
  opacity: 0;
  pointer-events: none;
}

.gc3d-viewer canvas {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
  cursor: grab;
  outline: none;
}

.gc3d-viewer canvas:active { cursor: grabbing; }

/* Only the small motion controls remain; the model itself is the hero. */
#gc3d-hud {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 5;
  display: flex;
  gap: 6px;
  background: rgba(11, 16, 28, .58);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(247, 201, 110, .22);
  border-radius: 999px;
  padding: 5px 7px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .35);
}

#gc3d-hud button {
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .08);
  color: #eef3fb;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 10px;
  line-height: 1.25;
  white-space: nowrap;
  transition: background .18s ease, border-color .18s ease, color .18s ease;
}

#gc3d-hud button:hover {
  background: rgba(247, 201, 110, .22);
  border-color: rgba(247, 201, 110, .7);
}

#gc3d-hud button.active {
  background: #d89b38;
  color: #101520;
  font-weight: 600;
  border-color: #f7c96e;
}

/* The hero copy stays readable above the canvas, but lets drags pass through
   to the model except on its buttons. */
.site-hero.gc3d-ready .hm-hero-copy {
  text-shadow: 0 2px 18px rgba(0, 0, 0, .85);
  pointer-events: none;
}

.site-hero.gc3d-ready .hm-hero-copy a { pointer-events: auto; }

@media (max-width: 768px) {
  .site-hero.has-gc3d .hero-slides { height: 500px; }
}

@media (max-width: 576px) {
  .site-hero.has-gc3d .hero-slides { height: 480px; }
  #gc3d-hud { right: 8px; bottom: 8px; padding: 4px 5px; }
  #gc3d-hud button { font-size: 9px; padding: 5px 7px; }
}

@media (prefers-reduced-motion: reduce) {
  .gc3d-viewer { transition: none; }
}
