$(document).ready(function() {
    // Using http://dimsemenov.com/plugins/magnific-popup/documentation.html
    $('.post-image').magnificPopup({
        type:'image',
        gallery: {
            enabled: true,
        }
    });
});