/*
* FooGallery Custom CSS
* This file is created by adding custom CSS on FooGallery Settings page in wp-admin
* Created : 8 Jan 2026, 6:57 am
*/

/* TABLET-MODUS: 2 Spalten lückenlos (601px bis 1024px) */
@media only screen and (max-width: 1024px) and (min-width: 601px) {
    .foogallery-container.foogallery-masonry {
        /* Wir ignorieren die Masonry-Berechnung und nutzen CSS-Spalten */
        display: block !important;
        column-count: 2 !important;
        column-gap: 25px !important; /* Dein Gap-Wert */
        height: auto !important;
    }

    .foogallery-container.foogallery-masonry .fg-item {
        /* Bilder müssen innerhalb der Spalten bleiben */
        display: inline-block !important;
        width: 100% !important;
        position: static !important;
        margin-bottom: 25px !important; /* Abstand nach unten */
        break-inside: avoid !important; /* Verhindert, dass Bilder zerschnitten werden */
    }
}

/* SMARTPHONE-MODUS: 1 Spalte (bis 600px) */
@media only screen and (max-width: 600px) {
    .foogallery-container.foogallery-masonry {
        display: block !important;
        column-count: 1 !important;
        height: auto !important;
    }

    .foogallery-container.foogallery-masonry .fg-item {
        position: static !important;
        width: 100% !important;
        display: block !important;
        margin-bottom: 25px !important;
    }
}