#slideshow-viewer {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: color-mix(in srgb, var(--button-primary-color) 70%, transparent);
    display: flex;
    align-items: center;
    justify-content: space-between;

    &.slide-alone {
        justify-content: center;
    }

    img {
        position: absolute;
        top: -9999px;
        display: flex;
        opacity: 0;
        transition: opacity 700ms linear;

        &.show-slide {
            position: relative;
            top: unset;
            opacity: 1;
            max-height: 100vh;
            max-width: 100vw;
        }
    }

    .slideshow-previous, .slideshow-next {
        padding: calc(50% - 1rem) 1rem;
        cursor: pointer;
        height: 100%;

        i {
            color: var(--background-color-page);
        }

        @media (max-width: 991.98px) {
            display: flex;

            i {
                display: flex;
                align-self: center;
            }
        }
    }

    .icon-cancel {
        position: absolute;
        top: 70px;
        right: 0.7rem;
        color: white;
        cursor: pointer;
    }

    #slideshow-container {
        img.show-slide {
            @media (max-width: 991.98px) {
                max-width: calc(100vw - 7rem);
            }
        }

        .icon-cancel {
            @media (max-width: 575.98px) {
                top: 85px;
            }
        }
    }
}
