/* Keep the featured blog image at the intended desktop card height. */
.blog-top-area .blog-top-boxarea .images img {
  display: block;
  width: 100%;
  height: 340px;
  object-fit: cover;
  border-radius: 20px;
  filter: brightness(2.2);
}

/* Improve visibility of uploaded article photos, which are stored very dark. */
.blog-auhtor-section-area img[src*="admin/uploads/"],
.blog-auhtor-section-area img[src*="assets/img/blog/"],
.blog-auhtor-section-area img[src*="assets/img/all-images/blog"] {
  filter: brightness(2.2);
}

/* The listing uses .blog-author-boxarea cards, not .blog-top-boxarea. */
.blog-author-boxarea .img1 > a > img {
  filter: brightness(2.2);
}

.blog-author-boxarea .img1::after {
  background: transparent;
}

@media (max-width: 767.98px) {
  .blog-top-area .blog-top-boxarea .images img {
    height: clamp(220px, 65vw, 300px);
  }
}

/* The shared mobile header is fixed. Keep the first blog content below it. */
@media (max-width: 575.98px) {
  .blog-top-area,
  .blog-auhtor-section-area,
  .blog1-scetion-area.sp1 {
    padding-top: 92px !important;
  }
  /* Category/search/paged listings have no featured post, so the listing is the first section;
     when the featured post is shown, the listing below it keeps its normal spacing. */
  .blog-top-area ~ .blog1-scetion-area.sp1 {
    padding-top: 30px !important;
  }
}

/* Blog post title is rendered as <h1> when the post body has none; keep it styled like the old <h2>. */
.blog-auhtor-sidebar-area.heading2 > h1 {
  font-family: var(--ztc-family-font1);
  font-size: var(--ztc-font-size-font-s44);
  line-height: var(--ztc-font-size-font-s52);
  font-weight: var(--ztc-weight-semibold);
  color: var(--ztc-text-text-2);
  margin-bottom: 16px;
}
@media (max-width: 991px) {
  .blog-auhtor-sidebar-area.heading2 > h1 { font-size: 26px !important; line-height: 1.3 !important; }
}
@media (max-width: 575px) {
  .blog-auhtor-sidebar-area.heading2 > h1 { font-size: 20px !important; line-height: 1.35 !important; }
}
