/* --- 1. THE "UNLOCK" (ONLY FOR TOPBAR) --- */
:root {
    /* We only increase the masthead variables */
    --pf-v5-c-masthead--Height: 80px !important;
    --pf-v5-c-masthead__brand--LogoHeight: 60px !important;
    
    /* We REMOVE the forced 180px height for the center brand */
    --pf-v5-c-brand--Height: auto !important;
    --pf-c-brand--Height: auto !important;
}

/* --- 2. THE TOPBAR (300x75 Logo - Zoomed) --- */
.pf-v5-c-masthead, .pf-c-masthead {
    height: 80px !important; 
}

.pf-v5-c-masthead__brand, .pf-c-masthead__brand {
    height: 60px !important; 
    min-width: 300px !important; 
    background-image: url("../img/logo-topbar.png") !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: left center !important;
    display: flex !important;
}

/* Hide default Keycloak SVG/Img in Topbar */
.pf-v5-c-masthead__brand img, .pf-c-masthead__brand img, .pf-v5-c-masthead__brand svg {
    display: none !important;
}

/* --- 3. THE REALM PAGE (300x300 Logo - Original Size) --- */
.pf-v5-c-brand, .pf-c-brand {
    content: url("../img/logo-center.png") !important;
    --pf-v5-c-brand__src: url("../img/logo-center.png") !important;
    
    display: block !important;
    margin: 0 auto !important;
    /* Back to original behavior: fit the image naturally */
    height: auto !important;
    max-height: 120px !important; 
    width: auto !important;
}

/* --- 4. CLEANUP & TOGGLE --- */
.pf-v5-c-page__header-brand-link:not(.pf-v5-c-masthead__brand) {
    background-image: none !important;
}

/* Keep the 3-bar menu centered in the new 80px tall bar */
.pf-v5-c-masthead__toggle, .pf-c-masthead__toggle {
    align-self: center !important;
}

