Media playback is unsupported on your device Media caption The snow left vehicles stranded and some roads impassable

Flooding has caused travel disruption, after heavy snow in south and mid Wales led to some roads becoming impassable.

A Met Office yellow weather warning for snow was issued for 11 of Wales' 22 counties, but ended at 10:00 GMT.

A yellow warning for rain covered 13 counties on Thursday.

Traffic analysts Inrix warned of hazardous driving conditions on some roads in Powys, Ceredigion and Neath Port Talbot, but no schools had to close because of the snow.

Natural Resources Wales also issued a flood warning for the River Teme at Knighton, Powys.

Image copyright BBC Weather Watchers/Keek Image caption Snow fell in Hirwaun, Cynon Valley

Transport for Wales said flooding on the railway between Gloucester and Lydney was causing disruption to trains between Gloucester and Cardiff Central.

Trains could be cancelled, delayed by up to 40 minutes or terminated at Gloucester, it warned.

Meanwhile, the A466 between the A4136 in Monmouth and the Newland turn off in Redbrook has been closed in both directions due to flooding.

The rain warning is in place in Blaenau Gwent, Bridgend, Caerphilly, Cardiff, Merthyr Tydfil, Monmouthshire, Neath Port Talbot, Newport, Powys, Rhondda Cynon Taff, Swansea, Torfaen and Vale of Glamorgan.

Image copyright BBC Weather Watcher/ Nina Image caption Snow covered the ground in Ebbw Vale

Snow caused problems on the roads after falling overnight.

Some vehicles were left stranded on the A4109 between Seven Sisters and Banwen in Neath Port Talbot, while the A482 in Lampeter, Ceredigion, and A4221 between Abercrave and Coelbren in Powys were blocked for a time.

BBC Wales weather presenter Derek Brockway said "a huge swirl of low pressure" was causing the unsettled conditions.

Image caption A snowy scene in Libanus, Powys

Image copyright @Carys_Evans21 Image caption Carys Evans took this picture of roads near Ystradgynlais, Powys

Image caption A layer of snow covers mountains near Rhigos

The weather warning for snow covered Blaenau Gwent, Caerphilly, Carmarthenshire, Ceredigion, Merthyr Tydfil, Monmouthshire, Neath Port Talbot, Powys, Rhondda Cynon Taff, Swansea and Torfaen.

On Wednesday, a multi-vehicle accident and snow forced the closure of a 12-mile (19km) stretch of the A470 between Merthyr Tydfil and Libanus in Powys.

Image copyright @LewLaw Image caption Lewis Wheeler captured this image in Banwen, Neath Port Talbot

Image copyright @thomas_winstone Image caption Thomas Winstone captured this image in Ebbw Vale, Blaenau Gwent, on Thursday morning

Image copyright Chris Williams Image caption Snow has fallen in Penderyn, Rhondda Cynon Taff

South Wales Police said it received "a high number of calls about weather-related incidents" and advised people to allow extra time if travelling.

Brecon Mountain Rescue said it was called in to assist police on Wednesday evening with a "minor incident" caused by snow on the A470 near the Cantref reservoir in the Brecon Beacons, Powys.

The team also helped a woman whose car had lost forward momentum on the Hirwaun Road in Aberdare, Rhondda Cynon Taff.

Image copyright BBC Weather Watchers/Keek Image caption People are being told to take care on the roads