[class*='professor-']{
    display: none;
}
[class*='professor-'].active{
    display: grid;
}