.slide {
    /* transition: opacity 0.6s; */
}

.slide.inactive {
    opacity: 0;
}

.slide.active {
    opacity: 1;
}

img {vertical-align: middle;}

/* Slideshow container */
.slideshow-container {
    width: 100%;
    position: relative;
    margin: auto;
}

/* Caption text */
.text {
    color: #f2f2f2;
    font-size: 15px;
    padding: 8px 12px;
    position: absolute;
    bottom: 8px;
    width: 100%;
    text-align: center;
}

/* Number text (1/3 etc) */
.numbertext {
    color: #f2f2f2;
    font-size: 12px;
    padding: 8px 12px;
    position: absolute;
    top: 0;
}

/* The dots/bullets/indicators */
.dot {
    height: 15px;
    width: 15px;
    margin: 0 2px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
}

.active {
    background-color: #717171;
}

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

@keyframes scatter {
    from {opacity: .75} 
    to {opacity: 1}
}




























.caption {
    position: absolute;
    height: 100%;
    top: 0px;
    left: 0px;
    color: #000;
    padding: 30px;
}

body.screen-lg .caption,
body.screen-md .caption,
body.screen-sm .caption {
    background: #EEEEE0;
}

.caption > .container {
    position: relative;
    top: 50%;
    transform: translateY(-50%);
}

.caption h1, 
.caption h2, 
.caption h3, 
.caption p,
.caption a,
.caption span {
    color: #000;
}

.caption span,
.caption p,
.caption a {
    font-size: 20px;
}

a.banner-button {
    text-decoration: none;
    color: #3A3A3A;
    font-size: 16px;
    font-weight: 600;
    display: inline-block;
    transition: background 0.4s;
    overflow: hidden;
}

body.screen-lg a.banner-button,
body.screen-md a.banner-button {
    margin-top: 30px;
}

body.screen-sm a.banner-button,
body.screen-xs a.banner-button {
    margin-top: 22px;
}

body.screen-xxs a.banner-button {
    margin-top: 15px;
}

a.banner-button:hover {
    
}

.dark-overlay {
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
}

.header-banner-wrapper .content-wrapper {
    margin: 30px auto;
    text-align: left;
}

/**
.slideshow-container {
    margin-bottom: 30px;
    text-align: center;
}
**/

.slide picture {
    float: right;
}

.slide.scatter,
.slide.scatter.active {
    width: 100%;
    float: left;
}

.slide.scatter {
    position: absolute;
}

.slide.scatter.active {
    position: relative;
    z-index: 2;
}

.pager-wrapper {
    position: absolute;
    bottom: 12px;
    width: 100%;
    text-align: center;
    z-index: 6;
}

span.position {
    background: transparent;
    color: #FFF;
    font-size: 18px;
    font-weight: 400;
    padding: 0px 2px;
    margin: 0px 3px;
    border-bottom: 2px solid transparent;
    cursor: pointer;
}

span.position.active {
    font-size: 23px;
    font-weight: 600;
    border-bottom: 2px solid #FFF;
    display: inline-block;
}












body.screen-xs .header-banner-wrapper,
body.screen-xxs .header-banner-wrapper {
    position: absolute;
    left: 0px;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

body.screen-xs .slide picture
body.screen-xxs .slide picture {
    width: max-content;
    height: max-content;
}

body.screen-xs .caption .banner-content-wrapper,
body.screen-xxs .caption .banner-content-wrapper {
    background: rgb(40 40 40 / 80%) !important;
    color: #FFF;
}

body.screen-xs .caption {
    left: 12.5%;
}

body.screen-xs .caption p,
body.screen-xs .caption span,
body.screen-xs .caption a,
body.screen-xs .caption h2,
body.screen-xs .caption h3 {
    color: #FFF;
}

body.screen-xs .caption h2,
body.screen-xs .caption h3 {
    font-size: 23px;
}

body.screen-xxs .caption p,
body.screen-xxs .caption span,
body.screen-xxs .caption a,
body.screen-xxs .caption h2,
body.screen-xxs .caption h3 {
    color: #FFF;
}

body.screen-xxs .caption h2,
body.screen-xxs .caption h3 {
    font-size: 23px;
}
















a.banner-button::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0; /* Alguses on joon nähtamatu */
    max-width: 80px;
    height: 1px;
    background-color: black;
    transition: width 0.3s ease-out, transform 0.3s ease-out, opacity 0.3s ease-out;
    transform: translateY(5px);
    opacity: 0;
}

a.banner-button:hover::after {
    width: 100%; /* Laius vastab täpselt lingi tekstile */
    max-width: 80px;
    transform: translateY(0);
    opacity: 1;
}