/* Makes Elementor's wrappers behave like the original static markup.
   Elementor's own CSS is loaded inside @layer elementor (see functions.php),
   so every rule here and in site.css wins over it regardless of specificity. */

/* Containers act like plain block elements; site.css classes set layout. */
:where(.e-con) { display: block; padding: 0; margin: 0; width: auto; height: auto; min-height: 0; max-width: none;
  min-width: auto; position: static; overflow: visible; border-radius: 0; z-index: auto; text-align: inherit; gap: normal;
  flex-direction: row; flex-wrap: nowrap; align-content: normal; align-items: normal; justify-content: normal;
  flex: 0 1 auto; align-self: auto; }
:where(.elementor) { display: contents; }

/* Widgets without their own class: wrapper disappears from layout. */
:where(.elementor-widget) { position: static; margin: 0; min-width: auto; width: auto; height: auto; max-width: none;
  flex: 0 1 auto; align-self: auto; flex-direction: row; flex-wrap: nowrap; align-items: normal; justify-content: normal; gap: normal; }
.elementor-widget.w-c { display: contents; }

/* Heading widget: the wrapper carries the class, the h-tag just inherits. */
:where(.elementor-heading-title) { font: inherit; color: inherit; letter-spacing: inherit; line-height: inherit;
  text-transform: inherit; text-align: inherit; margin: 0; padding: 0; }

/* Image widget with its own class: wrapper is the box, image fills it. */
:where(.elementor-widget-image.img-box) { display: block; }
:where(.elementor-widget-image.img-box) > img { display: block; width: 100%; height: 100%; object-fit: cover; }
:where(.elementor-widget-image) img { max-width: none; }
.elementor-widget-image.w-c > img { max-width: 100%; }

/* Structure-dependent rules from site.css, restated for widget wrappers. */
.story > .elementor-widget-image > img, .cta > .elementor-widget-image > img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; z-index: -1; }
.story > .elementor-widget-image > img { z-index: -2; }
.areas > .elementor-widget > p { color: #b9b3a6; font-size: 15px; }

/* Elementor editor: keep the reveal-on-scroll content visible while editing. */
.elementor-editor-active .reveal { opacity: 1 !important; transform: none !important; }
