@keyframes aparecerDerecha {
    from {right: -200px; opacity: 0;}
    to {right: 0; opacity: 1;}
}

@keyframes aparecer {
    from {opacity: 0}
    to {opacity: 1}
}

#lightSlider {
    width: 100%;
    height: 500px!important;
    opacity: 0;
}

#lightSlider .slide {
    width: 100%;
    height: 100%;
    opacity: 0;
    position: absolute;
    left: 0;
    top: 0;
    animation: aparecer 1s forwards; 
}

#lightSlider .slide:before {
    content: "";
    position: absolute;
    display: block;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    background: rgba(13,48,81,.6);
}

#lightSlider .slide > img {
    object-fit: cover;
    width: 100%!important;
    height: 100%!important;
}

#lightSlider .text-wrap {
    position: absolute;
    bottom: 0;
    right: -200px;
    opacity: 0;
    animation: aparecerDerecha 1s forwards;
    animation-delay: 2s;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

#lightSlider .text-wrap:before {
    content: "";
    position: absolute;
    width: 15%;
    height: 150%;
    transform: rotate(-25deg);
    background: rgba(118,170,220,.5);
    z-index: -1;
}

#lightSlider .text-wrap * {
    opacity: 0;
    animation: aparecer 1.5s forwards;
    animation-delay: 3s;
}

#lightSlider .text-wrap h1 {
    width: 50%;
    text-align: center;
    color: #fff;
    font-weight: 600;
}

#lightSlider .text-wrap .button {
    border: solid 1px var(--white);
    margin-top: 20px;
}

@media only screen and (max-width: 600px) {
    #lightSlider {
        height: 300px!important;
    }

    #lightSlider .text-wrap h1 {
        font-size: 20px;
        line-height: 25px;
    }

    #lightSlider .text-wrap .button {
        margin: 0 0 80px;
        font-size: 8px;
        padding: 4px 10px;
    }
}

@media only screen and (max-width: 450px) {
    #lightSlider .text-wrap h1 {
        width: 90%;
    }
}