.slideshow {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: #DBDBDB;
}

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

.slideshow.cover {
    height: 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;
}

.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: cover;
    object-position: var(--focus, 50% 50%);;
}


.slideshow.full .slideshow-slide-picture,
.slideshow.full .slideshow-slide-picture-image {
    width: 100vw;
    height: 100svh;
}

/* Actions */
.slideshow-arrow {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 15%;
    opacity: 0;
    z-index: 2;
    /* cursor: url("../../assets/icons/arrow-prev.svg"), w-resize; */
}

.slideshow-arrow.next {
    right: 0;
    left: auto;
    /* cursor: url("../../assets/icons/arrow-next.svg"), e-resize; */
}

/* Counter */
.slideshow-counter {
    position: absolute;
    bottom: 0;
    right: 0;
    text-align: right;
    padding: 0.15rem 0.4rem;
    z-index: 4;
    color: white;
}

/* Nav */
.slideshow-nav {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.75rem 0 2.5rem;
    display: flex;
    
    gap: 0.75rem;
    z-index: 10;
    overflow-x: auto;
    max-width: 100vw;
    overflow: hidden;

    scroll-behavior: smooth;
    opacity: 0;
    transition: 300ms 500ms;
}

.current .slideshow-nav {
    opacity: 1;
    transition: 300ms 100ms;
}

.slideshow-nav img {
    display: none;
}

.current .slideshow-nav img {
    display: block;
}

/* .nav-margin .slideshow-nav {
    bottom: 1.5rem;
} */

.slideshow-nav-item {
    min-width: 3rem;
    max-width: 3rem;
    min-height: 3rem;
    max-height: 3rem;
    border-radius: 2px;
    opacity: 1;
    cursor: pointer;
    overflow: hidden;
    transition: 300ms;
}

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

.slideshow-nav-spacer {
    width: calc(50%);
    min-width: calc(50% - 1.5rem - 0.75rem);
}

.middle-line-test {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 1px;
    background-color: red;
    z-index: 1000;
}

/* Tablet (>768px) */
@media screen and (min-width: 48rem) {
    .slideshow-nav-item {
        width: 4rem;
        height: 4rem;
    }
    
    .slideshow-nav {
        /* justify-content: flex-start; */
        padding: 0.75rem 0;
    }
}

/* 
    Version with Horizontal Scroll 
*/

.slideshow.horizontal-scroll {
    overflow: auto;
    display: flex;
}

.slideshow.horizontal-scroll .slideshow-slides {
    display: flex;
    width: 100%;
    max-width: 100vw;
    height: 100%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -ms-overflow-style: none; /* Internet Explorer 10+ */
    scrollbar-width: none; /* Firefox */
}

.slideshow.horizontal-scroll .slideshow-slides::-webkit-scrollbar {
    display: none; /* Safari and Chrome */
}

.slideshow.horizontal-scroll .slideshow-slide {
    display: block;
    position: static;
    width: 100%;
    min-width: 100vw;
    height: 100%;
    opacity: 1;
    scroll-snap-align: center;
}