/**
 * Add any custom CSS here.
 *
 * This file will be loaded after all other theme stylesheets.
 */

/* -----------------------------------------------------------------------------
 * Site header — center logo (block theme row uses space-between + empty column)
 * Targets: figure.headerLogo inside template-part header
 * -------------------------------------------------------------------------- */

header.wp-block-template-part .wp-block-group.alignwide.is-layout-flex:has(.headerLogo) {
	justify-content: center !important;
}

/* Override inline side margins from the block editor on the logo */
header.wp-block-template-part figure.headerLogo,
header.wp-block-template-part figure.wp-block-image.headerLogo {
	margin-left: auto !important;
	margin-right: auto !important;
}

/* Empty right column used for “space between” — hide so the logo sits visually centered */
header.wp-block-template-part .wp-block-group.alignwide.is-layout-flex:has(.headerLogo) > .wp-block-group:last-child:empty {
	display: none !important;
}
