@keyframes slideshow {
    0% {
        transform: translate(-5%,-5%);
        opacity: 0;
    }
    20% {opacity: 1}
    80% { opacity: 1}
    100% {
        transform: translate(-15% ,-15%);
        opacity: 0;
    }
}

@keyframes appear {
    0% {
        opacity: 0;
    }
    20% {opacity: 1}
    80% { opacity: 1}
    100% {
        opacity: 0;
    }
}

.slides {
    width: 100%;
    height: 100vh;
    max-height: 100vh;
    overflow: hidden;
    position: relative;
}
.slides .slide-layer {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: rgba(255,255,255,0);
}
.slides .slide {
    position: absolute;
    width: 140%;
    height: 120vh;
    display: none;
    top:0;
    left: 0;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    overflow: hidden;
    opacity: 0;
}

.slides .slide.active {
    display: block;
    animation: slideshow  7s infinite linear;
}

.slides .slide img{
    opacity: 0;
    height: auto;
    width: 100%;
}
.slides .slide-layer:first-child .slide{
    display: block;
    /*opacity: 1;*/
}
.center-block {
    width: 830px;
    height: 300px;
    position: absolute;
    top: 0;
    bottom: 0;
    left:0;
    right: 0;
    margin: auto;
    opacity: 0;
    z-index: 1;
    text-align: center;
    display: flex !important;
    flex-direction: column;
    justify-content: space-between;
}

.slide-layer.show-title .center-block {
    animation: appear  7s infinite linear;
}

.center-block h1 {
    font-size: 4rem;
    color: #FFFFFF;
    font-style: normal;
    font-weight: 100;
}
@media screen and (max-width: 1280px){
    .slides {
        /*height: 70%;*/
    }
}
@media screen and (max-width: 960px) {
    .slides {
        /*height: 50%;*/
    }
    .slides .slide {
        width: 210%;
        height: 170%;
    }
}
@media screen and (max-width: 767px) {
    .slides {
        height: 100vh;
    }

    .slides .slide {
        width: 180%;
    }

    .slides .slide img{
        height: 150vh;
        width: auto;
    }

    @keyframes slideshow {
        0% {
            transform: translate(-50px,-50px);
            opacity: 0;
        }
        20% {opacity: 1}
        80% { opacity: 1}
        100% {
            transform: translate(-150px ,-150px);
            opacity: 0;
        }
    }
}