#ModalStory.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    overflow: auto;
    justify-content: center;
    align-items: center;
}

#ModalStory.modal.show {
    display: flex;
}

#ModalStory > .modal-content {
    position: relative;
    height: 85vh;
    width: calc(85vh * 9 / 16);
}

#ModalStory > .modal-content img, #ModalStory > .modal-content video {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.stories .splide__slide img {
    /*width: 203px; 
    height: 254px;*/
    width: 153px;
    height: 204px;
    border-radius: 30px; 
    object-fit: cover;
}

.close-story {
    color: white;
    font-size: 40px;
    position: absolute;
    z-index: 99999;
    top: 20px;
    right: 5%;
    cursor: pointer;
}

.timer-bar,
.back-bar {
    position: absolute;
    display: flex;
    flex-direction: row;
    justify-content: stretch;
    top: 20px;
    width: 90%;
    height: 4px;
    left: 5%;
}

.back-progress,
.progress-bar {
    border-radius: 5px;
    margin-left: 3px;
}

.back-progress {
    background-color: rgba(255, 255, 255, 0.3);
    box-shadow: 4px 4px 24px 0px rgba(90, 90, 90, 0.7);
}

.back-progress:first-child,
.progress-bar:first-child {
    margin-left: 0;
}

.progress-bar {
    background-color: white;
}

.navigate-stories {
    position: absolute;
    z-index: 99999;
    width: 100%;
    height: 100%;
    left: 0;
    right: 0;
    margin-left: auto;
    margin-right: auto;
}

.next-side,
.prev-side,
.pause-side {
    height: 100%;
    float: left;
}

.next-side {
    width: 30%;
}

.prev-side {
    width: 30%;
}

.pause-side {
    width: 40%;
}

@media (max-width: 768px) {
    #ModalStory > .modal-content {
        /*height: 90vh;*/
        /*width: calc(85vh * 9 / 16);*/
        height: auto;
        width: calc(85vh * 9 / 16);
        background-color: unset!important;
    }
    #ModalStory > .modal-content img, #ModalStory > .modal-content video {
        height: auto;
    }
    
}

@media (max-width: 480px) {
    #ModalStory > .modal-content {
        /*width: 90vw;
        height: 90vh;*/
        height: auto;
        width: 90vw;
    }
}


