/* Homepage Books & Plays: compact catalogue cards without changing stored content. */
.work-section .book-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 560px), 1fr));
  align-items: start;
}

.work-section .book-card {
  width: 100%;
  max-width: 920px;
  min-height: 0;
  grid-template-columns: clamp(180px, 18vw, 220px) minmax(0, 1fr);
  align-items: stretch;
  align-self: start;
  overflow: hidden;
}

.work-section .book-card > img,
.work-section .book-card > .book-cover-fallback {
  width: 100%;
  height: 340px;
  min-height: 0;
  max-height: none;
  align-self: start;
  object-fit: cover;
  object-position: center 18%;
}

.work-section .book-card > div:last-child {
  min-width: 0;
  min-height: 340px;
  padding: 25px 27px;
}

.work-section .book-card h3 {
  margin: 4px 0 10px;
  font-size: clamp(26px, 2.1vw, 32px);
  line-height: 1.05;
}

.work-section .book-card > div:last-child > p:not(.eyebrow) {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 6;
  line-clamp: 6;
  line-height: 1.55;
}

.work-section .book-card .keyword-chips {
  margin: 14px 0 16px;
  max-height: 60px;
  overflow: hidden;
}

.work-section .book-card .keyword-chips span:nth-child(n + 7) {
  display: none;
}

.work-section .book-card .button {
  min-height: 44px;
  margin-top: auto;
  padding-inline: 18px;
}

@media (max-width: 700px), (pointer: coarse) and (max-width: 1200px) {
  .work-section .book-grid {
    grid-template-columns: 1fr;
  }

  .work-section .book-card {
    max-width: 560px;
    grid-template-columns: 1fr;
  }

  .work-section .book-card > img,
  .work-section .book-card > .book-cover-fallback {
    height: min(78vw, 360px);
    min-height: 0;
    object-position: center 16%;
  }

  .work-section .book-card > div:last-child {
    min-height: 0;
    padding: 22px 20px 20px;
  }

  .work-section .book-card > div:last-child > p:not(.eyebrow) {
    -webkit-line-clamp: 5;
    line-clamp: 5;
  }

  .work-section .book-card .keyword-chips {
    max-height: 56px;
  }

  .work-section .book-card .keyword-chips span:nth-child(n + 5) {
    display: none;
  }

  .work-section .book-card .button {
    width: 100%;
    justify-content: center;
  }
}
