/*
 * Civio Feed — slider inline (dans civio-grid-image-wrap).
 *
 * Adapté 1:1 depuis civio-carousel.css (section slider inline) par simple
 * remplacement de préfixe civio-carousel-slider → civio-feed-slider.
 * Aucune dépendance Royal / lightGallery : pas de neutralisation d'overlay
 * Royal (notre markup n'en émet pas).
 */

.civio-grid-image-wrap.civio-feed-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.civio-feed-slider__scroller {
  display: flex;
  height: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  touch-action: pan-x;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}

.civio-feed-slider__scroller[data-dragging="1"] {
  cursor: grabbing;
}

.civio-feed-slider__slide img {
  user-drag: none;
  -webkit-user-drag: none;
  pointer-events: none;
}
.civio-feed-slider__scroller::-webkit-scrollbar { display: none; }

.civio-feed-slider__slide-link {
  touch-action: pan-x;
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
  text-decoration: none;
}

.civio-feed-slider__slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  position: relative;
  height: 210px;
  /* Fond blanc : les slides PNG transparents ne laissent pas voir le fond page. */
  background: #ffffff;
}

.civio-feed-slider__slide.is-locked {
  filter: blur(8px) brightness(0.85);
  pointer-events: none;
}

.civio-feed-slider__slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.civio-feed-slider__caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 12px 16px 22px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.65), transparent);
  color: #fff;
  font-size: 13px;
  line-height: 1.4;
  font-weight: 500;
}

.civio-feed-slider__dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 6px;
  display: flex;
  gap: 4px;
  justify-content: center;
  z-index: 5;
  pointer-events: none;
}

.civio-feed-slider__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  transition: background 0.2s, transform 0.2s;
  pointer-events: auto;
  cursor: pointer;
}
.civio-feed-slider__dot.is-active {
  background: #e30613;
  transform: scale(1.35);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.8), 0 1px 3px rgba(0, 0, 0, 0.5);
}

.civio-feed-slider__counter {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 10;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
  pointer-events: none;
}
.civio-feed-slider__counter-sep { opacity: 0.6; margin: 0 2px; }
