Torrential rain and thunderstorms have caused flooding and travel disruption across many parts of central and eastern Scotland.
Homes in North Lanarkshire and Perthshire were flooded and the M8 was closed after water inundated the route.
The reopening of a number of schools in Fife and the north east has also been delayed due to flooding.
Scotrail said services were being disrupted, with lightning strikes causing power outages.
Perth and Kinross, the Lothians, Forth Valley and the north east were the worst hit by overnight lightning strikes and heavy rain.
The Scottish Fire and Rescue Service said it was called to multiple reports of flooding in the Perthshire area, with many domestic properties affected.
Perth and Kinross Council said several roads in the area were still impassable due to flooding.
Fresh rainfall on Wednesday morning also led to localised flooding in Aberdeen and Aberdeenshire. Mackie Academy in Stonehaven said it could not accept pupils after roads to the town became impassable.
Dunnottar school also said it could not reopen after lockdown after the area around the building was completely flooded and impassable even on foot.
A Met office yellow weather warning for thunderstorms is in place until midnight.
It warned that some places were likely to see “further severe thunderstorms”, but with “significant uncertainty in location and timing”.
The warning covers Central, Tayside, Fife, Angus, Clackmannanshire, Dundee, Falkirk, Perth, Kinross and Stirling.
The fire service said a number of homes were flooded in Airdrie, while they were also in attendance on the M8 after the dual carriageway was badly affected by flooding between junctions five and seven.
Police were advising people to avoid the area completely as diversion routes were also becoming flooded and impassable.
A Police Scotland spokesman said: “We were made aware of flooding on the M8 between junctions 5 and 6 in Lanarkshire shortly before 4am on Wednesday, 12 August.
“No injuries have been reported and officers have assisted partner agencies.”
Fife Council said some schools, which were due to accept pupils for the first time since lockdown, had been heavily affected with power and building problems. That has resulted in the closure of Lochgelly High, Burntisland Primary, St Ninian’s Primary, Valley Primary, Benarty Primary, Denend Primary, Torryburn Primary, Torbain Primary, Kinglassie Primary and their associated nurseries.
A landslide has also caused the closure of the A921 between Kinghorn and Burntisland. Police are urging motorists to use an alternative route.
Matty Gale, from Lincolnshire, said woke up in his hotel in Falkirk to find his car under water.
He told the BBC: “I think my car is pretty much a write-off now. The water is up to the wheels. I can hear car alarms going off – the water has got into the electrics. I couldn’t get a wink of sleep last night because of how loud the thunder was and the lightning was blinding.
“I might have to get the train home.”
Several Primary schools in the Stirling Council area were left without internet access due to the impact of the storms.
The fire service control room in Edinburgh said they had received more than 500 calls through the night amid widespread thunder and lightning and torrential rain.
All flights due to land at Edinburgh Airport are being diverted or delayed.
BT’s incident management team said a major outage at an exchange in Edinburgh, caused by the weather, was affecting about 100,000 customers’ broadband on BT, EE and Plusnet in the city and surrounding area.
It was reported at 06:30 and engineers were on site working on the issue.
Images posted to social media showed cars floating in the car park at a Falkirk hotel and at the Victoria Hospital in Kirkcaldy.
In Perth, heavy rain caused flooding which affected the city’s railway station.
ScotRail posted pictures of the water covering the tracks on social media.
Some routes were not operating trains at all.
At 09:25, ScotRail said there were no trains operating on the following routes:
- Edinburgh – Fife
- Edinburgh – Glasgow Queen Street via Falkirk High & Grahamston
- Edinburgh/Glasgow – Dunblane
- Edinburgh – West Calder
- Aberdeen – Edinburgh/Glasgow
- Aberdeen – Dyce
- Inverness – Perth