Calculate modal width based on video size.