$(document).ready(function(){

 var $grid = $('.grid').isotope({
   itemSelector: '.grid-item',
    layoutMode: 'masonry',
    masonry: {
     columnWidth: 0
    }
   });

$('#filters').on('click', 'button', function() {
   var filterVal = $(this).attr('data-filter');
   $grid.isotope({ filter: filterVal});
  });
}); 

@@ -89,20 +89,16 @@
 -item',%0A
-    
 layoutMo
@@ -106,67 +106,190 @@
 e: '
-masonry',%0A    masonry: %7B%0A     columnWidth: 0%0A    %7D%0A  
+packery'%0A      %7D);%0A  %0A    // layout Isotope after all images have loaded%0A   // $grid.imagesLoaded(function() %7B%0A    //   $grid.isotope(%7B%0A   //     //options%0A    //   %7D);%0A    //
  %7D);%0A%0A
+%0A
 $('#

update theme