I try to apply a CSS style for child element of the body based on other div class in active states.
HTML:
<body class="restrict-body-scroll">
    <div class="main-wrapper">
        <div class="global-banner hide">GLOBAL BANNER ITEM HERE</div>
        <div class="alter-banner hide">ALTER BANNER ITEM HERE</div>
        <header class="header">
            <div class="item-left"></div>
            <div class="item-center"></div>
            <div class="item-right">
                <div class="overlay">
                    <div class="overlay-container">
                        <h3>Welcome Guest!</h3>
                    </div>
                </div>
            </div>
        </header>
    </div>
</body>
CSS: what I try -
.global-banner.hide{
    display:none !important;
}
.global-banner .item-right .overlay-container{
    height:0;
}
body.restrict-body-scroll .global-banner.hide + .header .item-right .overlay-container.active{
    height:100vh;
}
But its not working!
 
     
    