My "show more" button triggers the modal to pop up, but when I click on the X button in the top left corner, it doesn't close as expected. However, clicking outside of the box or pressing the "esc" key does work.
I suspect that the issue lies with the modalClose.on() function, although everything appears correct to me.
Any ideas why this might be occurring?