#story-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: calc(300px * 16 / 9);
    background-color: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    overflow: hidden;
    border-radius: 15px;
    display: none;
}

.story {
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
    z-index: 1;
}

.story img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.story-text {
    font-size: 18px;
    text-align: center;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    color: white;
    padding: 10px;
    box-sizing: border-box;
    z-index: 2;
}

#story-thumbnails {
    display: flex;
    gap: 30px;
    justify-content: center;
    margin-bottom: 15px;
}

.story-thumbnail {
    width: 75px;
    height: 75px;
    border-radius: 100%;
    position: relative;
}

.story-thumbnail-title {
    width: 100%;
    font-weight: bold;
    font-size: 13px;
    color: rgb(128, 128, 128);
    text-align: center;
    margin-top: 10px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

@media (max-width: 768px) {
    .story-thumbnail {
        width: 80px;
        height: 80px;
    }

    .story-thumbnail-title {
        font-size: 12px;
        width: 80px;
    }
}

.story-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 100%;
}

#story-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.75);
    display: none;
    width: 100vw;
    height: 100vh;
    z-index: 999;
}

#close-story {
    font-size: 25px;
    position: absolute;
    top: 20px;
    right: 20px;
    width: 25px;
    height: 25px;
    background-size: cover;
    cursor: pointer;
    z-index: 1001;
}