.animate{ transition: all 500ms ease-out; }

@keyframes rotate{
    0%{
        transform: rotate(0deg);
    }
    100%{
        transform: rotate(360deg);
    }
}

@keyframes loadingfade {
    0%{ opacity: 1; }
    100%{ 
        opacity: 0;
        display: none;
    }
}


/***************************************************/
.slideshow-main{
    position: relative;
    overflow: hidden;
    margin-bottom: 0.5rem;
}


/* Loading cover */
.loading-cover{
    padding-top: 3rem;
    z-index: 999999;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ccc;
    color: black;   
}


.loading-cover.loaded{
    animation: 500ms loadingfade ease-out forwards;
}

.loading-spinner{
    position: absolute;
    inset: 20px 20px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 4px solid #8f8f8f;
    border-bottom-color: transparent;
    animation: rotate 700ms linear infinite;
}

/* Images */
.slideshow-img{
    position: absolute;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;    
}

.inner-text *{
    margin: 0;
}
.inner-text{
    font-weight: 500;
    background-color: #202020;
    padding: 0.5rem 1rem;
}

.slideshow-img .inner-text{
    position: absolute;
    bottom: 1rem;
    left: -100%;
    opacity: 0;
    transition: all 200ms ease-in;    
}

/* Hero Image */
.slideshow-img.hero .inner-text{
    /* left: 1rem;
    opacity: 1;
    transition: all 600ms ease-out 400ms; */
    animation: innerText 9s forwards 500ms;
}
@keyframes innerText{
    0%{
        opacity: 0;
        left: -100%;
    }
    8%{
        opacity: 1;
        left: 1rem;
    }
    92%{
        opacity: 1;
        left: 1rem;
    }
    100%{
        opacity: 0;
        left: -100%;
    }
}



.slideshow-img.hero{
   z-index: 9999;   
}

.slideshow-img > img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slideshow-hero{
    max-width: 100%;
    height: 400px; 
    aspect-ratio: 16/9;
    opacity: 0;
    margin-left: auto;
    margin-right: auto;
}

.slideshow-hero, .slideshow-controls{
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 0.5rem;
}

/* Buttons */
.active-btn{    
    opacity: 1 !important;
}
.play-btn, .step-btn{
    opacity: 0.25;
    transition: all 500ms ease-out;
}
.play-btn:hover, .step-btn:hover{
    opacity: 0.5;
}

/* Sync with slideshow.js: var interval */
.play-btn.active-btn{
    transform-origin: center;  
    animation: rotate 10s linear infinite;
}



.slideshow-controls > *{
    background-repeat: no-repeat;
    /* background-origin: center; */
    background-size: contain;
    cursor: pointer;
}
.backwards{
    rotate: 180deg;
}
.small-btn{
    width: 20px; 
    height: 20px;
}
.large-btn{
    width: 30px; 
    height: 30px;
}
.play-btn{    
    background-image: url('./img/carousel_arrow_r.svg');
}
.step-btn{    
    background-image: url('./img/carousel_arrow_r.svg');
}


.thumbs{
    display: flex;
    gap: 0.5rem;
}
.thumb{
    height: 50px;
    width: 50px;
    background-color: none;
}

/***************************************************/
@media screen and (max-width: 600px) {
    .slideshow-hero{       
        height: 250px;
    }
    .small-btn{
        width: 10px; 
        height: 10px;
    }
    .large-btn{
        width: 23px; 
        height: 23px;
    }
    .thumb{
        height: 25px;
        width: 25px;        
    }
    .slideshow-hero, .slideshow-controls{
        padding: 0.5rem;
    }
    .inner-text{
        padding: 0.25rem 0.5rem;
        font-size: 10px;
        margin-right: 1rem;;
    }
}