
.lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 18, 33, 0.85);
  backdrop-filter: blur(8px);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0s 0.3s;
}
.lightbox-overlay.visible {
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}

.lightbox-hit-area {
  position: fixed;
  top: 0;
  bottom: 0;
  width: 30%;
  z-index: 1000;
}
#lightbox-hit-prev {
  left: 0;
  cursor: w-resize;
}
#lightbox-hit-next {
  right: 0;
  cursor: e-resize;
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 85vh;
  z-index: 1001;
}
.lightbox-content img {
  display: block;
  max-width: 100%;
  max-height: 85vh;
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.lightbox-close, .lightbox-nav {
  position: fixed;
  background: rgba(30, 35, 60, 0.7);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  cursor: pointer;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s;
  z-index: 1002;
  pointer-events: none;
}

.lightbox-close span, .lightbox-nav span {
  display: inline-block;
  transition: transform 0.2s ease;
}
#lightbox-hit-prev:hover ~ .lightbox-prev span,
#lightbox-hit-next:hover ~ .lightbox-next span {
  transform: scale(1.2);
}
#lightbox-hit-prev:hover ~ .lightbox-prev,
#lightbox-hit-next:hover ~ .lightbox-next {
    background-color: var(--accent);
}

.lightbox-close {
  top: 20px;
  right: 20px;
  pointer-events: auto;
}
.lightbox-close:hover {
    background-color: var(--accent);
}
.lightbox-close:hover span {
    transform: scale(1.2);
}

.lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
}
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

.lightbox-counter {
  position: absolute;
  bottom: -35px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15, 18, 33, 0.7);
  color: var(--muted);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
}