/* ==========================================
   PREFAB: Scroll Stack Gallery
   Kepek egymasra rakodnak scrollozasra
   ========================================== */

.pf-scroll-stack {
  position: relative;
  min-height: 300vh;
}

.pf-scroll-stack-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.pf-scroll-stack-item {
  position: absolute;
  width: 65vw;
  max-width: 900px;
  aspect-ratio: 16/10;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
  will-change: transform, opacity;
  transition: none;
}

.pf-scroll-stack-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pf-scroll-stack-item .pf-stack-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 40px 32px 32px;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
  color: white;
}

.pf-stack-caption h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.pf-stack-caption p {
  font-size: 0.9rem;
  opacity: 0.8;
}

/* Progress dots */
.pf-scroll-stack-dots {
  position: fixed;
  right: 32px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 10;
}

.pf-scroll-stack-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  border: 1.5px solid rgba(255,255,255,0.5);
  transition: all 0.3s ease;
}

.pf-scroll-stack-dot.active {
  background: white;
  transform: scale(1.3);
}

@media (max-width: 768px) {
  .pf-scroll-stack-item { width: 85vw; }
  .pf-scroll-stack-dots { right: 16px; }
}
