/* ====== LIGHTBOX ====== */

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0,0,0,0.96);
  justify-content: center;
  align-items: center;
  cursor: zoom-out;
}

.lightbox.active { display: flex; }

.lightbox img {
  max-width: 100%;
  max-height: 92vh;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.4s ease;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

.lightbox img.loaded { opacity: 1; }

.lightbox-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: rgba(255,255,255,0.5);
  font-size: 2.5rem;
  cursor: pointer;
  padding: 20px;
  transition: color 0.2s;
  z-index: 1001;
  font-family: Roboto, sans-serif;
  font-weight: 300;
  line-height: 1;
}

.lightbox-nav:hover { color: white; }
.lightbox-prev { left: 8px; }
.lightbox-next { right: 8px; }

.lightbox-close {
  position: fixed;
  top: 16px;
  right: 24px;
  background: none;
  border: none;
  color: rgba(255,255,255,0.5);
  font-size: 2rem;
  cursor: pointer;
  padding: 8px;
  transition: color 0.2s;
  z-index: 1001;
  font-family: Roboto, sans-serif;
  font-weight: 300;
}

.lightbox-close:hover { color: white; }

.lightbox-img-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 94vw;
  max-height: 92vh;
}

.lightbox-watermark {
  position: absolute;
  bottom: 12px;
  right: 16px;
  color: rgba(255,255,255,0.4);
  font-family: Roboto, sans-serif;
  font-weight: 400;
  font-size: 1rem;
  letter-spacing: 0.1em;
  pointer-events: none;
  z-index: 1001;
  text-shadow: 0 1px 4px rgba(0,0,0,0.6);
}

.lightbox-info {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.85));
  padding: 32px 24px 18px;
  z-index: 1001;
  display: flex;
  justify-content: center;
  gap: 24px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}

.lightbox.active .lightbox-info { opacity: 1; }

.info-item { text-align: center; }

.info-label {
  color: rgba(255,255,255,0.4);
  font-size: 0.55rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.info-value {
  color: rgba(255,255,255,0.75);
  font-size: 0.72rem;
  font-weight: 300;
}

.info-value.info-id { user-select: text; }

.lightbox-counter {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.35);
  font-size: 0.85rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  z-index: 1001;
}

@media (max-width: 1024px) {
  .lightbox-info { gap: 20px; padding: 40px 20px 20px; }
}

@media (max-width: 600px) {
  .lightbox-nav { font-size: 1.8rem; padding: 12px; }
  .lightbox-info { gap: 10px; padding: 28px 12px 14px; flex-wrap: wrap; }
  .info-value { font-size: 0.65rem; }
  .info-label { font-size: 0.5rem; }
}
