/* 单篇文章（非新闻）图片尺寸与居中控制 */

/* 基础：正文图片与头图等比缩放，最大 400x250，水平居中 */
.single .single-article .entry-content img,
.single .special-header .special-thumbnail img {
  max-width: 400px;
  max-height: 250px;
  width: auto;
  height: auto;
  display: block;
  margin: 0 auto; /* 水平居中 */
  float: none;
}

/* 头图容器：在需要时保证容器层也居中（对移动端尤为重要） */
.single .special-header .special-thumbnail {
  display: grid;
  place-items: center;    /* 水平/垂直居中 */
  text-align: center;     /* 行内元素兜底 */
  align-self: center;     /* 作为 flex item 的横向居中 */
  width: 100%;
}

/* 移动端放宽头图上限为 480x300，正文仍保持 400x250 */
@media (max-width: 768px) {
  .single .special-header .special-thumbnail img {
    max-width: 480px;
    max-height: 300px;
    margin-left: auto;
    margin-right: auto;
  }
  .single .single-article .entry-content img { /* 保持正文限制 */
    max-width: 400px;
    max-height: 250px;
  }
}
