If you’re interested in a technical explanation of how this works, you can watch this YouTube video by Vox.