.xtown-embed,
figure.xtown-embed,
.foundry-mixin-embed,
figure.foundry-mixin-embed {
  margin: 1em 0;
  max-width: 100%;
}

iframe.foundry-embed {
  display: block;
  width: 100%;
  min-width: 100% !important;
  max-width: 100%;
  border: 0;
  background: transparent;
}

/* A live number is not a 16:9 video. Gutenberg's embed wrapper pads that way. */
.xtown-embed.wp-block-embed,
.foundry-mixin-embed.wp-block-embed,
.wp-block-embed:has(iframe.foundry-embed),
.wp-block-embed:has(figure.xtown-embed) {
  aspect-ratio: unset;
}

.xtown-embed .wp-block-embed__wrapper,
.foundry-mixin-embed .wp-block-embed__wrapper,
.wp-block-embed:has(iframe.foundry-embed) .wp-block-embed__wrapper,
.wp-block-embed:has(figure.xtown-embed) .wp-block-embed__wrapper {
  padding-top: 0 !important;
  aspect-ratio: unset;
}

.wp-block-embed:has(iframe.foundry-embed) .wp-block-embed__wrapper::before,
.wp-block-embed:has(figure.xtown-embed) .wp-block-embed__wrapper::before {
  display: none !important;
  padding: 0 !important;
  content: none !important;
}

iframe.foundry-embed[data-foundry-display="text"] {
  display: inline-block;
  width: auto !important;
  min-width: 0 !important;
  max-width: 100%;
}

figure.xtown-embed[data-foundry-display="text"],
figure.foundry-mixin-embed[data-foundry-display="text"] {
  display: block;
  width: auto;
  margin: 0.35em 0;
}

.wp-block-embed-xtown-embed iframe.foundry-embed,
.wp-block-xtown-embed iframe.foundry-embed,
.wp-block-embed-foundry-mixin iframe.foundry-embed,
.wp-block-foundry-mixin-embed iframe.foundry-embed {
  width: 100%;
  min-width: 100% !important;
}

.wp-block-embed-xtown-embed iframe.foundry-embed[data-foundry-display="text"],
.wp-block-xtown-embed iframe.foundry-embed[data-foundry-display="text"],
.wp-block-embed-foundry-mixin iframe.foundry-embed[data-foundry-display="text"],
.wp-block-foundry-mixin-embed iframe.foundry-embed[data-foundry-display="text"] {
  width: auto !important;
  min-width: 0 !important;
}

/* Live sentence value — inherit the post’s type. */
.xtown-live-text {
  font: inherit;
  color: inherit;
  letter-spacing: inherit;
}

.xtown-live-text--unavailable {
  opacity: 0.55;
}
