/* Gallery Section */
.gallery-section {
    padding: 100px 0 80px 0;
    background-color: var(--neutral);
}

.gallery-header {
    text-align: center;
    margin-bottom: 42px;
}

.gallery-title {
    font-family: var(--font-headline);
    font-size: 36px;
    font-weight: 400;
    color: var(--primary);
    line-height: 1.3;
    margin-bottom: 20px;
}

.gallery-subtitle {
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--primary);
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Masonry Gallery */
.masonry-gallery {
    column-count: 4;
    column-gap: 15px;
    padding: 0 40px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    display: inline-block;
    width: 100%;
    margin-bottom: 15px;
    break-inside: avoid;
}

.gallery-item a {
    display: block;
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.02);
    opacity: 0.85;
}

/* Responsive */
@media (max-width: 1200px) {
    .masonry-gallery {
        column-count: 3;
    }
}

@media (max-width: 992px) {
   .gallery-title {
        font-size: 32px;
    }
}

@media (max-width: 768px) {
    .gallery-section {
        padding: 60px 0;
    }
    .gallery-header {
    margin-bottom: 32px;
    }
    .masonry-gallery {
        column-count: 2;
        column-gap: 10px;
        padding: 0 0px;
    }
    
    .gallery-item {
        margin-bottom: 10px;
    }
    .gallery-subtitle {
       font-size: 15px;
    }   
}

@media (max-width: 576px) {
    .masonry-gallery {
        column-count: 1;
    }
    .gallery-title {
        font-size: 28px;
    }
}
