/* Estilos Gerais da Galeria */
.tittle {
    margin-top: 20px;
}

body {
    background-color: #fff;
}

#section-intro {
    text-align: center;
    background-color: #ecf0f1;
    padding: 50px 20px;
    margin-bottom: 40px;
}


#section-intro h1 {
    color: #000;
    font-family: 'Montserrat', sans-serif;
}

figure figcaption {
    text-align: center;
    margin-top: 10px;
}

#section-intro2 {
    text-align: center;
}

.gallery-container {
    width: 90%;
    margin: 0 auto;
    padding: 20px;
}

.filter-buttons {
    text-align: center;
    margin-bottom: 20px;
}

.filter-btn {
    background-color: #000;
    color: white;
    border: none;
    padding: 10px 20px;
    margin: 5px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-size: 16px;
}

.filter-btn:hover, .filter-btn.active {
    background-color: #FFD700;
    color: #000;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    padding: 10px;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.2);
    opacity: 1;
    transform: scale(1);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.gallery-item img {
    width: 100%;
    cursor: pointer;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.hidden {
    opacity: 0;
    transform: scale(0.9);
    pointer-events: none;
}

@media (max-width: 768px) {
    .filter-btn {
        padding: 8px 15px;
        font-size: 14px;
    }

    .gallery {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

.modal {
    display: none; /* Oculta a modal por padrão */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.675);
    padding-top: 60px;
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    height: auto;
}

.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: #999;
    text-decoration: none;
    cursor: pointer;
}

.modal-button-container {
    text-align: center;
    margin: 20px 0;
}

.modal-button {
    background-color: #000;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.modal-button:hover {
    background-color: #FFF500;
    color: #000;
}

/* Estilos Gerais da Galeria de Vídeos */
.video-gallery-container {
    width: 90%;
    margin: 0 auto;
    padding: 20px;
}

.filter-buttons {
    text-align: center;
    margin-bottom: 20px;
}

.filter-btn {
    color: white;
    border: none;
    padding: 10px 20px;
    margin: 5px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-size: 16px;
}

.video-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.video-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    padding: 10px;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, opacity 0.3s ease;
    text-align: center;
}

.video-item video {
    width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
    cursor: pointer;
}

.video-item p {
    font-size: 16px;
    margin-top: 10px;
    color: #000;
}

.video-item.hidden {
    opacity: 0;
    transform: scale(0.9);
    pointer-events: none;
}

@media (max-width: 768px) {
    .filter-btn {
        padding: 8px 15px;
        font-size: 14px;
    }

    .video-gallery {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}
