At least 27 people have been killed in wildfires ravaging parts of Portugal. Blazes which broke out across the border in Spain have also claimed three lives.