/* Lightbox Modal CSS - SISBAT */
.sisbat-lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 15, 20, 0.94);
  backdrop-filter: blur(6px);
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s ease;
  user-select: none;
}

.sisbat-lightbox-overlay.-active {
  opacity: 1;
}

.sisbat-lightbox-container {
  position: relative;
  max-width: 90vw;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.sisbat-lightbox-image {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
  transform: scale(0.95);
  transition: transform 0.25s ease;
  cursor: zoom-out;
}

.sisbat-lightbox-overlay.-active .sisbat-lightbox-image {
  transform: scale(1);
}

.sisbat-lightbox-caption {
  margin-top: 14px;
  color: #ffffff;
  font-family: 'Roboto', sans-serif;
  font-size: 15px;
  text-align: center;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.sisbat-lightbox-counter {
  margin-top: 4px;
  color: #bb8f6e;
  font-size: 13px;
  font-weight: 600;
}

/* Boutons de contrôle */
.sisbat-lightbox-close {
  position: absolute;
  top: 24px;
  right: 28px;
  background: rgba(40, 58, 73, 0.7);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 26px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 1000000;
}

.sisbat-lightbox-close:hover {
  background: #bb8f6e;
  border-color: #bb8f6e;
  transform: scale(1.08);
}

.sisbat-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(40, 58, 73, 0.7);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 1000000;
}

.sisbat-lightbox-nav:hover {
  background: #bb8f6e;
  border-color: #bb8f6e;
  transform: translateY(-50%) scale(1.1);
}

.sisbat-lightbox-prev {
  left: 24px;
}

.sisbat-lightbox-next {
  right: 24px;
}

/* Style curseur sur les images zoomables */
.zoomable-image, [data-zoom] {
  cursor: zoom-in !important;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.zoomable-image:hover, [data-zoom]:hover {
  filter: brightness(1.05);
}

/* Galerie projet */
.project-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin: 32px 0 48px 0;
}

.project-gallery-item {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  background: #f8fafc;
  aspect-ratio: 4/3;
  cursor: zoom-in;
}

.project-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.project-gallery-item:hover img {
  transform: scale(1.04);
}

.project-gallery-zoom-badge {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(40, 58, 73, 0.85);
  color: #ffffff;
  padding: 6px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
  opacity: 0;
  transform: translateY(4px);
  transition: all 0.2s ease;
  pointer-events: none;
}

.project-gallery-item:hover .project-gallery-zoom-badge {
  opacity: 1;
  transform: translateY(0);
}
