/* ============================================================
   AI Art — series carousel layout
   Mirrors the home S2 structure: section is position:relative,
   header/footer are absolutely pinned, viewport fills the gap
   with explicit top/bottom so percentage heights resolve.
   ============================================================ */

.art-series-section {
  height: 100vh;
  position: relative;
  background: var(--bg-s2);
  border-bottom: var(--border);
}

/* ── header bar ─────────────────────────────────────────────── */
.art-series-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 58px;
  padding: 0 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: var(--border);
  background: var(--bg-s2);
  z-index: 2;
}

.art-series-count {
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  text-transform: uppercase;
  font-family: var(--font-sans);
}

/* ── 3D viewport — definite height via explicit top/bottom ──── */
.art-viewport {
  position: absolute;
  top: 58px;
  bottom: 88px;
  left: 0;
  right: 0;
  overflow: hidden;
  z-index: 1;
  perspective: 1100px;
  perspective-origin: 50% 46%;
}

/* Continuous reel translated by JS */
.art-reel {
  display: flex;
  height: 100%;
  align-items: center;
  gap: 14px;
  padding: 0 14px;
  will-change: transform;
}

/* Artwork card */
.art-card {
  flex-shrink: 0;
  height: 74%;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  position: relative;
  will-change: transform;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55);
}

.art-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Edge vignettes */
.art-vignette {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 8%;
  z-index: 3;
  pointer-events: none;
}

.art-vignette--l {
  left: 0;
  background: linear-gradient(to right, rgba(var(--bg-s2-rgb), 0.38) 0%, transparent 100%);
}

.art-vignette--r {
  right: 0;
  background: linear-gradient(to left, rgba(var(--bg-s2-rgb), 0.38) 0%, transparent 100%);
}

/* ── footer bar ─────────────────────────────────────────────── */
.art-series-footer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 88px;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  border-top: var(--border);
  background: var(--bg-s2);
  z-index: 2;
}

.art-ghost-num {
  font-family: var(--font-serif);
  font-size: clamp(36px, 4.5vw, 58px);
  color: #180e1a;
  font-weight: 400;
  line-height: 1;
  user-select: none;
}
