/* 画廊图片样式 */
#custom-gallery img {
    cursor: pointer;
    transition: opacity 0.3s;
    max-width: 100%;
    height: auto;
}

#custom-gallery img:hover {
    opacity: 0.85;
}

/* 灯箱遮罩层 */
#lightbox-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: 99999;
}

#lightbox-overlay.active {
    display: block;
}

.lightbox-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 关闭按钮 - 加大版 */
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.1);
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    color: #fff;
    font-size: 40px;
    line-height: 56px;
    text-align: center;
    cursor: pointer;
    z-index: 100000;
    transition: all 0.3s ease;
}

.lightbox-close:hover {
    background: rgba(255,0,0,0.8);
    border-color: rgba(255,0,0,0.8);
    transform: rotate(90deg);
}

/* 左右箭头 */
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 70px;
    height: 120px;
    background: rgba(255,255,255,0.1);
    border: none;
    color: #fff;
    font-size: 50px;
    cursor: pointer;
    z-index: 100000;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-nav:hover {
    background: rgba(255,255,255,0.25);
}

.lightbox-prev { left: 30px; }
.lightbox-next { right: 30px; }

/* 图片 */
.lightbox-img-wrap {
    max-width: 85%;
    max-height: 85%;
    position: relative;
}

#lightbox-img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    box-shadow: 0 10px 50px rgba(0,0,0,0.8);
}

/* 图片信息 */
.lightbox-info {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: #fff;
    z-index: 100000;
}

.lightbox-counter {
    font-size: 16px;
    padding: 8px 20px;
    background: rgba(0,0,0,0.6);
    border-radius: 20px;
    margin-bottom: 10px;
    display: inline-block;
}

.lightbox-title {
    font-size: 14px;
    opacity: 0.8;
    max-width: 600px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .lightbox-close {
        width: 45px;
        height: 45px;
        font-size: 30px;
        line-height: 41px;
        top: 10px;
        right: 10px;
    }
    
    .lightbox-nav {
        width: 40px;
        height: 80px;
        font-size: 35px;
    }
    
    .lightbox-prev { left: 5px; }
    .lightbox-next { right: 5px; }
}

