/* ================================================================
   COVERFLOW 3D GALLERY  — coverflow.css
   Clean · No background · No controls · iTunes-style 3D flip
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600&display=swap');

:root {
  --cfg-radius:    14px;
  --cfg-height:    480px;
  --cfg-font:      'Outfit', system-ui, sans-serif;
  --cfg-slide-w:   320px;
  --cfg-slide-h:   calc(var(--cfg-height) - 60px);
  --cfg-shadow:    rgba(0,0,0,.5);
}

/* ── Wrapper ─────────────────────────── */
.cfg-wrapper {
  position: relative;
  width: 100%;
  height: var(--cfg-height);
  background: transparent;
  border-radius: var(--cfg-radius);
  overflow: hidden;
  font-family: var(--cfg-font);
  -webkit-font-smoothing: antialiased;
  user-select: none;
}

/* ── Stage (3D perspective container) ── */
.cfg-stage {
  position: absolute;
  top: 0; left: 0; right: 0;
  bottom: 0;
  perspective: 1200px;
  perspective-origin: 50% 40%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  overflow: hidden;
}

/* ── Track (holds all slides) ─────── */
.cfg-track {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Individual Slide ─────────────── */
.cfg-slide {
  position: absolute;
  width: var(--cfg-slide-w);
  height: var(--cfg-slide-h);
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  transition:
    transform 0.55s cubic-bezier(.25,.1,.25,1),
    opacity   0.55s ease,
    filter    0.55s ease,
    box-shadow 0.55s ease;
  transform-style: preserve-3d;
  will-change: transform, opacity;
  box-shadow: 0 20px 60px var(--cfg-shadow);
}

.cfg-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  border-radius: 10px;
}

/* Sheen overlay on non-active */
.cfg-slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.08) 0%, transparent 60%);
  border-radius: 10px;
  z-index: 2;
  pointer-events: none;
  transition: opacity .4s;
}

/* Active slide */
.cfg-slide.is-active {
  z-index: 5;
  box-shadow: 0 30px 80px rgba(0,0,0,.6);
}
.cfg-slide.is-active::before {
  opacity: 0;
}

/* Dragging state */
.cfg-wrapper.is-dragging .cfg-slide {
  transition: none;
}

/* ── Hide all controls, captions, dots, buttons ── */
.cfg-caption-bar,
.cfg-caption-text,
.cfg-counter,
.cfg-controls,
.cfg-btn,
.cfg-dots,
.cfg-dot,
.cfg-fullscreen-btn {
  display: none !important;
}

/* ── Lightbox ─────────────────────── */
.cfg-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.94);
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 16px;
  padding: 40px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  animation: cfg-lb-in .25s ease;
}
.cfg-lightbox.is-open { display: flex; }

@keyframes cfg-lb-in {
  from { opacity: 0; transform: scale(.96); }
  to   { opacity: 1; transform: scale(1); }
}

.cfg-lb-img {
  max-width: min(90vw, 1200px);
  max-height: 80vh;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 40px 120px rgba(0,0,0,.8);
}

.cfg-lb-close {
  position: fixed;
  top: 20px; right: 20px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15);
  color: #fff;
  width: 40px; height: 40px;
  border-radius: 50%;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
}
.cfg-lb-close:hover { background: rgba(255,100,100,.4); }

.cfg-lb-caption {
  font-family: var(--cfg-font);
  font-size: 14px;
  color: rgba(255,255,255,.6);
  letter-spacing: .04em;
  text-align: center;
  max-width: 600px;
}

/* ── Empty state ─────────────────── */
.cfg-empty {
  font-family: var(--cfg-font);
  padding: 16px;
  color: #888;
  font-size: 14px;
}

/* ── Responsive ──────────────────── */
@media (max-width: 600px) {
  :root {
    --cfg-slide-w: 220px;
    --cfg-height: 380px;
  }
}
