/* ============================================================
   RVP Connect — Lightweight Photo Lightbox v1.0
   Pairs with assets/js/rvp-lightbox.js
   ============================================================ */

.rvp-lb-overlay {
  position: fixed; inset: 0; z-index: 99998;
  background: rgba(10, 8, 20, .95);
  display: none; align-items: center; justify-content: center;
}
.rvp-lb-overlay.open { display: flex; }

.rvp-lb-stage {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  padding: 56px 64px;
  box-sizing: border-box;
}

/* Guaranteed fit-to-screen — the whole photo is always visible,
   never cropped, never overflowing into scrollbars. */
.rvp-lb-img {
  max-width: 100%; max-height: 100%;
  width: auto; height: auto;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 10px 50px rgba(0,0,0,.5);
  -webkit-user-select: none; user-select: none;
  touch-action: pan-y pinch-zoom;
}

.rvp-lb-loader {
  position: absolute; width: 34px; height: 34px;
  border: 3px solid rgba(255,255,255,.25); border-top-color: #fff;
  border-radius: 50%; animation: rvpLbSpin .8s linear infinite;
}
@keyframes rvpLbSpin { to { transform: rotate(360deg); } }

.rvp-lb-close {
  position: fixed; top: 16px; right: 16px; z-index: 99999;
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(255,255,255,.12); color: #fff; border: none;
  font-size: 1.2rem; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s;
}
.rvp-lb-close:hover { background: rgba(255,255,255,.24); }

/* Next / Previous — always visible on every device, large tap targets */
.rvp-lb-nav {
  position: fixed; top: 50%; transform: translateY(-50%); z-index: 99999;
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255,255,255,.14); color: #fff; border: none;
  font-size: 1.9rem; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s, transform .15s;
}
.rvp-lb-nav:hover { background: rgba(255,255,255,.28); }
.rvp-lb-nav:active { transform: translateY(-50%) scale(.92); }
.rvp-lb-prev { left: 10px; }
.rvp-lb-next { right: 10px; }

@media (min-width: 768px) {
  .rvp-lb-nav { width: 56px; height: 56px; font-size: 2.2rem; }
  .rvp-lb-prev { left: 22px; }
  .rvp-lb-next { right: 22px; }
}

/* Bottom counter — "3 / 10" — makes it obvious there are more photos */
.rvp-lb-counter {
  position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%);
  z-index: 99999;
  background: rgba(255,255,255,.14); color: #fff;
  font-size: .8rem; font-weight: 700; letter-spacing: .02em;
  padding: 7px 18px; border-radius: 100px;
  font-family: 'Poppins', 'Inter', sans-serif;
}
@media (min-width: 768px) { .rvp-lb-counter { bottom: 28px; } }

@media (max-width: 480px) {
  .rvp-lb-stage { padding: 44px 14px 76px; }
  .rvp-lb-nav { width: 42px; height: 42px; font-size: 1.6rem; }
}
