
/* =========================================
   FLOWEE - ACF GALLERY
   24. 11. 2026
   ========================================= */

/* Jednotne nahledy v clanku */
.article-body .tf-gallery-wrapper .gallery-items.grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 10px !important;
}

.article-body .tf-gallery-wrapper figure.item {
    margin: 0 !important;
    min-width: 0 !important;
}

.article-body .tf-gallery-wrapper figure.item > a {
    display: block !important;
    width: 100% !important;
    height: 150px !important;
    aspect-ratio: auto !important;
    overflow: hidden !important;
    border-radius: 12px !important;
}

.article-body .tf-gallery-wrapper figure.item > a > img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
}

/* GLightbox - schvalena velikost a cerne pruhy */
.glightbox-container .gslide-media {
    width: min(878px, 90vw) !important;
    height: 73vh !important;
    max-width: 90vw !important;
    max-height: 73vh !important;
    margin: auto !important;
    background: #000 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.glightbox-container .gslide-image {
    width: 100% !important;
    height: 100% !important;
    background: #000 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.glightbox-container .gslide-image img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
}

/* Mobilni zobrazeni */
@media (max-width: 767px) {
    .article-body .tf-gallery-wrapper .gallery-items.grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .article-body .tf-gallery-wrapper figure.item > a {
        height: 120px !important;
    }

    .glightbox-container .gslide-media {
        width: 94vw !important;
        height: 65vh !important;
        max-width: 94vw !important;
        max-height: 65vh !important;
    }
}

/* =========================================
   KONEC - ACF GALLERY
   ========================================= */
