Problems with drugs in prisons have more than doubled over the past five years, according to Scottish Labour analysis.

In 2017/18, there were 945 incidents where a male prisoner was found "administering or allowing to be administered a controlled drug to oneself".

This was almost double the 509 caught in 2012-2013, Scottish Labour said.

The number of men caught consuming or concealing "an unauthorised or prohibited substance" soared from 124 to 618 over the same period, according to Labour analysis.

The party said that between these two breaches of discipline, there were 930 more incidents than in 2012-13, or an increase of 147%.

Labour is calling for more to be done to prevent drugs getting into prisons and ensure that appropriate medical support is given to those with addictions in prison.

The party's justice spokesman, Daniel Johnson MSP, said: "Drugs in prisons are a growing problem.

"We know that many prisoners have complex alcohol or drugs dependencies that may well have been part of the cause for the crimes in the first place.

"An important part of prison should therefore be ensuring that prisoners get the appropriate medical care and other interventions to deal with drug and alcohol dependencies.

"That will ultimately reduce the chances of re-offending, and lead to lower crime and a lower prison population."

He continued: "Against that background, it is disappointing to see the number of incidents of drug taking in prison double in the last five years.

"It is clear that more needs to be done to prevent drugs from getting into prisons."

The Scottish Prison Service (SPS) said it had invested in technology to detect drugs and was also working with prisoners to address their drug problems.

An SPS spokesman said: "We've made significant investment both in terms of technology and also in terms of joint intelligence, working to detect those trying to traffic drugs into our prisons.

"Prisoners are just members of the community and a lot of the people in our care are drug users and we have to work with them to try and be honest about their dependencies and work with them.

"Part of this is we are being more vigilant and investing heavily in working with others and working with people in our care to show them the dangers of drugs."