The head of Hungary's National Museum has been sacked for allegedly letting under-18s view LGBT content.
A controversial Hungarian law bans the "display and promotion of homosexuality" in materials accessible to children, such as books and films.
The museum recently hosted the World Press Photo exhibition, featuring shots of LGBT people in the Philippines.
The government said Laszlo Simon had failed to follow "legal obligations" with the show - something he denied.
Mr Simon insisted that the museum did not intentionally break any laws, having complied with an order to restrict entry for under-18s.
In a post on Facebook, he added: "As a father and grandparent of four children, I firmly reject the idea that our children should be protected from me or from the institution I lead."
A far-right lawmaker had earlier demanded the government launch an inquiry into the exhibition over a series of photos that depicted a community of elderly LGBT people in the Philippines.
She cited legislation introduced in Hungary in 2021 that prohibits under-18s from consuming material deemed to promote homosexuality, gay rights or gender change.
The Hungarian government decreed that the snaps broke the law. The museum responded by putting a notice on its website and at the exhibition's entrance - saying that entry was off-limits to visitors under 18.
Reacting to Mr Simon's sacking, World Press Photo organisers said they were "shocked".
World Press Photo executive director Joumana El Zein Khoury said the images contained "nothing explicit or offensive".
"This series of photos is a thoughtful and honest record of the lives of a community of older LGBTQI+ people in the Philippines," he said.
He had previously said this was the first time one of the World Press Photo shows had been censored in Europe.
The photographer, Hannah Reyes Morales, earlier said she was "beyond saddened". Speaking to the AP news agency before Mr Simon was sacked, she said: "What is harmful is limiting visibility for the LGBTQIA+ community, and their right to exist and to be seen."
Mr Simon is a former minister in the right-wing government of Prime Minister Viktor Orban. Mr Orban says he is defending Christian values and protecting children with his controversial crackdown on LGBT content.
But this has met sharp condemnation from human rights campaigners, as well as the European Union - of which Hungary is a member. The legislation has previously been labelled a "disgrace" by European Commission chief Ursula von der Leyen.
In recent months, authorities used the same law to fine a bookseller for selling the popular British graphic novel Heartstopper - which features a love story between two male teenagers - without wrapping the book in a plastic cover.
The World Press Photo exhibition came to a scheduled close in the Budapest museum on Sunday.