/**
 * CSS Masonry Layout - Mobile First
 * @author Maicon Souza – Jmtechnology
 * @since 2.5.0
 */

/* =========================================
   MASONRY LAYOUT - MOBILE FIRST
   ========================================= */

/* Mobile (padrão): 2 colunas */
.gpg-grid.gpg-masonry {
    display: block;
    column-count: 2;
    column-gap: 10px;
}

.gpg-grid.gpg-masonry .gpg-item {
    break-inside: avoid;
    margin-bottom: 10px;
    display: inline-block;
    width: 100%;
}

.gpg-grid.gpg-masonry .gpg-item img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gpg-grid.gpg-masonry .gpg-item:hover img {
    transform: scale(1.02);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Tablet: 3 colunas */
@media (min-width: 601px) {
    .gpg-grid.gpg-masonry {
        column-count: 3;
        column-gap: 12px;
    }

    .gpg-grid.gpg-masonry .gpg-item {
        margin-bottom: 12px;
    }
}

/* Desktop: 4 colunas */
@media (min-width: 1025px) {
    .gpg-grid.gpg-masonry {
        column-count: var(--gpg-columns, 4);
        column-gap: var(--gpg-gap, 15px);
    }

    .gpg-grid.gpg-masonry .gpg-item {
        margin-bottom: var(--gpg-gap, 15px);
        border-radius: 12px;
    }
}

/* =========================================
   MASONRY PARA ÁLBUNS - MOBILE FIRST
   ========================================= */

/* Mobile: 1 coluna */
.gpg-albums-gallery.gpg-masonry {
    display: block;
    column-count: 1;
    column-gap: 12px;
}

.gpg-albums-gallery.gpg-masonry .gpg-album-card {
    break-inside: avoid;
    margin-bottom: 16px;
    display: block;
    aspect-ratio: unset;
}

.gpg-albums-gallery.gpg-masonry .gpg-album-thumb {
    aspect-ratio: unset;
    height: auto;
    position: relative;
}

.gpg-albums-gallery.gpg-masonry .gpg-album-thumb img {
    width: 100%;
    height: auto;
    aspect-ratio: unset;
}

/* Tablet: 2 colunas */
@media (min-width: 601px) {
    .gpg-albums-gallery.gpg-masonry {
        column-count: 2;
        column-gap: 16px;
    }
}

/* Desktop: 3 colunas */
@media (min-width: 1025px) {
    .gpg-albums-gallery.gpg-masonry {
        column-count: var(--gpg-albums-columns, 3);
        column-gap: 20px;
    }

    .gpg-albums-gallery.gpg-masonry .gpg-album-card {
        margin-bottom: 20px;
    }
}

/* =========================================
   ANIMAÇÕES HOVER
   ========================================= */

.gpg-albums-gallery.gpg-masonry .gpg-album-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gpg-albums-gallery.gpg-masonry .gpg-album-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}