/* 全站图片放大：长按保存或扫一扫 */
.img-viewer {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.img-viewer[hidden] {
  display: none !important;
}

.img-viewer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 12, 18, 0.72);
}

.img-viewer__panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  max-width: min(94vw, 42rem);
  max-height: min(92vh, 52rem);
}

.img-viewer__img {
  display: block;
  max-width: 100%;
  max-height: min(78vh, 44rem);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
  cursor: default;
  -webkit-touch-callout: default;
  -webkit-user-select: none;
  user-select: none;
}

.img-viewer__caption {
  display: none !important;
}

.img-viewer__tip {
  margin: 0;
  padding: 0.15rem 0.35rem;
  max-width: 100%;
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.96);
  text-align: center;
  white-space: nowrap;
}

img:not([data-no-image-viewer]):not(.img-viewer__img) {
  cursor: zoom-in;
}
