/* Publication covers share a portrait A4 frame. Preserve all artwork without cropping. */
.book-image img,
.book img,
.sidecover img,
#publication-cover,
.reader-intro > img,
.hero-cover img {
  aspect-ratio: 210 / 297;
  height: auto;
  object-fit: contain;
  object-position: center;
  background-color: #fff;
  display: block;
}
/* Size belongs to the context; the cover proportions stay the same. */
.book-image img { width: calc(286px * 210 / 297); max-width: 100%; }
.book img, .hero-cover img { width: 100%; }
.sidecover img { width: calc(220px * 210 / 297); max-width: 100%; }
#publication-cover { width: calc(430px * 210 / 297); max-width: 82%; }
.reader-intro > img { width: 125px; max-width: 100%; }
@media (max-width: 800px) {
  .sidecover img { width: calc(195px * 210 / 297); }
}
@media (max-width: 900px) {
  #publication-cover { width: calc(365px * 210 / 297); }
}
@media (max-width: 780px) {
  .reader-intro > img { width: 85px; }
}
@media (max-width: 580px) {
  .book-image img { width: calc(306px * 210 / 297); }
  #publication-cover { width: calc(300px * 210 / 297); }
}
@media (max-width: 520px) {
  .sidecover img { width: calc(205px * 210 / 297); }
}
/* Keep the reader's existing compact and print layouts. */
@media (max-width: 480px) { .reader-intro > img { display: none; } }
@media print { .reader-intro > img { display: none; } }
