/* static/css/galeria.css */

.galeria-pagina {
    padding: 40px 20px;
    background-color: #f4f4f4;
    color: #333;
    font-family: sans-serif;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* Títulos */
h2, h3 {
    color: #1D4F73;
    font-size: 1.5rem;
    margin-bottom: 10px;
    text-align: center;
}

/* 1. MIDIAS: Grid com 3 colunas */
.midias-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.midia-bloco {
    text-align: center;
    padding: 10px;
}

.midia-bloco img,
.midia-bloco video {
    width: 100%;
    max-width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.midia-bloco img:hover,
.midia-bloco video:hover {
    transform: scale(1.05);
}

/* 2. DEPOIMENTOS */
.depoimentos-grid {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.comentario {
    background-color: #f9f9f9;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 10px;
}

.comentario strong {
    color: #1D4F73;
}

/* Modal para imagens e vídeos */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    inset: 0;
    background-color: rgba(0,0,0,0.9);
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-content {
    max-width: 90%;
    max-height: 80vh;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(255,255,255,0.3);
    background-color: #000;
}

.modal-content#modalVideo {
    width: 95vw;
    height: 85vh;
    max-width: none;
    max-height: none;
}

.close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

/* Responsividade para telas pequenas */
@media (max-width: 768px) {
    .midias-grid {
        grid-template-columns: 1fr;
    }

    .midia-bloco img,
    .midia-bloco video {
        max-width: 100%;
    }

    .modal-content {
        max-width: 95%;
    }
}

