/*
Theme Name: Emmer Child
Theme URI: https://emmerramenwasser.be
Description: Child theme of Twenty Twenty-Five for Emmer Ramenwasser branding.
Author: Emmer Ramenwasser
Template: twentytwentyfive
Version: 1.3.4
Text Domain: emmer-child
*/

:root{
  --wp--style--global--content-size: 1120px !important;
  --wp--style--global--wide-size: 1240px !important;
}

.wp-site-blocks > header.wp-block-template-part,
.wp-site-blocks > footer.wp-block-template-part{display:none!important}
.wp-site-blocks{padding-top:0}
.home .wp-block-post-title{display:none}

/* Force inner pages to a centred ~1120px column, full usable width */
body:not(.home) .wp-block-post-title,
body:not(.home) .entry-content,
body:not(.home) .wp-block-post-content,
body:not(.home) main.wp-block-group > .wp-block-post-title,
body:not(.home) main.wp-block-group > .wp-block-post-content{
  max-width:1120px!important;
  width:100%!important;
  margin-left:auto!important;
  margin-right:auto!important;
  padding-left:20px!important;
  padding-right:20px!important;
  box-sizing:border-box!important;
}

/* Defeat TT5 constrained child max-width on our blocks */
body:not(.home) .is-layout-constrained > .emmer-service-grid,
body:not(.home) .is-layout-constrained > .emmer-gallery,
body:not(.home) .is-layout-constrained > .emmer-story,
body:not(.home) .is-layout-constrained > .emmer-calc-wrap,
body:not(.home) .is-layout-constrained > .emmer-form,
body:not(.home) .is-layout-constrained > .emmer-note,
body:not(.home) .is-layout-constrained > p,
body:not(.home) .is-layout-constrained > h2,
body:not(.home) .entry-content > *,
body:not(.home) .wp-block-post-content > *{
  max-width:100%!important;
  width:100%!important;
  margin-left:0!important;
  margin-right:0!important;
}

/* Home hero full bleed */
.home .entry-content,
.home .wp-block-post-content{
  max-width:none!important;
  width:100%!important;
  padding-left:0!important;
  padding-right:0!important;
  margin:0!important;
}
.home .entry-content > .emmer-section,
.home .wp-block-post-content > .emmer-section{
  max-width:1120px!important;
  margin-left:auto!important;
  margin-right:auto!important;
  padding-left:20px!important;
  padding-right:20px!important;
  width:100%!important;
  box-sizing:border-box!important;
}

/* Alignwide/full never shrink */
body .alignwide,
body .alignfull,
body .wp-block-post-content.alignwide,
body .wp-block-post-content.alignfull,
body main.alignfull{
  max-width:none!important;
  width:100%!important;
  margin-left:0!important;
  margin-right:0!important;
}
body:not(.home) main.alignfull > .wp-block-post-title,
body:not(.home) main.alignfull > .wp-block-post-content{
  max-width:1120px!important;
  width:min(1120px,100%)!important;
  margin-left:auto!important;
  margin-right:auto!important;
  padding-left:20px!important;
  padding-right:20px!important;
  box-sizing:border-box!important;
}
body .wp-site-blocks{
  padding-left:0!important;
  padding-right:0!important;
}
/* Kill TT5 constrained max-width for page content descendants */
body.page .is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)),
body.page-template-default .is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)){
  max-width:1120px!important;
}
body.page .emmer-service-grid,
body.page .emmer-gallery,
body.page .emmer-story,
body.page .emmer-calc-wrap{
  max-width:100%!important;
  width:100%!important;
}
