.story-area {
    padding: 30px 0 0;
    margin-bottom: -30px;
}

.swiper {
    width: 100%;
    height: 100%;
}

.swiper-pagination-bullet:only-child {
    display: block !important;
}

.stories-slider * {
    pointer-events: none !important;
}

.story-modal.show-modal .stories-slider * {
    pointer-events: auto !important;
}

.stories-user {
    display: flex;
    align-items: center;
    position: absolute;
    top: 25px;
    left: 10px;
    height: 32px;
    z-index: 5;
    color: #fff;
    text-decoration: none;
    user-select: none;
    transform: translateZ(0);
}

.stories-user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    margin-right: 12px;
}

.stories-user-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
}

.stories-user-name {
    font-size: 14px;
    font-weight: 700;
    margin-right: 12px;
    text-shadow: 0px 0px 2px rgba(0, 0, 0, 0.35);
}

.stories-user-date {
    font-size: 14px;
    font-weight: 400;
    opacity: 0.55;
    text-shadow: 0px 0px 2px rgba(0, 0, 0, 0.35);
}

.stories-slider>.main-swiper>.swiper-wrapper .swiper-slide {
    text-align: left;
    font-size: 1.5rem;
    line-height: 2;
    background: #111;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
}

.stories-slider>.main-swiper>.swiper-wrapper .swiper-slide::after {
    content: "";
    height: 100px;
    width: 100%;
    background-image: linear-gradient(to top,
            rgba(255, 0, 0, 0),
            rgba(0, 0, 0, 0.5));
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: none;
}

.swiper-slide img,
.swiper-slide video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.stories {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: auto;
    scrollbar-width: none;
    padding: 5px 0;
}

.stories a {
    color: #fff;
    text-decoration: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition-duration: 0.3s;
    flex-shrink: 0;
    transition-property: opacity;
}

.stories a+a {
    margin-left: 20px;
}

.stories-avatar {
    position: relative;
    border-radius: 50%;
    padding: 5px;
    background-image: linear-gradient(to right top,
            #ffc600 20%,
            #ff0040,
            #e600cc 80%);
}

.stories-avatar:before {
    content: "";
    position: absolute;
    left: 2px;
    top: 2px;
    right: 2px;
    bottom: 2px;
    background: #f5f5f5;
    border-radius: 50%;
    z-index: 1;
}

.stories-avatar img {
    position: relative;
    z-index: 2;
    display: block;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
}

.stories-name {
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    margin-top: 10px;
    color: black;
}

.stories-slider {
    padding-top: 44px;
    padding-bottom: 44px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    height: 100vh;
    width: 100vw;
    background-color: rgb(39 41 42 / 72%);
}

.stories-slider>.main-swiper {
    max-width: 400px;
    max-height: 800px;
}

.stories-slider .inner-swiper .swiper-pagination {
    position: absolute;
    left: 0px;
    right: 0px;
    top: 10px;
    bottom: unset;
    max-width: calc(100% - 10px);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    z-index: 10;
    transform: translateZ(0);
}

.stories-slider .inner-swiper .swiper-pagination-bullet {
    width: 100%;
    flex-shrink: 10;
    border-radius: 999px;
    height: 3px;
    background: rgba(255, 255, 255, 0.35);
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 1px #00000059;
    opacity: 1;
}

.stories-slider .inner-swiper .swiper-pagination-bullet .progress-bar {
    position: absolute;
    background: #fff;
    left: 0;
    top: 0;
    height: 100%;
    padding: 0;
    width: 0%;
}

.stories-slider .inner-swiper .viewed.progress-bar .progress-bar {
    width: 100%;
    background: #fff;
}

.swiper-button-next.swiper-button-disabled,
.swiper-button-prev.swiper-button-disabled {
    display: none;
}

.stories-slider .main-swiper .swiper-main-next,
.stories-slider .inner-swiper .swiper-inner-next {
    right: 0;
}

.stories-slider .main-swiper .swiper-main-prev,
.stories-slider .inner-swiper .swiper-inner-prev {
    left: 0;
}

.stories-slider .inner-swiper .swiper-inner-next,
.stories-slider .inner-swiper .swiper-inner-prev,
.stories-slider .main-swiper .swiper-main-next,
.stories-slider .main-swiper .swiper-main-prev {
    position: absolute;
    top: 50%;
    bottom: 0;
    height: calc(100% - 150px);
    width: 25%;
    margin: 0;
    transform: translateY(-50%);
    opacity: 0;
}

.stories-slider .inner-swiper>.swiper-inner-next,
.stories-slider .inner-swiper>.swiper-inner-prev {
    z-index: 5;
}

.story-modal {
    display: flex;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgb(41 40 49 / 89%);
    justify-content: center;
    align-items: center;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
}

.story-modal-content {
    padding: 20px;
    border-radius: 5px;
    text-align: center;
    position: relative;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 30px;
    cursor: pointer;
    z-index: 9999;
    pointer-events: none;
    color: #fff;
}

.story-modal.show-modal {
    animation: stories-in 0.4s forwards;
    pointer-events: auto;
    transform: translateZ(0) scale(1);
    opacity: 1;
    visibility: visible;
}

@keyframes stories-in {
    0% {
        transform: translateZ(0) scale(0.5);
        opacity: 0;
    }

    50% {
        transform: translateZ(0) scale(1.05);
        opacity: 1;
    }

    to {
        transform: translateZ(0) scale(1);
        opacity: 1;
    }
}

@media (max-width: 1000px) {
    .stories {
        justify-content: flex-start;
    }

    .stories a:first-child {
        margin-left: 5vw;
    }

    .stories a:last-child {
        margin-right: 5vw;
    }
}

@media (max-width: 767px) {
    .stories-avatar img {
        width: 75px;
        height: 75px;
    }

    .stories a+a {
        margin-left: 10px;
    }
}