/* Home page gap under menu */
.home .navigation.section + * {
    margin-top: 14px; /* pulled down a bit for more breathing room */
}

/* All other pages gap under menu */
:not(.home) .navigation.section + * {
    margin-top: 22px; /* slightly more space for other pages */
}

/* Home page: pull up first image only if present */
body.home .entry-content img:first-of-type {
    margin-top: -24px;  /* pulled up a bit more */
    display: inline;
}
/* Hide the page title under the menu, but keep page content visible */
.page .entry-title {
    display: none;   /* hides the title only */
}
/* Make Group or Cover block gradient/color stretch edge-to-edge */
.entry-content .wp-block-group.has-background,
.entry-content .wp-block-cover {
    position: relative;
    z-index: 1;
    margin: 0; /* remove gaps above/below the block */
}
.entry-content .wp-block-group.has-background {
    position: relative;
    z-index: 1;
}

.entry-content .wp-block-group.has-background::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: -9999px;
    right: -9999px;
    background: inherit;
    z-index: -1;
}
/* Remove spacing between grouped blocks */
.wp-block-group {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.wp-block-group + .wp-block-group {
    margin-top: 0 !important;
}

/* Remove default block margins inside groups */
.wp-block-group > .wp-block-group__inner-container > * {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}
.entry-content .wp-block-media-text {
    max-width: 100% !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
}
.entry-content .wp-block-media-text {
    position: relative;
    z-index: 1;
}

.entry-content .wp-block-media-text::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: -9999px;
    right: -9999px;
    background: inherit;
    z-index: -1;
}
.entry-content .wp-block-media-text {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}
.wp-block.has-background {
    padding: 40px 20px; /* keeps internal text spacing */
    margin: 0; /* removes gaps between blocks */
}
