


.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.progressive-img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    overflow: hidden;
    cursor: zoom-in;
    transition: filter 0.4s, transform 0.3s;
    filter: blur(10px);
}

/* ================放大查看原图====================S */ 
/* Lightbox 基本样式 */
.lightbox {
    position: fixed;
    z-index: 11;
    inset: 0;
    background: rgba(0,0,0,0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    /* gap: 30px; PC 时图片和按钮之间的距离 */
    visibility: hidden;
    opacity: 0;
    transition: 0.3s;
    /* padding: 20px; */
}

.lightbox.show {
    visibility: visible;
    opacity: 1;
}

/* 大图展示区域（左侧 or 上方） */
.lightbox-content {
    /* flex: 1;  */
    position: relative; 
    padding: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.lightbox-content img {
    width: auto;
    height: auto;
    max-width: 90vw;      /* 不能超过窗口宽度 */
    max-height: 90vh;     /* 不能超过窗口高度 */
    object-fit: contain;  /* 等比缩放永不裁剪 */
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(255,255,255,0.15);
}

/* 图片左下角文字描述 */
.lightbox-caption {
    position: absolute;
    bottom: 22px;
    left: 26px;

    /* 更高级视觉效果 */
    max-width: 62%;
    padding: 12px 16px;

    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(8px) saturate(150%);
    -webkit-backdrop-filter: blur(8px) saturate(150%);
    
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.18); /* 模糊玻璃边框 */
    box-shadow: 0 4px 18px rgba(0,0,0,0.25);

    color: #e9f1ff;
    font-size: 15px;
    line-height: 1.55;
    letter-spacing: 0.5px;

    pointer-events: none;

    /* 动画容器：禁止折行抖动 */
    overflow: hidden;
    white-space: pre-wrap;
}


/* 按钮区域（右侧竖排 or 手机横排） */
.lightbox-actions {
    display: flex;
    flex-direction: column; /* PC 竖排 */
    gap: 20px;
}

.lightbox-actions button { 
    border: none;
    font-size: 16px;
    border-radius: 8px;
    cursor: pointer;
    background: black;  
    color: white;
    transition: background 0.2s;
}

.lightbox-actions button:hover {
    background: white;
    color: black;
}
 

/* ---------------------------
   手机端适配
   小于等于 768px 切换布局
   --------------------------- */
@media (max-width: 768px) {

    .lightbox {
        flex-direction: column;   /* 图片在上，按钮在下 */
        gap: 15px;
        padding: 10px;
    }

    .lightbox-content img {
        max-width: 100vw;
        max-height: 80vh;  /* 手机上下空隙更多 */
    }

    .lightbox-actions {
        flex-direction: row;      /* 按钮横排 */
        width: 100%;
        justify-content: center;
        gap: 15px;
    }

    .lightbox-actions button {
        flex: 1;                  /* 按钮等分 */
        /* padding: 12px 0; */
        font-size: 15px;
    }
}

/* ================放大查看原图====================E */ 
 