/**
 * Indicadores de carrusel: hasta 5 imágenes se mantienen los puntos;
 * a partir de 6 se sustituyen por un contador compacto "1 / N".
 */
.post-indicators.post-indicators--many { display: none !important; }

html .post-counter.post-counter--many {
  position: absolute;
  top: auto;
  left: auto;
  right: var(--ig-space-3);
  bottom: var(--ig-space-3);
  padding: 5px 9px;
  border-radius: var(--ig-radius-base);
  background: rgba(0, 0, 0, 0.62);
  color: #fff;
  font-family: var(--lpf-font-ui);
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  text-shadow: none;
  opacity: 1;
  visibility: visible;
  pointer-events: none;
  z-index: 20;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* Escritorio e iPad ocultan el contador en la cuadrícula; solo se muestra en el feed */
html .view-feed .post-counter.post-counter--many { display: block; }

/* ── Deslizamiento nativo entre viñetas (iPhone e iPad; la pista la crea LpfSwipe en common.js) ── */
.lpf-track {
  display: flex;
  width: 100%;
  height: 100%;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.lpf-track::-webkit-scrollbar { display: none; }
.lpf-viewer > * { flex: 0 0 100%; min-width: 100%; scroll-snap-align: start; scroll-snap-stop: always; }

html body .post-carousel.lpf-swipe {
  touch-action: auto;
  will-change: auto;
  perspective: none;
  -webkit-perspective: none;
  cursor: default;
}
html body .post-carousel.lpf-swipe > .lpf-track > .post-image {
  position: static;
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  display: block;
  opacity: 1;
  transform: none;
  transition: none;
  will-change: auto;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

/* Visor del iPad */
.lpf-lb { position: absolute; inset: 0; z-index: 5; touch-action: pan-x pinch-zoom; }
#lightbox .lightbox__nav { z-index: calc(var(--ig-z-modal) + 15); }
.lpf-lb__slide { height: 100%; display: flex; align-items: center; justify-content: center; }
.lpf-lb__img {
  max-width: calc(100vw - 16px);
  max-height: calc(100dvh - 140px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--ig-radius-xl);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: default;
}
@media (orientation: landscape) { .lpf-lb__img { max-width: calc(100vw - 120px); } }
.lpf-lb__card {
  width: min(80vw, 480px);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 56px 40px;
  border-radius: 24px;
  background: rgba(0, 0, 0, 0.9);
  text-align: center;
  cursor: pointer;
}
