/* 提示层不占布局空间，也不拦截原生图库点击。 */
#gallery .ekr-gallery-magnifier {
    position: absolute;
    inset: 0;
    z-index: 20;
    pointer-events: none;
}

#gallery .ekr-gallery-magnifier__message {
    position: absolute;
    inset-inline: 12px;
    bottom: 12px;
    padding: 8px 12px;
    border-radius: 6px;
    background: #fff;
    color: #333;
    font-size: 13px;
    box-shadow: 0 1px 6px #0002;
}

/* 与原生 lg 图库断点一致；触摸及手机布局不应用放大样式。 */
@media (min-width: 1024px) and (hover: hover) and (pointer: fine) {
    #gallery [data-track] button[data-ekr-magnifier-active] {
        overflow: hidden;
        cursor: zoom-in;
    }

    #gallery [data-track] button[data-ekr-magnifier-active] > img {
        transform: scale(2);
        transform-origin: var(--ekr-magnifier-origin, 50% 50%);
    }
}
