
jQuery( document ).ready(function() {


  jQuery('.nt-gallery-block-link-img').fancybox({
    loop: false,
    keyboard: true,
    arrows: true,
    toolbar: true
  });

  jQuery('.nt-gallery-block-link-img').fancybox({
    afterShow: function(instance, current) {
      jQuery('.fancybox-button--arrow_right').click(function() {
        instance.next();
      });

      jQuery('.fancybox-button--arrow_left').click(function() {
        instance.previous();
      });
    }
  });


});
