An earthquake of magnitude 5.4 and depth of 7.40 kilometers occurred 18.57 miles from Mackay, ID in Custer County at 07:51 PM.