/* ============================================
   Journey Detail Page – final polished
   ============================================ */

/* ── Hero image ── */
.hero-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

/* ── Version header ── */
.version-head {
    margin-top: var(--gap-xl);
    margin-bottom: var(--gap-xl);
}

.version-title {
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-text-primary);
    margin-bottom: var(--gap-md);
}

.version-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--gap-md) var(--gap-xl);
    background: var(--color-surface-muted);
    padding: var(--padding-md);
    border-radius: var(--radius-md);
}

.meta-item {
    display: flex;
    flex-direction: column;
    gap: var(--gap-xs);
}

.meta-label {
    font-size: var(--font-size-sm);
    color: var(--color-primary-700);
    font-weight: var(--font-weight-medium);
}

.meta-value {
    font-size: var(--font-size-md);
    color: var(--color-text-primary);
}

.meta-item .meta-label {
    display: flex;
    align-items: center;
    gap: var(--gap-xs);
}

/* ── Story ── */
.version-story {
    margin-bottom: var(--gap-xl);
}

.version-story h2,
.version-features h2,
.version-gallery h2,
.version-designs h2 {
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-text-primary);
    margin-bottom: var(--gap-md);
}

.version-story p {
    font-size: var(--font-size-md);
    line-height: var(--line-height-lg);
    color: var(--color-text-primary);
    margin-bottom: var(--gap-md);
}

/* ── Features list ── */
.version-features {
    margin-bottom: var(--gap-xl);
}

.features-list {
    list-style: none;
    padding-left: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--gap-sm);
}

.features-list li {
    position: relative;
    padding-left: var(--padding-lg);
    font-size: var(--font-size-md);
    line-height: var(--line-height-md);
    color: var(--color-text-primary);
}

.features-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.4em;
    width: 8px;
    height: 8px;
    background: var(--color-primary-500);
    border-radius: 50%;
}

@media (min-width: 768px) {
    .features-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ── Gallery grid ── */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: var(--gap-md);
}

.gallery-grid figure {
    margin: 0;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: box-shadow 0.2s ease;
    cursor: pointer;
}

.gallery-grid figure:hover {
    box-shadow: var(--shadow-lg);
}

.gallery-grid img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    aspect-ratio: 16 / 10;
}

/* ── Design grid (single column, full‑width, clickable, shadow) ── */
.design-grid {
    display: flex;
    flex-direction: column;
    gap: var(--gap-lg);
    margin-top: var(--gap-md);
}

.design-thumb {
    width: 100%;
    display: block;
    object-fit: contain;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    cursor: pointer;
    transition: box-shadow 0.2s ease;
}

.design-thumb:hover {
    box-shadow: var(--shadow-lg);
}

/* ── Lightbox ── */
.lightbox {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.85);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}

.lightbox[aria-hidden="false"] {
    display: flex;
}

.lightbox-close {
    position: absolute;
    top: var(--gap-lg);
    right: var(--gap-lg);
    background: none;
    border: none;
    font-size: 2.5rem;
    color: white;
    cursor: pointer;
    z-index: 10000;
}

.lightbox-img {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    box-shadow: var(--shadow-xl);
}