/* What I Like to Read — library grid + quote modal */

.reading-main {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px 40px;
}

.reading-intro {
    color: #666666;
    margin: 0 0 30px 0;
}

/* Book grid */
.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 28px;
}

.book {
    text-align: left;
}

.book-cover {
    width: 100%;
    aspect-ratio: 2 / 3;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    background: #f4f4f4;
}

.book:hover .book-cover {
    transform: translateY(-4px);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
}

.book-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Text fallback cover (when no image given) */
.book-cover.text-cover {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 18px 14px;
    color: #ffffff;
    background: #2b2b2b;
}

.book-cover.text-cover .tc-title {
    font-size: 11pt;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 10px;
}

.book-cover.text-cover .tc-author {
    font-size: 8.5pt;
    opacity: 0.75;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.book-meta {
    margin-top: 10px;
}

.book-title {
    font-size: 10pt;
    font-weight: 600;
    margin: 0;
    line-height: 1.3;
}

.book-author {
    font-size: 9pt;
    color: #666666;
    margin: 2px 0 0 0;
}

@media (max-width: 480px) {
    .books-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }
}
