/* ==========================================================================
   13. Custom Lightbox (Clean Single-Image Modal)
   ========================================================================== */
.custom-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(7, 7, 8, 0.96);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.custom-lightbox.active {
  opacity: 1;
  pointer-events: all;
}

.lightbox-content-wrap {
  width: 90%;
  height: 85%;
  max-width: 1100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.lightbox-header-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 22px;
  text-align: center;
  z-index: 10;
}

.lightbox-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-highlight);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin: 0;
}

.lightbox-location {
  font-family: var(--font-accent);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--color-gold);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0;
}

.lightbox-location i {
  font-size: 10px;
  color: var(--color-gold);
  line-height: 1;
}

.lightbox-counter {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  color: var(--color-gold);
  background: rgba(197, 168, 128, 0.15);
  border: 1px solid rgba(197, 168, 128, 0.35);
  padding: 5px 16px;
  border-radius: 20px;
  letter-spacing: 0.8px;
  margin-top: 4px;
}

.lightbox-image-container {
  width: 100%;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.lightbox-image-container img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
  transition: opacity 0.15s ease, transform 0.25s ease;
}

.lightbox-close {
  position: fixed;
  top: 30px;
  right: 30px;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background-color: rgba(7, 7, 8, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #ffffff;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 1000005;
}

.lightbox-close:hover {
  border-color: var(--color-gold);
  color: var(--color-gold);
  background-color: rgba(197, 168, 128, 0.2);
  transform: scale(1.1);
}

.lightbox-nav-btn {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background-color: rgba(7, 7, 8, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 22px;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 1000005;
}

.lightbox-nav-btn:hover {
  border-color: var(--color-gold);
  color: var(--color-gold);
  background-color: rgba(197, 168, 128, 0.2);
  transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
  left: 30px;
}

.lightbox-next {
  right: 30px;
}

@media (max-width: 768px) {
  .lightbox-prev { left: 15px; width: 44px; height: 44px; font-size: 16px; }
  .lightbox-next { right: 15px; width: 44px; height: 44px; font-size: 16px; }
  .lightbox-close { top: 15px; right: 15px; width: 44px; height: 44px; font-size: 16px; }
  .lightbox-content-wrap { width: 95%; height: 90%; }
}
