
.xc-story {
    --xc-story-size: clamp(64px, 9vw, 96px);
    --xc-story-gap: clamp(14px, 2.6vw, 36px);
    margin-top: clamp(12px, 2vw, 20px);
}

.xc-story__wrap {
    position: relative;
}

@media (min-width: 768px) {
    .xc-story__wrap {
        padding-inline: 52px;
    }
}


.xc-story__prev {
    left: 0;
}

.xc-story__next {
    right: 0;
}

.xc-story__list {
    display: flex;
    gap: var(--xc-story-gap);
    margin: 0;
    padding: 4px 2px;
    list-style: none;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.xc-story__list::-webkit-scrollbar {
    display: none;
}

.xc-story__item {
    flex: 0 0 auto;
    width: var(--xc-story-size);
}

.xc-story__btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--xc-link);
    font-weight: 600;
    font-family: inherit;
    font-size: clamp(.78rem, 1.4vw, .92rem);
    cursor: pointer;
}

.xc-story__btn:focus-visible {
    outline: 2px solid var(--xc-magenta);
    outline-offset: 4px;
    border-radius: 12px;
}

.xc-story__ring {
    --xc-dash-n: 8;
    --xc-dash-step: calc(360deg / var(--xc-dash-n));
    --xc-dash-len: calc(var(--xc-dash-step) * .56);

    position: relative;
    display: block;
    width: var(--xc-story-size);
    height: var(--xc-story-size);
    padding: 6px;
    border: 0;
    border-radius: 50%;
}

.xc-story__ring::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    pointer-events: none;
    background: linear-gradient(135deg, var(--xc-magenta), var(--xc-plum));
    -webkit-mask:
        radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2.5px)),
        repeating-conic-gradient(from calc(var(--xc-dash-len) / -2),
            #000 0 var(--xc-dash-len),
            transparent var(--xc-dash-len) var(--xc-dash-step));
    -webkit-mask-composite: source-in;
    mask:
        radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2.5px)),
        repeating-conic-gradient(from calc(var(--xc-dash-len) / -2),
            #000 0 var(--xc-dash-len),
            transparent var(--xc-dash-len) var(--xc-dash-step));
    mask-composite: intersect;
}

.xc-story__ring img {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.xc-story__deals {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--xc-magenta), var(--xc-plum));
    color: #fff;
}

.xc-story__deals svg {
    width: 45%;
    height: 45%;
}

.xc-story__badge {
    position: absolute;
    right: -2px;
    bottom: 2px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: #f29a1f;
    color: #fff;
    font-size: .6rem;
}

.xc-story__label {
    max-width: var(--xc-story-size);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-family: inherit;
}

.xc-story__label::first-letter {
    text-transform: uppercase;
}

.xc-story__nav {
    position: absolute;
    top: calc(var(--xc-story-size) / 2 - 16px);
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    background: #fff;
    color: var(--xc-magenta);
    box-shadow: 0 2px 10px rgba(58, 11, 51, .2);
    cursor: pointer;
    transition: opacity .15s, background .15s;
}

.xc-story__nav:hover {
    background: var(--xc-lav-2);
}

.xc-story__prev {
    left: 0;
}

.xc-story__next {
    right: 0;
}

.xc-story__nav.is-hidden {
    opacity: 0;
    pointer-events: none;
}

@media (max-width: 767.98px),
(hover: none) and (pointer: coarse) {
    .xc-story__wrap {
        padding-inline: 0;
    }

    .xc-story__nav {
        display: none;
    }

    .xc-story__list {
        scroll-snap-type: x proximity;
    }

    .xc-story__item {
        scroll-snap-align: start;
    }
}