/* News page: gallery + lightbox */
/* Custom Lightbox Styles */
    .lightbox-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.9);
        z-index: 1000;
        justify-content: center;
        align-items: center;
    }

    .lightbox-content {
        max-width: 90vw;
        max-height: 90vh;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .lightbox-content img {
        max-width: 90%;
        max-height: 90%;
        border-radius: 8px;
    }

    .lightbox-close {
        position: absolute;
        top: 20px;
        right: 20px;
        color: white;
        font-size: 30px;
        cursor: pointer;
        background: none;
        border: none;
    }

    .lightbox-caption {
        color: white;
        text-align: center;
        margin-top: 15px;
        font-size: 18px;
    }

    .gallery {
        display: flex;
        justify-content: flex-start;
        align-items: flex-start;
        gap: 8px;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        width: 100%;
        max-width: calc(100vw - 64px);
        padding: 0 16px;
        max-height: 220px;
        box-sizing: border-box;
    }


    .gallery img {
        cursor: pointer;
        transition: transform 0.3s ease;
        width: auto;
        height: 200px;
        max-height: 200px;
        border-radius: 8px;
    }

    .gallery img:hover {
        transform: scale(1.05);
    }

    /* Lightbox Navigation Arrows */
    .lightbox-nav {
        position: absolute;
        top: 50%;
        width: 100%;
        display: flex;
        justify-content: space-between;
        transform: translateY(-50%);
        pointer-events: none;
    }

    .lightbox-prev, .lightbox-next {
        background-color: rgba(0, 0, 0, 0.5);
        color: white;
        border: none;
        font-size: 30px;
        width: 50px;
        height: 50px;
        border-radius: 25px;
        cursor: pointer;
        margin: 0 20px;
        pointer-events: auto;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: background-color 0.3s ease;
    }

    .lightbox-prev:hover, .lightbox-next:hover {
        background-color: rgba(0, 0, 0, 0.8);
    }

    /* Responsive adjustments */
    @media (max-width: 768px) {
        .lightbox-prev, .lightbox-next {
            width: 40px;
            height: 40px;
            font-size: 24px;
            margin: 0 10px;
        }
    }
