body.no-scroll {
  overflow: hidden;
}
.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.popup-overlay.is-open {
  opacity: 1;
}
.popup {
  position: relative;
  background: transparent;
  padding: 0;
  width: min(600px, 80vw);
  max-width: 600px;
  max-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: auto;
}
.popup-link {
  display: block;
  width: 100%;
  max-width: inherit;
  text-decoration: none;
}
.popup img {
  width: min(600px, 80vw);
  max-width: 600px;
  max-height: 80vh;
  height: auto;
  display: block;
  object-fit: contain;
}
.popup-close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  border: 0;
  font-size: 1.25rem;
  cursor: pointer;
  border-radius: 999px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  line-height: 1;
  transition: transform 0.12s ease, background-color 0.12s ease;
}
.popup-close:hover {
  transform: scale(1.06);
  background: rgba(0, 0, 0, 0.65);
}
.popup-close:focus {
  outline: 2px solid #fff;
  outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  .popup-overlay {
    transition: none;
  }
  .popup-close {
    transition: none;
  }
}
