/* VR Summit theme: glue between WordPress blocks and the Elementor layout CSS in base.css.
   Converted content keeps Elementor's DOM (one block per Elementor wrapper, same class names); these rules only
   undo what WordPress's own block styles add on top of it. Zero specificity (:where) wherever possible. */

/* Elementor centres top-level containers narrower than 100% via :is(.elementor-section-wrap,[data-elementor-id])>.e-con.
   The converted document wrapper is a block with the class "elementor" (blocks can't carry data-elementor-id), so the
   same rule, same specificity, on that class. */
.elementor > .e-con { --margin-inline-end: auto; --margin-inline-start: auto; max-width: min(100%, var(--width)); }

/* Block wrappers inside converted content add no spacing of their own. */
:where(.elementor) :where(figure.wp-block-image) { margin: 0; }
:where(.elementor) :where(.wp-block-image img) { vertical-align: middle; }
:where(.elementor) :where(.wp-block-buttons.elementor-button-wrapper) { display: block; }
:where(.elementor) :where(.wp-block-html) { display: contents; }
.wp-block-post-content > .elementor { margin: 0; }

/* Sticky header (Elementor Pro "sticky: top"): the template-part wrapper sticks, so the header stays in flow. */
.vrs-site-header:has(.vrs-sticky) { position: sticky; top: 0; z-index: 99; }
.admin-bar .vrs-site-header:has(.vrs-sticky) { top: 32px; }
@media (max-width: 782px) { .admin-bar .vrs-site-header:has(.vrs-sticky) { top: 46px; } }

/* Entrance animations: hidden until site.js reveals them (as Elementor did). */
.vrs-anim.elementor-invisible { visibility: hidden; }
