/* --- Professional Book Sizing --- */
.book-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2x2 Grid */
    gap: 12px;
    margin-bottom: 20px;
}

.book-grid img {
    width: 100%;
    /* This forces a professional 3:4 portrait ratio */
    aspect-ratio: 3 / 4; 
    
    /* This ensures the image fills the area without stretching */
    object-fit: cover; 
    
    border-radius: 3px;
    background-color: #eee; /* Placeholder color while loading */
    
    /* Professional shadow and border to simulate a book edge */
    box-shadow: 
        2px 2px 5px rgba(0,0,0,0.1),
        -1px 0px 0px rgba(0,0,0,0.05); /* Subtle spine highlight */
    
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
}

.book-grid img:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

/* Optional: Adding a container constraint so cards don't get too tall */
.author-card {
    max-width: 400px; /* Keeps the books from expanding too wide on desktop */
    margin: 0 auto;
    background: var(--white);
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #eaeaea;
}