/* Override grid to 4 columns on screen widths 768px and up */
@media (min-width: 768px) {
    .cwf-grid--3-columns {
        --cwf-grid--columns: 4;
        --cwf-grid--grid-template-columns: repeat(var(--cwf-grid--columns), 1fr);
    }
}
.cwf-grid--3-columns a:has(> img),
.cwf-grid--3-columns > a:first-child {
  display: flex;
  justify-content: center;
  height: 260px; /* Fixed height container to equalize all cover spaces */
  align-items: center;
  margin-bottom: 1rem;
  width: 100%;
}
.cwf-grid--3-columns a > img,
.cwf-grid--3-columns > a:first-child > img {
  max-height: 100%;
  max-width: 100%;
  width: auto !important; /* Overrides inline or inherited width: 100% */
  height: auto;
  object-fit: contain;
  filter: drop-shadow(2px 4px 6px rgba(0, 0, 0, 0.18));
}
.bookshelf__item {
  height: 100%; /* Ensures all cards in a grid stretch to equal height */
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.bookshelf__item:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08);
}
.bookshelf__body {
  display: flex;
  flex-direction: column;
  flex-grow: 1; /* Fills remaining height below the book cover */
}
.bookshelf__controls {
    margin-top: 2.5rem;
}
.bookshelf__img {
    margin: 1rem;
}
.bookshelf__title {
   padding-top: 0;
}
.bookshelf__subtitle {
  color: #4a5568; /* Charcoal/slate instead of pure black */
  font-weight: 600; /* Medium/semi-bold instead of heavy bold */
  font-size: 0.95rem; /* Slightly smaller than title */
  line-height: 1.35;
  margin-bottom: 0.5rem;
  padding-bottom: 0.5rem;
}
.bookshelf__author {
  margin-bottom: 0;
  font-size: 0.8rem;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid #f3f4f6;
}
.bookshelf__filter {
  display: none;
}




































