.story-page {
    min-height: 100vh;
    background:
            radial-gradient(circle at top left, #f4f6f9 0%, #e9eef4 42%, #dde5ee 100%);
    color: #18212b;
    padding: 2.5rem 1.25rem 3.5rem;
}

.story-page__inner {
    width: min(1680px, 100%);
    margin: 0 auto;
}

.story-page__header {
    margin-bottom: 1.75rem;
}

.story-page__title {
    margin: 0 0 0.4rem;
    font-size: clamp(2rem, 2.2vw, 2.8rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.05;
    color: #0f1728;
}

.story-page__meta {
    margin: 0;
    font-size: 1rem;
    color: #5f6f82;
}

.story-page__meta span {
    color: #243447;
    font-weight: 600;
}

.story-page__meta-separator {
    margin: 0 0.45rem;
    color: #98a2b3;
    font-weight: 400;
}

.story-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 340px));
    gap: 1.3rem;
    align-items: start;
    justify-content: center;
}

.story-card {
    position: relative;
    overflow: hidden;
    border-radius: 1.35rem;
    background: #ffffff;
    box-shadow:
            0 12px 28px rgba(16, 24, 40, 0.08),
            0 3px 10px rgba(16, 24, 40, 0.05);
    transition: box-shadow 220ms ease;
}

.story-card:hover {
    box-shadow:
            0 28px 60px rgba(16, 24, 40, 0.16),
            0 10px 26px rgba(16, 24, 40, 0.08);
}

.story-card__media,
.story-card__video-shell {
    aspect-ratio: 10 / 16;
    background: #cfd8e3;
    overflow: hidden;
    position: relative;
}

.story-card__img,
.story-card__video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    background: #cfd8e3;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.story-card__autoplay-video {
    pointer-events: none;
}

.story-card__unsupported {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    color: #667085;
    font-size: 0.95rem;
    text-align: center;
    background: #ffffff;
}

.story-empty {
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(16, 24, 40, 0.06);
    border-radius: 1.25rem;
    padding: 1rem 1.15rem;
    box-shadow: 0 10px 30px rgba(16, 24, 40, 0.06);
    color: #475467;
}

.story-empty p {
    margin: 0;
}

.story-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease;
}

.story-lightbox.is-open {
    opacity: 1;
    pointer-events: auto;
}

.story-lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 15, 25, 0.78);
    backdrop-filter: blur(6px);
}

.story-lightbox__dialog {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.story-lightbox__image,
.story-lightbox__video {
    max-width: min(92vw, 900px);
    max-height: 90vh;
    width: auto;
    height: auto;
    border-radius: 1.25rem;
    box-shadow:
            0 30px 80px rgba(0, 0, 0, 0.28),
            0 10px 24px rgba(0, 0, 0, 0.16);
    background: #fff;
}

.story-lightbox__video {
    aspect-ratio: 10 / 16;
    background: #000;
}

.story-lightbox__close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: #101828;
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(16, 24, 40, 0.15);
    transition: transform 140ms ease, box-shadow 140ms ease;
}

.story-lightbox__close:hover {
    transform: scale(1.06);
    box-shadow: 0 12px 28px rgba(16, 24, 40, 0.18);
}

.story-lightbox-open {
    overflow: hidden;
}

@media (max-width: 640px) {
    .story-page {
        padding: 1.25rem 0.9rem 2rem;
    }

    .story-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .story-card {
        max-width: 340px;
        width: 100%;
        margin: 0 auto;
    }

}
/*


 */
