More than 500 stranded on ice floes off Latvian coast