diff --git a/blocks/library/embed/style.scss b/blocks/library/embed/style.scss index f238164fcded7e..d8df9b0849b366 100644 --- a/blocks/library/embed/style.scss +++ b/blocks/library/embed/style.scss @@ -17,18 +17,26 @@ } } - &.is-video > div:first-child { + &.is-video { position: relative; width: 100%; height: 0; padding-bottom: 56.25%; /* 16:9 */ + margin-bottom: 2em; } - &.is-video > div > iframe { + &.is-video > iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; } + + &.is-video > .blocks-editable { + position: absolute; + bottom: 0; + left: 0; + right: 0; + } }