@media (max-width: 800px) {

    #custom-carousel{
        gap: 10px;
        grid-template-columns: repeat(1, 1fr);
    }

    #custom-carousel > div.container-texts > div.controls{
        top: 94%;
        width: 100%;
        height: 0px;
        left: auto;
        justify-content: space-evenly;
    }

    .texts {
        padding-bottom: 20px;
    }
    .container-images{
        padding-top: 20px;
    }
}

/* Estilos anteriores */

.carousel {
    max-width: 100%;
    margin: auto;
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 96px;
    justify-content: center;
}
.container-images,
.container-texts {
    display: flex;
    position: relative;
    max-width:100%;
    margin: auto;
    overflow: hidden;
    width: 100%;
    gap: 10%;
}
.container-texts {
    display: grid;
    grid-template-columns: repeat(4, 100%);
    grid-template-rows: 100%;
    height:100%;
}
.container-images img, .texts {
    position: relative;
}
.slideActive {
    z-index: 3000;
    animation-name: moveToLeft;
    animation-duration: 1.5s;
    animation-fill-mode: forwards;
}
.move{
    z-index: 3000;
    animation-name: hideToLeft;
    animation-duration: 1.5s;
    animation-fill-mode: forwards;
}
.hideRight {
    z-index: 2000;
    animation-name: hideToRight;
    animation-duration: 1.5s;
    animation-fill-mode: forwards;
}
.moveRight{
    z-index: 3000;
    animation-name: moveToRight;
    animation-duration: 1.5s;
    animation-fill-mode: forwards;
}

.texts {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    object-fit: cover;
    text-align: center;
}
.texts p {
    width: 100%;
    color: #000!important;
    text-align: left;
}

.texts h2 {
width: 100%;
color: #000!important;
text-align: left;
font-family: Novecento-WideMedium!important;
color: var(--contrast);
font-size: 30px;
letter-spacing: 0.5em;
margin-top: 0;
margin-bottom: 12px;
}

.controls {
    position: absolute;
    top: 85%;
    width: 300px;
    left: 30%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.arrow-slider {
    cursor: pointer;
}
/* #arrow-left {
    position: absolute;
    top: 50%;
    left: 0px;
}
#arrow-right {
    position: absolute;
    top: 50%;
    right: 0px;
} */
@keyframes moveToLeft {
    from {
        transform: translateX(0%)
    }
    to {
        transform: translateX(-110%);
    }
}
@keyframes hideToLeft {
    from {
        transform: translateX(0%);
    }
    to {
        transform: translatex(-110%);
    }
}
@keyframes moveToRight {
    from {
        transform: translatex(-220%);
    }
    to {
        transform: translatex(-110%);
    }
}
@keyframes hideToRight {
    from {
        trasform: translatex(0%);
    }
    to {
        transform: translatex(110%);
    }
}