add variable for modal opacity and add modal-open class to body when modal opens