.pop {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 16px;
}

.pop[hidden] {
  display: none;
}

.pop__overlay {
  position: absolute;
  inset: 0;
  background: rgb(0 0 0 / 65%);
}

.pop__content {
  position: relative;
  z-index: 1;
  max-width: min(90vw, 700px);
  max-height: 90vh;
  outline: none;
  transform: scale(.98);
  opacity: 0;
  transition: opacity .18s ease, transform .18s ease;
}

.pop.is-open .pop__content {
  opacity: 1;
  transform: scale(1);
}

.pop__image {
  display: block;
  width: 100%;
  height: auto;
  max-height: 90vh;
  border-radius: 12px;
}

.pop__close {
  position: absolute;
  top: -12px;
  right: -12px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  font-size: 24px;
  color: #111;
}

.pop-lock {
  overflow: hidden;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}