/* Modern replacement for the legacy Widgetkit slideshow on L-Site */
.wk-slideshow.lsite-slideshow {
    position: relative;
    width: 100%;
    margin: 0 auto;
    overflow: hidden;
}

.lsite-slideshow-stage {
    position: relative;
    width: 100%;
}

/* All slides remain stacked for a true crossfade.
   The first slide provides the stage height via a transparent sizing clone behavior. */
.lsite-slide {
    position: absolute;
    inset: 0;
    z-index: 1;
    opacity: 0;
    visibility: visible;
    pointer-events: none;
    transition-property: opacity;
    transition-timing-function: ease;
    will-change: opacity;
}

.lsite-slide:first-child {
    position: relative;
}

.lsite-slide.is-active {
    z-index: 2;
    opacity: 1;
    pointer-events: auto;
}

/* During a transition, keep the outgoing slide visible while it fades out. */
.lsite-slide.is-leaving {
    z-index: 3;
    opacity: 0;
    pointer-events: none;
}

.lsite-slide img {
    display: block;
    width: 100%;
    height: auto;
    border: 0;
}

.lsite-slide a {
    display: block;
}

.lsite-slideshow-prev,
.lsite-slideshow-next {
    position: absolute;
    z-index: 5;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 64px;
    padding: 0;
    border: 0;
    background: rgba(0, 0, 0, .28);
    color: #fff;
    font-size: 34px;
    line-height: 64px;
    text-align: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity .2s ease, background .2s ease;
}

.lsite-slideshow:hover .lsite-slideshow-prev,
.lsite-slideshow:hover .lsite-slideshow-next,
.lsite-slideshow:focus-within .lsite-slideshow-prev,
.lsite-slideshow:focus-within .lsite-slideshow-next {
    opacity: 1;
}

.lsite-slideshow-prev {
    left: 10px;
}

.lsite-slideshow-next {
    right: 10px;
}

.lsite-slideshow-prev:hover,
.lsite-slideshow-next:hover {
    background: rgba(0, 0, 0, .55);
}

@media (max-width: 767px) {
    .lsite-slideshow-prev,
    .lsite-slideshow-next {
        width: 34px;
        height: 52px;
        line-height: 52px;
        font-size: 26px;
        opacity: .75;
    }
}
