.wp-block-embed,
.wp-block-embed__wrapper,
.wp-video,
.wp-audio,
.wp-embedded-content,
.ll-autoembed {
    max-width: 100%;
}

.wp-block-embed,
.wp-video,
.wp-audio,
.ll-autoembed {
    margin-left: auto;
    margin-right: auto;
}

.wp-block-embed iframe,
.wp-block-embed embed,
.wp-block-embed object,
.wp-block-embed__wrapper iframe,
.wp-block-embed__wrapper embed,
.wp-block-embed__wrapper object,
.entry-content iframe,
.entry-content embed,
.entry-content object,
.post-content iframe,
.post-content embed,
.post-content object,
.single-post iframe,
.single-post embed,
.single-post object,
.single iframe,
.single embed,
.single object,
p > iframe,
p > embed,
p > object,
.wp-embedded-content,
.ll-autoembed iframe,
.ll-autoembed embed,
.ll-autoembed object,
iframe[src*="youtube.com"],
iframe[src*="youtu.be"],
iframe[src*="vimeo.com"] {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.wp-block-embed.is-type-video iframe,
.wp-block-embed iframe[src*="youtube.com"],
.wp-block-embed iframe[src*="youtu.be"],
.wp-block-embed iframe[src*="vimeo.com"],
.entry-content iframe[src*="youtube.com"],
.entry-content iframe[src*="youtu.be"],
.entry-content iframe[src*="youtube-nocookie.com"],
.entry-content iframe[src*="vimeo.com"],
.post-content iframe[src*="youtube.com"],
.post-content iframe[src*="youtu.be"],
.post-content iframe[src*="youtube-nocookie.com"],
.post-content iframe[src*="vimeo.com"],
.single-post iframe[src*="youtube.com"],
.single-post iframe[src*="youtu.be"],
.single-post iframe[src*="youtube-nocookie.com"],
.single-post iframe[src*="vimeo.com"],
.single iframe[src*="youtube.com"],
.single iframe[src*="youtu.be"],
.single iframe[src*="youtube-nocookie.com"],
.single iframe[src*="vimeo.com"],
p > iframe[src*="youtube.com"],
p > iframe[src*="youtu.be"],
p > iframe[src*="youtube-nocookie.com"],
p > iframe[src*="vimeo.com"],
.wp-embedded-content,
.ll-autoembed iframe,
iframe[src*="youtube.com"],
iframe[src*="youtu.be"],
iframe[src*="youtube-nocookie.com"],
iframe[src*="vimeo.com"] {
    aspect-ratio: 16 / 9;
    height: auto !important;
    min-height: 0 !important;
}

.wp-block-embed iframe,
.wp-embedded-content,
.ll-autoembed iframe,
iframe[src*="youtube.com"],
iframe[src*="youtu.be"],
iframe[src*="youtube-nocookie.com"],
iframe[src*="vimeo.com"] {
    border: 0;
}

p:has(> iframe[src*="youtube.com"]),
p:has(> iframe[src*="youtu.be"]),
p:has(> iframe[src*="youtube-nocookie.com"]),
p:has(> iframe[src*="vimeo.com"]) {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}
