img,
picture,
svg,
a[data-sa-image-link] {
  -webkit-touch-callout: none;
  -webkit-user-drag: none;
}

body.sa-image-preview {
  align-items: center;
  background: #202124;
  display: grid;
  justify-items: center;
  margin: 0;
  min-height: 100vh;
}

.sa-image-preview img {
  display: block;
  height: auto;
  max-height: 100vh;
  max-width: 100vw;
  object-fit: contain;
}

.sa-image-preview button {
  background: none;
  border: 0;
  cursor: zoom-in;
  padding: 0;
}

.sa-image-preview button:focus-visible {
  outline: 2px solid white;
  outline-offset: -2px;
}

.sa-image-enlarged {
  place-items: start;
}

.sa-image-enlarged button {
  cursor: zoom-out;
}

.sa-image-enlarged img {
  max-height: none;
  max-width: none;
}
