While the world's attention was focused on the airstrikes and rockets over Gaza and Israel this summer, a wave of violence hit the streets of Jerusalem — and is still roiling parts of this divided city at the core of the Israeli-Palestinian conflict.
The kidnapping and killing of three Israeli teens by Palestinians in the West Bank, and the apparent revenge killing of a Palestinian youth by Israelis in Jerusalem, sparked a chain of events that led to the 50-day war between Israel and Hamas militants in Gaza.
The same events also stoked violence in the streets of Jerusalem, and the Gaza war fed the turmoil.
Israel's Shin Bet security service said there were seven times more violent Palestinian attacks on Israeli security forces and civilians in Jerusalem in July and August than in the previous two months, documenting about 150 cases, and the Israeli rights group Ir Amim reported a spike in Israeli attacks on Palestinians, with about two dozen such cases.
Compared to the Israel-Gaza fighting, there were few conflict-related deaths and injuries in Jerusalem, and the violence has hardly been felt in the city's Jewish neighbourhoods, where cafes and shopping centres are bustling.
But some Israeli and Palestinian residents say they feel increasingly unsafe around each other.
"It's going to explode in our faces, like the tunnels in Gaza," said Yael Antebi, a Jerusalem councilwoman, referring to the underground passages Hamas militants used during the war to sneak into southern Israel and carry out attacks.
For their part, many Palestinians said they stay away from Jerusalem's Jewish neighbourhoods when tensions are high to avoid attacks or slurs. "I don't want to be in a situation where I am attacked or even hear one bad word," said Mohammed Salah Abu Khdeir, a Muslim cleric and Palestinian community activist.
In the most recent violence, masked Palestinians ransacked a gas station and set fire to a gas pump Sunday to avenge the death of a 16-year-old Palestinian who died from wounds he sustained in a clash with Israeli troops the previous week.
Israeli police say the youth was shot in the leg with a rubber-coated bullet and died from a head injury when he fell, but a Palestinian official said an autopsy showed he was killed by a rubber bullet to the head.
The gas station targeted was in French Hill, a well-to-do Jewish neighbourhood in the city's east that Israel captured in the 1967 Mideast war. Palestinians seek to establish an independent state with parts of east Jerusalem as its capital.
Officials in Jerusalem say Palestinians have attacked other contentious Jewish areas of the city in recent weeks, launching fireworks and firebombs at Jewish enclaves in Arab neighbourhoods, and firing bullets at Israeli homes in Pisgat Zeev, a sprawling Jewish area Israel considers an integral part of Jerusalem but the international community considers an illegitimate settlement.
Palestinians hurled rocks, firebombs and paint at the city's tram dozens of times this summer as it passed through the Shuafat neighbourhood where the Palestinian teen was kidnapped, said Ozel Vatik, spokesman for Citypass, the tram operator.
Although the tram is fortified against rocks, ridership was down 20 per cent in Jewish neighbourhoods near Shuafat during those months, according to Citypass.
Israeli residents have also carried out violent acts in the city this summer, and after the funeral for the three slain teens, hundreds of Israelis marched through Jerusalem shouting "death to the Arabs."
A mob broke into a McDonald's where Palestinians worked and smashed computers, Palestinian taxi drivers were harassed, and three Palestinians were attacked in a parking lot, one of whom was sent to the hospital, according to Ir Amim, which monitors Israeli-Palestinian violence in the city.
At least six other unprovoked Israeli attacks sent Palestinians to the hospital, according to the group.
Palestinian demonstrators this summer have thrown rocks and firebombs at Israeli troops at numerous flashpoints in the city's eastern sector, and troops have responded with rubber bullets and tear gas.
An Israeli security official said the uptick in Palestinian rioting was a spontaneous response to the high Palestinian death toll in Gaza during the war and the deaths of two Palestinian teens in Jerusalem, and was not directed by any militant group. He spoke on condition of anonymity because he was not permitted to discuss the matter publicly.
Israeli police have detained some 600 Arab residents on suspicion of attacking police and participating in the riots, said police spokesman Micky Rosenfeld. About 150 of them have been charged, he said. Israelis were also arrested this summer for attacks against Arabs, Rosenfeld said, though he did not provide figures.
Antebi, the Jerusalem councilwoman, said the violence stems not only from recent tensions but from lack of law enforcement in Palestinian areas of the city.
"The country isn't doing what it should to safeguard the security of the residents," she said.
Abu Khdeir, the Palestinian cleric and community activist, said the violence is rooted in longtime neglect of Palestinian residents by both the Palestinian Authority and the Israeli municipality. School dropout rates and drug use are high, neighbourhoods are crowded and youths have few open spaces to play, he said.
"With people like this, imagine what they feel inside," Abu Khdeir said. "The problems are growing."