.image-viewer {
  position: fixed;
  inset: 0;
  display: grid;
  width: 100vw;
  height: 100vh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 24px;
  place-items: center;
  overflow: hidden;
  border: 0;
  background: transparent;
}

.image-viewer:not([open]) {
  display: none;
}

.image-viewer::backdrop {
  background: rgba(20, 20, 20, .88);
}

.additional-images img {
  cursor: zoom-in;
}

.image-viewer img {
  display: block;
  width: auto;
  height: auto;
  min-width: 0;
  min-height: 0;
  max-width: min(1100px, calc(100vw - 48px));
  max-height: 75vh;
  max-height: 75dvh;
  object-fit: contain;
}

.image-viewer-close {
  position: absolute;
  z-index: 1;
  top: 12px;
  right: 12px;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 50%;
  background: rgba(20, 20, 20, .75);
  color: white;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.image-viewer-close:focus-visible {
  outline: 2px solid white;
  outline-offset: 3px;
}
