/* External previews use fixed slots. Article images have their own rules. */
.news-list-image,
.news-featured-image,
.news-rec-item > .news-rec-media {
  position: relative;
  display: block;
  overflow: hidden;
  background: #f0f4f4;
  border-radius: 10px;
  align-self: flex-start;
  min-height: 0;
}
.news-list-image {
  width: 192px;
  height: 108px;
  flex: 0 0 192px;
}
.news-featured-image {
  width: 320px;
  height: 180px;
  flex: 0 0 320px;
  align-self: center;
}
.news-rec-item > .news-rec-media {
  width: 64px;
  height: 64px;
  flex: 0 0 64px;
  border-radius: 8px;
  align-self: center;
}
.news-list-image img,
.news-featured-image img,
.news-rec-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.news-list-image img.news-image-contain,
.news-featured-image img.news-image-contain,
.news-rec-media img.news-image-contain { object-fit: contain; }
.news-list-image img.news-image-small,
.news-featured-image img.news-image-small,
.news-rec-media img.news-image-small { object-fit: scale-down; }
.news-article-cover { margin: 28px 0 32px; }
.news-article-cover img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 520px;
  margin: 0 auto;
  border-radius: 10px;
  object-fit: contain;
  background: #f4f6f7;
}
.news-article-cover img.news-article-small { width: auto; }
.news-article-cover img.news-article-tall { max-height: none; }
.news-image-failed img { display: none; }
.news-image-failed::after {
  content: "图片暂不可用";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 8px;
  color: #596974;
  font-size: 12px;
  text-align: center;
}
.news-article-cover.news-image-failed {
  position: relative;
  min-height: 120px;
  background: #f0f4f4;
  border-radius: 10px;
}
@media (min-width: 821px) and (max-width: 1190px) {
  .news-featured-image { width: 100%; height: auto; aspect-ratio: 16 / 9; flex: 0 0 auto; }
  .news-list-image { width: 160px; height: 90px; flex-basis: 160px; }
}
@media (min-width: 821px) and (max-width: 980px) {
  .news-list-image { width: 128px; height: 72px; flex-basis: 128px; }
}
@media (min-width: 761px) and (max-width: 820px) {
  .news-featured-image { width: 280px; height: 157.5px; flex-basis: 280px; }
}
@media (min-width: 481px) and (max-width: 760px) {
  .news-list-image { width: 160px; height: 90px; flex-basis: 160px; }
}
@media (max-width: 760px) {
  .news-featured-image { width: 100%; height: auto; aspect-ratio: 16 / 9; flex: 0 0 auto; align-self: stretch; }
  .news-article-cover { margin: 24px 0; }
}
@media (max-width: 480px) {
  .news-list-image { width: 100%; height: auto; aspect-ratio: 16 / 9; flex: 0 0 auto; }
}
.news-article-cover>a{display:block;max-width:100%;cursor:zoom-in}.news-article-cover>figcaption{margin-top:10px;text-align:center;color:#596974;font-size:12px}.news-article-cover.news-image-failed>a,.news-article-cover.news-image-failed>figcaption{display:none}
.news-results.is-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:28px}.news-results.is-grid .news-list-item{display:flex;flex-direction:column;min-width:0}.news-results.is-grid .news-list-image{width:100%;height:auto;aspect-ratio:16/9;flex:0 0 auto}.news-archive-cover{display:block;width:100%;max-height:300px;object-fit:cover;border-radius:12px;margin:0 0 28px}@media(max-width:600px){.news-results.is-grid{grid-template-columns:minmax(0,1fr)}}

.news-article .article-image-previewable{cursor:zoom-in}.news-article .article-image-previewable:focus-visible{outline:2px solid var(--news-accent,#087761);outline-offset:4px}
