:host {
  /**
   * @prop --image-aspect-ratio: The image's aspect ratio.
  */
  --dimension-aspect-ratio: auto;
  display: inline-block;
}

img {
  aspect-ratio: var(--dimension-aspect-ratio);
  height: auto;
  width: 100%;
}