.image-viewer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.15s ease-in-out;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  cursor: zoom-out;
}

.image-viewer.active {
  opacity: 1;
}

.image-viewer img {
  min-width: 45rem;
  max-width: 60vw;
  max-height: 80vh;
  object-fit: contain;
  cursor: zoom-out;
}

@media (max-width: 768px) {
  .image-viewer img {
    min-width: 100vw;
  }
}

body.image-viewer-open {
  overflow: hidden;
}
