/* ===== 并排图片容器 ===== */
.sxs-image {
    margin: 20px 0;
    text-align: center;
}

/* 并排行 */
.sxs-image .sxs-row {
    display: flex;
    justify-content: center;
    gap: 10px;
}

/* 每列宽度由 CSS 变量控制(默认 49%) */
.sxs-image .sxs-lightbox {
    flex: 0 0 var(--sxs-width, 49%);
    display: block;
}

/* 图片本身 */
.sxs-image img {
    width: 100%;
    height: auto;
    border: 1px solid #eee;
    transition: transform .3s;
}
.sxs-image img:hover {
    transform: scale(1.02);
}

/* 标题 */
.sxs-image .sxs-caption {
    margin-top: 10px;
    font-style: italic;
    color: #666;
    font-size: .9em;
}

/* 移动端保持并排 + 横向滚动 */
@media (max-width: 480px) {
    .sxs-image .sxs-row {
        flex-wrap: nowrap;
        overflow-x: auto;
    }
    .sxs-image .sxs-lightbox {
        flex: 0 0 45%;
    }
}

/* ===== Lightbox ===== */
.sxs-lightbox-bg {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .9);
    z-index: 9999;
    cursor: zoom-out;
}
.sxs-lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}
.sxs-lightbox-content img {
    max-width: 100%;
    max-height: 80vh;
    border: 3px solid #fff;
}
.sxs-close {
    position: absolute;
    top: -40px;
    right: -10px;
    background: none;
    border: none;
    font-size: 40px;
    color: #fff;
    cursor: pointer;
    line-height: 1;
}
