I don't know anyone's gender
Just think of it as the opposite of their title.
Yehwa's title is "Emperor" cause she takes on the duties/responsibilities of an Emperor while Seonyu takes on the duties of an Empress hence why his title being Empressbasically they have swapped titles cause of job description
Ohhh, that's a much nicer way of putting it.
I don't know anyone's gender