A woman allowed children to take drugs during a party at her house where a 16-year-old girl died.

Claire Paton, 44, appeared at Edinburgh Sheriff Court on Friday over the death of Shellie Callaghan in Newtongrange, Midlothian, in October last year.

The teenager took ill at the party after taking ecstasy-like tablets known as "Bugatti Veyron" and "purple ninja turtle".

She was pronounced dead in hospital, with police issuing a drugs warning regarding the tablets shortly afterwards.

The court was told children attending the party were aged between 14 and 16.

Fiscal depute Nicole Lavelle said Shellie and a friend left the party to go to Mayfield, where they bought 25 "Bugatti Veyron" tablets for £130.

They then returned to the house where the tablets were shared around, along with a cannabis bong filled by Paton.

A 999 call was made from the house after Shellie was found lying in a shower room.

She was pronounced dead from ecstasy toxicity at Edinburgh Royal Infirmary.

Paton, who now lives in Northumberland, admitted supplying cannabis to children at her home.

She further admitted breaching parental responsibility by allowing her home to be used by children to consume cannabis and ecstasy.

Representing Paton, solicitor Keith Leishman said she "did not think this through very well" and had since moved away from the area.

Sheriff Alistair Noble said a custodial sentence was inevitable given the gravity of her offences and jailed her for 225 days.

Two teenagers who admitted supplying the tablets also appeared in court.

A 17-year old girl, who cannot be named because of her age, had pleaded guilty to supplying Shellie and others with the "Bugatti Veyron" tablets.

Her solicitor, Graham Mann, said the tragic circumstances of the case had affected his client, who had become withdrawn and stayed in her home.

She was ordered to carry out 180 hours of unpaid work.

The "purple ninja turtle" tablets were bought from 18-year-old Kaia Ward at around 3am on October 15, the depute fiscal said.

Her solicitor said she had suffered from depression and sleeplessness since the tragedy.

Mr Noble ordered Ward to carry out 150 hours of unpaid work.