Anything you need is set needed data-attributes.
- data-modal-open - link for open modal (necessarily to set a unique identificator in href).
- data-modal-close - button for close modal.
- data-modal - unique identificator.
- data-modal-fixed - needed for fixed menu and the same blocks which depended by scrollbar.
https://codepen.io/mmarienko/pen/poPMzQR