/* ── Image Lightbox ── */
.lightbox-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,.88); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  cursor: zoom-out;
  opacity: 0; visibility: hidden;
  transition: opacity .25s, visibility .25s;
}
.lightbox-overlay.open { opacity: 1; visibility: visible; }

.lightbox-overlay img {
  max-width: 92vw; max-height: 92vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 16px 60px rgba(0,0,0,.5);
  transform: scale(.92);
  transition: transform .25s;
}
.lightbox-overlay.open img { transform: scale(1); }

.lightbox-close {
  position: fixed; top: 20px; right: 24px; z-index: 10000;
  width: 40px; height: 40px; border: none; border-radius: 50%;
  background: rgba(255,255,255,.12); color: #fff; font-size: 22px;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .2s .1s;
}
.lightbox-overlay.open ~ .lightbox-close { opacity: 1; }
.lightbox-close:hover { background: rgba(255,255,255,.25); }

.lightbox-counter {
  position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%);
  z-index: 10000;
  font-size: 13px; color: rgba(255,255,255,.6);
  opacity: 0; transition: opacity .2s .1s;
}
.lightbox-overlay.open ~ .lightbox-counter { opacity: 1; }

/* Make images look clickable */
.doc-image { cursor: zoom-in; transition: box-shadow .2s; }
.doc-image:hover { box-shadow: 0 0 0 3px rgba(99,102,241,.45), 0 12px 30px rgba(0,0,0,.35); }
