/* BiL Infographics Slider */

.bili-wrap {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.bili-viewport {
    overflow: hidden;
    width: 100%;
}

.bili-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
    will-change: transform;
}

.bili-slide {
    flex-shrink: 0;
    padding: 0 5px;
    box-sizing: border-box;
}

.bili-img {
    display: block;
    width: 100%;
    height: auto;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.bili-img:hover {
    transform: scale(1.01);
}

/* Arrows — overlaid on images */
.bili-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(246, 246, 246, 0.9);
    border: none;
    font-size: 26px;
    line-height: 44px;
    text-align: center;
    cursor: pointer;
    z-index: 10;
    color: #000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: background 0.2s, box-shadow 0.2s;
    padding: 0;
}

.bili-arrow:hover {
    background: #fff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.bili-arrow.disabled {
    opacity: 0.3;
    cursor: default;
    pointer-events: none;
}

.bili-prev {
    left: 18px;
}

.bili-next {
    right: 18px;
}

/* ---- Lightbox ---- */
.bili-lightbox {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bili-lb-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
}

.bili-lb-content {
    position: relative;
    z-index: 1;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bili-lb-img {
    max-width: 80vw;
    max-height: 85vh;
    display: block;
    object-fit: contain;
}

.bili-lb-close {
    position: fixed;
    top: 20px;
    right: 30px;
    background: none;
    border: none;
    color: #fff;
    font-size: 40px;
    cursor: pointer;
    z-index: 2;
    line-height: 1;
    padding: 0;
}

.bili-lb-close:hover {
    color: #f24c4c;
}

.bili-lb-prev,
.bili-lb-next {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #fff;
    font-size: 48px;
    width: 50px;
    height: 60px;
    line-height: 60px;
    text-align: center;
    cursor: pointer;
    z-index: 2;
    padding: 0;
    border-radius: 4px;
    transition: background 0.2s;
}

.bili-lb-prev:hover,
.bili-lb-next:hover {
    background: rgba(255, 255, 255, 0.3);
}

.bili-lb-prev { left: 20px; }
.bili-lb-next { right: 20px; }

/* Responsive */
@media (max-width: 900px) {
    .bili-lb-img {
        max-width: 95vw;
    }
}

@media (max-width: 600px) {
    .bili-arrow {
        width: 32px;
        height: 32px;
        font-size: 18px;
        line-height: 32px;
    }
    .bili-prev { left: 8px; }
    .bili-next { right: 8px; }
    .bili-lb-prev,
    .bili-lb-next {
        font-size: 32px;
        width: 36px;
        height: 44px;
        line-height: 44px;
    }
}
