/* ─── Shared (editor + public) ──────────────────────────────────────── */

.lexxy-content action-text-attachment:has(.embed) {
  display: block;
}

.lexxy-content .embed {
  text-align: start;
}

.lexxy-content .embed iframe {
  display: block;
  inline-size: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 6px;
  overflow: hidden;
  background: var(--color-black);
}

/* ─── Editor only ───────────────────────────────────────────────────── */

lexxy-editor .embed iframe {
  pointer-events: none;
}

lexxy-editor action-text-attachment:has(.embed) {
  border-radius: var(--lexxy-radius);
}

lexxy-editor .embed {
  padding: 0.75ch;
}
