.gallery-section {
    margin: auto;
    padding: 40px 0;
    font-family: 'Arial', sans-serif;
}

.gallery-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

.gallery-title {
    font-size: 24px;
    font-weight: bold;
    color: #333;
}

.gallery-filter {
    font-size: 16px;
    color: #666;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.gallery-item img {
    width: 100%;
    height: 210px;
    object-fit: cover;
    display: block;
}


.gallery-pagination {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.page-number {
    padding: 8px 15px;
    margin: 0 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
}

.page-number.active {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

/* Estilos para a galeria em telas menores que 992px */
@media (max-width: 992px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); /* Colunas mais estreitas */
        gap: 15px; /* Espaçamento menor entre itens */
        padding: 15px;
    }

    .gallery-header {
        flex-direction: column; /* Empilha título e filtro verticalmente */
        align-items: flex-start;
        padding: 0 15px;
    }

    .gallery-title {
        font-size: 1.5rem; /* Título menor */
        margin-bottom: 10px;
    }

    .gallery-item img {
        height: 180px; /* Altura fixa para as imagens */
        object-fit: cover; /* Garante que a imagem cubra o espaço */
    }


    .gallery-pagination {
        flex-wrap: wrap; /* Permite que os números quebrem linha */
        justify-content: center;
    }

    .page-number {
        margin: 5px; /* Menor margem entre números */
        padding: 5px 10px; /* Padding menor */
    }
}