
#lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);

  display: flex;
  align-items: center;
  justify-content: center;

  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 9999;
  overscroll-behavior: contain;
}

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

#lightbox img {
  max-width: 92%;
  max-height: 92%;
  object-fit: contain;
  border: 1px solid rgba(255, 255, 255, 0.14);


  cursor: zoom-out;
}

img[data-no-lightbox] {
  cursor: default;
}
.lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  display: none;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(13, 13, 13, 0.7);
  backdrop-filter: blur(8px);
  color: #fff;
  cursor: pointer;
  z-index: 2;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

#lightbox.has-nav .lb-nav { display: flex; }
.lb-nav svg { width: 22px; height: 22px; }
.lb-prev { left: clamp(12px, 3vw, 40px); }
.lb-next { right: clamp(12px, 3vw, 40px); }

.lb-nav:hover {
  background: var(--accent, #fff);
  border-color: var(--accent, #fff);
  color: #0d0d0d;
}
