figure.supported-image {
  /*
   * Restrict figcaption width to image width.

   * Technique credit to Mario Hernandez, from his "Normalize images captions in
   * your website" blog post.
   *
   * @see https://mariohernandez.io/blog/normalize-images-captions-in-your-website/
   */
  inline-size: fit-content;

  figcaption {
    contain: inline-size;

    > .attribution {
      font-size: 80%;
    }
  }
}
