/*
 * Global Carousel Styles
 * Used by: event_detail, gallery_detail, press_detail
 * All hero carousels share this pattern:
 *   dark wrap → circular arrows → pill indicators → count badge → caption strip → thumbnail strip
 */

/* ── Hero wrapper ── */
.hero-carousel-wrap {
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 28px;
  position: relative;
  background: #111;
  box-shadow: 0 8px 32px rgba(0,0,0,.12);
}

/* ── Carousel images ── */
.hero-carousel .carousel-item img,
.hero-carousel-wrap .carousel-item img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  display: block;
}

/* ── Circular arrow controls (hidden, reveal on hover) ── */
.hero-carousel-wrap .carousel-control-prev,
.hero-carousel-wrap .carousel-control-next {
  width: 44px;
  height: 44px;
  top: 50%;
  bottom: auto;
  transform: translateY(-50%);
  border-radius: 50%;
  background: rgba(0,0,0,.35);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity .25s;
}
.hero-carousel-wrap:hover .carousel-control-prev,
.hero-carousel-wrap:hover .carousel-control-next { opacity: 1; }
.hero-carousel-wrap .carousel-control-prev { left: 14px; }
.hero-carousel-wrap .carousel-control-next { right: 14px; }
.hero-carousel-wrap .carousel-control-prev-icon,
.hero-carousel-wrap .carousel-control-next-icon { width: 18px; height: 18px; }

/* ── Dot indicators — pill expands on active ── */
.hero-carousel-wrap .carousel-indicators { margin-bottom: 14px; }
.hero-carousel-wrap .carousel-indicators button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 0;
  background: rgba(255,255,255,.5);
  transition: all .25s;
  padding: 0;
}
.hero-carousel-wrap .carousel-indicators button.active {
  background: #fff;
  width: 22px;
  border-radius: 4px;
}

/* ── Image counter badge (camera icon + N/Total) ── */
.hero-img-count {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 5px;
  z-index: 10;
  pointer-events: none;
}
.hero-img-count svg {
  width: 14px;
  height: 14px;
  stroke: #fff;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ── Caption strip ── */
.hero-caption-strip {
  background: rgba(0,0,0,.65);
  backdrop-filter: blur(6px);
  color: rgba(255,255,255,.9);
  font-size: 13px;
  padding: 10px 18px;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10;
}

/* ── Thumbnail strip ── */
.hero-thumbs {
  display: flex;
  gap: 8px;
  padding: 10px;
  background: #f9fafb;
  border-top: 1px solid #e5e7eb;
  overflow-x: auto;
  scrollbar-width: none;
}
.hero-thumbs::-webkit-scrollbar { display: none; }
.hero-thumb {
  flex-shrink: 0;
  width: 70px;
  height: 52px;
  border-radius: 7px;
  overflow: hidden;
  cursor: pointer;
  border: 2.5px solid transparent;
  transition: border-color .2s, transform .2s;
}
.hero-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-thumb.active {
  border-color: #1e8756;
  transform: scale(1.05);
}
.hero-thumb:hover { border-color: rgba(30,135,86,.5); }

/* ── Single image (no carousel) ── */
.hero-single-img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  display: block;
}

/* ── Responsive ── */
@media (max-width: 540px) {
  .hero-carousel-wrap .carousel-item img,
  .hero-single-img { max-height: 260px; }
}
