/* ============ LIGHTBOX GALLERY ============ */
/* SECTION: LIGHTBOX-CONTAINER */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(10,10,15,0.95);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-slow);
}

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

/* SECTION: LIGHTBOX-CONTENT */
.lightbox-content {
  position: relative;
  width: 90%;
  height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-image {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border: 1px solid rgba(184,157,99,0.3);
  background: var(--oil);
  animation: scaleIn 0.3s ease;
}

/* SECTION: LIGHTBOX-CAPTION */
.lightbox-caption {
  position: absolute;
  bottom: -40px;
  left: 0;
  width: 100%;
  color: var(--offwhite);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-align: center;
  font-weight: 500;
}

/* SECTION: LIGHTBOX-CONTROLS */
.lightbox-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  color: var(--offwhite);
  font-size: 3rem;
  font-weight: 300;
  cursor: pointer;
  line-height: 1;
  background: none;
  border: none;
  z-index: 1010;
  transition: color var(--transition-fast);
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-close:hover {
  color: var(--redpower);
  transform: rotate(90deg);
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(10,10,15,0.7);
  color: var(--offwhite);
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  cursor: pointer;
  border: 1px solid rgba(184,157,99,0.3);
  transition: all var(--transition-fast);
  z-index: 1010;
}

.lightbox-prev {
  left: 2rem;
}

.lightbox-next {
  right: 2rem;
}

.lightbox-prev:hover,
.lightbox-next:hover {
  background: var(--redpower);
  border-color: var(--redpower);
  color: white;
}

/* SECTION: LIGHTBOX-COUNTER */
.lightbox-counter {
  position: absolute;
  bottom: -80px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(248,248,248,0.6);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-weight: 500;
}

/* SECTION: LIGHTBOX-THUMBNAILS */
.lightbox-thumbnails {
  position: absolute;
  bottom: -150px;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 1rem;
  padding: 1rem;
  overflow-x: auto;
}

.lightbox-thumb {
  width: 60px;
  height: 60px;
  object-fit: cover;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition-fast);
  opacity: 0.6;
}

.lightbox-thumb:hover,
.lightbox-thumb.active {
  border-color: var(--redpower);
  opacity: 1;
}

/* SECTION: LIGHTBOX-LOADING */
.lightbox-loading {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--brass);
  font-size: 1rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

/* SECTION: LIGHTBOX-RESPONSIVE */
@media (max-width: 768px) {
  .lightbox-prev,
  .lightbox-next {
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
  }
  
  .lightbox-prev { left: 0.5rem; }
  .lightbox-next { right: 0.5rem; }
  .lightbox-close { top: 1rem; right: 1rem; font-size: 2rem; }
  .lightbox-thumbnails { bottom: -100px; }
  .lightbox-counter { bottom: -50px; }
}

@media (max-width: 640px) {
  .lightbox-thumbnails { display: none; }
}