.lightbox-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 9999;
  justify-content: center;
  align-items: center;
}
.lightbox-overlay.lightbox-open {
  display: flex;
}
.lightbox-content {
  max-width: 90vw;
  max-height: 85vh;
  text-align: center;
}
.lightbox-img {
  max-width: 90vw;
  max-height: 78vh;
  object-fit: contain;
  border-radius: 2px;
}
.lightbox-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  padding: 10px 0 0;
  color: #e0e0e0;
  font-size: 0.95em;
}
.lightbox-caption {
  font-style: italic;
}
.lightbox-counter {
  white-space: nowrap;
  opacity: 0.7;
  font-size: 0.85em;
}
.lightbox-close {
  position: absolute;
  top: 12px;
  right: 18px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.2em;
  cursor: pointer;
  line-height: 1;
  padding: 4px 10px;
  opacity: 0.8;
  transition: opacity 0.15s;
  z-index: 10;
}
.lightbox-close:hover { opacity: 1; }
.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #fff;
  font-size: 3em;
  cursor: pointer;
  padding: 8px 16px;
  opacity: 0.7;
  transition: opacity 0.15s;
  z-index: 10;
}
.lightbox-prev { left: 10px; }
.lightbox-next { right: 10px; }
.lightbox-prev:hover,
.lightbox-next:hover { opacity: 1; }

@media (max-width: 600px) {
  .lightbox-prev,
  .lightbox-next {
    font-size: 2em;
    padding: 4px 10px;
  }
  .lightbox-close {
    font-size: 1.8em;
  }
}
