/* ===========================================================================
   Image lightbox / zoom preview
   Click any screenshot to preview it centered at ~80% of the viewport.
   Scoped to interface screenshots (heroes + gallery tiles), not logos.
   =========================================================================== */

.screenshot,
.tool-section-hero-img,
.tool-gallery-tile img {
  cursor: zoom-in;
}

.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2vh 2vw;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  cursor: zoom-out;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.lightbox-overlay.open {
  display: flex;
  opacity: 1;
}

.lightbox-overlay img {
  max-width: 80vw;
  max-height: 80vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 6px;
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.6);
  cursor: zoom-out;
  transform: scale(0.985);
  transition: transform 0.2s ease;
}

.lightbox-overlay.open img {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: clamp(0.6rem, 2vw, 1.4rem);
  right: clamp(0.8rem, 2.4vw, 1.8rem);
  width: 2.4rem;
  height: 2.4rem;
  font-size: 2rem;
  line-height: 1;
  color: rgba(255, 255, 255, 0.85);
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.15s ease;
}

.lightbox-close:hover {
  color: #fff;
}
