The correct answer is gallows humor. This is a dark comedy style that jokes about macabre, frightening, or painful subjects—often as a coping mechanism in the face of fear, death, or adversity.