/**
 * Admin block preview – plain CSS
 *
 * Loaded inside the Gutenberg iframe canvas (WP 6.0+ iframe editor).
 * All theme/block styles are loaded via @import layer(theme-preview) in class-block.php,
 * so they cannot override Gutenberg's unlayered editor styles.
 *
 * This file is intentionally unlayered and only touches things that are
 * genuinely needed for the preview layout to look correct.
 */

/* Editor layout: constrain block widths inside the canvas */
html .wp-admin :where(.wp-block) {
    width: calc(100% - 2rem);
    max-width: 90rem;
}

/* Keep the canvas body from inheriting unexpected max-width constraints */
body.wp-admin {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
}

html .wp-admin #wpadminbar {
    top: 0 !important;
    bottom: unset !important;
}
