I'm trying to bind a featherlight.js image gallery to a button.
See this pen: https://codepen.io/jasonbradberry/pen/aqjLbw
I've bound a lightbox to the button (.lightbox-trigger) with the following code:
$('#gallery-trigger').featherlightGallery('#gallery a', {});
But it just places the gallery thumbnails into the lightbox instead of the image.
What am I missing here?