diff --git a/src/app/components/url-preview/UrlPreview.css.tsx b/src/app/components/url-preview/UrlPreview.css.tsx index 9f39cc82b..480a4eb96 100644 --- a/src/app/components/url-preview/UrlPreview.css.tsx +++ b/src/app/components/url-preview/UrlPreview.css.tsx @@ -197,6 +197,80 @@ export const MediaPlayButton = style([ }, ]); +// --------------------------------------------------------------------------- +// Inline video embed (YouTube / Vimeo) — media-forward click-to-play facade +// --------------------------------------------------------------------------- + +export const EmbedMediaLandscape = style([ + DefaultReset, + { + position: 'relative', + width: '100%', + aspectRatio: '16 / 9', + overflow: 'hidden', + backgroundColor: color.Surface.Container, + }, +]); + +export const EmbedMediaPortrait = style([ + DefaultReset, + { + position: 'relative', + width: toRem(220), + maxWidth: '100%', + aspectRatio: '9 / 16', + margin: '0 auto', + overflow: 'hidden', + backgroundColor: color.Surface.Container, + }, +]); + +// Fills the aspect box; used for both the