* {box-sizing:border-box}

/* Slideshow container */
.slideshow-container {
    position: relative;
    justify-content: center;
}

/* Hide the images by default */
.mySlides {
    width: 100%;
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.slideshow-container .img{
    height: 100%;
    background-size: cover;
    background-position: center;
}

/* Caption text */
.slideshow-container .text {
    display: block;
    position: absolute;
    right: 0;
    top: 1.66rem;
    max-width: 45%;
    flex-direction: column;
    padding-right: 2rem;
    text-align: right;
}

.slideshow-container .text span{
    position: relative;
}

.slideshow-container .text>.title {
    display: inline;
    font-family: 'Open Sans';
    font-size: 1.73rem;
    font-weight: 600;
    line-height: 2rem;
    font-style: italic;
    justify-content: flex-end;
    border-top: 0.1rem solid white;
    border-bottom: 0.1rem solid white;
    background-color: white;
    box-shadow: 5px 0px 0px 0px #ffffff, -5px 0 0px 0px #ffffff;
}

.slideshow-container .text>.subtitle{
    display: inline;
    font-family: 'Open Sans';
    font-weight: 300;
    font-size: 1.2rem;
    line-height: 1.6rem;
    justify-content: flex-end;
    border-top: 0.1rem solid white;
    border-bottom: 0.1rem solid white;
    background-color: white;
    box-shadow: 5px 0px 0px 0px #ffffff, -5px 0 0px 0px #ffffff;
}

.slideshow-container .text>.subtitle:before{
    content: " ";
    display: block;
    height: 1rem;
}


/* The dots/bullets/indicators */
.dots{
    position: absolute;
    bottom: 1.5rem;
    right: 2rem;
}

.dots>span {
    cursor: pointer;
    height: 0.87rem;
    width: 0.87rem;
    margin: 0 0.13rem;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
}

.dots>span.active, .dots>span:hover {
    background-color: #717171;
}

.img-gradient:after {
    content:'';
    position:absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgb(255 255 255 / 0%) 35%, rgb(255 255 255 / 85%) 70%);
}

/* Fading animation */
.fade {
    -webkit-animation-name: fade;
    -webkit-animation-duration: 1.5s;
    animation-name: fade;
    animation-duration: 1.5s;
}

@-webkit-keyframes fade {
    from {opacity: .4} 
    to {opacity: 1}
}

@keyframes fade {
    from {opacity: .4} 
    to {opacity: 1}
}

@media (max-width: 650px){
    .slideshow-container .text {
        padding: 0 1rem;
        max-width: none;
        top: auto;
        bottom: 2.3rem;
        text-align: center;
    }

    .slideshow-container .text>.title {
        font-size: 1.47rem;
        line-height: 1.6rem;
    }

    .slideshow-container .text>.subtitle{
        font-size: 1.07rem;
        line-height: 1.33rem;
    }

    .dots{
        right: auto;
        bottom: 0.7rem;
    }

    .img-gradient:after {
        background: linear-gradient(to bottom, rgb(255 255 255 / 0%) 20%, rgb(255 255 255 / 90%) 60%);
    }
}