.stories {
    border-top: 1px solid var(--border-color);
    min-width: 16rem;
    max-width: 16rem;
    max-width: unset;
    margin-right: -.5rem;
    padding-top: .5rem;
}

.story {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: .25rem 0 1rem .35rem;
}

.story > div:first-child {
    background-size: contain;
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    background-position: center;
    background-color: var(--background-color);
    cursor: pointer;
}

.story > div:first-child::before {
    content: " ";
    display: block;
    position: relative;
    /* background-image: var(--radial-signature-bg-img); */
    background-image: radial-gradient(farthest-corner at 0px 0px, var(--signature-secondary) 0%, var(--signature-primary) 70%, #000000 100%);
    width: 4.5rem;
    height: 4.5rem;
    transform: translate(-.25rem, -.25rem);
    border-radius: 50%;
    z-index: -1;
    animation: story-halo 4s infinite linear;
    transform-origin: 2rem 2rem;
    filter: saturate(1.15);
}

.story > div:last-child {
    display: block;
}

.story-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    overflow: hidden;
    animation: fade-in 0.2s ease;
}

.story-overlay > .story-content > img {
    max-width: 100vw;
    max-height: 100vh;
}

.story-overlay::before {
    content: " ";
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 5px;
    background-color: #fff;
    animation: progress-bar-fill 5s linear forwards;
}
