The al-Nidaa mosque in northern Baghdad looks grand, with clean, modern lines swooping up to a blue mosaic dome. But inside it's squalid, with piled-up mattresses, cooking pots and almost 60 families. Most are Sunni Muslims who fled the western province of Anbar when the self-proclaimed Islamic State advanced against the Iraqi security forces two months ago.
"We suffered a lot in our journey," says Wafaa Ahmed, a widow who walked for days with three sick children. "But the worst suffering was here in Baghdad."
The small woman with big hazel eyes says when they made it through the sniper fire and mortar rounds they eventually found shelter in the capital — but scant welcome from Shiite Muslims here.
"People call us bad words in the street," she says. "Sectarian words."
Like most everyone from Anbar province, Ahmed is Sunni. Most Baghdad residents are Shiite Muslims, and bloody years of conflict between the two sects have left deep scars and suspicions.
Ahmed keeps her mouth shut when she goes outside the mosque so that Baghdad's Shiites won't be able to detect an accent of a Sunni from Anbar.
"I keep it all inside," she says, "because if I say something I'm afraid something will happen to my children."
The self-declared Islamic State, also known as ISIS or ISIL, is made up of Sunni extremists. Yet many Sunnis are afraid that ISIS will kill them because they worked for the Iraqi police or government. Others are from a tribe that opposes ISIS. Others just hate the Islamist group. And they add up to maybe 2 million Sunnis who've run away from territory controlled by ISIS.
"The majority of people that are receiving assistance do come from Sunni communities," said Lise Grande, the United Nation's humanitarian coordinator for Iraq. "The bulk of people that have been fleeing ISIL attack, yes they're Sunnis."
You might think Sunnis who hate ISIS would be welcome among Shiites, who are targeted by the extremists.
But many Sunnis instead face a hostile reception. The Sunni imam of the al-Nidaa mosque, Ezzedine Ahmed, explains the displaced can't move freely in this Shiite area.
"The people come and go," he said, "but we have some security measures."
The rules are enforced by police and army officers, one of whom sat in on our meeting. Any man wanting to leave the mosque must get permission
"We give them a paper so they can go out, do what they need to do and come back," the imam said.
They must be back by the end of the day. There are other official restrictions; for instance, displaced people coming into Baghdad must have a local resident vouch for them. That's not technically a sectarian rule, yet most people in Baghdad are Shiite and most of the security forces are too, so Sunnis say it feels like discrimination.
But there are a few places in Baghdad where Shiites are helping displaced Sunnis.
At a Shiite mosque in another Shiite area, Meshtel, there are a handful of displaced Sunni men praying shoulder to shoulder with the local residents.
"It's a religious duty, we have to give them the hand of help. They are our people, our kin," said the white-bearded imam, Bassem Mohammed Ali.
He explains that the mosque distributes food to displaced Sunni families, helps them find jobs and apartments. The security forces monitor them, but because the shrine vouches for them, they can move around freely. The imam says he reassures local residents afraid of the Sunnis in their midst — though he claims that there's few of them.
"Maybe like two in a million, one in a thousand, but we educate our society and we have a lot of security measures here," he said.
He says that as long as the displaced Sunnis can't go home, they'll have a home here. But even here, the displaced say they're still treated with more than a trace of suspicion.
"There's good [people] and not good," says Aqbal Rabia, who's living in a small apartment with eight family members. "Some this way, and some that way."