There is a palpable sense of shock on the faces of people looking at the wreckage of a funicular crash in the Portuguese capital where 16 people died - but a three-year-old German boy was among the survivors.

He was pulled from the carriage, and his mother was among more than 20 other people who were injured.

Nationals of Portugal, South Korea, Switzerland, Canada, France, Britain, Ukraine, and the US are among the dead, police say. A German citizen who was reported to have died in the incident was later found alive in the hospital.

It is still unclear what caused the crash. The capital's public transport operator, Carris, said all funiculars would be inspected and that it had launched an independent investigation.

Portugal's political elite turned up at the Church of St Dominic on Thursday night for a service held in honour of those killed. Outside the church, people called for a thorough investigation into what happened. We need people to know they're safe here, one woman said as others nodded.

One local resident told the BBC she was still processing what had happened as she walked past the site of the crash, where the wreckage lay scattered. It's very, very sad, she said.

Witnesses described the terrifying moments during the crash, with reports of people jumping from windows in a desperate effort to escape. Tour guide Mariana Figueiredo recounted hearing a large crash and rushing to the scene, only to find silence as she arrived. A lot of people were crying around me. They were very frightened. I was trying to calm them down, she said.

On Thursday, the head of Lisbon's public transport operator, Carris, announced all funiculars would be closed until technical inspections are completed. Plans to reopen the Glória line with a new carriage were also discussed. Authorities have increased spending on maintenance but noted rising costs over the past decade.

The city of Lisbon, known for its steep hills and funiculars, finds itself in mourning as it grapples with the importance of safety and accountability in public transport.