.slideshow {
    position: relative;
    height: 60vh;
}

/* Tablet (> 640px) */
@media screen and (min-width: 40em) {
    .slideshow {
        position: relative;
        height: 70vh;
    }
}

.slideshow-slide {
    position: absolute;
    display: flex;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: white;
    opacity: 0;
    transition: 100ms;
    display: flex;
    flex-direction: column;
    max-height: 100%;
}

.slideshow-slide.active {
    opacity: 1;
}

.slideshow-slide-picture {
    display: flex;
    justify-content: center;
    height: 20%;
    flex-grow: 1;
}

.slideshow-slide-picture-image {
    display: block;
    height: 100%;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

.slideshow-slide-caption {
    max-width: 800px;
    margin: 1rem;
}


/* 
    Actions 
*/

.slideshow-arrow {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 15%;
}

.slideshow-arrow span {
    opacity: 0;
}

.slideshow-arrow.prev {
    left: 0;
    cursor: url("../../icons/arrow_prev.svg"), auto;
}

.slideshow-arrow.next {
    right: 0;
    cursor: url("../../icons/arrow_next.svg"), auto;
}


/* Tablet (> 576px) */
@media screen and (min-width: 36em) {
    .slideshow-arrow {
        position: absolute;
        top: 0;
        bottom: 0;
        width: 25%;
    }
}


/* 
    Fullscreen 
*/

.slideshow-expand {
    display: none;
}

.slideshow button {
    touch-action: manipulation; 
}

/* Tablet (> 768px) */
@media screen and (min-width: 48em) {
    .slideshow-expand {
        display: block;
        position: absolute;
        width: 100%;
        opacity: 0;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        cursor: url("../../icons/zoom-in.svg"), auto;
    }

    .slideshow.fullscreen .slideshow-expand {
        cursor: url("../../icons/zoom-out.svg"), auto;
    }

    .slideshow-expand span {
        opacity: 0;
        pointer-events: none;
    }

    .slideshow.fullscreen {
        position: fixed;
        flex-direction: column;
        z-index: 100;
        aspect-ratio: unset;
        top: 0;
        left: 0;
        bottom: 0;
        right: 0;
        min-width: 100vw;
        height: 100vh;
        max-height: 100vh;
        background-position: center;
        background-color: white;
        background-repeat: no-repeat;
        margin-bottom: 0 !important;      
    }

    .slideshow.fullscreen .slideshow-slide {
        padding: 1.5rem 1rem 1.5rem;
    }

    .slideshow.fullscreen .slideshow-slide-caption {
        margin: 1rem auto;
    }
}

.overflow {
    overflow: hidden;
}