/* ============================================================
   ELEMENTOR-COMPAT.CSS — fixes for Elementor / Hello Elementor.
   Only touches containers and elements that hold GM widgets, so
   sections built with normal Elementor widgets are not affected.
   ============================================================ */

/* ------------------------------------------------------------
   Elementor Container adds 20px gap + 10px padding + boxed width,
   and "Wrap" (auto on mobile) stretches widget boxes. A container
   that holds GM widgets gets no spacing of its own — the widget
   brings the design's spacing.
   ------------------------------------------------------------ */
.elementor .e-con.e-con:has(> [class*="elementor-widget-gm-"]),
.elementor .e-con.e-con:has(> .e-con-inner > [class*="elementor-widget-gm-"]) {
  --gap: 0px 0px !important;
  --row-gap: 0px !important;
  --column-gap: 0px !important;
  --padding-top: 0px !important;
  --padding-right: 0px !important;
  --padding-bottom: 0px !important;
  --padding-left: 0px !important;
  --content-width: 100% !important;
  --container-max-width: 100% !important;
  --flex-wrap: nowrap !important;
  --flex-wrap-mobile: nowrap !important;
  flex-wrap: nowrap !important;
  --display: block !important;
  display: block !important;
}

.elementor .e-con:has(> [class*="elementor-widget-gm-"]) > .e-con-inner {
  max-width: 100% !important;
  padding: 0 !important;
  gap: 0 !important;
  display: block !important;
}

/* GM widgets always take the full width of their container. */
.elementor [class*="elementor-widget-gm-"] {
  width: 100%;
  max-width: 100%;
}

/* ------------------------------------------------------------
   Elementor's `.elementor img { height:auto; max-width:100%; … }`
   and link resets. GM images size themselves in widgets.css.
   ------------------------------------------------------------ */
.elementor [class*="elementor-widget-gm-"] img {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

/* ------------------------------------------------------------
   Editor only: nothing that waits for an animation may stay hidden.
   ------------------------------------------------------------ */
.elementor-editor-active [data-gm-reveal] {
  opacity: 1 !important;
  transform: none !important;
}
