/* Automatically styled YouTube embeds in blog posts; other providers stay separate. */
body.single-post .wp-block-post-content .mtf-youtube-card {
  display: block;
  width: 100%;
  max-width: 860px;
  margin: 32px auto;
  box-sizing: border-box;
  padding: 16px;
  background: #f7f8f6;
  border-radius: 12px;
  box-shadow: 0 6px 22px rgba(17, 24, 28, 0.07);
}
body.single-post .wp-block-post-content .mtf-youtube-player {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 8px;
  background: #111;
}
body.single-post .wp-block-post-content .mtf-youtube-player iframe {
  display: block;
  position: static;
  inset: auto;
  width: 100%;
  max-width: 100%;
  height: 100%;
  border: 0;
}
body.single-post .wp-block-post-content .mtf-youtube-caption {
  display: block;
  margin-top: 10px;
  color: #555;
  font: 400 15px/1.5 Tahoma, sans-serif;
  text-align: center;
}
/* Core Embed's old spacer would add a second 16:9 area above the wrapped player. */
body.single-post .wp-block-post-content .wp-block-embed__wrapper:has(> .mtf-youtube-card)::before {
  display: none;
}
body.single-post .wp-block-post-content .wp-block-embed__wrapper:has(> .mtf-youtube-card) {
  padding: 0;
  height: auto;
  aspect-ratio: auto;
}
