/* century-journey.css — page-specific styles for 走過百年 */

/* Book grid layout (from index.css, scoped to this page) */

.main-wrapper {
    background-color: var(--bg-color-light-gray);
}


.book-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    align-items: start;
    gap: 4rem 2rem;
    padding: 0 20px;
}

.book {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease;
}

.book:hover { transform: translateY(-10px); }

.book img {
    width: 100%;
    height: auto;
    box-shadow: 5px 15px 30px rgba(0,0,0,0.15);
}

.book-title {
    margin-top: 1.2rem;
    font-size: 1.5rem;
    text-align: center;
    font-weight: 500;
}

.portrait { grid-column: span 1; }
.landscape { grid-column: span 2; }
.landscape img {
    max-width: 80%;
    margin: 0 auto;
    display: block;
    padding: 1rem 0;
}

@media (max-width: 1024px) {
    .book-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 650px) {
    .book-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem 1rem;
    }
    .landscape { grid-column: span 2; }
}

/* Info cards (text/link/audio content) */
.info-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 1.5rem;
    height: 100%;
    text-align: left;
    /* Suppress the book hover lift on info cards */
    transform: none;
}

.info-card:hover {
    transform: none;
    box-shadow: var(--card-hover-shadow);
}

.info-card h3 {
    font-size: 1.5rem;
    border-bottom: 1px solid var(--card-border);
    padding-bottom: 0.5rem;
    margin: 0 0 1rem 0;
}

.info-card ul {
    padding: 0;
    list-style: none;
    margin: 0;
}

.info-card li {
    margin-bottom: 0.75rem;
}

.info-card a {
    color: var(--text-color);
    text-decoration: none;
}

.info-card a:hover {
    text-decoration: underline;
}

audio {
    width: 100%;
    margin-top: 10px;
}
