.stories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 320px));
    gap: 24px;
}

.story-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    cursor: pointer;
}

.story-card img,
.story-card video {
    width: 100%;
    border-radius: 18px;
    display: block;
}

.download-btn {
    display: flex;
    justify-content: center;
    align-items: center;

    height: 44px;
    border-radius: 12px;

    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    color: white;

    background: linear-gradient(
            135deg,
            #833ab4,
            #c13584,
            #e1306c,
            #f77737
    );

    box-shadow: 0 8px 18px rgba(193,53,132,0.25);
    transition: all 0.25s ease;
}

.download-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.05);
}

.story-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);

    display: flex;
    justify-content: center;
    align-items: center;

    z-index: 9999;
}

.hidden {
    display: none;
}

.modal-inner {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

#modal-content {
    display: flex;
    justify-content: center;
    align-items: center;
}

#modal-content img,
#modal-content video {
    max-height: 90vh;
    max-width: min(95vw, 520px);
    border-radius: 18px;
}

.modal-close {
    position: absolute;
    top: 24px;
    right: 32px;

    background: rgba(255,255,255,0.15);
    border: none;
    color: white;

    width: 48px;
    height: 48px;
    border-radius: 50%;

    cursor: pointer;
    font-size: 24px;
}

.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);

    width: 56px;
    height: 56px;

    border: none;
    border-radius: 50%;

    background: rgba(255,255,255,0.15);
    color: white;
    cursor: pointer;

    font-size: 26px;
}

.left {
    left: 40px;
}

.right {
    right: 40px;
}

@media (max-width: 768px) {
    .nav-btn {
        width: 44px;
        height: 44px;
        font-size: 20px;
    }

    .left {
        left: 12px;
    }

    .right {
        right: 12px;
    }

    .modal-close {
        top: 12px;
        right: 12px;
    }
}
