Urseldorp

jQuery(document).ready(function(){ $(‘.mfp-gallery-201’).magnificPopup({ type: ‘image’, cursor: ‘mfp-cursor’, gallery: { enabled: true } }); var itemsPerRow0201 = 3; var itemsPerRow201 = 3; var horSpace201 = 20; var innerContainerWidth201 = jQuery(“#fgallery-201-inner-container”).width(); var ItemWidth201 = Math.floor( ( innerContainerWidth201 – ( horSpace201 * itemsPerRow201 ) ) / itemsPerRow201 ); var minItemWidth201 = 230; while ( ItemWidth201 1 ) { itemsPerRow201 = itemsPerRow201 – 1; ItemWidth201 = Math.floor( ( innerContainerWidth201 – ( horSpace201 * itemsPerRow201 ) ) / itemsPerRow201 ); } var newinnerContainerWidth201 = ( ( itemsPerRow201 * ItemWidth201 ) ) + ( horSpace201 * itemsPerRow201 ); jQuery(“.fgallery-201-item”).css({“width”: ItemWidth201}); jQuery(“#fgallery-201-inner-container”).css({“width”: newinnerContainerWidth201}); var newThumbContainerPaddingTop201 = Math.floor( ItemWidth201 * 75.000187500469 / 100 ); jQuery(“.fgallery-201-thumb-container”).css({“padding-top”: newThumbContainerPaddingTop201}); (function($) { $(window).resize(galleryResizeFunction); function galleryResizeFunction () { jQuery(“#fgallery-201-inner-container”).css({“width”: “100%”}); innerContainerWidth201 = jQuery(“#fgallery-201-inner-container”).width(); itemsPerRow201 = itemsPerRow0201; ItemWidth201 = Math.floor( ( innerContainerWidth201 – ( horSpace201 * itemsPerRow201 ) ) / itemsPerRow201 ); while ( ItemWidth201 1 ) { itemsPerRow201 = itemsPerRow201 – 1; ItemWidth201 = Math.floor( ( innerContainerWidth201 – ( horSpace201 * itemsPerRow201 ) ) / itemsPerRow201 ); } newinnerContainerWidth201 = ( ( itemsPerRow201 * ItemWidth201 ) ) + ( horSpace201 * itemsPerRow201); jQuery(“.fgallery-201-item”).css({“width”: ItemWidth201}); jQuery(“#fgallery-201-inner-container”).css({“width”: newinnerContainerWidth201}); newThumbContainerPaddingTop201 = Math.floor( ItemWidth201 * 75.000187500469 / 100 ); jQuery(“.fgallery-201-thumb-container”).css({“padding-top”: newThumbContainerPaddingTop201}); }; })(jQuery); });

<div class=”fgallery-item fgallery-201-item” style=”margin: 0 10px; margin-bottom: 20px;”>

<!– gallery item end – $gallery_postCount = 6 $gallery_total_images = 6–>

<!– gallery wrapper end –>