.story-reel-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 24px;
}

.story-reel-item {
    width: 200px;
    height: 200px;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    background: #f5f0e6;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border: 1px solid #bca98f;
    display: flex;
    padding: 9.25px;
    align-items: center;
    justify-content: center;
    transform: scaleX(-1); /* flips horizontally */
}

.story-reel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    transform: scaleX(-1); /* flips horizontally */
}

.fav-btn {
    position: absolute;
    bottom: 6px;
    right: 6px;
    background: rgba(255,255,255,0.85);
    border: none;
    border-radius: 50%;
    padding: 6px;
    cursor: pointer;
    z-index: 2;
    transition: background 0.2s;
}

.fav-btn .fa-heart {
    color: #bca98f;
    font-size: 1.1em;
    pointer-events: none;
}

.fav-btn.favorited .fa-heart {
    color: #e57373;
    font-weight: bold;
}

.fav-btn:hover {
    background: #fffbe9;
}

.story-reel-modal {
    display: none;
    position: fixed;
    z-index: 500;
    left: 0; top: 0; width: 100vw; height: 100vh;
    align-items: center;
    justify-content: center;
}

.story-reel-modal.show {
    display: flex;
}

.story-reel-modal-content {
    width: 80vw;
    max-width: 900px;
    height: 80vh;
    max-height: 90vh;
    background: #fffbe9;
    border-radius: 14px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.18);
    padding: 32px 16px 16px 16px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    position: relative;
    margin: auto;
    z-index: 102; /* Make sure it's above the overlay */
}

.story-reel-modal-overlay {
    position: absolute;
    left: 0; top: 0; width: 100vw; height: 100vh;
    background: rgba(34, 34, 34, 0.7);
    z-index: 101;
}

.story-reel-modal-embed {
    flex: 1 1 auto;
    width: 100%;
    min-height: 0;
    border-radius: 8px;
    border: 2px solid #bca98f;
    background: #fffbe9;
    display: block;
    margin: 0 auto;
}

.story-reel-modal-img {
    max-width: 90vw;
    max-height: 80vh;
    border-radius: 8px;
    border: 2px solid #bca98f;
    background: #fffbe9;
}

.story-reel-modal-close {
    position: absolute;
    top: 16px;
    right: 24px;
    color: #322316;           /* Brighter color */
    font-size: 3em;         /* Larger size */
    cursor: pointer;
    font-weight: bold;
    z-index: 103;
    transition: color 0.2s, text-shadow 0.2s;
    user-select: none;
    text-shadow: 0 4px 10px #fffbe9, 0 0 4px #bca98f;
}
.story-reel-modal-close:hover {
    color: #b22222;
    text-shadow: 0 2px 12px #fffbe9, 0 0 8px #bca98f;
}
.story-reel-modal-close:hover {
    color: #e57373;
}

.story-reel-modal-img,
.story-reel-modal-embed {
    max-width: 95vw;
    max-height: 85vh;
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}
