/* Site-wide click-to-zoom lightbox for content images (screenshots/gifs).
   See lightbox.js for the behavior; this only styles the overlay it builds
   and marks content images as clickable. */

[role="main"] img {
  cursor: zoom-in;
}

.reqnroll-lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: rgba(0, 0, 0, 0.85);
  cursor: zoom-out;
}

.reqnroll-lightbox-overlay.is-open {
  display: flex;
}

.reqnroll-lightbox-overlay img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 4px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  cursor: default;
}

.reqnroll-lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  padding: 0.25rem 0.6rem;
  border: none;
  border-radius: 4px;
  background: none;
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.reqnroll-lightbox-close:hover,
.reqnroll-lightbox-close:focus-visible {
  background: rgba(255, 255, 255, 0.15);
}
