/* /css/success-story.css */

.story-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 40px;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.story-header {
    border-bottom: 2px solid #eee;
    padding-bottom: 20px;
    margin-bottom: 30px;
}

.story-header h1 {
    font-size: 2.2rem;
    font-weight: 700;
    margin: 0 0 10px 0;
    color: #2c3e50;
    line-height: 1.4;
}

.story-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
    font-size: 0.9rem;
    color: #7f8c8d;
}

.story-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.media-gallery {
    margin: 40px 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.media-gallery img,
.media-gallery video {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    background-color: #eee;
}

.story-content {
    line-height: 1.8;
    font-size: 1.05rem;
}

.back-to-list-button {
    display: inline-block;
    margin-top: 40px;
    padding: 12px 25px;
    background-color: #34495e;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
    font-weight: 700;
}

.back-to-list-button:hover {
    background-color: #2c3e50;
}

@media (max-width: 768px) {
    .story-container {
        margin: 20px auto;
        padding: 20px;
    }
    .story-header h1 {
        font-size: 1.8rem;
    }
    .media-gallery {
        grid-template-columns: 1fr;
    }
}

/* =============================================== */
/* 동영상 중심 레이아웃 (Video-centric Layout)       */
/* =============================================== */

/* 기본 상태에서는 동영상 주인공 공간을 숨김 */
.story-video-prominent {
    display: none;
}

/* body.video-mode 신호가 있을 때만 활성화 */
body.video-mode .story-video-prominent {
    display: block; /* 숨겨뒀던 공간을 보여줌 */
    margin-bottom: 40px;
    background-color: #000;
    border-radius: 12px;
    overflow: hidden;
}

body.video-mode .story-video-prominent video,
body.video-mode .story-video-prominent iframe {
    width: 100%;
    display: block;
    aspect-ratio: 16 / 9; /* 16:9 비율 유지 */
}