.carousel-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin-bottom: 10px;
}
.carousel-slide {
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    transition: opacity 0.5s ease-in-out, z-index 0s linear 0.5s;
}
.carousel-prev, .carousel-next {
    position: absolute;
    top: 50%; /* Center vertically */
    background: rgba(0, 0, 0, 0.4);
    color: white;
    border-radius: 25%; /* 🔵 Torna o fundo circular */
    border: none;
    font-size: 24px;
    padding: 5px 10px;
    cursor: pointer;
    z-index: 10;
    transform: translateY(-50%); /* Perfect vertical centering */
}

.carousel-slide img,
.carousel-slide video {
    width: 100%;
    height: 100%; 
    display: block;
    position: absolute;
    top: 50%;
    left: 50%; /* New property for horizontal centering */
    transform: translate(-50%, -50%); /* Center both axes */
    object-fit: cover; 
}
.carousel-prev {
    left: 10px;
}
.carousel-next {
    right: 10px;
}

/* Add responsive design for mobile devices */
@media (max-width: 768px) {
    .carousel-container {
        max-width: 100%;
        height: auto;
    }

    .carousel-slide img,
    .carousel-slide video {
        width: 100%;
        height: auto;
        object-fit: contain;
    }

    .carousel-prev, .carousel-next {
        font-size: 20px; /* Smaller buttons for mobile */
        padding: 5px;
        top: 30%; /* Adjust vertical position */
    }
}

/* Add responsive design for mobile devices */
@media (max-width: 768px) {
    .carousel-container {
        max-width: 100%;
        height: auto;
    }

    .carousel-slide img,
    .carousel-slide video {
        width: 100%;
        height: auto;
        object-fit: contain;
    }

    .carousel-prev, .carousel-next {
        font-size: 20px; /* Smaller buttons for mobile */
        padding: 5px;
        top: 30%; /* Adjust vertical position */
    }
}
