/**
 * 文章正文图片预览降级层样式（仅非微信触屏环境启用，微信内走 wx.previewImage 原生预览）
 */
.xst-img-preview {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: #000;
    display: none;
    overflow: hidden;
}

.xst-img-preview.show {
    display: block;
}

.xst-img-preview__track {
    display: flex;
    height: 100%;
    will-change: transform;
}

.xst-img-preview__slide {
    flex: 0 0 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    -webkit-tap-highlight-color: transparent;
}

.xst-img-preview__slide img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: default; /* 保留长按保存 */
}

.xst-img-preview__counter {
    position: absolute;
    top: calc(env(safe-area-inset-top, 0px) + 14px);
    left: 0;
    right: 0;
    text-align: center;
    color: rgba(255, 255, 255, .9);
    font-size: 14px;
    line-height: 1;
    pointer-events: none;
}
