/* ==========================================================================
   LIGHTBOX MODAL STYLING
   ========================================================================== */

.lightbox-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(18, 33, 25, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  padding: 1.5rem;
}

.lightbox-modal.active {
  display: flex;
  opacity: 1;
}

.lightbox-dialog {
  position: relative;
  max-width: 92vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: zoomIn 0.3s ease forwards;
}

@keyframes zoomIn {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.lightbox-img-wrap {
  max-height: 78vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

.lightbox-img {
  max-width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border-radius: var(--radius-md);
}

.lightbox-caption-bar {
  margin-top: 1rem;
  text-align: center;
  color: var(--c-text-inv);
  font-family: var(--font-sans);
}

.lightbox-title {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--c-gold-400);
}

.lightbox-counter {
  font-size: 0.85rem;
  color: rgba(253, 252, 249, 0.65);
  margin-top: 0.2rem;
}

.lightbox-close-btn,
.lightbox-prev-btn,
.lightbox-next-btn {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: absolute;
  transition: all var(--transition-fast);
  z-index: 10;
}

.lightbox-close-btn:hover,
.lightbox-prev-btn:hover,
.lightbox-next-btn:hover {
  background: var(--c-amber-500);
  border-color: var(--c-amber-500);
  transform: scale(1.1);
}

.lightbox-close-btn {
  top: 1.5rem;
  right: 1.5rem;
}

.lightbox-prev-btn {
  left: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
}

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

.lightbox-next-btn {
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
}

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

.lightbox-close-btn svg,
.lightbox-prev-btn svg,
.lightbox-next-btn svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

@media (max-width: 768px) {
  .lightbox-prev-btn { left: 0.5rem; width: 40px; height: 40px; }
  .lightbox-next-btn { right: 0.5rem; width: 40px; height: 40px; }
  .lightbox-close-btn { top: 0.8rem; right: 0.8rem; width: 40px; height: 40px; }
}
