/*
Theme Name: Twenty Twenty-Five Child
Theme URI: https://wordpress.org/themes/twentytwentyfive/
Description: Child theme for Twenty Twenty-Five.
Author: Accounting & Tax Solutions Sydney
Template: twentytwentyfive
Version: 1.0.3
*/

/* Hide the website header on every page */
header,
header.site-header,
.wp-block-template-part:has(.wp-block-site-title),
.wp-block-template-part:has(.wp-block-navigation),
body > .wp-site-blocks > .wp-block-template-part:first-child,
body > .wp-site-blocks > header:first-child {
    display: none !important;
}

/* Hide automatically generated page titles */
h1.wp-block-post-title {
    display: none !important;
}

/* Remove vertical spacing around the hidden title */
.wp-block-group:has(h1.wp-block-post-title),
.wp-block-post-title {
    margin-block: 0 !important;
    padding-block: 0 !important;
    min-height: 0 !important;
}

/* Remove top margin from the page content block */
/*body:not(.home) .wp-block-post-content { */
body .wp-block-post-content { 
    margin-block-start: 0 !important;
    margin-top: 0 !important;
}