/* Content images keep their intrinsic size; only the available column limits them.
   Exclude UI icons/avatars by scoping to rendered wiki content and previews. */
#content .wiki img:not(.icon-svg):not(.avatar),
.wiki[slot="preview"] img:not(.icon-svg):not(.avatar) {
  width: auto !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: none !important;
  object-fit: contain;
}
