/* Estilo Geral */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
    line-height: 1.6;
}

/* Seções */
section {
    padding: 20px;
    text-align: center;
}

section h2 {
    font-size: 2rem;
    color: #2a5934;
    margin-bottom: 20px;
}

/* Galeria de Fotos */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    max-width: 800px;
    margin: 0 auto;
}

.gallery-item img {
    width: 100%;
    max-height: 150px; /* Limita a altura */
    object-fit: cover; /* Garante proporções corretas */
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item img:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}


/* Ajustar proporção dos vídeos na galeria */
.video-item video {
    width: 100%;
    aspect-ratio: 1 / 1; /* Torna o vídeo mais quadrado */
    border-radius: 12px; /* Bordas arredondadas */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.video-item video:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

/* Lightbox para Vídeos */
#video-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

#video-lightbox video {
    max-width: 90%;
    max-height: 90%;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    outline: none; /* Remove bordas ao focar */
}

/* Ajustes para Mobile */
@media (max-width: 480px) {
    .gallery {
        grid-template-columns: repeat(2, 1fr);
    }
    .video-gallery {
        grid-template-columns: repeat(1, 1fr);
    }
    .gallery-item img, .video-item video {
        max-height: 100px; /* Reduz ainda mais a altura */
    }

        /* Garantir que o vídeo ocupe toda a tela no Lightbox */
        #video-lightbox video {
            max-width: 100%;
            max-height: 100%;
            width: 100%; /* Adapta ao tamanho da tela */
            height: auto; /* Mantém a proporção */
        }
    }

@media (max-width: 480px) {
    .gallery {
        grid-template-columns: repeat(2, 1fr);
    }
    .video-gallery {
        grid-template-columns: repeat(1, 1fr);
    }
    .gallery-item img, .video-item video {
        max-height: 100px; /* Reduz ainda mais a altura */
    }
}

/* Rodapé */
footer {
    background: #2a5934;
    color: white;
    text-align: center;
    padding: 10px 0;
    font-size: 0.9rem;
}

/* Botão Ver Mais Fotos */
.load-more {
    display: block;
    margin: 20px auto;
    padding: 10px 20px;
    background-color: #2a5934;
    color: white;
    font-size: 1rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.load-more:hover {
    background-color: #1e4527;
}

/* Lightbox */
#lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

#lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

#lightbox .close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
}

#lightbox .close:hover {
    color: rgba(255, 255, 255, 0.7);
}

#lightbox button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
}

#lightbox button.prev {
    left: 20px;
}

#lightbox button.next {
    right: 20px;
}

#lightbox button:hover {
    color: rgba(255, 255, 255, 0.7);
}

/* Estilo do Card */
.card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin: 20px auto;
    max-width: 1200px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.card-content {
    padding: 20px;
    text-align: center;
}

.card-content h2 {
    font-size: 1.8rem;
    color: #2a5934;
    margin-bottom: 20px;
}

.card-content .gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.card-content .gallery-item img {
    width: 100%;
    aspect-ratio: 1 / 1; /* Garante que as imagens sejam quadradas */
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-content .gallery-item img:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.card-content .load-more {
    display: inline-block;
    margin: 20px auto;
    padding: 10px 20px;
    background-color: #2a5934;
    color: white;
    font-size: 1rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.card-content .load-more:hover {
    background-color: #1e4527;
}

/* Responsividade para Mobile */
@media (max-width: 480px) {
    .card-content .gallery {
        grid-template-columns: repeat(2, 1fr); /* Exibe 2 imagens por linha no mobile */
    }

    .card-content .gallery-item img {
        width: 100%;
        aspect-ratio: 1 / 1; /* Imagens quadradas */
        object-fit: cover;
        max-width: 100%; /* Ajusta o tamanho no mobile */
    }
}
