
.carrossel-container {
    display: flex;
    padding: 0 35px;
    align-items: center;
    justify-content: center;
    background-color: black;
    height: 100vh;
    width: 100%;
}

.wrapper {
    max-width: 1100px;
    width: 100%;
    position: relative;
    text-align: center;
}

.header {
    margin-top: -10%;
}

.header h1 {
    font-size: 26px;
    color: white;
    margin-bottom: 5%;
}

.header h1 .red {
    color: red;
}

.header h3 {
    font-size: .9rem;
    color: white;
    margin-bottom: 10%;
}

.wrapper i {
    top: 65%;
    height: 50px;
    width: 50px;
    cursor: pointer;
    font-size: 1.25rem;
    position: absolute;
    text-align: center;
    line-height: 50px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.23);
    transform: translateY(-50%);
    transition: transform 0.1s linear;
}

.wrapper i:active {
    transform: translateY(-50%) scale(0.85);
}

.wrapper i#left {

    left: -22px;
    /* Ajuste a posição para que a seta esquerda esteja visível */
}

.wrapper i#right {
    right: -22px;
    /* Mantenha o mesmo ajuste para a seta direita */
}

.wrapper .carousel {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% / 4) - 16px);
    /* Ajuste para 4 imagens */
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 16px;
    border-radius: 8px;
    scroll-behavior: smooth;
    scrollbar-width: none;
}

.carousel::-webkit-scrollbar {
    display: none;
}

.carousel.no-transition {
    scroll-behavior: auto;
}

.carousel.dragging {
    scroll-snap-type: none;
    scroll-behavior: auto;
}

.carousel.dragging .card {
    cursor: grab;
    user-select: none;
}

.carousel .card {
    scroll-snap-align: start;
    width: 100%;
    height: 100%;
    list-style: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
    overflow: hidden;
}

.carousel .card .img {
    width: 100%;
    height: 100%;
}

.card .img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
@media screen and (min-width: 768px){
    .header {
        margin-top: -10%;
    }
    .header h1 {
        font-size: 32px;
    }
    
    .header h3 {
        font-size: 1.3rem;
    }
    .wrapper i#left {
        margin-top: -4%;
    }
    .wrapper i#right {
        margin-top: -5%;
    }
    .carrossel-container {
        height: 80vh;
    }
    
}

@media screen and (max-width: 900px) {
    .wrapper .carousel {
        grid-auto-columns: calc((100% / 2) - 9px);
    }
}

@media screen and (max-width: 600px) {
    .wrapper .carousel {
        grid-auto-columns: 100%;
    }
}