/* PZF 0.7.7 - one horizontal baseline under cover, and narrower X embeds.
 * Strictly article-scoped: approved header/navigation/footer are unchanged.
 */
@media (min-width: 992px) {
  /* Both rules are drawn on the same CSS-grid row, immediately below the
     image, so different heights of the right rail cannot desynchronize them. */
  .pzf-article .pzf-article__after-photo-rule {
    display: none !important;
  }
  .pzf-article .pzf-article__body-grid {
    margin-top: 22px;
  }
  .pzf-article .pzf-article__body-grid > .pzf-article__main-column {
    border-top: 1px solid var(--pzf-a-rule);
    padding-top: 24px;
  }
  .pzf-article .pzf-article__body-grid > .pzf-article__sidebar {
    border-top: 1px solid var(--pzf-a-rule);
    padding-top: 20px;
  }
  /* The rail owns its top separator now; no second rule inside it. */
  .pzf-article .pzf-article__sidebar-related {
    border-top: 0 !important;
    padding-top: 0 !important;
    margin-top: 0 !important;
  }
}

/* X/Twitter embeds: center in the reading column; do not scale their height
 * or crop the embedded timeline/video controls. Overrides widget inline widths
 * where needed, without touching YouTube and other iframes. */
.pzf-article .pzf-article__content :is(
  blockquote.twitter-tweet,
  .twitter-tweet-rendered,
  twitter-widget,
  .wp-block-embed-twitter,
  .wp-block-embed-x
) {
  width: min(100%, 460px) !important;
  max-width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
.pzf-article .pzf-article__content :is(
  iframe.twitter-tweet-rendered,
  iframe[src*="platform.twitter.com/embed/"],
  iframe[src*="platform.x.com/embed/"]
) {
  display: block;
  width: min(100%, 460px) !important;
  max-width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
.pzf-article .pzf-article__content :is(.wp-block-embed-twitter,.wp-block-embed-x) .wp-block-embed__wrapper {
  max-width: 100%;
}
@media (max-width: 600px) {
  .pzf-article .pzf-article__content :is(
    blockquote.twitter-tweet,
    .twitter-tweet-rendered,
    twitter-widget,
    .wp-block-embed-twitter,
    .wp-block-embed-x,
    iframe.twitter-tweet-rendered
  ) {
    width: 100% !important;
    max-width: 100% !important;
  }
}
