/* VPR Event Banners — Frontend Slideshow (Vertical / Instagram Style) */
:root{ --vprb-accent: #FF6B00; }

/* ── Wrapper ───────────────────────────────────── */
.vprb-slideshow {
  position: relative;
  width: 100%;
  max-width: 420px;          /* cap width for vertical banners */
  margin: 0 auto;            /* center in any column */
  overflow: hidden;
  border-radius: 16px;       /* rounded like Instagram card */
  background: #000;
  box-shadow: 0 8px 32px rgba(0,0,0,.28);
  user-select: none;
}

/* ── Stage — aspect-ratio box ──────────────────── */
.vprb-stage {
  position: relative;
  width: 100%;
  height: 0;                 /* padding-top set inline from PHP */
  overflow: hidden;
}

/* ── Slide base ────────────────────────────────── */
.vprb-slide {
  position: absolute;
  inset: 0;
  display: block;
  text-decoration: none;
  opacity: 0;
  transition: opacity .55s ease;
  cursor: default;
}
.vprb-slide[href]  { cursor: pointer; }
.vprb-slide--active { opacity: 1; z-index: 1; }

/* ── Slide transition: slide ───────────────────── */
.vprb-transition-slide .vprb-slide {
  transform: translateX(100%);
  opacity: 1;
  transition: transform .45s cubic-bezier(.4,0,.2,1);
}
.vprb-transition-slide .vprb-slide--active {
  transform: translateX(0);
}
.vprb-transition-slide .vprb-slide--exit {
  transform: translateX(-100%);
}

/* ── Image ─────────────────────────────────────── */
.vprb-slide__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;         /* fills the vertical frame */
  display: block;
}

/* ── Instagram-style tap-to-open overlay ──────── */
.vprb-slide[href]::after {
  content: '📲  Ver no Instagram';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,.75) 80%);
  color: #fff;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .04em;
  padding: 48px 18px 14px;
  opacity: 0;
  transition: opacity .22s;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  pointer-events: none;
  text-align: center;
}
.vprb-slide[href]:hover::after,
.vprb-slide[href]:focus::after { opacity: 1; }

/* ── Caption bar ───────────────────────────────── */
.vprb-slide__caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,.82));
  padding: 56px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  pointer-events: none;
}
.vprb-slide__title {
  color: #fff;
  font-size: .95rem;
  font-weight: 800;
  line-height: 1.3;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  text-shadow: 0 1px 6px rgba(0,0,0,.6);
}
.vprb-slide__ig {
  color: rgba(255,255,255,.8);
  font-size: .72rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ── Progress bar ──────────────────────────────── */
.vprb-progress {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: rgba(255,255,255,.18);
  z-index: 4;
}
.vprb-progress__bar {
  height: 100%;
  width: 0%;
  background: var(--vprb-accent);
  transition: width linear;
}

/* ── Stories-style top progress strips ────────── */
/* (rendered by JS when multiple slides) */
.vprb-story-bars {
  position: absolute;
  top: 12px; left: 12px; right: 12px;
  display: flex;
  gap: 4px;
  z-index: 10;
}
.vprb-story-bar {
  flex: 1;
  height: 3px;
  border-radius: 2px;
  background: rgba(255,255,255,.35);
  overflow: hidden;
}
.vprb-story-bar__fill {
  height: 100%;
  width: 0%;
  background: #fff;
  border-radius: 2px;
}
.vprb-story-bar--done .vprb-story-bar__fill  { width: 100%; transition: none; }
.vprb-story-bar--active .vprb-story-bar__fill { width: 100%; }

/* ── Navigation arrows ─────────────────────────── */
.vprb-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(0,0,0,.42);
  border: none;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .18s, transform .15s;
  backdrop-filter: blur(4px);
}
.vprb-arrow:hover {
  background: var(--vprb-accent);
  transform: translateY(-50%) scale(1.1);
}
.vprb-arrow--prev { left: 10px; }
.vprb-arrow--next { right: 10px; }

/* ── Dots ──────────────────────────────────────── */
.vprb-dots {
  position: absolute;
  bottom: 14px; left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 5px;
  z-index: 10;
}
.vprb-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,.4);
  border: none;
  cursor: pointer;
  transition: background .2s, transform .2s;
  padding: 0;
}
.vprb-dot--active { background: var(--vprb-accent); transform: scale(1.35); }
.vprb-dot:hover   { background: rgba(255,255,255,.8); }

/* ── Screen reader ─────────────────────────────── */
.vprb-sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ── Responsive ────────────────────────────────── */
@media (max-width: 480px) {
  .vprb-slideshow { max-width: 100%; border-radius: 12px; }
  .vprb-arrow     { width: 30px; height: 30px; }
}

/* ── Reduced motion ────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .vprb-slide,
  .vprb-progress__bar,
  .vprb-story-bar__fill { transition: none !important; }
}
