.article-body img {
  cursor: zoom-in;
}
.article-body img:focus-visible {
  outline: 2px solid #6aa9fa;
  outline-offset: 4px;
}
.image-preview {
  position: fixed;
  inset: 0;
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  overflow: hidden;
  overscroll-behavior: contain;
}
.image-preview::backdrop {
  background: rgba(12, 16, 24, 0.88);
  backdrop-filter: blur(6px);
}
.image-preview-stage {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: none;
  user-select: none;
  cursor: zoom-in;
}
.image-preview-stage.is-zoomed {
  cursor: grab;
}
.image-preview-stage.is-zoomed:active {
  cursor: grabbing;
}
.image-preview-image {
  display: block;
  width: auto;
  height: auto;
  max-width: calc(100vw - 96px);
  max-height: calc(100dvh - 100px);
  object-fit: contain;
  margin: 0;
  border-radius: 6px;
  box-shadow: 0 16px 64px rgba(0, 0, 0, 0.24);
  pointer-events: none;
  user-select: none;
  will-change: transform;
}
.image-preview-close,
.image-preview-reset {
  position: absolute;
  z-index: 1;
  border: 0;
  background: transparent;
  color: #e3e8ef;
  font-family: "Segoe UI", "Microsoft YaHei", sans-serif;
  cursor: pointer;
  touch-action: manipulation;
  transition: color 160ms ease;
}
.image-preview-close {
  top: max(12px, env(safe-area-inset-top));
  right: max(12px, env(safe-area-inset-right));
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 6px;
}
.image-preview-close::before,
.image-preview-close::after {
  content: "";
  position: absolute;
  top: 21px;
  left: 11px;
  width: 22px;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5));
  transform: rotate(45deg);
}
.image-preview-close::after {
  transform: rotate(-45deg);
}
.image-preview button:hover {
  color: #fff;
}
.image-preview-reset {
  left: 50%;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  min-height: 44px;
  padding: 8px 20px;
  font-size: 14px;
}
.image-preview-reset[hidden] {
  display: none;
}
.image-preview button:focus-visible {
  outline: 2px solid #80c8ff;
  outline-offset: 3px;
}
@media (max-width: 700px) {
  .image-preview-image {
    max-width: calc(100vw - 24px);
  }
}
