/* --------------------------------------------------------------
# News gallery lightbox
--------------------------------------------------------------*/

/* malá galerie pod článkem */
.news-gallery {
    margin-top: 1.5rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.news-thumb {
    width: 180px;
    height: 120px;
    object-fit: cover;
    border-radius: 14px;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.18);
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.news-thumb:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.25);
    opacity: 0.95;
}

/* samotný lightbox overlay */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.78);
    display: none;                 /* defaultně schovaný */
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 1.5rem;
}

.lightbox.open {
    display: flex;
}

/* velký obrázek v lightboxu */
.lightbox-img {
    max-width: min(100%, 900px);
    max-height: 90vh;
    border-radius: 18px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

/* zavírací tlačítko */
.lightbox-close {
    position: absolute;
    top: 1.2rem;
    right: 1.5rem;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    width: 40px;
    height: 40px;
    border-radius: 999px;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    color: var(--text);
}

.lightbox-close:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}

/* na malých mobilech galerie pod sebou */
@media (max-width: 600px) {
    .news-gallery {
        justify-content: center;
    }

    .news-thumb {
        width: 48%;
        height: 110px;
    }
}

/* Navigační šipky v lightboxu */
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: rgba(255, 255, 255, 0.9);
    width: 44px;
    height: 44px;
    border-radius: 999px;
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
    color: var(--text);
}

.lightbox-prev {
    left: 1.5rem;
}

.lightbox-next {
    right: 1.5rem;
}

.lightbox-nav:hover {
    transform: translateY(-50%) translateY(-1px);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.55);
    background: #ffffff;
}

/* na úzkých mobilech trošku blíž k obrázku */
@media (max-width: 600px) {
    .lightbox-prev {
        left: 0.8rem;
    }
    .lightbox-next {
        right: 0.8rem;
    }
}