Lively’s latest film is based on Colleen Hoover’s bestselling novel.