/* ==========================================================================
   11 – Blog
   Images in the blog list that are shown whole (see
   templates/partials/blog-list-item.html.twig): centred in a tile with the
   same shape as the cropped images, so all tiles line up.
   ========================================================================== */

.posts article .image.image-whole {
  aspect-ratio: 416 / 256;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: solid 1px var(--line);
  border-radius: 0.375em;
}

.posts article .image.image-whole img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  border-radius: 0;
}

/* Blog post (templates/item.html.twig): a portrait or square image shown whole
   on the right next to the text, at most its own size. */
.image.right.image-whole img {
  width: auto;
  max-width: 100%;
  height: auto;
}

/* Blog post: a wide image (logo, banner) shown whole across the article,
   keeping its proportions. */
.image.main.image-whole img {
  height: auto;
}
