.gallery-container{
    width: 80%;
    margin: 0 auto;
    padding:50px;
    position: relative;
}


.carousel{
    display: flex;
    overflow-x: hidden;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    position: relative;
}

.carousel div{
    flex: 0 0 100%;
    width:100%;
    scroll-snap-align: start;
    position:relative;
    margin-bottom: 100px;
}

.carousel div img{
    width:100%;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.gallery-container button{
    position: absolute;
    height:70px;
    width:70px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    color: white;
    border: red solid 1px;
    padding: 10px;
    cursor: pointer;
    z-index: 10;
    font-size: 25px;
}

.gallery-container .prev {
    left: 15px;
}

.gallery-container .next {
    right: 15px;
}

.carousel .description{
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    width: 50%;
    margin: 0 auto;
    background: #fff;
    padding:30px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.scopri-ev {
    text-transform: uppercase;
    color: #c80000;
    text-align: center;
    padding: 10px;
    display: block;
    transition: all .4s ease;
}

.scopri-ev:hover {
    background-color: #C80000;
    color: #fff;
}

.scopri-ev {
    margin: 20px;
    text-transform: uppercase;
    padding: 5px;
    display: block;
    color: #c80000;
    border-width: 1px;
    border-style: solid;
    border-color: #c80000;
    position: relative;
    transition: all 0.3s ease-in-out;
    text-align: center;
    width: max-content;
}

.scopri-ev:before,
.scopri-ev:after {
    content: '';
    display: block;
    position: absolute;
    border-color: #c80000;
    box-sizing: border-box;
    border-style: solid;
    width: 1em;
    height: 1em;
    transition: all 0.3s ease-in-out;
}

.scopri-ev:before {
    top: -6px;
    left: -6px;
    border-width: 1px 0 0 1px;
    z-index: 5;
}

.scopri-ev:after {
    bottom: -6px;
    right: -6px;
    border-width: 0 1px 1px 0;
}

.scopri-ev:hover {
    background-color: #c80000;
    color: #fff
}

.scopri-ev:hover:before,
.scopri-ev:hover:after {
    width: calc(100% + 12px);
    height: calc(100% + 12px);
    border-color: #c80000;
}


@media screen and (max-width: 728px) {
    .gallery-container{
        width: 100%;
        position: relative;
        padding:0;
    }
    .gallery-container .prev {
        left: 0;
    }
    .gallery-container .next {
        right: 0;
    }
    .gallery-container button{
        height:40px;
        width: 40px;
        font-size:12px;
    }

    .carousel .description{
        transform: unset;
        position:static;
        width:100%;
        background: #fff;
        padding:30px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    }

    .carousel div{
        margin-bottom: 50px;
    }
}