.lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.85);
  display: grid;
  place-items: center;
  padding: 2vmin;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
}
.lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}
.lightbox__img {
  max-width: 96vw;
  max-height: 92vh;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}
.lightbox__close {
  position: absolute;
  top: 1.2rem;
  inset-inline-end: 1.2rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.15s;
}
.lightbox__close:hover {
  background: rgba(255, 255, 255, 0.2);
}
body.lightbox-lock {
  overflow: hidden;
}
