A brief history lesson
In OTL, Mary of Hungary, the daughter of Louis I, became the first ruling Queen of Hungary, due to a lack of suitable male heirs. Her mother, Bosnian-born noblewoman, former queen consort of Louis and now widow, Elisabeth Kotromanić, had something of a regent-like position...