/* Galeria de Imagens e Vídeos */
.gallery-section {
    padding: 40px 0;
    background-color: var(--light-gray-color);
}

.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

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

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

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

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

.gallery-item .play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background-color: rgba(230, 57, 70, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
}

.gallery-item .caption {
    padding: 15px;
    background-color: #fff;
    color: var(--dark-color);
    font-weight: 500;
}

/* Modal de Galeria */
.gallery-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    overflow: hidden;
}

.gallery-modal-content {
    position: relative;
    width: 80%;
    max-width: 1000px;
    margin: 50px auto;
    height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.gallery-modal-media {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-modal-media img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
}

.gallery-modal-media video {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
}

.gallery-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
}

.gallery-modal-prev,
.gallery-modal-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    background-color: rgba(0, 0, 0, 0.5);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-modal-prev {
    left: -70px;
}

.gallery-modal-next {
    right: -70px;
}

.gallery-modal-caption {
    color: white;
    text-align: center;
    padding: 20px 0;
    font-size: 18px;
}

@media (max-width: 768px) {
    .gallery-container {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .gallery-modal-content {
        width: 95%;
    }
    
    .gallery-modal-prev,
    .gallery-modal-next {
        width: 40px;
        height: 40px;
        font-size: 24px;
    }
    
    .gallery-modal-prev {
        left: 10px;
    }
    
    .gallery-modal-next {
        right: 10px;
    }
}
