/* Home books - image only (no 3D) */

/* Stretch the cover area so the thumbnail can fill it */
.book-cover{
  align-items: stretch;
  justify-content: stretch;
}

/* Full height thumbnail (fill book-cover's height) */
.book-thumb{
  width:100%;
  height: 100%;
  overflow:hidden;
  border-radius:12px;
  text-align: center;
  background: linear-gradient(135deg, #cacaca, #f9f0ef);
}

.book-thumb img{
  height:100%;
}

/* Optional fallback when thumbnail is missing */
.book-thumb-fallback{
  height:100%;
  width:100%;
  display:flex;
  align-items:flex-end;
  padding:16px;
  background: rgba(0,0,0,0.08);
}

.book-thumb-title{
  color:#fff;
  font-weight:800;
  line-height:1.2;
  text-shadow: 0 2px 8px rgba(0,0,0,0.35);
  display:-webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow:hidden;
}

/* Make sure any legacy 3D cover is hidden on home */
.book-3d{display:none!important;}
