Hungary doesn’t have vast energy resources. They have some lignite coal and some hydroelectric. For the most part they import electricity and gas.
Really Orban doesn’t have a choice in this matter.
My daughter is a citizen of Hungary and we have been there often.
I just returned this week. Been there a couple of weeks.
Last Sunday the riots/protest against inflation were pretty big in Budapest. Mainly teachers and government workers protested.
However they do have a strong Realist as Prime Minister.