/* wp-3dgs-viewer / viewer.css  v3.0.0 */

.gs-viewer-wrap {
  position: relative;
  display: block;
  overflow: hidden;
  margin: 1.5em 0;
  /* border-radius e box-shadow são controlados pelo atributo do shortcode */
}

.gs-canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
  outline: none;
  touch-action: none;
}

/* ── Loader ──────────────────────────────────────────────────────────────── */
.gs-loader {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: rgba(8, 8, 12, .85);
  backdrop-filter: blur(6px);
  color: #ddd;
  font-family: system-ui, sans-serif;
  font-size: 14px;
  pointer-events: none;
  z-index: 10;
}

.gs-loader-bar {
  display: block;
  width: 180px;
  height: 3px;
  border-radius: 99px;
  background: linear-gradient(90deg, #38bdf8, #818cf8, #38bdf8);
  background-size: 200% 100%;
  animation: gs-shimmer 1.6s linear infinite;
}

@keyframes gs-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── Dica de controles ───────────────────────────────────────────────────── */
.gs-controls {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, .6);
  color: rgba(255, 255, 255, .7);
  font-size: 11px;
  font-family: system-ui, sans-serif;
  padding: 5px 14px;
  border-radius: 99px;
  pointer-events: none;
  opacity: 0;
  transition: opacity .5s ease;
  white-space: nowrap;
  z-index: 10;
}

/* ── Toolbar (fullscreen, AR, VR) ───────────────────────────────────────── */
.gs-toolbar {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  flex-direction: row;
  gap: 8px;
  z-index: 20;
}

.gs-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  background: rgba(0, 0, 0, .55);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 6px;
  font-size: 13px;
  font-family: system-ui, sans-serif;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: background .15s, border-color .15s, transform .1s;
  white-space: nowrap;
  line-height: 1;
}

.gs-btn:hover {
  background: rgba(255, 255, 255, .18);
  border-color: rgba(255, 255, 255, .4);
}

.gs-btn:active {
  transform: scale(.95);
}

.gs-btn--active {
  background: rgba(239, 68, 68, .7);
  border-color: rgba(239, 68, 68, .9);
}

.gs-btn--active:hover {
  background: rgba(239, 68, 68, .85);
}

/* ── Botão de play manual ────────────────────────────────────────────────── */
.gs-play-btn {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  background: rgba(8, 8, 20, .75);
  color: #fff;
  font-size: 17px;
  font-family: system-ui, sans-serif;
  letter-spacing: .03em;
  cursor: pointer;
  transition: background .2s;
  z-index: 10;
}

.gs-play-btn:hover {
  background: rgba(20, 20, 50, .88);
}

/* ── Erro ────────────────────────────────────────────────────────────────── */
.gs-error {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(20, 0, 0, .88);
  color: #fca5a5;
  font-size: 13px;
  font-family: system-ui, sans-serif;
  text-align: center;
  line-height: 1.6;
  z-index: 20;
}

/* ── Fullscreen: viewer ocupa tela toda ──────────────────────────────────── */
.gs-viewer-wrap:fullscreen {
  border-radius: 0 !important;
  box-shadow: none !important;
  width: 100vw !important;
  height: 100vh !important;
  margin: 0;
  background: #000 !important;
}

.gs-viewer-wrap:fullscreen .gs-canvas {
  width: 100vw !important;
  height: 100vh !important;
}

/* ── Mobile ──────────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .gs-controls { font-size: 10px; padding: 4px 10px; }
  .gs-btn       { font-size: 12px; padding: 5px 9px; }
  .gs-toolbar   { gap: 6px; top: 8px; right: 8px; }
}
