/* Blog mobile media: keep editorial illustrations fully visible and within the viewport. */
.blog-details-page .blog-details,
.blog-details-page .blog-details .row > *,
.blog-details-page .blog-details .article,
.blog-details-page .blog-article-body { min-width: 0; max-width: 100%; }

.blog-details-page .blog-details .hero-img {
  width: 100%;
  height: auto;
  max-width: 100%;
  margin-top: 0;
  overflow: hidden;
  background: #f6f9fb;
}

.blog-details-page .blog-details .hero-img img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: contain;
}

.blog-details-page .blog-article-body > *,
.blog-details-page .blog-article-body :is(div, section, figure, picture, p) {
  box-sizing: border-box;
  max-width: 100% !important;
  min-width: 0;
}

.blog-details-page .blog-article-body :is(img, svg, video, canvas) {
  display: block;
  max-width: 100% !important;
  height: auto !important;
}

.blog-details-page .blog-article-body iframe {
  max-width: 100% !important;
}

.blog-details-page .blog-article-body :is(pre, table) {
  display: block;
  max-width: 100%;
  overflow-x: auto;
}

.blog-details-page .blog-article-body {
  overflow-wrap: break-word;
}

.blog-posts .post-img,
.recent-blog-posts .post-item .post-img {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #f4f8fb;
}

.blog-posts .post-img { max-height: none; }

.blog-posts .post-img img,
.recent-blog-posts .post-item .post-img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@media (max-width: 768px) {
  .blog-details-page .blog-details .hero-img {
    height: auto;
    margin-top: 0;
    margin-bottom: 1.75rem;
  }
  .blog-details-page .blog-details .article-content {
    padding-inline: 0;
  }
}
