/* Retain native embed markup, caption and theme styling. Scope all layout changes. */
.wp-block-embed.is-provider-youtube.is-style-zgys-portrait {
 width: 100%;
 max-width: 360px;
 margin-left: auto;
 margin-right: auto;
}

.wp-block-embed.is-provider-youtube.is-style-zgys-portrait .wp-block-embed__wrapper {
 position: relative;
 aspect-ratio: 9 / 16;
 height: auto;
 padding: 0;
}

/* Override core's landscape spacer, including wp-embed-aspect-16-9. */
.wp-block-embed.is-provider-youtube.is-style-zgys-portrait .wp-block-embed__wrapper::before {
 content: none;
 display: none;
 padding: 0;
}

.wp-block-embed.is-provider-youtube.is-style-zgys-portrait iframe {
 position: absolute;
 inset: 0;
 display: block;
 width: 100%;
 height: 100%;
 max-width: none;
 max-height: none;
 aspect-ratio: 9 / 16;
}

/* The native editor preview uses a sandbox iframe around the player. */
.wp-block-embed.is-provider-youtube.is-style-zgys-portrait .components-sandbox {
 position: absolute;
 inset: 0;
 width: 100%;
 height: 100%;
}

/* Keep the native URL form usable when the theme hides placeholder children. */
.editor-styles-wrapper .is-style-zgys-portrait .components-placeholder form > .wp-block-embed__placeholder-input {
 display: block !important;
}
.editor-styles-wrapper .is-style-zgys-portrait .components-placeholder form > button[type="submit"] {
 display: inline-flex !important;
}
