/* =========================================================
   STORIES PAGE
   ========================================================= */

.stories-page {
    background: #f7f4fb;
    min-height: 100vh;
}

/* HEADER */

.gallery-header {
    padding: 40px 60px 20px;
}

.gallery-header h1 {
    margin-bottom: 8px;
    font-size: 42px;
    color: #4b3b63;
}

.gallery-header p {
    color: #7a6b91;
}

/* BACK BUTTON */

.back-button {
    display: inline-block;
    margin-bottom: 25px;
    text-decoration: none;
    color: #7c5fb2;
    font-weight: 500;
}

.back-button:hover {
    opacity: 0.7;
}

/* =========================================================
   TIMELINE
   Vertical center line with alternating left/right cards.
   ========================================================= */

.timeline {
    position: relative;
    max-width: 900px;
    margin: 40px auto 80px;
    padding: 20px 20px 40px;
}

/* The center spine that runs the length of the timeline. */
.timeline::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 3px;
    background: linear-gradient(to bottom, #d8c7ef, #a98ad1);
    transform: translateX(-50%);
    border-radius: 2px;
}

.timeline-entry {
    position: relative;
    width: 50%;
    padding: 16px 40px;
    box-sizing: border-box;
}

.timeline-entry.left {
    left: 0;
    text-align: right;
}

.timeline-entry.right {
    left: 50%;
    text-align: left;
}

/* The little dot that pins each card to the spine. */
.timeline-dot {
    position: absolute;
    top: 32px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #a98ad1;
    border: 3px solid #f7f4fb;
    box-shadow: 0 0 0 2px #a98ad1;
}

.timeline-entry.left .timeline-dot {
    right: -8px;
}

.timeline-entry.right .timeline-dot {
    left: -8px;
}

/* Each story card. */
.timeline-card {
    background: white;
    border-radius: 18px;
    padding: 20px 24px;
    box-shadow: 0 4px 12px rgba(130, 90, 180, 0.10);
    transition: all 0.25s ease;
}

.timeline-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(130, 90, 180, 0.16);
}

.timeline-date {
    font-family: 'Great Vibes', cursive;
    font-size: 26px;
    color: #7c5fb2;
    margin-bottom: 8px;
}

.timeline-story {
    color: #4b3b63;
    font-family: 'Cormorant Garamond', serif;
    font-size: 18px;
    line-height: 1.5;
    margin: 0;
}

/* =========================================================
   RESPONSIVE
   Collapse to a single column with the spine on the left.
   ========================================================= */

@media (max-width: 700px) {
    .timeline::before {
        left: 20px;
    }

    .timeline-entry,
    .timeline-entry.left,
    .timeline-entry.right {
        width: 100%;
        left: 0;
        text-align: left;
        padding-left: 50px;
        padding-right: 10px;
    }

    .timeline-entry.left .timeline-dot,
    .timeline-entry.right .timeline-dot {
        left: 12px;
        right: auto;
    }

    .gallery-header { padding: 30px 20px; }
}
