/* jqLightbox —— 评论图片查看器样式（配合 /static/js/lightbox.js 使用） */

/* 打开时锁定页面滚动 */
body.jqlb-lock {
    overflow: hidden;
}

#jqlbWrap {
    display: none;
    position: fixed;
    z-index: 99999;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, .78);
}

#jqlbWrap > * {
    -webkit-box-sizing: content-box;
    -moz-box-sizing: content-box;
    box-sizing: content-box;
}

/* 图片舞台：居中显示，点击空白处关闭 */
.jqlb-stage {
    position: absolute;
    top: 30px;
    left: 60px;
    right: 60px;
    bottom: 50px;
    display: -webkit-flex;
    display: flex;
    -webkit-align-items: center;
    align-items: center;
    -webkit-justify-content: center;
    justify-content: center;
}

.jqlb-img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    background: #000 url(/static/img/WhiteLoading.gif) no-repeat center;
    background-size: 28px 28px;
    border-radius: 2px;
    cursor: default;
}

/* 大图加载完成前的提示 */
.jqlb-loading .jqlb-img {
    opacity: .35;
}

/* 翻页 / 关闭按钮 */
.jqlb-btn {
    position: absolute;
    z-index: 2;
    display: block;
    width: 44px;
    height: 44px;
    line-height: 42px;
    text-align: center;
    font-size: 34px;
    color: #fff;
    text-decoration: none;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 50%;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
}

.jqlb-btn:hover {
    background: rgba(255, 255, 255, .28);
    text-decoration: none;
}

.jqlb-prev { left: 8px;  top: 50%; margin-top: -22px; }
.jqlb-next { right: 8px; top: 50%; margin-top: -22px; }
.jqlb-close { right: 8px; top: 8px; font-size: 26px; }

/* 计数器（如 2 / 5） */
.jqlb-counter {
    position: absolute;
    bottom: 14px;
    left: 0;
    right: 0;
    text-align: center;
    color: #fff;
    font-size: 13px;
    letter-spacing: 1px;
    opacity: .85;
}

/* 小屏适配 */
@media screen and (max-width: 640px) {
    .jqlb-stage {
        top: 56px;
        left: 6px;
        right: 6px;
        bottom: 40px;
    }
    .jqlb-btn {
        width: 36px;
        height: 36px;
        line-height: 34px;
        font-size: 26px;
    }
    .jqlb-prev,
    .jqlb-next {
        top: auto;
        bottom: 44px;
        margin-top: 0;
    }
}
