/* KleurJou 2026-11-02: fit title to the physical cover mockup, not viewport width.
   The generated art reserves a quiet cream ribbon around y=84%.
   One-line titles retain the previously requested slightly lower position (86%). */
.book-cover-mockup {
  container-type: inline-size;
}
.book-cover-mockup > .book-cover-title-bottom {
  top: 78% !important;
  bottom: 6% !important;
  left: 13% !important;
  right: 13% !important;
  padding: 0 1% !important;
  width: auto;
  height: auto;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden;
  transform: none !important;
  pointer-events: none;
}
.book-cover-mockup > .book-cover-title-bottom.kj-cover-title-two-lines {
  top: 77% !important;
  bottom: 9% !important;
}
.book-cover-mockup > .book-cover-title-bottom strong,
#done-card .kj-preview-check-mini-book .book-cover-title-bottom strong,
.kj-choice-context .kj-choice-cover .book-cover-title-bottom strong {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1.04 !important;
  font-size: var(--kj-cover-fit-font-size, clamp(5px, 5.2cqw, 34px)) !important;
  overflow: visible !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  word-break: normal !important;
  hyphens: none !important;
  -webkit-line-clamp: unset !important;
  -webkit-box-orient: initial !important;
  text-overflow: clip !important;
  text-align: center !important;
}
