/**
 * Glacial Blocks — Perlmutter. Loads after the theme chain on the front end and inside the editor canvas.
 * The pe-* design blocks print the export's own markup, so webflow.css styles them; this file only holds
 * what blocks add (server-rendered previews) and the canvas fixes the editor needs.
 */

/* ---------- Editor only: the design element IS the block wrapper, so undo the editor's per-block defaults ---------- */
.editor-styles-wrapper [data-type^="glacial/pe-"],
.editor-styles-wrapper [data-type^="glacial/pe-"] .wp-block { max-width: none; } /* admin glacial-editor-style caps .wp-block at 1200px */
.editor-styles-wrapper .is-root-container > [data-type="glacial/pe-section"],
.editor-styles-wrapper .is-root-container > [data-type="glacial/pe-page-header"] { margin: 0; }
.editor-styles-wrapper .is-root-container { padding: 0 !important; }

/* the editor gives every block position:relative — restore the design's positioned layers */
.editor-styles-wrapper .block-editor-block-list__block:is(.perlmutter-image, .service-overlay, .background-video-4, .hero-overlay, .after-txt-div-2, .before-text-div-2, .cataract-img-txt) { position: absolute; }
.editor-styles-wrapper .block-editor-block-list__block.sticky-column { position: sticky; }

/* IX start states (opacity 0 until scrolled) and IX3 reveals: show everything while editing */
.editor-styles-wrapper [data-w-id],
.editor-styles-wrapper :is(.h2-ani, .cta-block .sp, .cta-block, .sticky-column.space .promise, .special-text, .eyebrow-block .eyebrow) { opacity: 1 !important; visibility: visible !important; transform: none !important; }

/* tabs: clickable menu; sliders: slides side by side, all visible */
.editor-styles-wrapper .pe-tabs-menu .w-tab-link { cursor: pointer; }
.editor-styles-wrapper .pe-slider-editor { height: auto; }
.editor-styles-wrapper .pe-slider-editor > .block-editor-inner-blocks > .block-editor-block-list__layout { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(280px, 1fr); gap: 20px; }
.editor-styles-wrapper .pe-slide-editor { white-space: normal; display: block; width: auto; height: auto; }
.editor-styles-wrapper .pe-ssr--doctors .w-slider { height: auto; }

/* wp-admin common.css leaks `.wrap > h2:first-child { font-size: 23px }` into the canvas; the design also uses .wrap */
.editor-styles-wrapper .wrap > h2:first-child { font-size: 3em; }

/* link boxes are drawn as divs in the canvas (no nested links) */
.editor-styles-wrapper [data-type="glacial/pe-link"] { cursor: default; }
