BUDAPEST, HUNGARY -- Pope Francis plunged into both sides of Russia's war with Ukraine on Saturday, greeting some of the 2.5 million Ukrainian refugees who have fled across the border to Hungary during a public prayer service and then meeting privately with an envoy of the Russian Orthodox Church that has strongly supported the war.

Francis maintained the Vatican's tradition of diplomatic neutrality during his second day in Budapest, where he's on a weekend visit to minister to Hungary's Catholic faithful.

Starting the day, he thanked Hungarians for welcoming Ukrainian refugees and urged them to help anyone in need. He called for a culture of charity in a country where the prime minister has justified firm anti-immigration policies with fears that migration threatens Europe's Christian culture.

Speaking in the white-brick St. Elizabeth's church, named for a princess who renounced her wealth to care for the poor, Francis recalled that the Gospel instructs Christians to show love and compassion to all, especially those experiencing poverty and "even those who are not believers."

"The love that Jesus gives us and commands us to practice can help to uproot the evils of indifference and selfishness from society, from our cities and the places where we live -- indifference is a plague --- and to rekindle hope for a new, more just and fraternal world, where all can feel at home," he said.

Hungary's nationalist government has implemented firm anti-immigration policies and refused to accept many asylum-seekers trying to enter the country through its southern border, leading to prolonged legal disputes with the European Union.

The conservative populist prime minister, Viktor Orban, has said that migration threatens to replace Europe's Christian culture. Orban, who has held office since 2010, has hinged multiple election campaigns on the threats he alleges that migrants and refugees pose to Hungarians.

While Orban's government has consistently rejected asylum-seekers from the Middle East and Africa, around 2.5 million Ukrainians fleeing war in their country found open doors. Around 35,000 of the refugees remain in Hungary and have registered for temporary protection there, according to the UN.

One who has chosen to stay was Olesia Misiats, a nurse who worked in a Kyiv COVID-19 hospital when she fled with her mother and two daughters on Feb. 24, 2022 -- the day Russia launched a full-scale invasion of Ukraine.

First she went to the Netherlands, but high costs compelled her to move to Hungary, where she said she has found an apartment and given birth to her third daughter, Mila, who was in the pews Saturday with her mother and sister.

"Here it's safe," Misiats said of her new life. She said that she hopes to return to Kyiv one day, but for now she and her children are adapting. "I want to go back home. There it's my life -- it was my life," she said. "But the war changed my life."

Immediately after greeting and encouraging the refugees, Francis visited the Greek Catholic church next door, which has been providing aid to refugees. And then he met with the Russian Orthodox Church's representative in Hungary, Metropolitan Hilarion, who developed close relations with the Vatican during his years as the Russian church's foreign minister. The Vatican said the 20-minute meeting at the Holy See's embassy in Budapest was "cordial."

The Russian church's strong support for the Kremlin's war has rankled the Vatican and prevented a second papal meeting with Patriarch Kirill, the head of the Russian Orthodox Church and an ally of Russian President Vladimir Putin. Francis and Kirill had a 2016 encounter in Cuba that marked the first between a pope and the head of the Russian church. They had planned a second one in June, but the meeting has been indefinitely postponed over Kirill's support for the war.

In a statement, Hilarion's office said that he briefed Francis on the social and educational activities of the Russian church in Hungary and its relations with the Catholic Church here. He said that he gave the pope an Italian translation of a six-volume opus on the life of Christ.

Francis' visit to Hungary, his second in as many years, is bringing him as close as he's come to the front lines of the war. Upon arriving in Budapest on Friday, he denounced the "adolescent belligerence" that had brought war back to European soil and demanded the EU recover its values of peaceful unity to end it.

There were conspicuously few people of color in the pews of St. Elizabeth's church. Among them was artist and filmmaker Abouzar Soltani, a refugee from Iran who spent 553 days in one of Hungary's transit zones with his 10-year-old son, Armin, after Hungarian authorities rejected their asylum claims in 2018.

Soltani later said of their 18 months staying in container shelters that they felt like "fish in an aquarium." When a European court decision closed the transit zones, Soltani opted to remain in Hungary, where he still lives.

At the end of the event, a band of Hungarian Roma musicians serenaded the pontiff, drawing a standing ovation and cheers from the crowd and a thumbs-up from Francis.

Francis started his Saturday visiting with children who have visual and physical disabilities. In the afternoon, he had his first big public event in Hungary, a youth rally at the city's sports stadium where he was given a singularly Hungarian gift: A Rubik's Cube, the colorful puzzle invented by Hungarian architect Erno Rubik.

In an event staged like a rock concert, Francis jazzed up the crowd riding around in a mini golf cart-like vehicle. And he repeated his frequent appeal to young people to put aside their cellphones and get back to socializing face-to-face: "Please don't virtualize your lives," he said to laughs.

Francis wraps up his visit with an open-air Mass on Sunday and speech at Pazmany Peter Catholic University in Budapest.

------

Associated Press religion coverage receives support through the AP's collaboration with The Conversation US, with funding from Lilly Endowment Inc. The AP is solely responsible for this content.