/* Gallery frame for article pictures. Applies to all single posts and pages, now and in future. Scoped to single-post/page views only, so the logo, avatars, social icons, sidebar, related/trending lists and homepage/archive thumbnails are not framed. */
.single-post figure.wp-block-image,
.single-post .entry-content figure,
.single .entry-content figure,
body.page figure.wp-block-image,
body.page .entry-content figure,
.single-post figure.wp-block-post-featured-image,
.single-post .wp-block-post-featured-image,
.single-post .post-thumbnail,
.single-post .featured-image {
  background: #ffffff;
  border: 1px solid #1a1a1a;
  padding: 8px;
  box-sizing: border-box;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}
.single-post figure.wp-block-image img,
.single-post .entry-content figure img,
.single-post figure.wp-block-post-featured-image img,
.single-post .wp-block-post-featured-image img,
.single-post .post-thumbnail img,
.single-post .featured-image img,
body.page figure.wp-block-image img,
body.page .entry-content figure img {
  display: block;
  max-width: 100%;
  height: auto;
  border: 0;
  padding: 0;
  margin: 0 auto;
}
.single-post figure.wp-block-image figcaption,
.single-post .entry-content figure figcaption,
body.page figure.wp-block-image figcaption,
body.page .entry-content figure figcaption {
  background: #ffffff;
  padding: 8px 2px 0;
  box-sizing: border-box;
}
.single-post .entry-content img,
.single .entry-content img,
body.page .entry-content img {
  max-width: 100%;
  height: auto;
  box-sizing: border-box;
}
.single-post .entry-content > p > img,
.single-post .entry-content > img,
body.page .entry-content > p > img,
body.page .entry-content > img {
  background: #ffffff;
  border: 1px solid #1a1a1a;
  padding: 8px;
  display: block;
}
.single-post img.wp-post-image {
  background: #ffffff;
  border: 1px solid #1a1a1a;
  padding: 8px;
  box-sizing: border-box;
  display: block;
  max-width: 100%;
  height: auto;
}
.single-post .wp-block-query figure.wp-block-post-featured-image,
.single-post .wp-block-query .wp-block-post-featured-image,
.single-post .wp-block-query img.wp-post-image,
.single-post .wp-block-query .post-thumbnail,
.single-post .wp-block-latest-posts figure.wp-block-post-featured-image,
.single-post .wp-block-latest-posts img.wp-post-image,
.single-post aside figure.wp-block-post-featured-image,
.single-post aside img.wp-post-image,
.single-post [class*="recent"] figure.wp-block-post-featured-image,
.single-post [class*="recent"] img.wp-post-image,
.single-post [class*="trending"] figure.wp-block-post-featured-image,
.single-post [class*="trending"] img.wp-post-image,
.single-post [class*="related"] figure.wp-block-post-featured-image,
.single-post [class*="related"] img.wp-post-image {
  border: 0 !important;
  padding: 0 !important;
  background: none !important;
}

/* Homepage-only black frame for post pictures (FEATURED hero, LATEST and TRENDING thumbnails). Scoped to .home / .front-page only, so it does not leak onto single posts, category archives, or the /video/ page. No white mat: solid black border only. box-sizing + max-width keep images responsive without shifting the layout. */
body.home main img,
body.front-page main img,
body.home main .wp-block-post-featured-image img,
body.front-page main .wp-block-post-featured-image img {
  border: 4px solid #000000;
  padding: 0;
  background: none;
  box-sizing: border-box;
  max-width: 100%;
}