
.carousel {
    display: flex;
    overflow-x: auto;
    padding: 10px;
    gap: 15px; /* Espaçamento entre os itens */
}

.carousel-item {
    flex: 1;
    text-align: center;
    position: relative;
    cursor: pointer;
}

.carousel-item iframe, .carousel-item video {
    width: 300px; /* Define o tamanho fixo igual ao botão */
    max-height: 200px; /* Altura máxima */
    object-fit: cover;
    border: none; /* Remove borda do iframe */
}

.details {
    display: flex;
    flex-direction: column; /* Alinha os botões verticalmente */
    align-items: center;
    margin-top: 10px;
}

.download-btn {
    width: 300px; /* Define um tamanho fixo para todos os botões */
    padding: 10px;
    text-align: center;
    white-space: nowrap; /* Impede que o texto quebre em várias linhas */
    cursor: pointer;
    margin-top: 5px;
    background-color: #00a0e3; /* Cor de fundo do botão */
    color: white; /* Cor do texto */
    border: none; /* Remover bordas */
    border-radius: 5px; /* Bordas arredondadas */
    font-size: 14px; /* Tamanho da fonte */
    overflow: hidden; /* Caso o texto seja muito longo, corta ao invés de quebrar */
    text-decoration: none; /* Remove o sublinhado dos links */
}

.download-btn:hover {
    background-color: #45a049; /* Cor ao passar o mouse */
}

.video-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.video-modal-content {
    position: relative;
}

.video-modal video {
    max-width: 100%;
    max-height: 80vh;
}

.close-button {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #fff;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 20px;
}

/* Estilos responsivos */
@media (max-width: 768px) {
    .carousel-item video, .carousel-item iframe {
        width: 250px; /* Largura menor em telas pequenas */
        max-height: 150px; /* Altura reduzida */
    }

    .download-btn {
        width: 250px; /* Largura menor em telas pequenas */
        font-size: 12px; /* Tamanho da fonte reduzido */
    }
}

@media (max-width: 480px) {
    .carousel-item video, .carousel-item iframe {
        width: 200px; /* Largura menor para telas muito pequenas */
        max-height: 120px; /* Altura ainda menor */
    }

    .download-btn {
        width: 200px; /* Largura menor para telas muito pequenas */
        font-size: 10px; /* Fonte menor para se ajustar à tela */
    }
}
