/* ==========================================
   PREFAB: Horizontal Scroll Gallery
   Fuggoleges scroll -> vizszintes mozgas
   ========================================== */

.pf-hscroll {
  position: relative;
}

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

.pf-hscroll-track {
  display: flex;
  gap: 24px;
  padding: 0 5vw;
  will-change: transform;
}

.pf-hscroll-item {
  flex-shrink: 0;
  width: 40vw;
  min-width: 320px;
  max-width: 550px;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.pf-hscroll-item:hover {
  transform: scale(1.02);
}

.pf-hscroll-item img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: block;
}

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

.pf-hscroll-item-caption h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.pf-hscroll-item-caption p {
  font-size: 0.85rem;
  opacity: 0.75;
}

/* Header area */
.pf-hscroll-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 48px 5vw;
  z-index: 2;
  pointer-events: none;
}

.pf-hscroll-header h2 {
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  font-weight: 700;
}

/* Progress bar */
.pf-hscroll-progress {
  position: absolute;
  bottom: 32px;
  left: 5vw;
  right: 5vw;
  height: 2px;
  background: rgba(0,0,0,0.1);
  border-radius: 2px;
  z-index: 2;
}

.pf-hscroll-progress-bar {
  height: 100%;
  background: currentColor;
  border-radius: 2px;
  width: 0;
  transition: width 0.1s linear;
}

@media (max-width: 768px) {
  .pf-hscroll-item { width: 75vw; min-width: 260px; }
  .pf-hscroll-item img { height: 300px; }
}
