/*
Theme Name: Pécs Blog Child
Theme URI: https://pecsblog.hu/
Description: Hello Elementor child theme for Pécs Blog — Elementor Pro based portal layout. Part of Országos Média Hálózat (22-block design system).
Author: Országos Média Hálózat
Author URI: https://orszagosmedia.hu/
Template: hello-elementor
Version: 1.0.0
Text Domain: pecsblog-child
Tested up to: 6.7
Requires PHP: 8.3
*/

/* Pixel-perfect Elementor wrapper neutralization via display:contents.
   Makes the .elementor-element/.elementor-widget/.elementor-widget-container
   wrapper divs transparent to layout, so the HTML inside renders identically
   to the original orszagosmedia <header>/<section>/<div> tree. */
.om-block,
.om-block > .e-con-inner,
.om-block > .elementor-element,
.om-block > .elementor-element > .elementor-widget-container,
.om-block .elementor-element.elementor-widget-html,
.om-block .elementor-element.elementor-widget-html > .elementor-widget-container {
  display: contents !important;
}

/* Fallback for environments that don't support display:contents on flex/grid (older browsers) */
@supports not (display: contents) {
  .om-block,
  .om-block > .elementor-element,
  .om-block .elementor-widget-html,
  .om-block .elementor-widget-container {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    flex: 1 1 100% !important;
    border: 0 !important;
  }
}

/* Front page wrapper (Címlap #56): strip Hello Elementor default constraints */
body.page-id-56 .site-main,
body.page-id-56 main {
  padding: 0 !important;
  margin: 0 !important;
  max-width: 100% !important;
}
body.page-id-56 .om-block.e-con,
body.page-id-56 .om-block.elementor-section {
  --width: 100%;
  --max-width: 100%;
  --content-width: 100%;
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}
