/* JPS Tour & Travells — Gallery Lightbox Styles */

.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 12, 8, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s;
  padding: 1.5rem;
}

.lightbox-overlay.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-container {
  position: relative;
  max-width: 1050px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.lightbox-image-wrap {
  position: relative;
  max-width: 100%;
  max-height: 75vh;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(231, 161, 75, 0.25);
  background: #180F0A;
}

.lightbox-img {
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
  display: block;
}

.lightbox-caption-bar {
  width: 100%;
  margin-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #FFF9F0;
  font-family: 'Inter', sans-serif;
  padding: 0 0.5rem;
}

.lightbox-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: #FFF9F0;
  margin-bottom: 0.2rem;
}

.lightbox-desc {
  font-size: 0.875rem;
  color: #D4C7BA;
}

.lightbox-counter {
  font-size: 0.85rem;
  font-weight: 600;
  color: #E7A14B;
  background: rgba(231, 161, 75, 0.12);
  border: 1px solid rgba(231, 161, 75, 0.3);
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  white-space: nowrap;
}

.lightbox-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(36, 23, 17, 0.8);
  border: 1px solid rgba(231, 161, 75, 0.3);
  color: #FFF9F0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 10;
}

.lightbox-btn:hover {
  background: #BF482B;
  border-color: #BF482B;
  color: #FFFFFF;
  transform: translateY(-50%) scale(1.08);
}

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

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

.lightbox-close {
  position: absolute;
  top: -48px;
  right: 0;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #FFF9F0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lightbox-close:hover {
  background: #BF482B;
  border-color: #BF482B;
  transform: rotate(90deg);
}

@media (max-width: 768px) {
  .lightbox-btn-prev {
    left: 8px;
  }
  .lightbox-btn-next {
    right: 8px;
  }
  .lightbox-close {
    top: -44px;
    right: 8px;
  }
  .lightbox-caption-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}

