/* Image Alignment Override - Left Align All Images */

/* 将所有图片容器改为左靠齐 */
figure {
  text-align: left !important;
  margin-left: 0 !important;
  margin-right: auto !important;
}

/* 图片本身左靠齐 */
img {
  margin-left: 0 !important;
  margin-right: auto !important;
  display: block !important;
}

/* 图片容器 div 左靠齐 */
div > img {
  margin-left: 0 !important;
  margin-right: auto !important;
}

/* 段落内的图片 */
p > img {
  margin-left: 0 !important;
  margin-right: auto !important;
}

/* 所有带有 flex 或 justify 的容器改为左靠齐 */
[class*="flex"][class*="justify-center"] > img,
[class*="flex"][class*="justify-center"] figure {
  justify-content: flex-start !important;
}

/* 覆盖 text-align: center */
*[style*="text-align: center"] img,
*[style*="text-align: center"] figure {
  text-align: left !important;
}

/* 确保图片宽度自适应 */
img {
  max-width: 100% !important;
  height: auto !important;
  width: auto !important;
}

/* 图片标题左靠齐 */
figcaption {
  text-align: left !important;
}

/* SVG 图形也左靠齐 */
svg {
  margin-left: 0 !important;
  margin-right: auto !important;
  display: block !important;
}

/* 移除可能的自动居中 */
[class*="center"] img,
[class*="center"] figure,
[class*="center"] svg {
  margin-left: 0 !important;
  margin-right: auto !important;
}
