/* Native block wrappers for the existing Zhongjia content layouts. */
.zhongjia-native:not(.home) .zhongjia-main:not(.zhongjia-listing) {
  padding-block: 0 var(--zj-content-padding, 40px);
}

.zhongjia-native:not(.home) .zhongjia-content {
  display: flow-root;
  padding-block-start: var(--zj-content-padding, 40px);
}

.zhongjia-native:not(.home) .zhongjia-content > .fusion-fullwidth:not(.alignfull) {
  box-sizing: border-box;
  width: min(var(--zhongjia-shell-width), calc(100% - 2 * var(--zhongjia-shell-gutter)));
  margin-inline: auto;
}

.zhongjia-native.single-post :is(.zhongjia-content > .fusion-fullwidth:not(.alignfull), .zhongjia-native-news-heading),
.zhongjia-native .zhongjia-content:has(.zj-avada-article-heading) > .fusion-fullwidth:not(.alignfull) {
  max-width: var(--zhongjia-article-width);
}

.zhongjia-native .zhongjia-native-news-heading {
  padding-block-start: var(--zj-content-padding, 40px);
  text-align: center;
}

.zhongjia-native .zhongjia-native-news-heading h1 {
  margin: 0;
  color: #111;
  font: 700 var(--zj-article-title, 22px)/1.4 var(--zj-interior-font);
  letter-spacing: 2px;
}

.zhongjia-native .zhongjia-product-cover-fallback {
  margin-block: clamp(24px, 4vw, 60px) 24px;
}

.zhongjia-native .zhongjia-product-cover-fallback img {
  display: block;
  width: min(100%, 680px);
  height: auto;
  margin: 20px auto 0;
}

.zhongjia-native .zhongjia-native-news-heading + .zhongjia-content {
  padding-block-start: 0;
}

.zhongjia-native .post-content :where(.fusion-builder-row) {
  gap: 0;
  margin-block: 0;
}

.zhongjia-native .post-content :where(.fusion-layout-column, .fusion-column-wrapper) {
  min-width: 0;
}

.zhongjia-native .post-content :where(.fusion-title > .wp-block-heading, figure.fusion-imageframe) {
  margin: 0;
}

.zhongjia-native .post-content :where(figure.fusion-imageframe img, .wp-block-video video) {
  display: block;
  max-width: 100%;
}

.zhongjia-native .post-content :where(.fusion-text p, .fusion-text li) {
  overflow-wrap: anywhere;
}

.zhongjia-native .post-content :where(a) {
  text-underline-offset: .18em;
}

.zhongjia-native .post-content :where(.fusion-title a, .fusion-text a, .wp-block-button__link) {
  text-decoration: none;
}

.zhongjia-native .post-content :where(.fusion-title a, .fusion-text a):is(:hover, :focus-visible) {
  text-decoration: underline;
}

.zhongjia-native .zj-company-video :where(video) {
  width: 100%;
}

.zhongjia-native .zhongjia-content > :is(.zj-company-title-row, .zj-company-anchor)[id] {
  scroll-margin-top: calc(var(--zhongjia-header-height) + 12px);
}

.zhongjia-native .zhongjia-content figure.wp-block-table {
  max-width: 100%;
  overflow-x: auto;
}

.zhongjia-native .zhongjia-content > .wp-block-columns:not(.alignfull),
.zhongjia-native .zhongjia-content > :is(.wp-block-paragraph, .wp-block-heading, .wp-block-list):not(.alignfull) {
  width: min(var(--wp--style--global--content-size, 1200px), calc(100% - 2 * var(--zhongjia-shell-gutter)));
  margin-inline: auto;
}

.zhongjia-native.single-post .zhongjia-content:not(:has(> .zj-avada-article-body)) > nav.zj-avada-article-navigation {
  width: min(var(--wp--style--global--content-size, 1200px), calc(100% - 2 * var(--zhongjia-shell-gutter)));
  max-width: none;
}

.zhongjia-native nav.zj-avada-article-navigation .fusion-text p {
  overflow-wrap: anywhere;
  text-align: start;
}

.zhongjia-native nav.zj-avada-article-navigation .fusion-text p:last-child {
  text-align: end;
}

@media (min-width: 761px) {
  .zhongjia-native.home .zhongjia-main .zj-avada-home-business > .fusion-builder-row {
    flex-wrap: wrap !important;
  }

  .zhongjia-native.home .zhongjia-main .zj-avada-home-business .zj-avada-home-business-card {
    flex: 0 0 var(--zj-card-width) !important;
  }
}
