Using general relativity to magnify the cosmos