/* ── RUFC Enhanced Lightbox ── */
.lb-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0, 0, 0, 0.96);
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.lb-overlay.lb-active {
  opacity: 1;
  visibility: visible;
}

/* Top bar */
.lb-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  flex-shrink: 0;
}
.lb-counter {
  color: rgba(255,255,255,0.7);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  font-family: 'Inter', sans-serif;
}

/* Buttons */
.lb-btn {
  background: rgba(255,255,255,0.1);
  border: none;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.lb-btn:hover {
  background: rgba(255,255,255,0.2);
}
.lb-btn:active {
  transform: scale(0.92);
}
.lb-close {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.15rem;
}

/* Stage */
.lb-stage {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 0;
  padding: 0 1rem;
}

/* Arrows */
.lb-arrow {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 1.1rem;
  flex-shrink: 0;
  z-index: 2;
}
.lb-prev { margin-right: 0.75rem; }
.lb-next { margin-left: 0.75rem; }

/* Image wrapper */
.lb-img-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  max-height: 100%;
  position: relative;
}
.lb-img {
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
  border-radius: 6px;
  transition: opacity 0.3s ease;
  user-select: none;
  -webkit-user-drag: none;
}
.lb-spinner {
  position: absolute;
  color: rgba(255,255,255,0.5);
  font-size: 2rem;
}

/* Caption */
.lb-caption {
  text-align: center;
  padding: 0.75rem 1.25rem 1.25rem;
  color: rgba(255,255,255,0.6);
  font-size: 0.85rem;
  font-family: 'Inter', sans-serif;
  flex-shrink: 0;
}

/* Zoom overlay on gallery thumbnails */
.gallery-item::after,
.gallery-strip__item::after {
  content: '\f00e';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(18, 59, 115, 0.0);
  color: rgba(255,255,255,0);
  font-size: 1.5rem;
  transition: all 0.3s ease;
  pointer-events: none;
  border-radius: inherit;
}
.gallery-item:hover::after,
.gallery-strip__item:hover::after {
  background: rgba(18, 59, 115, 0.35);
  color: rgba(255,255,255,0.9);
}

/* ── Mobile ── */
@media (max-width: 600px) {
  .lb-topbar { padding: 0.75rem 1rem; }
  .lb-arrow { width: 40px; height: 40px; font-size: 0.95rem; }
  .lb-prev { margin-right: 0.35rem; }
  .lb-next { margin-left: 0.35rem; }
  .lb-img { max-height: 65vh; border-radius: 4px; }
  .lb-close { width: 40px; height: 40px; font-size: 1rem; }
  .lb-caption { font-size: 0.78rem; padding: 0.5rem 1rem 1rem; }
}

/* Ensure gallery strip items have position for the zoom overlay */
.gallery-strip__item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
