/* Container layout matching theme constraints */
.wp-block-grid.wishlist-grid-target,
.wp-block-grid.read-grid-target {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 24px;
    max-width: 800px;
    margin-top: 24px;
    margin-bottom: 24px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

/* Individual Card Styling */
.wp-block-grid.wishlist-grid-target .book-card,
.wp-block-grid.read-grid-target .book-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin: 0;
}




.wp-block-grid.wishlist-grid-target .book-card:hover,
.wp-block-grid.read-grid-target .book-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Card Media */
.book-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 12px;
}

/* Typography */
.wishlist-grid-target .book-card h3,
.read-grid-target .book-card h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    font-weight: 500;
    line-height: 1.3;
    color: #1f2937;
    margin: 12px 0 6px 0;
}

.wishlist-grid-target .book-card h3,
.read-grid-target .book-card .author {
    font-size: 0.9rem;
    color: #6b7280;
    margin-bottom: 16px;
}

/* Main Button Style */
.mark-as-read-btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 10px 16px;
    transition: background-color 0.2s ease;
}

/* Inner Anchor Tag Style (if applicable) */
.mark-as-read-btn a {
    background-color: #A9C3FF;
    color: #ffffff;
    border-radius: 20px;
    font-weight: 500;
    text-decoration: none;
}


/* Assign Montserrat to WordPress font class and fix line-height for large headings */
.wp-site-blocks .has-montserrat-font-family,
.wp-block-heading.has-montserrat-font-family {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.5;
}