A teenager was allegedly advertising drugs for sale an hour after a 14-year-old girl he is accused of killing died from taking Ecstasy.

James McCairn, 18, is on trial for culpable homicide on Cerys Reeve 14, after he allegedly sold her MDMA from his home in Greenock, Inverclyde, on July 13, 2020.

A jury at the High Court in Glasgow was shown three images which were said to have been seized from McCairn's iPhone by cybercrime officers.

The first image from SnapChat with the time stamp of 1.22am appeared to show a zip lock bag containing white powder.

The accompanying text said: "Defo chucking it soon heads fried."

A second SnapChat image from 1.36am was seen to display tablets with a list of numbers down the side of the image with the caption "Red skulls there."

Jurors were also shown a log from McCairn's SnapChat that appeared to show he was in conversation with Cerys' account on the morning of her death.

The messages - all of which were unable to be recovered by police - started at 2.52am and was initiated by McCairn.

There were seven initial messages between the pair until 4am.

A final message was allegedly sent by McCairn at 8.09am.

Jurors were earlier told by forensic pathologist doctor Gillian Wilson that Cerys died at 8.08am.

Prosecutor Graeme Jessop then displayed a final image from McCairn's SnapChat from 9.06am which was black with a caption: "Mandy for sale er good prices - get SCin."

Detective constable Mark Shevlin, 35, was asked what the final part of the message meant.

He replied: "It could be get SnapChatting and there is a picture of a phone next to it.

"It appears to be an offer to sell crystal MDMA or Mandy which is its common name."

The detective constable added that the red skull image was “advertising for commodity with a price list for the drugs attached with it.”

The jury was also shown a list of names from the phone’s Notes app which contained numbers next to it.

Text saying "Mum 50, Donna 30, James 120 " were shown as entries.

DC Shevlin was asked about its significance.

He replied: "As far as the drug dealing business is concerned, in the absence of any legitimate explanation, it has the characteristics of a tick list."

Meanwhile a 14-year-old girl told police on a recorded interview played to the jury that she messaged her ex-boyfriend McCairn after she was told Cerys had died.

Detective constable Martin Renfrew asked what the conversation was about.

She said: “I said ‘Did you give her anything?’ and he said ‘Aye, I gave her Mandy’ and I said ‘Alright’.

“I told him that I was told she had died and he said ‘Really?’, I said ‘Aye’ and he said ‘Alright’.”

The witness claimed that she stopped talking to him after that. 

She then recalled being given what she believed was MDMA by McCairn months before Cerys’ death in the car park of Greenock Morton’s stadium Cappielow.

The witness said she was not charged and asked for them to see what he would do.

She claimed to have flushed them down the toilet when she went home. 

The trial continues on Monday before Judge John McCormick.