.sac-carousel {
    --sac-visible: var(--sac-desktop);
    --sac-axis: x;
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;
    background: transparent;
    font-family: Geist, system-ui, sans-serif;
}
.sac-carousel *, .sac-carousel *::before, .sac-carousel *::after { box-sizing: border-box; }
.sac-carousel [hidden] { display: none !important; }
.sac-carousel .sac-layout {
    position: relative;
    left: var(--sac-viewport-left, 0px);
    width: var(--sac-viewport-width, 100%);
    max-width: none;
}
.sac-frame { position: relative; min-width: 0; }
.sac-carousel .sac-track {
    display: flex;
    gap: var(--sac-gap);
    align-items: stretch;
    list-style: none;
    padding: 0;
    margin: 0;
    overflow: auto hidden;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    direction: ltr;
}
.sac-carousel .sac-track::-webkit-scrollbar { display: none; }
.sac-carousel .sac-track.sac-loop {
    cursor: grab;
    overflow: hidden;
    overflow-anchor: none;
    scroll-snap-type: none;
    scroll-behavior: auto;
    touch-action: pan-y pinch-zoom;
}
.sac-carousel .sac-track.sac-dragging, .sac-carousel .sac-track.sac-dragging a { cursor: grabbing; user-select: none; }
.sac-carousel .sac-item {
    flex: 0 0 calc((100% - (var(--sac-visible) - 1) * var(--sac-gap)) / var(--sac-visible));
    min-width: 0;
    list-style: none;
    display: flex;
    padding: 0;
    margin: 0;
    scroll-snap-align: start;
}
.sac-carousel .sac-link {
    position: relative;
    display: grid;
    place-items: center;
    width: 100%;
    aspect-ratio: 1;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: var(--sac-radius);
    overflow: hidden;
    background: transparent;
    color: var(--sac-accent);
    text-decoration: none;
    box-shadow: none;
    -webkit-user-drag: none;
}
.sac-carousel .sac-image {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    border: 0;
    object-fit: cover;
    -webkit-user-drag: none;
}
.sac-carousel .sac-link::before,
.sac-carousel .sac-link::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
}
.sac-carousel .sac-link::before {
    z-index: 1;
    background: var(--sac-hover, var(--sac-accent));
    opacity: 0;
    transition: opacity .2s ease;
}
.sac-carousel .sac-link:is(.sac-hovered,:focus-visible)::before { opacity: .24; }
.sac-carousel .sac-link::after { z-index: 2; }
.sac-carousel .sac-shadow-soft::after { box-shadow: inset 0 -12px 16px -14px rgb(0 0 0 / .38); }
.sac-carousel .sac-shadow-medium::after { box-shadow: inset 0 -20px 26px -17px rgb(0 0 0 / .58); }
.sac-carousel .sac-shadow-strong::after { box-shadow: inset 0 -30px 36px -15px rgb(0 0 0 / .78); }
.sac-carousel .sac-icon {
    width: var(--sac-icon-size);
    height: var(--sac-icon-size);
    font-size: var(--sac-icon-size);
    line-height: 1;
}
.sac-carousel :is(.sac-image,.sac-icon) { transition: transform .24s ease, filter .24s ease; }
.sac-carousel .sac-effect-zoom:is(.sac-hovered,:focus-visible) > :is(.sac-image,.sac-icon) { transform: scale(1.08); }
.sac-carousel .sac-effect-brighten:is(.sac-hovered,:focus-visible) > :is(.sac-image,.sac-icon) { filter: brightness(1.2); }
.sac-carousel .sac-effect-darken:is(.sac-hovered,:focus-visible) > :is(.sac-image,.sac-icon) { filter: brightness(.78); }
.sac-carousel .sac-effect-grayscale:is(.sac-hovered,:focus-visible) > :is(.sac-image,.sac-icon) { filter: grayscale(1); }
.sac-carousel :is(a,button,ul):focus-visible { outline: 2px solid var(--sac-accent); outline-offset: -3px; }
.sac-carousel .sac-link:focus-visible::after { outline: 2px solid #fff; outline-offset: -5px; }
.sac-carousel .sac-arrow {
    appearance: none;
    margin: 0;
    background: #fff;
    color: #172b46;
    border: 1px solid #dce5f2;
    border-color: #dce5f2;
    border-radius: 999px;
    cursor: pointer;
    box-shadow: none;
    position: absolute;
    z-index: 1;
    top: 50%;
    transform: translateY(-50%);
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    padding: 0;
    font: 500 25px/1 system-ui, sans-serif;
}
.sac-carousel .sac-previous { left: 4px; }
.sac-carousel .sac-next { right: 4px; }
.sac-carousel .sac-arrow:hover { border-color: var(--sac-accent); }
.sac-bottom, .sac-dots { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; }
.sac-bottom { gap: 10px; padding-top: 12px; }
.sac-carousel .sac-dots button {
    display: grid; place-items: center;
    appearance: none; background: transparent; border: 0; box-shadow: none;
    width: 28px; height: 30px; padding: 0; margin: 0; cursor: pointer;
}
.sac-carousel .sac-dots button::before {
    content: ""; width: 7px; height: 7px; border-radius: 999px;
    background: #a6b7d3;
    background: color-mix(in srgb, var(--sac-accent) 55%, white);
}
.sac-carousel .sac-dots button[aria-current="true"]::before { width: 17px; background: var(--sac-accent); }
@media (min-width: 768px) and (max-width: 1100px), (min-width: 768px) and (max-width: 1366px) and (pointer: coarse) {
    .sac-carousel { --sac-visible: var(--sac-tablet); }
}
@media (max-width: 767px), (max-width: 950px) and (max-height: 500px) and (pointer: coarse) {
    .sac-carousel { --sac-visible: var(--sac-mobile); --sac-axis: y; }
    .sac-carousel .sac-layout { left: 0; width: 100%; }
    .sac-carousel .sac-frame { container-type: inline-size; }
    .sac-carousel .sac-track {
        --sac-mobile-side: min(var(--sac-height), 100vw);
        flex-direction: column;
        width: var(--sac-mobile-side);
        max-width: 100%;
        margin-inline: auto;
        max-height: calc(var(--sac-visible) * var(--sac-mobile-side) + (var(--sac-visible) - 1) * var(--sac-gap));
        overflow: hidden auto;
        scroll-snap-type: y mandatory;
    }
    @supports (width: 1cqw) {
        .sac-carousel .sac-track { --sac-mobile-side: min(var(--sac-height), 100cqw); }
    }
    .sac-carousel .sac-track.sac-loop { touch-action: pan-x pinch-zoom; }
    .sac-carousel .sac-item { flex: 0 0 var(--sac-mobile-side); min-height: 0; }
    .sac-carousel .sac-link { height: var(--sac-mobile-side); border-radius: 0; }
    .sac-carousel .sac-image { object-fit: contain; object-position: center; }
    .sac-carousel .sac-effect-zoom:is(.sac-hovered,:focus-visible) > .sac-image { transform: none; }
    .sac-carousel .sac-arrow { left: auto; right: 4px; transform: none; width: 31px; height: 31px; }
    .sac-carousel .sac-previous { top: 0; }
    .sac-carousel .sac-next { top: auto; bottom: 0; }
    .sac-carousel .sac-arrow span { transform: rotate(90deg); }
}
@media (prefers-reduced-motion: reduce) {
    .sac-carousel :is(.sac-image,.sac-icon), .sac-carousel .sac-link::before { transition: none; }
    .sac-carousel .sac-effect-zoom:is(.sac-hovered,:focus-visible) > :is(.sac-image,.sac-icon) { transform: none; }
}
