diff --git a/core-blocks/image/style.scss b/core-blocks/image/style.scss index 9797196434499d..97a4961a1e80fd 100644 --- a/core-blocks/image/style.scss +++ b/core-blocks/image/style.scss @@ -1,5 +1,10 @@ .wp-block-image { width: fit-content; + max-width: 100%; + + img { + max-width: 100%; + } &.aligncenter { display: block; diff --git a/core-blocks/video/style.scss b/core-blocks/video/style.scss index 1fbdf19720705a..24e8278cc4a7b5 100644 --- a/core-blocks/video/style.scss +++ b/core-blocks/video/style.scss @@ -1,4 +1,8 @@ .wp-block-video { + video { + max-width: 100%; + } + &.aligncenter { text-align: center; }