.ksl-slider {
    width: 100%;
    min-width: 0;
    max-width: none;
    background: var(--ksl-bg, #111);
    color: white;
}
.ksl-slider [hidden] { display: none !important; }
.ksl-viewport { position: relative; overflow: hidden; isolation: isolate; }
.ksl-slide {
    position: relative;
    width: 100%;
    aspect-ratio: var(--ksl-ratio-desktop);
}
.ksl-fixed .ksl-slide { height: var(--ksl-desktop); aspect-ratio: auto; }
.ksl-slide.is-leaving { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.ksl-slide.is-active.is-entering { animation: ksl-fade-in var(--ksl-fade) ease both; }
.ksl-slide.is-leaving { animation: ksl-fade-out var(--ksl-fade) ease both; }
.ksl-content, .ksl-picture, .ksl-layer-poster, .ksl-file {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
}
.ksl-content:focus-visible { outline: 3px solid white; outline-offset: -5px; }
.ksl-slider .ksl-picture img, .ksl-slider .ksl-file video {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    margin: 0;
    object-fit: contain;
}
.ksl-file { display: none; pointer-events: none; }
.ksl-file.is-ready { display: grid; place-items: center; }
.ksl-file iframe {
    display: block;
    height: 100%;
    width: 100%;
    border: 0;
    background: transparent;
}
.ksl-scene {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;

}
.ksl-scene img { display: block; margin: 0; max-width: none; }
.ksl-scene .ksl-background { width: 100%; height: 100%; object-fit: fill; }
.ksl-scene .ksl-layer { position: absolute; height: auto; }
.ksl-fixed .ksl-scene, .ksl-fixed .ksl-file.is-ready iframe {
    inset: 50% auto auto 50%;
    position: absolute;
    width: min(100%, calc(var(--ksl-height, var(--ksl-desktop)) * var(--ksl-ratio-desktop)));
    height: auto;
    aspect-ratio: var(--ksl-ratio-desktop);
    transform: translate(-50%, -50%);
}
.ksl-layer-poster { display: none; }
.ksl-layer-poster.has-poster { display: block; }
.ksl-slide.is-animating .ksl-layer-poster { display: none; }
.ksl-slide.is-animating .ksl-layer { animation: ksl-layer-in 680ms cubic-bezier(.2,.7,.25,1) var(--ksl-delay) both; }
.ksl-layer-left { --ksl-x: -24%; }
.ksl-layer-right { --ksl-x: 24%; }
.ksl-layer-up { --ksl-y: 24%; }
.ksl-layer-zoom { --ksl-scale: .82; }
.ksl-arrows button, .ksl-controls button {
    appearance: none;
    padding: 0;
    border: 0;
    color: #fff;
    cursor: pointer;
    font: inherit;
    box-shadow: none;
}
.ksl-arrows button {
    position: absolute;
    top: 50%;
    z-index: 3;
    transform: translateY(-50%);
    display: grid;
    place-items: center;
    width: clamp(36px, 5vw, 48px);
    height: clamp(36px, 5vw, 48px);
    background: rgb(0 0 0 / .7);
    border-radius: 50%;
    font-size: 30px;
    line-height: 1;
}
.ksl-arrows .ksl-prev { left: 10px; }
.ksl-arrows .ksl-next { right: 10px; }
.ksl-controls { display: flex; flex-wrap: wrap; min-height: 39px; justify-content: center; align-items: center; gap: 4px; background: #111; }
.ksl-controls button { background: transparent; }
.ksl-controls .ksl-dot { width: 25px; min-height: 36px; display: grid; place-items: center; }
.ksl-dot span { width: 8px; height: 8px; border: 1px solid currentColor; border-radius: 50%; }
.ksl-dot[aria-current="true"] span { background: currentColor; }
.ksl-controls .ksl-play { padding: 0 10px; min-height: 36px; font-size: .78rem; }
.ksl-slider button:focus-visible { outline: 2px solid #fff; outline-offset: -3px; }
.ksl-sr { border: 0; clip-path: inset(50%); height: 1px; overflow: hidden; padding: 0; position: absolute; width: 1px; white-space: nowrap; }
@keyframes ksl-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes ksl-fade-out { from { opacity: 1; } to { opacity: 0; } }
@keyframes ksl-layer-in {
    from { opacity: 0; transform: translate(var(--ksl-x, 0), var(--ksl-y, 0)) scale(var(--ksl-scale, 1)); }
    to { opacity: 1; transform: none; }
}
@media (min-width: 768px) and (max-width: 1024px) {
    .ksl-slider { --ksl-height: var(--ksl-tablet); }
    .ksl-slide { aspect-ratio: var(--ksl-ratio-tablet); }
    .ksl-fixed .ksl-slide { height: var(--ksl-tablet); }
    .ksl-slide[data-tablet="1"] .ksl-scene { visibility: hidden; }
    .ksl-slide[data-tablet="1"] .ksl-layer-poster { display: block; }
}
@media (max-width: 767px) {
    .ksl-slider { --ksl-height: var(--ksl-mobile); }
    .ksl-slide { aspect-ratio: var(--ksl-ratio-mobile); }
    .ksl-fixed .ksl-slide { height: var(--ksl-mobile); }
    .ksl-slide[data-mobile="1"] .ksl-scene { visibility: hidden; }
    .ksl-slide[data-mobile="1"] .ksl-layer-poster { display: block; }
}
@media (prefers-reduced-motion: reduce) {
    .ksl-slider .ksl-slide, .ksl-slider .ksl-layer { animation: none; }
}
