/* Império WEB Codes Store | marsdesigner.com.br/codesstore */
/* Galeria Espiral 3D — estilos restritos ao contêiner .espiral (sem regras globais). */

.espiral {
  position: relative;
  height: clamp(560px, 100svh, 1000px);
  margin-top: 40px;
  overflow: hidden;
}

.espiral__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  /* funde topo e base no fundo da seção */
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 14%, #000 86%, transparent);
          mask-image: linear-gradient(180deg, transparent, #000 14%, #000 86%, transparent);
}

/* Sem WebGL ou sem JS: as dez fotos numa faixa rolável */
.espiral__fallback {
  list-style: none;
  margin: 0;
  padding: 0 max(20px, 6vw);
  height: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}

.espiral__fallback li {
  flex: 0 0 clamp(220px, 26vw, 360px);
  aspect-ratio: 4 / 5;
  border-radius: 14px;
  overflow: hidden;
  scroll-snap-align: center;
}

.espiral__fallback img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.espiral--3d .espiral__fallback {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (max-width: 700px) {
  .espiral {
    height: clamp(520px, 92svh, 820px);
  }
}
