I’ve changed code. Please check it.
As I see you moved my code into style.css of Legenda theme. I do not recommend to do this, because in the next theme update you’ll lost all your changes. That’s why it’ll be better do all changes in custom.css file or Child Theme.
Regards,
Robert Hall.