/* Like Girl 前台编辑版 v5.2.9 图片查看器 */
.fe-viewer {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000000;
    display: none;
    overflow: hidden;
    background: rgba(0, 0, 0, .95);
    overscroll-behavior: none;
}

.fe-viewer.show {
    display: block;
}

.fe-viewer-stage {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    touch-action: none;
}

.fe-viewer-img {
    width: auto;
    height: auto;
    max-width: 100vw;
    max-height: 100vh;
    transform-origin: center center;
    will-change: transform;
    user-select: none;
    -webkit-user-select: none;
    -webkit-user-drag: none;
}

.fe-viewer-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 2;
    display: none;
    width: 38px;
    height: 38px;
    margin: -19px 0 0 -19px;
    border: 3px solid rgba(255, 255, 255, .25);
    border-top-color: #fff;
    border-radius: 50%;
    animation: fe-viewer-spin .8s linear infinite;
}

.fe-viewer.loading .fe-viewer-spinner {
    display: block;
}

@keyframes fe-viewer-spin {
    to {
        transform: rotate(360deg);
    }
}

.fe-viewer-close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 3;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    color: #fff;
    background: rgba(255, 255, 255, .16);
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
}

.fe-viewer-prev,
.fe-viewer-next {
    position: absolute;
    top: 50%;
    z-index: 3;
    width: 44px;
    height: 44px;
    margin-top: -22px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    color: #fff;
    background: rgba(255, 255, 255, .16);
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
}

.fe-viewer-prev {
    left: 14px;
}

.fe-viewer-next {
    right: 14px;
}

.fe-viewer-tools {
    position: absolute;
    left: 50%;
    bottom: 22px;
    z-index: 3;
    display: flex;
    gap: 12px;
    transform: translateX(-50%);
}

.fe-viewer-zoom {
    width: 42px;
    height: 42px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    color: #fff;
    background: rgba(255, 255, 255, .16);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.fe-viewer-download {
    position: absolute;
    right: 16px;
    bottom: 20px;
    z-index: 3;
    padding: 8px 14px;
    border-radius: 20px;
    color: #222;
    background: rgba(255, 255, 255, .92);
    font-size: 14px;
    text-decoration: none;
}

.fe-viewer-download:hover {
    color: #000;
    background: #fff;
}

.fe-viewer-open {
    overflow: hidden;
}

@media (max-width: 520px) {
    .fe-viewer-download {
        bottom: 76px;
    }
}
