﻿#stories{
    display:flex;
 
}

.stories-container {
    position: relative;
}
.story-nav-container {
    color: #A1A3A8;
}

.stories-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    width: 1.68rem;
    height: 1.68rem;
    border: none;
    border-radius: 50%;
    background: rgba(255,255,255,.9);
    box-shadow: 0 2px 8px rgba(0,0,0,.15);
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
}
.stories-prev {
    right: 2px;
}

.stories-next {
    left: 2px;
}
/*make scrollbar hidden*/
#stories {
    overflow-x: auto;
    scrollbar-width: none;
}
#stories::-webkit-scrollbar {
        display: none;
  }

#stories .story {
    margin-left: 10px !important;
    margin-right: 10px !important;
    order: unset !important;
}
#stories .story:first-child {
    margin-right: 0 !important;
}
#stories .story:last-child {
    margin-left: 0 !important;
}
#stories .story.seen {
        order: unset !important;
    }
#stories .time,
#zuck-modal .time {
    display: none !important;
}
#zuck-modal .item-preview {
/*    margin-right:23px !important;*/
margin:0 !important;

}
#zuck-modal .back {
    margin: 0 !important;
}
.story-box {
    width: 3.81rem !important;
    height: 5.85rem;
    position: relative !important;
}
.aparat-custom-container {
    aspect-ratio: 9 / 16;
}
.item-link {
    cursor: pointer;
    transition: transform 200ms ease 100ms;
}
.info-text {
    transition: color 200ms ease 100ms;
}

.item-link:hover{
    transform:scale(1.06);
}
.story.story-box > .item-link:hover .info-text {
    color: rgb(0,0,0);
}
.story.seen .info-box .info-text {
    color: #333 !important;
}
.story-action-icon {
    
    z-index: 10;
    transform: scale(0.9);
}
.story-cover {
    width: 3.90rem;
    height: 3.90rem !important;
}
.info-box {
    width: 3.81rem;
    display: block;
    margin-top:2px !important;
    cursor:pointer;
}
.info-text {
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
   font-size:0.75rem;
   font-weight:700 !important;
   text-align:center;
    white-space: normal !important;
    word-wrap: break-word !important; 
   
    max-height: 2.98rem;
}
#zuck-modal-content .story-viewer .tip.link {
    background-color: rgba(255,255,255,0.8 ) !important;
    text-wrap:nowrap !important;
    text-overflow:ellipsis !important;
    color: #000 !important;
}
#zuck-modal-content .story-viewer .tip.muted {
    background:none !important;
/*    right:35% !important;
    transform: translateX(35%);*/
position:fixed !important;
top:auto;
bottom:45%;
transform:translate(45%);

    

}

    #zuck-modal-content .story-viewer .slides .item > img.media {
        max-width: 100%;
        max-height: 100%;
        height: 100vh !important;
        object-fit: contain;
    }

#zuck-modal {
    background-color: rgba(0, 0, 0, 0.7) !important;
    backdrop-filter: blur(5px) !important;
    -webkit-backdrop-filter: blur(5px) !important;
}

    #zuck-modal .slider,
    #zuck-modal .story-viewer,
    #zuck-modal .item {
        background: transparent !important;
        background-color: transparent !important;
    }
    
        #zuck-modal .story-viewer .head,
        #zuck-modal .story-viewer .slides-pointers {
            max-width: 28.125rem !important;
            margin-left: auto !important;
            margin-right: auto !important;
            left: 0 !important;
            right: 0 !important;
            box-sizing: border-box !important;
        }

        #zuck-modal .story-viewer .head {
            margin-top: 5px !important;
        }

        #zuck-modal .story-viewer .slides-pointers {
           
            padding-left: 15px !important;
            padding-right: 15px !important;
            margin-top: 5px !important;
        }

        
        #zuck-modal .story-viewer .head .right .close {
            margin-right: 0 !important;
            margin-left:23px;
        }
 
        #zuck-modal .story-viewer .slides-pagination {
            position: relative !important;
            top: 0 !important;
            bottom: 0 !important;
            height: 100% !important;
            width: 100% !important;
            max-width: 33.75rem !important;
            left: 0 !important;
            right: 0 !important;
            margin: 0 auto !important;
            pointer-events: none !important; 
            z-index: 1050 !important;
            display: block !important; 
        }
            #zuck-modal .story-viewer .slides-pagination span {
                position: absolute !important; 
                /* put the button into center for all the time*/
                top: 50% !important;
                bottom: auto !important; 
                transform: translateY(-50%) !important;
            
                width:auto;
                height:auto !important;
                pointer-events: auto !important; /* make button clickable */
                cursor: pointer !important;
              
            }
            #zuck-modal .story-viewer .slides-pagination .custom-next {
                left: 10px !important;
                right: auto !important;
                z-index:1000 !important;
            }
            #zuck-modal .story-viewer .slides-pagination .custom-prev {
                right: 10px !important;
                left: auto !important;
                z-index: 1000 !important;
            }

#storyTab.nav-tabs .nav-link {
    color: #6c757d !important;
    background-color: transparent !important;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}
    #storyTab.nav-tabs .nav-link.active {
        color: #ff3067 !important;
        background-color: #fff !important;
        border-color: #dee2e6 #dee2e6 #fff !important;
        font-weight: 600;
    }
 
/*RESPONSVE*/
@media (min-width: 576px) {
    .stories-nav {
        width: 1.875rem;
        height: 1.875rem;
    }
        #stories .story {
            margin-left: 10px !important;
            margin-right: 10px !important;
        }

        .story-box {
            width: 4.31rem !important;
            height: 6.29rem;
         
        }
    .story-action-icon {
        transform: scale(1);
    }

    .story-cover {
        width: 3.81rem;
        height: 3.81rem !important;
    }

        .info-box {
            width: 4.31rem;
        }
    }
@media (min-width: 768px) {
    #stories{
        display:block;
    }
    .info-text{
        font-size:13px;
    }
    #stories .story {
        margin-left: 20px !important;
        margin-right: 20px !important;
    }
    
    .story-box {
        width: 5.56rem !important;
        height: 7.41rem;
    }

    .story-cover {
        width: 5.18rem;
        height: 5.18rem !important;
    }

    .info-box {
        width: 5.24rem;
        margin-top:8px;
    }
    }

@media (min-width:992px){
    .stories-nav {
        width: 40px;
        height: 40px;
    }
}


