/* ==========================================================================
   MIND — Lightbox Styles
   Modern Fullscreen Viewer with Backdrop Blur & Smooth Navigation
   ========================================================================== */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s ease;
  z-index: 9999;
  padding: 1.5rem;
}

.lightbox.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.lightbox-content {
  position: relative;
  max-width: 92vw;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  user-select: none;
}

.lightbox .lb-img {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.7);
  transition: transform 0.25s ease;
}

.lightbox-caption-bar {
  margin-top: 1.25rem;
  text-align: center;
  width: 100%;
}

.lightbox-caption-bar .lb-title {
  display: none !important;
}

.lightbox-caption-bar .lb-counter {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  font-weight: 600;
  color: #CBD5E1;
  letter-spacing: 0.08em;
  background: rgba(255, 255, 255, 0.12);
  display: inline-block;
  padding: 0.35rem 0.9rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
}

/* Boutons de navigation */
.lightbox .lb-btn {
  position: absolute;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
  cursor: pointer;
  border-radius: 50%;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
  z-index: 10000;
}

.lightbox .lb-btn svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.lightbox .lb-btn:hover {
  background: rgba(2, 132, 199, 0.9);
  border-color: #38BDF8;
  transform: scale(1.08);
}

.lightbox .lb-close {
  top: 24px;
  right: 24px;
}

.lightbox .lb-prev {
  left: 24px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox .lb-prev:hover {
  transform: translateY(-50%) scale(1.08);
}

.lightbox .lb-next {
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox .lb-next:hover {
  transform: translateY(-50%) scale(1.08);
}

[data-gallery] {
  cursor: pointer;
}

@media (max-width: 768px) {
  .lightbox .lb-btn {
    width: 42px;
    height: 42px;
  }
  .lightbox .lb-btn svg {
    width: 20px;
    height: 20px;
  }
  .lightbox .lb-prev { left: 10px; }
  .lightbox .lb-next { right: 10px; }
  .lightbox .lb-close { top: 12px; right: 12px; }
  .lightbox .lb-img {
    max-height: 72vh;
  }
}
