/* =========================================
           GALERÍA MASONRY
           ========================================= */
.archive-section {
    margin-top: 10rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding-top: 8rem;
}

.gallery-masonry {
    columns: 3;
    column-gap: 1.5rem;
    margin-top: 4rem;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.gallery-item {
    break-inside: avoid;
    margin-bottom: 1.5rem;
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.gallery-item:nth-child(odd) {
    aspect-ratio: 4/5;
}

.gallery-item:nth-child(even) {
    aspect-ratio: 3/4;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
    display: block;
}

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

/* Overlay al hover */
.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    transition: background 0.4s ease;
    pointer-events: none;
}

.gallery-item:hover::after {
    background: rgba(0, 0, 0, 0.15);
}

@media (max-width: 900px) {
    .gallery-masonry {
        columns: 2;
    }
}

@media (max-width: 600px) {
    .gallery-masonry {
        columns: 1;
    }
}
