I'm trying to understand light's refraction properties but I find issue with every explanation I come across.
For instance, my book uses as an example a marching band which comes across a muddy terrain. Because they have to keep the same distance in each singular row, every row is going to rotate when it goes through the mud.
But, if instead every person didn't have to keep the same distance with the others on his row, when they crossed the mud they'd all just slow down, without deviating their path.
So, what's going on with light? Why should photons keep the same distance with one another in their "row", and as a consequence deviate when they change medium? Most certainly, it has something to do with light behaving as a wave, but I still don't understand it on an intuitive level.