.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgb(0 0 0 / 0.82);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 250ms ease, visibility 250ms ease;
  cursor: zoom-out;
}

.lightbox-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox-overlay img {
  max-width: 92vw;
  max-height: 92vh;
  border-radius: 12px;
  box-shadow: none;
  transform: scale(0.92);
  transition: transform 250ms ease;
}

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

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  padding: 0;
  color: #fff;
  font-size: 28px;
  line-height: 44px;
  text-align: center;
  border: 0;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.15);
  cursor: pointer;
  transition: background 180ms ease;
}

.lightbox-close:hover {
  background: rgb(255 255 255 / 0.3);
}

img[data-lightbox] {
  cursor: zoom-in;
}
