:root {
    --dej-story-br: var(--dej-color1)
}
.dej_story_elements {
    display: flex;
    margin: 0;
    width: 100%;
    padding: 0;
    flex-direction: column;
}

.dej_story_elements::-webkit-scrollbar {
    display: none;
}

.dej_story_el_item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: none;
    cursor: pointer;
    user-select: none;
}

.dej_story_picture {
    position: relative;
    width: 100px;
    height: 100px;
    display: flex;
}

.dej_story_img {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 70px !important;
    height: 70px !important;
    transform: translate(-50%, -50%);
    border-radius: 50% !important;
}

.dej_story_circle {
    fill: none;
    stroke: var(--dej-story-br);
    stroke-linecap: round;
    stroke-width: 3;
    stroke-dasharray: 1;
    stroke-dashoffset: 0;
}

.dej_story_title {
    display: flex;
    line-height: 1rem;
    overflow-wrap: break-word;
    margin: 0.25rem 0;
    text-align: center;
}

.dej_story_el_item.loading .dej_story_circle {
    animation: stroke-draw 6s ease-out infinite alternate;
}

.dej_story_el_item.seen {
    opacity: 0.75;
}

.dej_story_el_item.seen .dej_story_circle {
    stroke: #ddd;
}

.dej_story_box {
    display: none;
    position: fixed;
    inset:0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    overflow: hidden;
    z-index: 2000;
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    align-items: center;
}

.dej_story_box.opened {
    display: flex;
}

.dej_story_box_elements {
    position: relative;
    width: 400px;
    max-width: 400px;
    height: 90dvh;
    overflow: hidden;
    margin: 0 auto;
    border-radius: 15px;
    display: flex;
    flex-direction: row;
    will-change: auto;
    touch-action: manipulation;
}

.dej_story_item {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    transition: 0.3s;
    background-color: rgba(0, 0, 0, 0.5);
}

.dej_story_elements .dejavo_prev_Arrow, .dej_story_elements .dejavo_next_Arrow {
    position: absolute;
    top: 30%;
    background-color: var(--white-color);
    padding: 8px;
    border-radius: var(--dej-min-radius);
}
.dej_story_elements .swiper-button-disabled {
    display: none;
}

.dej_story_elements .dejavo_prev_Arrow{
    left: 0;
}
.dej_story_elements .dejavo_next_Arrow{
    right: 0;
}
.dej_story_content {
    display: flex;
    width: 100%;
    height: 100% !important;
    padding: 0;
    margin: 0 !important;
    object-fit: cover;
}

.dej_story_item_link {
    display: inline-flex;
    align-items: center;
    gap:6px;
    position: absolute;
    right: 50%;
    bottom: 10%;
    background-color: #fff;
    transform: translateX(50%);
    color: #333;
    padding: 10px 25px;
    border-radius: 25px;
    font-size: 15px;
    z-index:20;
    height: auto !important;
    flex-direction: row !important;
}
.dej_story_cap {
    position: absolute;
    bottom: 4%;
    background-color: #fff;
    color: #333;
    padding: 10px 15px;
    border-radius: 15px;
    font-size: 14px;
    right: 4%;
    left: 4%;
    display: flex;
    z-index:22;
    height: auto !important;
    flex-direction: row !important;
}
.dej_story_cap a, .dej_story_cap {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap:10px;
}
.dej_story_cap img {
    max-width: 60px;
    border-radius: 15px;
}

.dej_story_prev,
.dej_story_next,
.dej_story_close {
    display: block;
    position: absolute;
    cursor: pointer;
    user-select: none;
    z-index: 3;
    width: 32px;
    height: 32px;
}

.dej_story_prev,
.dej_story_next {
    top: calc(50% - 16px);
    text-align: center;
    border-radius: 50%;
    background-color: #fff;
    overflow: hidden;
    opacity: .85;
    transition: opacity .25s ease;
    color:black;
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.dej_story_prev {
    right: calc(50% - 35vh - 80px);
}
.dej_story_next {
    left: calc(50% - 35vh - 80px);
}

.dej_story_next_m {
    position: absolute;
    left: 0;
    bottom: 17%;
    top: 8%;
    width: 33%;
    z-index: 15;
}
.dej_story_prev_m {
    position: absolute;
    right: 0;
    bottom: 17%;
    top: 8%;
    width: 33%;
    z-index: 15;
}

.dej_story_close {
    top: 50px;
    color: white;
    font-size: 24px;
    right: calc(50% - 35vh - 80px);
    z-index: 30;
}

.dej_story_voice, .dej_story_play_pause{
    display: none;
    position: absolute;
    top: 75px;
    width: 35px;
    height: 35px;
    font-size: 18px;
    cursor: pointer;
    pointer-events: auto;
    user-select: none;
    background: rgba(0, 0, 0, 0.3);
    justify-content: center;
    align-items: center;
    border-radius: 7px;
    z-index: 30;
    color: white;
}

.dej_story_voice.visible{
    display: flex;
}

.dej_story_voice {
    left: calc(47% - 88px);
}

.dej_story_voice.muted i:before {
    content: "\f369" !important;
}

.dej_story_play_pause {
    display: flex;
    left: calc(44% - 85px);
}

.dej_story_play_pause.playing i::before {
    content: "\f39e" !important;
}
.swiper-pagination.dejOpenStory {
    padding: 0 20px!important;
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    width: 100% !important;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.6),transparent);
}

.dejOpenStory .swiper-pagination-bullet {
    height: 3px !important;
    width: 100% !important;
    margin: 0 2px !important;
    background: rgba(255,255,255,0.4) !important;
    opacity: 1 !important;
    border-radius: 0 !important;
    position: relative;
    overflow: hidden;
}
.dejOpenStory .swiper-pagination-bullet > span {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    width: 100%;
    background: white;
    height: 100%;
}
.dejOpenStory .swiper-pagination-bullet:not(.swiper-pagination-bullet-active) > span {
    width: 100% !important;
}
.dejOpenStory .swiper-pagination-bullet-active ~ .swiper-pagination-bullet > span {
    width: 0 !important;
}

@keyframes stroke-draw {
    from {
        stroke: var(--dej-story-br);
        stroke-dasharray: 1;
    }
    to {
        stroke: var(--dej-story-br);
        transform: rotate(180deg);
        stroke-dasharray: 8;
    }
}

@media (max-width:576px){
    .dej_story_box_elements {
        width: 100%;
        max-width: 500px;
        height: 100% !important;
        margin: 0;
        border-radius: 0;
    }

    .dej_story_wrapper {
        width: 100% !important;
        height: 100% !important;
    }
    .dej_story_close {
        top: 35px;
        left: auto;
        right: 25px;
        background: rgba(0, 0, 0, 0.33);
        display: flex;
        justify-content: center;
        align-items: center;
        border-radius: 7px;
    }
    .dej_story_voice {
        left: calc(35% - 80px);
        top: 35px
    }
    .dej_story_play_pause {
        left: calc(24% - 80px);
        top: 35px;
    }
    .dej_story_close i:before {
        content: "\f258" !important;
    }

}