.section-story {
    position: relative;
    padding-block: 16px;
    background: #F7F7F380;
}
.story-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: 0.4s;
    .story-item-image {
        border-radius: 50%;
        border: 1px solid #E7E6DA;
        padding: 3px;
        filter: grayscale(1);
        transition: 0.4s;
    }
    .story-item-title {
        font-family: var(--SemiBold);
        font-size: 12px;
    }
    &:hover {
        .story-item-image {
            filter: grayscale(0);
        }
    }
}
.story-item {
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    cursor: pointer;
}
.story-item:disabled {
    cursor: default;
    opacity: .6;
}
.story-item-title {
    display: block;
}
/* Story popup */
.story-popup-open {
    overflow: hidden;
}
.story-popup.hidden {
    display: none;
}
.story-popup {
    position: fixed;
    z-index: 99999;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 16px;
}
.story-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .88);
}
.story-content {
    position: relative;
    z-index: 1;
    width: min(100%, 430px);
    height: min(calc(100vh - 32px), 760px);
    overflow: hidden;
    border-radius: 24px;
    background: #111;
}
.story-header {
    position: absolute;
    z-index: 5;
    top: 26px;
    right: 14px;
    left: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
}
.story-thumb {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border: 2px solid white;
    border-radius: 50%;
    object-fit: cover;
}
.story-title {
    flex: 1;
    overflow: hidden;
    font-family: var(--SemiBold);
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.story-close {
    width: 36px;
    height: 36px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, .35);
    color: white;
    cursor: pointer;
}
.story-progress-container {
    position: absolute;
    z-index: 6;
    top: 12px;
    right: 12px;
    left: 12px;
    display: flex;
    gap: 4px;
    direction: ltr;
}
.story-progress-segment {
    height: 3px;
    flex: 1;
    overflow: hidden;
    border-radius: 10px;
    background: rgba(255, 255, 255, .35);
}
.story-progress-fill {
    width: 0;
    height: 100%;
    background: white;
}
.story-main-img {
    position: absolute;
    z-index: 1;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}
.story-click-right,
.story-click-left {
    position: absolute;
    z-index: 2;
    top: 80px;
    bottom: 0;
    width: 50%;
    cursor: pointer;
}
.story-click-right {
    right: 0;
}
.story-click-left {
    left: 0;
}
.story-btn {
    position: absolute;
    z-index: 7;
    top: 50%;
    width: 40px;
    height: 40px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateY(-50%);
    border: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, .35);
    color: white;
    cursor: pointer;
}
.story-btn-prev {
    right: 12px;
}
.story-btn-next {
    left: 12px;
}
.post-story .story-item-image {
    width: 74px;
    height: 74px;
    overflow: hidden;
}
.post-story .story-item-image img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

@media only screen and (max-width: 575px) {
    .story-popup {
        padding: 0;
    }
    .story-content {
        width: 100%;
        height: 100dvh;
        border-radius: 0;
    }
    .story-btn {
        display: none;
    }
}
