function updateHeaderHeight() {
        // Get the height of #brx-header
        const headerHeight = document.querySelector('#brx-header').offsetHeight;
          
        // Store the height in the CSS custom property --header-height
        document.documentElement.style.setProperty('--brxw-header-height', headerHeight + 'px');
    }

    // Execute the function as soon as the document is ready
    document.addEventListener('DOMContentLoaded', function() {
        updateHeaderHeight();  // Initial update of header height when the document is ready

        // Update the header height on window resize and orientation change
        window.addEventListener('resize', updateHeaderHeight);
        window.addEventListener('orientationchange', updateHeaderHeight);
});

Vanlife gallery

Living & travelling Europe in my self-built DIY campervan since 2014. See the progress of my journey (and photography) – select a gallery below...

campervans camping in the ukcamping in norway under the Northern Lightsmike changing the oil filter in LDV campervanMusicians in Mauer Park Berlinbathing in hot springs ItalyMan on boat in jungle Nepalcamping in van by the sea SardiniaCamping in the Yorkshire Moors UKDriving into the Atlas Mountains MoroccoDriving through pine forest in PortugalSantiago street in SpainMike Hudson with rust on facePsy-fi festival at sunset NetherlandsCampervans on a street in BerlinMan dancing at freqs of Nature festival GermanyWoman dancing at Samsara Festival HungaryFish in national park CroatiaJumping in the air at sunset sun GreeceMarti changing the vans wheel in GreeceRaph playing Sax in GreeceFamily having Christmas on beech in GreeceSantorini at sunsetTrapeze in GreeceAthens at sunsetFishing at sunset in GreeceRomaniaOzora entrance 2014Sun rise sun20140625_165835meeting friend at airport in my campervanAustria by campervanDragon festival 2014stood outside campervanInside my DIY van conversionFixing broken van during conversionOld vintage campervan in Berlin