/* The Pale Sequence v2.16.124 — Single, consistent book-cover display ratio.
   Official image files remain unchanged. A 5:8 viewport is shared by
   ALL six books. Books V–VI are slightly wider (2:3) and lose only ~3.1%
   at each outer edge in the web thumbnail, without distortion or black bars.
   Equal width, height, padding and captions on every existing card. */
body.psx :is(
  .psx-book > img,
  .psx-books-coverwall figure > img,
  .psx-book-card > img,
  .psx-tl-cover > img,
  .psx-tl-step-media > img,
  .psx-secondary-panel > img
) {
  display: block;
  box-sizing: border-box;
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 992 / 1586 !important;
  object-fit: cover !important;
  object-position: center center;
  margin-inline: 0;
}

/* The standalone sixth item follows the same column width as the other five
   when the cover wall switches to two columns. */
@media (max-width: 980px) {
  body.psx .psx-books-coverwall figure:last-child {
    box-sizing: border-box;
    width: calc((100% - 14px) / 2);
    max-width: none;
    justify-self: center;
  }
}
