Can anyone identify what bird this is?

I saw it near the marshes in a town in Devon, UK. Quite a large bird with dark grey/black feathers. I thought at first it maybe a heron but with a closer look at the photos it's legs are much smaller. If anyone can help? Driving me mad. Sorry if the photo isn't great, I tried to get one before it flew off