Eyes Wide Shut (1999)
Eyes Wide Shut is a 1999 drama film loosely based upon Arthur Schnitzler's 1926 novella Dream Story. The film was directed, produced, and co-written by Stanley Kubrick. It was his last film, as he died five days after showing his final cut to Warner Brothers studios. The story, set in and around New York City, follows the sexually charged adventures of Dr. Bill Harford, who is shocked when his wife, Alice, reveals that she had contemplated an affair a year earlier. He embarks on a night-long adventure, during which he infiltrates a massive masked orgy of an unnamed secret society.
More at Wikipedia.