/* SocialUp Instagram Stories */
.social-up-header-stories {
    width: 100%; box-sizing: border-box; padding: 8px 0;
    background: var(--socialup-stories-background, #000);
    text-align: center; overflow: hidden;
}
.social-up-header-stories *, .social-up-header-stories *::before, .social-up-header-stories *::after { box-sizing: border-box; }
.social-up-header-stories__list {
    display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start;
    gap: 8px 0; width: 100%; margin: 0 auto;
}
.social-up-header-stories__item {
    display: inline-flex; flex: 0 1 140px; flex-direction: column; align-items: center;
    min-width: 0; padding: 0; color: #fff; text-decoration: none !important; text-align: center;
}
.social-up-header-stories__circle {
    position: relative; display: block; width: 100px; height: 100px; flex: 0 0 100px; margin: 0 auto;
}
.social-up-header-stories__circle img {
    position: absolute; left: 50%; top: 50%; display: block; width: 70px; height: 70px;
    max-width: none; margin: 0; object-fit: cover; border-radius: 50%; transform: translate(-50%, -50%);
}
.social-up-header-stories__circle svg {
    position: absolute; inset: 0; display: block; width: 100%; height: 100%;
    fill: none; stroke: #8a3ab9; stroke-linecap: round; stroke-width: 3;
    stroke-dasharray: 1; stroke-dashoffset: 0; transition: transform .3s ease, stroke .3s ease;
    pointer-events: none;
}
.social-up-header-stories__item:hover .social-up-header-stories__circle svg {
    animation: socialup-stories-stroke-draw 2.5s ease-out infinite alternate;
}
.social-up-header-stories__label {
    display: inline-block; max-width: 125px; margin: 0; color: #fff;
    font-family: Oswald, sans-serif; font-size: 12px; font-weight: 400; line-height: 1.4;
    letter-spacing: 0 !important; text-transform: uppercase; white-space: nowrap;
    overflow: hidden; text-overflow: ellipsis;
    background-image: linear-gradient(120deg, #fc0 0%, purple 100%);
    background-repeat: no-repeat; background-size: 100% .3em; background-position: 0 101%;
    transition: background-size .25s ease-in;
}
.social-up-header-stories__item:hover .social-up-header-stories__label,
.social-up-header-stories__item:focus-visible .social-up-header-stories__label { background-size: 100% 88%; }
.social-up-header-stories__item:focus-visible { outline: 2px solid #ffcc00; outline-offset: 3px; }
@keyframes socialup-stories-stroke-draw {
    from { stroke: #8a3ab9; stroke-dasharray: 1; transform: rotate(0deg); }
    to { stroke: #cd486b; stroke-dasharray: 8; transform: rotate(180deg); }
}
@media only screen and (max-width: 500px) {
    .social-up-header-stories__list { gap: 10px 0; }
    .social-up-header-stories__item { flex-basis: 120px; }
    .social-up-header-stories__circle { width: 82px; height: 82px; flex-basis: 82px; }
    .social-up-header-stories__circle img { width: 55px; height: 55px; }
    .social-up-header-stories__label { max-width: 95px; }
}
@media (prefers-reduced-motion: reduce) {
    .social-up-header-stories__circle svg, .social-up-header-stories__label { transition: none; }
    .social-up-header-stories__item:hover .social-up-header-stories__circle svg { animation: none; }
}


/* Original zSlider-compatible layout hooks */
.social-up-header-stories .social-up-header-stories__list--slider {
    flex-wrap: nowrap;
    justify-content: flex-start;
}
.social-up-header-stories .social-up-header-stories__list--slider .social-up-header-stories__item {
    flex: 0 0 140px;
}
