People across the country and the northern hemisphere had their cameras ready to record the rising and setting of the sun on the longest day of the year.