Distance between point & line

Find the distance between a point and a line. Watch out, some lines of the lines are perfectly horizontal or vertical.

Problem

Find the minimum distance between the point start color red, left parenthesis, 1, comma, 1, right parenthesis, end color red and the line start color blue, y, equals, 7, end color blue.