(()=>{"use strict";var t={n:i=>{var o=i&&i.__esModule?()=>i.default:()=>i;return t.d(o,{a:o}),o},d:(i,o)=>{for(var e in o)t.o(o,e)&&!t.o(i,e)&&Object.defineProperty(i,e,{enumerable:!0,get:o[e]})},o:(t,i)=>Object.prototype.hasOwnProperty.call(t,i)};const i=window.jQuery;var o=t.n(i);function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},e(t)}var n=window.VPData.screenSizes;if(void 0!==window.Isotope&&void 0!==window.Isotope.LayoutMode){var s=window.Isotope.LayoutMode.create("vpRows").prototype;s.measureColumns=function(){if(this.items=this.isotope.filteredItems,this.getContainerWidth(),!this.columnWidth){var t=this.items[0],i=t&&t.element;this.columnWidth=i&&window.getSize(i).outerWidth||this.containerWidth}this.columnWidth+=this.gutter;var o=this.containerWidth+this.gutter,e=o/this.columnWidth,n=this.columnWidth-o%this.columnWidth;e=Math[n&&n<1?"round":"floor"](e),this.cols=Math.max(e,1)},s.getContainerWidth=function(){var t=this._getOption&&this._getOption("fitWidth")?this.element.parentNode:this.element,i=window.getSize(t);this.containerWidth=i&&i.innerWidth},s._resetLayout=function(){this.x=0,this.y=0,this.maxY=0,this.horizontalColIndex=0,this._getMeasurement("columnWidth","outerWidth"),this._getMeasurement("gutter","outerWidth"),this.measureColumns()},s._getItemLayoutPosition=function(t){t.getSize();var i=t.size.outerWidth%this.columnWidth,o=Math[i&&i<1?"round":"ceil"](t.size.outerWidth/this.columnWidth);o=Math.min(o,this.cols);var e=this.horizontalColIndex%this.cols;e=o>1&&e+o>this.cols?0:e;var n=t.size.outerWidth&&t.size.outerHeight;this.horizontalColIndex=n?e+o:this.horizontalColIndex;var s=t.size.outerWidth+this.gutter;0!==this.x&&1===this.horizontalColIndex&&(this.x=0,this.y=this.maxY);var r={x:this.x,y:this.y};return this.maxY=Math.max(this.maxY,this.y+t.size.outerHeight),this.x+=s,r},s._getContainerSize=function(){return{height:this.maxY}}}o()(document).on("initOptions.vpf",function(t,i){"vpf"===t.namespace&&(i.defaults.gridColumns=3,i.options.gridColumns||(i.options.gridColumns=i.defaults.gridColumns),i.options.gridImagesAspectRatio||(i.options.gridImagesAspectRatio=i.defaults.gridImagesAspectRatio))}),o()(document).on("initLayout.vpf",function(t,i){if("vpf"===t.namespace&&"grid"===i.options.layout){i.addStyle(".vp-portfolio__item-wrap",{width:"".concat(100/i.options.gridColumns,"%")});for(var o=i.options.gridColumns-1,e=Math.min(n.length-1,o);e>=0;e-=1)o>0&&void 0!==n[e]&&i.addStyle(".vp-portfolio__item-wrap",{width:"".concat(100/o,"%")},"screen and (max-width: ".concat(n[e],"px)")),o-=1}}),o()(document).on("beforeInitIsotope.vpf",function(t,i,o){"vpf"===t.namespace&&"grid"===i.options.layout&&"object"===e(o)&&(o.layoutMode="vpRows")})})();