.slideshow {
    position: fixed;
    overflow: hidden;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    z-index: 100;
    pointer-events: none;
    
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.slideshow.active {
    opacity: 1;
    pointer-events: auto;
}

/* Slides */
.slideshow-slides {
    height: 100%;
    width: 100%;
}

.slideshow-slide {
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    width: 100%;
    min-width: 100vw;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    overflow: hidden;
    z-index: 1;
    padding: 4rem 3rem;
}

.slideshow-slide.before {
    display: block;
    opacity: 0;
    z-index: 1;
    /* translate: -100% 0 */
}

.slideshow-slide.after {
    display: block;
    opacity: 0;
    z-index: 1;
    /* translate: 100% 0; */
}

.slideshow-slide.active {
    display: block;
    opacity: 1;
    z-index: 2;
    animation: fadeIn 0.5s ease-in-out;
    /* translate: 0 0; */
}

.slideshow-slide-picture,
.slideshow-slide-picture-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: var(--focus, 50% 50%);;
}

.slideshow-slide-picture {
    padding: 1rem;
}

/* Actions */
.slideshow-close {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    color: white;
    border-bottom: 2.5px solid white;
    
    padding: 1rem 0;
    margin: 0 4rem;
    cursor: pointer;
    text-align: center;
    z-index: 102;
}

.slideshow-close.bottom {
    bottom: 0;
    top: auto;
    border-bottom: 0;
    border-top: 2.5px solid white;
}

.slideshow-arrow {
    display: block;
    position: fixed;
    top: 4rem;
    bottom: 4rem;
    left: 0;
    right: calc(100% - 4rem);
    
    writing-mode: vertical-rl;
    text-align: center;
    color: white;
    z-index: 102;
}

.slideshow-arrow.next {
    right: 0;
    left: calc(100% - 4rem);
}