/* Container geral da página */


/* Introdução */
.GaleriaPage .section-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 2rem auto;
}

.GaleriaPage .section-content h2 {
    font-size: 2rem;
    color: #006699;
    margin-bottom: 1rem;
    border-bottom: 2px solid #006699;
    display: inline-block;
    padding-bottom: 0.3rem;
}

.GaleriaPage .section-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #444;
    text-align: justify;
}

/* Galeria de imagens */
.GaleriaPage .gallery-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

/* Cartão da imagem */
.GaleriaPage .gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    background-color: #fff;
    transition: transform 0.3s ease;
}

/* O container usa row, então podemos manter isso */
.row.g-3 {
    display: flex;
    flex-wrap: wrap;
}

/* Ajuste do cartão */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    background-color: #fff;
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.03);
}


/* Imagem */
.GaleriaPage .gallery-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    cursor: pointer;
    border-radius: 8px;
}

/* Modal */
.GaleriaPage .modal-content {
    background-color: #fff;
    border-radius: 10px;
    border: none;
}

.GaleriaPage .modal-body {
    padding: 0;
}

.GaleriaPage #modalImage {
    border-radius: 8px;
    max-height: 80vh;
    object-fit: contain;
    width: 100%;
}

/* Botão do modal */
.GaleriaPage .modal-footer .btn {
    background-color: #006699;
    color: white;
    font-weight: bold;
    border-radius: 6px;
}

.GaleriaPage .modal-footer .btn:hover {
    background-color: #006699;
}

.image-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    padding: 2rem;
}

.image-overlay img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
    transition: transform 0.3s;
}

.close-btn {
    position: absolute;
    top: 2rem;
    right: 2rem;
    color: white;
    font-size: 2.5rem;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
}

#filtro-botoes .btn.active {
    background-color: #006699;
    color: white;
    border-color: #006699;
}


#filtro-botoes .btn.active:hover {
    background-color: #006699;
    border-color: #006699;
}



/* Responsividade */
@media (max-width: 1200px) {
    .GaleriaPage .gallery-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .GaleriaPage .gallery-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .GaleriaPage .gallery-container {
        grid-template-columns: 1fr;
    }
}
