/* ============================================
   轻量级弹窗样式 - 原生JS实现
   ============================================ */

.lb-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.3);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}
.lb-overlay.show { display: flex; }

.lb-content-wrap {
    position: relative;
    display: inline-block;
}

/* 图片样式 - 带白色边框和阴影 */
.lb-content-wrap img {
    max-width: 90vw;
    max-height: 90vh;
    display: block;
    border: 10px solid #fff;
    box-shadow: 0 8px 30px rgba(0,0,0,0.4);
}

/* 关闭按钮 - 相对于图片定位，右上角 */
.lb-close {
    position: absolute;
    top: 5px;
    right: 5px;
    color: #333;
    font-size: 22px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    z-index: 10002;
    user-select: none;
    background: rgba(255,255,255,0.95);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.lb-close:hover {
    background: #fff;
}

/* 隐藏导航按钮 */
.lb-prev, .lb-next {
    display: none;
}
