.section-container {
    margin-top: 2rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

section {
    max-width: 1400px;
    padding-top: 2rem;
    margin-left: auto;
    margin-right: auto;
}

.gallery-description {
    color: var(--color-text);
    font-size: 1.1rem;
    margin-bottom: 3rem;
    font-style: italic;
}

.container-gallery {
    width: 95%;
    margin: auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 2rem 0;
}

.gallery-row {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.gallery-row.row-2 {
    justify-content: center;
}

.gallery-row.row-3 {
    justify-content: center;
}

.gallery-row.row-4 {
    justify-content: center;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    cursor: pointer;
}

.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
}

/* Tamanhos específicos para cada tipo de linha */
.row-2 .gallery-item {
    flex: 0 1 400px;
    max-width: 450px;
}

.row-3 .gallery-item {
    flex: 0 1 300px;
    max-width: 320px;
}

.row-4 .gallery-item {
    flex: 0 1 220px;
    max-width: 250px;
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.3s ease;
}

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

.destak {
    background-color: var(--color-primary);
    color: var(--color-background);
    padding: 2px 7px !important;
}

/* Responsividade */
@media (max-width: 1200px) {
    .container-gallery {
        width: 90%;
    }
    
    .gallery-row {
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .section-container {
        max-width: 95%;
    }
    
    .container-gallery {
        width: 100%;
        gap: 1.5rem;
        padding: 1rem 0;
    }
    
    .gallery-row {
        gap: 0.8rem;
    }
    
    .row-2 .gallery-item,
    .row-3 .gallery-item,
    .row-4 .gallery-item {
        flex: 0 1 280px;
        max-width: 320px;
    }
    
    .gallery-item img {
        height: 220px;
    }
    
    .gallery-description {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
}

@media (max-width: 480px) {
    .container-gallery {
        gap: 1rem;
    }
    
    .gallery-row {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .row-2 .gallery-item,
    .row-3 .gallery-item,
    .row-4 .gallery-item {
        flex: none;
        width: 100%;
        max-width: 350px;
    }
    
    .gallery-item img {
        height: 200px;
    }
}