From 83644964bbdba89b00065d5c07584b9b01a0f9d0 Mon Sep 17 00:00:00 2001 From: Ross Trottier Date: Tue, 17 Sep 2024 10:12:31 -0600 Subject: [PATCH] aspect ratio sizing for iframe YT vids --- style.css | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/style.css b/style.css index 2302e0b..68c34b0 100644 --- a/style.css +++ b/style.css @@ -1174,20 +1174,9 @@ COMPONENTS } .wp-block-embed.is-type-video iframe { + height: auto; width: 100%; - height: 231px; -} - -@media (min-width: 760px) { - .wp-block-embed.is-type-video iframe { - height: 360px; - } -} - -@media (min-width: 1200px) { - .wp-block-embed.is-type-video iframe { - height: 562px; - } + aspect-ratio: 16 / 9; } .st-article-section-related-articles {