EDIT 1 Based on suggestions, I tried this:
.lower-container {
justify-content: center;
position: absolute;
width: 92vw;
// height: 46vh; <--- no height defined
/* nested for adding classes to change position and height of lower-container */
.lower-container.lower-full {
height: 92vh;
top: 0;
}
.lower-container.lower-mid {
height: 46vh;
top: 46vh;
}
.lower-container.lower-closed {
height: 1vh;
top: 91vh;
}
}
But in the Styles panel I have:

So although I'm applying the additional class, the height is not getting set, and the additional class isn't showing in the styles.
Original question I'm defining some classes inside of others like this:
.lower-container {
height: 46vh;
display: flex;
justify-content: center;
...
.lower-full {
height: 92vh;
}
}
Then when it comes time to change the height I'm doing:
lowerContainerElement.classList.add('lower-full')
But on the console, the element doesn't have the .lower-full style in the Styles panel, even though in the Elements panel it shows class="{other classes} lower-full"
What am I doing wrong?
