/* Anej + Teja 1.49: remove the actual Gutenberg block spacing between the
   header template part and the first full-width slider on the front page.
   WordPress layout applies block-gap to sibling blocks; removing margins
   from the inner slider alone does not remove this parent gap. */
body.home .wp-site-blocks,
body.front-page .wp-site-blocks { row-gap:0!important; gap:0!important; }
body.home .wp-site-blocks > *,
body.home .wp-site-blocks > * + *,
body.front-page .wp-site-blocks > *,
body.front-page .wp-site-blocks > * + * {
  margin-block-start:0!important;
  margin-block-end:0!important;
}
body.home .wp-site-blocks > :is(main,.wp-block-group):has(.at-editable-slider,.at-v12-slider,.at-posts-slider),
body.home main.at-new-homepage,
body.home main.at-home-v14,
body.home .at-new-homepage,
body.home .at-home-v14 {
  margin-top:0!important;
  margin-block-start:0!important;
  padding-top:0!important;
  border-top:0!important;
  row-gap:0!important;
}
body.home main.at-new-homepage > :first-child,
body.home main.at-home-v14 > :first-child,
body.home .at-home-v14 .at-editable-slider,
body.home .at-home-v14 .at-v12-slider,
body.home .at-home-v14 .at-posts-slider,
body.home .at-new-homepage .at-editable-slider,
body.home .at-new-homepage .at-v12-slider {
  margin-top:0!important;
  margin-block-start:0!important;
  padding-top:0!important;
  border-top:0!important;
}
/* Supports front pages customized in the Site Editor, where the heading
   and the slider can be wrapped in an additional Gutenberg Group. */
body.home .wp-site-blocks > .wp-block-template-part + :is(main,.wp-block-group),
body.home .wp-site-blocks > header + :is(main,.wp-block-group) {
  margin-block-start:0!important;
  margin-top:0!important;
}
