I have started using BEM methodology while writing my CSS and there have been few occasions where I have struggled to find out the best way to do a particular thing.I would like to take up a simple example of a panel here.Lets say I am writing a panel component CSS using BEM style. So my CSS might look as follows:\[code\].panel {}.panel__titlebar {}.panel__content { display: none; }\[/code\]A panel can be either chromeless or with chrome. So I define another modifier class for the panel:\[code\].panel--with-chrome { border: 4px solid black; border-radius: 4px;}\[/code\]Now lets say, the panel can be in a fullscreen/maximized state also in which the chrome and titlebar disappear. Instead of defining modifiers for both panel and titlebar, it would be be wise to define the modifier just on parent (say panel--fullscreen) and rest elements shall change accordingly. So now my CSS becomes:\[code\].panel--fullscreen { /* something has to be done here */}.panel--fullscreen .panel__titlebar { display: none; }\[/code\]To remove the chrome in fullscreen mode, I can either:[*]toggle the panel--with-chrome class in JS along with the panel--fullscreen class [*]overwrite the chrome CSS inside the panel--fullscreen class.First isn't good because ideally I would like to simply toggle just one class (.panel--fullscreen) in JS to toggle fullscreen mode.And second one is bad because I'll have to overwrite previous CSS which is a bad practice.So whats the best way to go about it? Appreciate your comments.Thanks