// source --> https://fotopress.hu/wp-includes/js/imagesloaded.min.js?ver=5.0.0 
/*! This file is auto-generated */
/*!
 * imagesLoaded PACKAGED v5.0.0
 * JavaScript is all like "You images are done yet or what?"
 * MIT License
 */
!function(t,e){"object"==typeof module&&module.exports?module.exports=e():t.EvEmitter=e()}("undefined"!=typeof window?window:this,(function(){function t(){}let e=t.prototype;return e.on=function(t,e){if(!t||!e)return this;let i=this._events=this._events||{},s=i[t]=i[t]||[];return s.includes(e)||s.push(e),this},e.once=function(t,e){if(!t||!e)return this;this.on(t,e);let i=this._onceEvents=this._onceEvents||{};return(i[t]=i[t]||{})[e]=!0,this},e.off=function(t,e){let i=this._events&&this._events[t];if(!i||!i.length)return this;let s=i.indexOf(e);return-1!=s&&i.splice(s,1),this},e.emitEvent=function(t,e){let i=this._events&&this._events[t];if(!i||!i.length)return this;i=i.slice(0),e=e||[];let s=this._onceEvents&&this._onceEvents[t];for(let n of i){s&&s[n]&&(this.off(t,n),delete s[n]),n.apply(this,e)}return this},e.allOff=function(){return delete this._events,delete this._onceEvents,this},t})),
/*!
 * imagesLoaded v5.0.0
 * JavaScript is all like "You images are done yet or what?"
 * MIT License
 */
function(t,e){"object"==typeof module&&module.exports?module.exports=e(t,require("ev-emitter")):t.imagesLoaded=e(t,t.EvEmitter)}("undefined"!=typeof window?window:this,(function(t,e){let i=t.jQuery,s=t.console;function n(t,e,o){if(!(this instanceof n))return new n(t,e,o);let r=t;var h;("string"==typeof t&&(r=document.querySelectorAll(t)),r)?(this.elements=(h=r,Array.isArray(h)?h:"object"==typeof h&&"number"==typeof h.length?[...h]:[h]),this.options={},"function"==typeof e?o=e:Object.assign(this.options,e),o&&this.on("always",o),this.getImages(),i&&(this.jqDeferred=new i.Deferred),setTimeout(this.check.bind(this))):s.error(`Bad element for imagesLoaded ${r||t}`)}n.prototype=Object.create(e.prototype),n.prototype.getImages=function(){this.images=[],this.elements.forEach(this.addElementImages,this)};const o=[1,9,11];n.prototype.addElementImages=function(t){"IMG"===t.nodeName&&this.addImage(t),!0===this.options.background&&this.addElementBackgroundImages(t);let{nodeType:e}=t;if(!e||!o.includes(e))return;let i=t.querySelectorAll("img");for(let t of i)this.addImage(t);if("string"==typeof this.options.background){let e=t.querySelectorAll(this.options.background);for(let t of e)this.addElementBackgroundImages(t)}};const r=/url\((['"])?(.*?)\1\)/gi;function h(t){this.img=t}function d(t,e){this.url=t,this.element=e,this.img=new Image}return n.prototype.addElementBackgroundImages=function(t){let e=getComputedStyle(t);if(!e)return;let i=r.exec(e.backgroundImage);for(;null!==i;){let s=i&&i[2];s&&this.addBackground(s,t),i=r.exec(e.backgroundImage)}},n.prototype.addImage=function(t){let e=new h(t);this.images.push(e)},n.prototype.addBackground=function(t,e){let i=new d(t,e);this.images.push(i)},n.prototype.check=function(){if(this.progressedCount=0,this.hasAnyBroken=!1,!this.images.length)return void this.complete();let t=(t,e,i)=>{setTimeout((()=>{this.progress(t,e,i)}))};this.images.forEach((function(e){e.once("progress",t),e.check()}))},n.prototype.progress=function(t,e,i){this.progressedCount++,this.hasAnyBroken=this.hasAnyBroken||!t.isLoaded,this.emitEvent("progress",[this,t,e]),this.jqDeferred&&this.jqDeferred.notify&&this.jqDeferred.notify(this,t),this.progressedCount===this.images.length&&this.complete(),this.options.debug&&s&&s.log(`progress: ${i}`,t,e)},n.prototype.complete=function(){let t=this.hasAnyBroken?"fail":"done";if(this.isComplete=!0,this.emitEvent(t,[this]),this.emitEvent("always",[this]),this.jqDeferred){let t=this.hasAnyBroken?"reject":"resolve";this.jqDeferred[t](this)}},h.prototype=Object.create(e.prototype),h.prototype.check=function(){this.getIsImageComplete()?this.confirm(0!==this.img.naturalWidth,"naturalWidth"):(this.proxyImage=new Image,this.img.crossOrigin&&(this.proxyImage.crossOrigin=this.img.crossOrigin),this.proxyImage.addEventListener("load",this),this.proxyImage.addEventListener("error",this),this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.proxyImage.src=this.img.currentSrc||this.img.src)},h.prototype.getIsImageComplete=function(){return this.img.complete&&this.img.naturalWidth},h.prototype.confirm=function(t,e){this.isLoaded=t;let{parentNode:i}=this.img,s="PICTURE"===i.nodeName?i:this.img;this.emitEvent("progress",[this,s,e])},h.prototype.handleEvent=function(t){let e="on"+t.type;this[e]&&this[e](t)},h.prototype.onload=function(){this.confirm(!0,"onload"),this.unbindEvents()},h.prototype.onerror=function(){this.confirm(!1,"onerror"),this.unbindEvents()},h.prototype.unbindEvents=function(){this.proxyImage.removeEventListener("load",this),this.proxyImage.removeEventListener("error",this),this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},d.prototype=Object.create(h.prototype),d.prototype.check=function(){this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.img.src=this.url,this.getIsImageComplete()&&(this.confirm(0!==this.img.naturalWidth,"naturalWidth"),this.unbindEvents())},d.prototype.unbindEvents=function(){this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},d.prototype.confirm=function(t,e){this.isLoaded=t,this.emitEvent("progress",[this,this.element,e])},n.makeJQueryPlugin=function(e){(e=e||t.jQuery)&&(i=e,i.fn.imagesLoaded=function(t,e){return new n(this,t,e).jqDeferred.promise(i(this))})},n.makeJQueryPlugin(),n}));
// source --> https://fotopress.hu/wp-content/plugins/js_composer/assets/lib/vendor/dist/isotope-layout/dist/isotope.pkgd.min.js?ver=8.7.2 
/*!
 * Isotope PACKAGED v3.0.6
 *
 * Licensed GPLv3 for open source use
 * or Isotope Commercial License for commercial use
 *
 * https://isotope.metafizzy.co
 * Copyright 2010-2018 Metafizzy
 */

!function(t,e){"function"==typeof define&&define.amd?define("jquery-bridget/jquery-bridget",["jquery"],function(i){return e(t,i)}):"object"==typeof module&&module.exports?module.exports=e(t,require("jquery")):t.jQueryBridget=e(t,t.jQuery)}(window,function(t,e){"use strict";function i(i,s,a){function u(t,e,o){var n,s="$()."+i+'("'+e+'")';return t.each(function(t,u){var h=a.data(u,i);if(!h)return void r(i+" not initialized. Cannot call methods, i.e. "+s);var d=h[e];if(!d||"_"==e.charAt(0))return void r(s+" is not a valid method");var l=d.apply(h,o);n=void 0===n?l:n}),void 0!==n?n:t}function h(t,e){t.each(function(t,o){var n=a.data(o,i);n?(n.option(e),n._init()):(n=new s(o,e),a.data(o,i,n))})}a=a||e||t.jQuery,a&&(s.prototype.option||(s.prototype.option=function(t){a.isPlainObject(t)&&(this.options=a.extend(!0,this.options,t))}),a.fn[i]=function(t){if("string"==typeof t){var e=n.call(arguments,1);return u(this,t,e)}return h(this,t),this},o(a))}function o(t){!t||t&&t.bridget||(t.bridget=i)}var n=Array.prototype.slice,s=t.console,r="undefined"==typeof s?function(){}:function(t){s.error(t)};return o(e||t.jQuery),i}),function(t,e){"function"==typeof define&&define.amd?define("ev-emitter/ev-emitter",e):"object"==typeof module&&module.exports?module.exports=e():t.EvEmitter=e()}("undefined"!=typeof window?window:this,function(){function t(){}var e=t.prototype;return e.on=function(t,e){if(t&&e){var i=this._events=this._events||{},o=i[t]=i[t]||[];return o.indexOf(e)==-1&&o.push(e),this}},e.once=function(t,e){if(t&&e){this.on(t,e);var i=this._onceEvents=this._onceEvents||{},o=i[t]=i[t]||{};return o[e]=!0,this}},e.off=function(t,e){var i=this._events&&this._events[t];if(i&&i.length){var o=i.indexOf(e);return o!=-1&&i.splice(o,1),this}},e.emitEvent=function(t,e){var i=this._events&&this._events[t];if(i&&i.length){i=i.slice(0),e=e||[];for(var o=this._onceEvents&&this._onceEvents[t],n=0;n<i.length;n++){var s=i[n],r=o&&o[s];r&&(this.off(t,s),delete o[s]),s.apply(this,e)}return this}},e.allOff=function(){delete this._events,delete this._onceEvents},t}),function(t,e){"function"==typeof define&&define.amd?define("get-size/get-size",e):"object"==typeof module&&module.exports?module.exports=e():t.getSize=e()}(window,function(){"use strict";function t(t){var e=parseFloat(t),i=t.indexOf("%")==-1&&!isNaN(e);return i&&e}function e(){}function i(){for(var t={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0},e=0;e<h;e++){var i=u[e];t[i]=0}return t}function o(t){var e=getComputedStyle(t);return e||a("Style returned "+e+". Are you running this code in a hidden iframe on Firefox? See https://bit.ly/getsizebug1"),e}function n(){if(!d){d=!0;var e=document.createElement("div");e.style.width="200px",e.style.padding="1px 2px 3px 4px",e.style.borderStyle="solid",e.style.borderWidth="1px 2px 3px 4px",e.style.boxSizing="border-box";var i=document.body||document.documentElement;i.appendChild(e);var n=o(e);r=200==Math.round(t(n.width)),s.isBoxSizeOuter=r,i.removeChild(e)}}function s(e){if(n(),"string"==typeof e&&(e=document.querySelector(e)),e&&"object"==typeof e&&e.nodeType){var s=o(e);if("none"==s.display)return i();var a={};a.width=e.offsetWidth,a.height=e.offsetHeight;for(var d=a.isBorderBox="border-box"==s.boxSizing,l=0;l<h;l++){var f=u[l],c=s[f],m=parseFloat(c);a[f]=isNaN(m)?0:m}var p=a.paddingLeft+a.paddingRight,y=a.paddingTop+a.paddingBottom,g=a.marginLeft+a.marginRight,v=a.marginTop+a.marginBottom,_=a.borderLeftWidth+a.borderRightWidth,z=a.borderTopWidth+a.borderBottomWidth,I=d&&r,x=t(s.width);x!==!1&&(a.width=x+(I?0:p+_));var S=t(s.height);return S!==!1&&(a.height=S+(I?0:y+z)),a.innerWidth=a.width-(p+_),a.innerHeight=a.height-(y+z),a.outerWidth=a.width+g,a.outerHeight=a.height+v,a}}var r,a="undefined"==typeof console?e:function(t){console.error(t)},u=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"],h=u.length,d=!1;return s}),function(t,e){"use strict";"function"==typeof define&&define.amd?define("desandro-matches-selector/matches-selector",e):"object"==typeof module&&module.exports?module.exports=e():t.matchesSelector=e()}(window,function(){"use strict";var t=function(){var t=window.Element.prototype;if(t.matches)return"matches";if(t.matchesSelector)return"matchesSelector";for(var e=["webkit","moz","ms","o"],i=0;i<e.length;i++){var o=e[i],n=o+"MatchesSelector";if(t[n])return n}}();return function(e,i){return e[t](i)}}),function(t,e){"function"==typeof define&&define.amd?define("fizzy-ui-utils/utils",["desandro-matches-selector/matches-selector"],function(i){return e(t,i)}):"object"==typeof module&&module.exports?module.exports=e(t,require("desandro-matches-selector")):t.fizzyUIUtils=e(t,t.matchesSelector)}(window,function(t,e){var i={};i.extend=function(t,e){for(var i in e)t[i]=e[i];return t},i.modulo=function(t,e){return(t%e+e)%e};var o=Array.prototype.slice;i.makeArray=function(t){if(Array.isArray(t))return t;if(null===t||void 0===t)return[];var e="object"==typeof t&&"number"==typeof t.length;return e?o.call(t):[t]},i.removeFrom=function(t,e){var i=t.indexOf(e);i!=-1&&t.splice(i,1)},i.getParent=function(t,i){for(;t.parentNode&&t!=document.body;)if(t=t.parentNode,e(t,i))return t},i.getQueryElement=function(t){return"string"==typeof t?document.querySelector(t):t},i.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},i.filterFindElements=function(t,o){t=i.makeArray(t);var n=[];return t.forEach(function(t){if(t instanceof HTMLElement){if(!o)return void n.push(t);e(t,o)&&n.push(t);for(var i=t.querySelectorAll(o),s=0;s<i.length;s++)n.push(i[s])}}),n},i.debounceMethod=function(t,e,i){i=i||100;var o=t.prototype[e],n=e+"Timeout";t.prototype[e]=function(){var t=this[n];clearTimeout(t);var e=arguments,s=this;this[n]=setTimeout(function(){o.apply(s,e),delete s[n]},i)}},i.docReady=function(t){var e=document.readyState;"complete"==e||"interactive"==e?setTimeout(t):document.addEventListener("DOMContentLoaded",t)},i.toDashed=function(t){return t.replace(/(.)([A-Z])/g,function(t,e,i){return e+"-"+i}).toLowerCase()};var n=t.console;return i.htmlInit=function(e,o){i.docReady(function(){var s=i.toDashed(o),r="data-"+s,a=document.querySelectorAll("["+r+"]"),u=document.querySelectorAll(".js-"+s),h=i.makeArray(a).concat(i.makeArray(u)),d=r+"-options",l=t.jQuery;h.forEach(function(t){var i,s=t.getAttribute(r)||t.getAttribute(d);try{i=s&&JSON.parse(s)}catch(a){return void(n&&n.error("Error parsing "+r+" on "+t.className+": "+a))}var u=new e(t,i);l&&l.data(t,o,u)})})},i}),function(t,e){"function"==typeof define&&define.amd?define("outlayer/item",["ev-emitter/ev-emitter","get-size/get-size"],e):"object"==typeof module&&module.exports?module.exports=e(require("ev-emitter"),require("get-size")):(t.Outlayer={},t.Outlayer.Item=e(t.EvEmitter,t.getSize))}(window,function(t,e){"use strict";function i(t){for(var e in t)return!1;return e=null,!0}function o(t,e){t&&(this.element=t,this.layout=e,this.position={x:0,y:0},this._create())}function n(t){return t.replace(/([A-Z])/g,function(t){return"-"+t.toLowerCase()})}var s=document.documentElement.style,r="string"==typeof s.transition?"transition":"WebkitTransition",a="string"==typeof s.transform?"transform":"WebkitTransform",u={WebkitTransition:"webkitTransitionEnd",transition:"transitionend"}[r],h={transform:a,transition:r,transitionDuration:r+"Duration",transitionProperty:r+"Property",transitionDelay:r+"Delay"},d=o.prototype=Object.create(t.prototype);d.constructor=o,d._create=function(){this._transn={ingProperties:{},clean:{},onEnd:{}},this.css({position:"absolute"})},d.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},d.getSize=function(){this.size=e(this.element)},d.css=function(t){var e=this.element.style;for(var i in t){var o=h[i]||i;e[o]=t[i]}},d.getPosition=function(){var t=getComputedStyle(this.element),e=this.layout._getOption("originLeft"),i=this.layout._getOption("originTop"),o=t[e?"left":"right"],n=t[i?"top":"bottom"],s=parseFloat(o),r=parseFloat(n),a=this.layout.size;o.indexOf("%")!=-1&&(s=s/100*a.width),n.indexOf("%")!=-1&&(r=r/100*a.height),s=isNaN(s)?0:s,r=isNaN(r)?0:r,s-=e?a.paddingLeft:a.paddingRight,r-=i?a.paddingTop:a.paddingBottom,this.position.x=s,this.position.y=r},d.layoutPosition=function(){var t=this.layout.size,e={},i=this.layout._getOption("originLeft"),o=this.layout._getOption("originTop"),n=i?"paddingLeft":"paddingRight",s=i?"left":"right",r=i?"right":"left",a=this.position.x+t[n];e[s]=this.getXValue(a),e[r]="";var u=o?"paddingTop":"paddingBottom",h=o?"top":"bottom",d=o?"bottom":"top",l=this.position.y+t[u];e[h]=this.getYValue(l),e[d]="",this.css(e),this.emitEvent("layout",[this])},d.getXValue=function(t){var e=this.layout._getOption("horizontal");return this.layout.options.percentPosition&&!e?t/this.layout.size.width*100+"%":t+"px"},d.getYValue=function(t){var e=this.layout._getOption("horizontal");return this.layout.options.percentPosition&&e?t/this.layout.size.height*100+"%":t+"px"},d._transitionTo=function(t,e){this.getPosition();var i=this.position.x,o=this.position.y,n=t==this.position.x&&e==this.position.y;if(this.setPosition(t,e),n&&!this.isTransitioning)return void this.layoutPosition();var s=t-i,r=e-o,a={};a.transform=this.getTranslate(s,r),this.transition({to:a,onTransitionEnd:{transform:this.layoutPosition},isCleaning:!0})},d.getTranslate=function(t,e){var i=this.layout._getOption("originLeft"),o=this.layout._getOption("originTop");return t=i?t:-t,e=o?e:-e,"translate3d("+t+"px, "+e+"px, 0)"},d.goTo=function(t,e){this.setPosition(t,e),this.layoutPosition()},d.moveTo=d._transitionTo,d.setPosition=function(t,e){this.position.x=parseFloat(t),this.position.y=parseFloat(e)},d._nonTransition=function(t){this.css(t.to),t.isCleaning&&this._removeStyles(t.to);for(var e in t.onTransitionEnd)t.onTransitionEnd[e].call(this)},d.transition=function(t){if(!parseFloat(this.layout.options.transitionDuration))return void this._nonTransition(t);var e=this._transn;for(var i in t.onTransitionEnd)e.onEnd[i]=t.onTransitionEnd[i];for(i in t.to)e.ingProperties[i]=!0,t.isCleaning&&(e.clean[i]=!0);if(t.from){this.css(t.from);var o=this.element.offsetHeight;o=null}this.enableTransition(t.to),this.css(t.to),this.isTransitioning=!0};var l="opacity,"+n(a);d.enableTransition=function(){if(!this.isTransitioning){var t=this.layout.options.transitionDuration;t="number"==typeof t?t+"ms":t,this.css({transitionProperty:l,transitionDuration:t,transitionDelay:this.staggerDelay||0}),this.element.addEventListener(u,this,!1)}},d.onwebkitTransitionEnd=function(t){this.ontransitionend(t)},d.onotransitionend=function(t){this.ontransitionend(t)};var f={"-webkit-transform":"transform"};d.ontransitionend=function(t){if(t.target===this.element){var e=this._transn,o=f[t.propertyName]||t.propertyName;if(delete e.ingProperties[o],i(e.ingProperties)&&this.disableTransition(),o in e.clean&&(this.element.style[t.propertyName]="",delete e.clean[o]),o in e.onEnd){var n=e.onEnd[o];n.call(this),delete e.onEnd[o]}this.emitEvent("transitionEnd",[this])}},d.disableTransition=function(){this.removeTransitionStyles(),this.element.removeEventListener(u,this,!1),this.isTransitioning=!1},d._removeStyles=function(t){var e={};for(var i in t)e[i]="";this.css(e)};var c={transitionProperty:"",transitionDuration:"",transitionDelay:""};return d.removeTransitionStyles=function(){this.css(c)},d.stagger=function(t){t=isNaN(t)?0:t,this.staggerDelay=t+"ms"},d.removeElem=function(){this.element.parentNode.removeChild(this.element),this.css({display:""}),this.emitEvent("remove",[this])},d.remove=function(){return r&&parseFloat(this.layout.options.transitionDuration)?(this.once("transitionEnd",function(){this.removeElem()}),void this.hide()):void this.removeElem()},d.reveal=function(){delete this.isHidden,this.css({display:""});var t=this.layout.options,e={},i=this.getHideRevealTransitionEndProperty("visibleStyle");e[i]=this.onRevealTransitionEnd,this.transition({from:t.hiddenStyle,to:t.visibleStyle,isCleaning:!0,onTransitionEnd:e})},d.onRevealTransitionEnd=function(){this.isHidden||this.emitEvent("reveal")},d.getHideRevealTransitionEndProperty=function(t){var e=this.layout.options[t];if(e.opacity)return"opacity";for(var i in e)return i},d.hide=function(){this.isHidden=!0,this.css({display:""});var t=this.layout.options,e={},i=this.getHideRevealTransitionEndProperty("hiddenStyle");e[i]=this.onHideTransitionEnd,this.transition({from:t.visibleStyle,to:t.hiddenStyle,isCleaning:!0,onTransitionEnd:e})},d.onHideTransitionEnd=function(){this.isHidden&&(this.css({display:"none"}),this.emitEvent("hide"))},d.destroy=function(){this.css({position:"",left:"",right:"",top:"",bottom:"",transition:"",transform:""})},o}),function(t,e){"use strict";"function"==typeof define&&define.amd?define("outlayer/outlayer",["ev-emitter/ev-emitter","get-size/get-size","fizzy-ui-utils/utils","./item"],function(i,o,n,s){return e(t,i,o,n,s)}):"object"==typeof module&&module.exports?module.exports=e(t,require("ev-emitter"),require("get-size"),require("fizzy-ui-utils"),require("./item")):t.Outlayer=e(t,t.EvEmitter,t.getSize,t.fizzyUIUtils,t.Outlayer.Item)}(window,function(t,e,i,o,n){"use strict";function s(t,e){var i=o.getQueryElement(t);if(!i)return void(u&&u.error("Bad element for "+this.constructor.namespace+": "+(i||t)));this.element=i,h&&(this.$element=h(this.element)),this.options=o.extend({},this.constructor.defaults),this.option(e);var n=++l;this.element.outlayerGUID=n,f[n]=this,this._create();var s=this._getOption("initLayout");s&&this.layout()}function r(t){function e(){t.apply(this,arguments)}return e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e}function a(t){if("number"==typeof t)return t;var e=t.match(/(^\d*\.?\d*)(\w*)/),i=e&&e[1],o=e&&e[2];if(!i.length)return 0;i=parseFloat(i);var n=m[o]||1;return i*n}var u=t.console,h=t.jQuery,d=function(){},l=0,f={};s.namespace="outlayer",s.Item=n,s.defaults={containerStyle:{position:"relative"},initLayout:!0,originLeft:!0,originTop:!0,resize:!0,resizeContainer:!0,transitionDuration:"0.4s",hiddenStyle:{opacity:0,transform:"scale(0.001)"},visibleStyle:{opacity:1,transform:"scale(1)"}};var c=s.prototype;o.extend(c,e.prototype),c.option=function(t){o.extend(this.options,t)},c._getOption=function(t){var e=this.constructor.compatOptions[t];return e&&void 0!==this.options[e]?this.options[e]:this.options[t]},s.compatOptions={initLayout:"isInitLayout",horizontal:"isHorizontal",layoutInstant:"isLayoutInstant",originLeft:"isOriginLeft",originTop:"isOriginTop",resize:"isResizeBound",resizeContainer:"isResizingContainer"},c._create=function(){this.reloadItems(),this.stamps=[],this.stamp(this.options.stamp),o.extend(this.element.style,this.options.containerStyle);var t=this._getOption("resize");t&&this.bindResize()},c.reloadItems=function(){this.items=this._itemize(this.element.children)},c._itemize=function(t){for(var e=this._filterFindItemElements(t),i=this.constructor.Item,o=[],n=0;n<e.length;n++){var s=e[n],r=new i(s,this);o.push(r)}return o},c._filterFindItemElements=function(t){return o.filterFindElements(t,this.options.itemSelector)},c.getItemElements=function(){return this.items.map(function(t){return t.element})},c.layout=function(){this._resetLayout(),this._manageStamps();var t=this._getOption("layoutInstant"),e=void 0!==t?t:!this._isLayoutInited;this.layoutItems(this.items,e),this._isLayoutInited=!0},c._init=c.layout,c._resetLayout=function(){this.getSize()},c.getSize=function(){this.size=i(this.element)},c._getMeasurement=function(t,e){var o,n=this.options[t];n?("string"==typeof n?o=this.element.querySelector(n):n instanceof HTMLElement&&(o=n),this[t]=o?i(o)[e]:n):this[t]=0},c.layoutItems=function(t,e){t=this._getItemsForLayout(t),this._layoutItems(t,e),this._postLayout()},c._getItemsForLayout=function(t){return t.filter(function(t){return!t.isIgnored})},c._layoutItems=function(t,e){if(this._emitCompleteOnItems("layout",t),t&&t.length){var i=[];t.forEach(function(t){var o=this._getItemLayoutPosition(t);o.item=t,o.isInstant=e||t.isLayoutInstant,i.push(o)},this),this._processLayoutQueue(i)}},c._getItemLayoutPosition=function(){return{x:0,y:0}},c._processLayoutQueue=function(t){this.updateStagger(),t.forEach(function(t,e){this._positionItem(t.item,t.x,t.y,t.isInstant,e)},this)},c.updateStagger=function(){var t=this.options.stagger;return null===t||void 0===t?void(this.stagger=0):(this.stagger=a(t),this.stagger)},c._positionItem=function(t,e,i,o,n){o?t.goTo(e,i):(t.stagger(n*this.stagger),t.moveTo(e,i))},c._postLayout=function(){this.resizeContainer()},c.resizeContainer=function(){var t=this._getOption("resizeContainer");if(t){var e=this._getContainerSize();e&&(this._setContainerMeasure(e.width,!0),this._setContainerMeasure(e.height,!1))}},c._getContainerSize=d,c._setContainerMeasure=function(t,e){if(void 0!==t){var i=this.size;i.isBorderBox&&(t+=e?i.paddingLeft+i.paddingRight+i.borderLeftWidth+i.borderRightWidth:i.paddingBottom+i.paddingTop+i.borderTopWidth+i.borderBottomWidth),t=Math.max(t,0),this.element.style[e?"width":"height"]=t+"px"}},c._emitCompleteOnItems=function(t,e){function i(){n.dispatchEvent(t+"Complete",null,[e])}function o(){r++,r==s&&i()}var n=this,s=e.length;if(!e||!s)return void i();var r=0;e.forEach(function(e){e.once(t,o)})},c.dispatchEvent=function(t,e,i){var o=e?[e].concat(i):i;if(this.emitEvent(t,o),h)if(this.$element=this.$element||h(this.element),e){var n=h.Event(e);n.type=t,this.$element.trigger(n,i)}else this.$element.trigger(t,i)},c.ignore=function(t){var e=this.getItem(t);e&&(e.isIgnored=!0)},c.unignore=function(t){var e=this.getItem(t);e&&delete e.isIgnored},c.stamp=function(t){t=this._find(t),t&&(this.stamps=this.stamps.concat(t),t.forEach(this.ignore,this))},c.unstamp=function(t){t=this._find(t),t&&t.forEach(function(t){o.removeFrom(this.stamps,t),this.unignore(t)},this)},c._find=function(t){if(t)return"string"==typeof t&&(t=this.element.querySelectorAll(t)),t=o.makeArray(t)},c._manageStamps=function(){this.stamps&&this.stamps.length&&(this._getBoundingRect(),this.stamps.forEach(this._manageStamp,this))},c._getBoundingRect=function(){var t=this.element.getBoundingClientRect(),e=this.size;this._boundingRect={left:t.left+e.paddingLeft+e.borderLeftWidth,top:t.top+e.paddingTop+e.borderTopWidth,right:t.right-(e.paddingRight+e.borderRightWidth),bottom:t.bottom-(e.paddingBottom+e.borderBottomWidth)}},c._manageStamp=d,c._getElementOffset=function(t){var e=t.getBoundingClientRect(),o=this._boundingRect,n=i(t),s={left:e.left-o.left-n.marginLeft,top:e.top-o.top-n.marginTop,right:o.right-e.right-n.marginRight,bottom:o.bottom-e.bottom-n.marginBottom};return s},c.handleEvent=o.handleEvent,c.bindResize=function(){t.addEventListener("resize",this),this.isResizeBound=!0},c.unbindResize=function(){t.removeEventListener("resize",this),this.isResizeBound=!1},c.onresize=function(){this.resize()},o.debounceMethod(s,"onresize",100),c.resize=function(){this.isResizeBound&&this.needsResizeLayout()&&this.layout()},c.needsResizeLayout=function(){var t=i(this.element),e=this.size&&t;return e&&t.innerWidth!==this.size.innerWidth},c.addItems=function(t){var e=this._itemize(t);return e.length&&(this.items=this.items.concat(e)),e},c.appended=function(t){var e=this.addItems(t);e.length&&(this.layoutItems(e,!0),this.reveal(e))},c.prepended=function(t){var e=this._itemize(t);if(e.length){var i=this.items.slice(0);this.items=e.concat(i),this._resetLayout(),this._manageStamps(),this.layoutItems(e,!0),this.reveal(e),this.layoutItems(i)}},c.reveal=function(t){if(this._emitCompleteOnItems("reveal",t),t&&t.length){var e=this.updateStagger();t.forEach(function(t,i){t.stagger(i*e),t.reveal()})}},c.hide=function(t){if(this._emitCompleteOnItems("hide",t),t&&t.length){var e=this.updateStagger();t.forEach(function(t,i){t.stagger(i*e),t.hide()})}},c.revealItemElements=function(t){var e=this.getItems(t);this.reveal(e)},c.hideItemElements=function(t){var e=this.getItems(t);this.hide(e)},c.getItem=function(t){for(var e=0;e<this.items.length;e++){var i=this.items[e];if(i.element==t)return i}},c.getItems=function(t){t=o.makeArray(t);var e=[];return t.forEach(function(t){var i=this.getItem(t);i&&e.push(i)},this),e},c.remove=function(t){var e=this.getItems(t);this._emitCompleteOnItems("remove",e),e&&e.length&&e.forEach(function(t){t.remove(),o.removeFrom(this.items,t)},this)},c.destroy=function(){var t=this.element.style;t.height="",t.position="",t.width="",this.items.forEach(function(t){t.destroy()}),this.unbindResize();var e=this.element.outlayerGUID;delete f[e],delete this.element.outlayerGUID,h&&h.removeData(this.element,this.constructor.namespace)},s.data=function(t){t=o.getQueryElement(t);var e=t&&t.outlayerGUID;return e&&f[e]},s.create=function(t,e){var i=r(s);return i.defaults=o.extend({},s.defaults),o.extend(i.defaults,e),i.compatOptions=o.extend({},s.compatOptions),i.namespace=t,i.data=s.data,i.Item=r(n),o.htmlInit(i,t),h&&h.bridget&&h.bridget(t,i),i};var m={ms:1,s:1e3};return s.Item=n,s}),function(t,e){"function"==typeof define&&define.amd?define("isotope-layout/js/item",["outlayer/outlayer"],e):"object"==typeof module&&module.exports?module.exports=e(require("outlayer")):(t.Isotope=t.Isotope||{},t.Isotope.Item=e(t.Outlayer))}(window,function(t){"use strict";function e(){t.Item.apply(this,arguments)}var i=e.prototype=Object.create(t.Item.prototype),o=i._create;i._create=function(){this.id=this.layout.itemGUID++,o.call(this),this.sortData={}},i.updateSortData=function(){if(!this.isIgnored){this.sortData.id=this.id,this.sortData["original-order"]=this.id,this.sortData.random=Math.random();var t=this.layout.options.getSortData,e=this.layout._sorters;for(var i in t){var o=e[i];this.sortData[i]=o(this.element,this)}}};var n=i.destroy;return i.destroy=function(){n.apply(this,arguments),this.css({display:""})},e}),function(t,e){"function"==typeof define&&define.amd?define("isotope-layout/js/layout-mode",["get-size/get-size","outlayer/outlayer"],e):"object"==typeof module&&module.exports?module.exports=e(require("get-size"),require("outlayer")):(t.Isotope=t.Isotope||{},t.Isotope.LayoutMode=e(t.getSize,t.Outlayer))}(window,function(t,e){"use strict";function i(t){this.isotope=t,t&&(this.options=t.options[this.namespace],this.element=t.element,this.items=t.filteredItems,this.size=t.size)}var o=i.prototype,n=["_resetLayout","_getItemLayoutPosition","_manageStamp","_getContainerSize","_getElementOffset","needsResizeLayout","_getOption"];return n.forEach(function(t){o[t]=function(){return e.prototype[t].apply(this.isotope,arguments)}}),o.needsVerticalResizeLayout=function(){var e=t(this.isotope.element),i=this.isotope.size&&e;return i&&e.innerHeight!=this.isotope.size.innerHeight},o._getMeasurement=function(){this.isotope._getMeasurement.apply(this,arguments)},o.getColumnWidth=function(){this.getSegmentSize("column","Width")},o.getRowHeight=function(){this.getSegmentSize("row","Height")},o.getSegmentSize=function(t,e){var i=t+e,o="outer"+e;if(this._getMeasurement(i,o),!this[i]){var n=this.getFirstItemSize();this[i]=n&&n[o]||this.isotope.size["inner"+e]}},o.getFirstItemSize=function(){var e=this.isotope.filteredItems[0];return e&&e.element&&t(e.element)},o.layout=function(){this.isotope.layout.apply(this.isotope,arguments)},o.getSize=function(){this.isotope.getSize(),this.size=this.isotope.size},i.modes={},i.create=function(t,e){function n(){i.apply(this,arguments)}return n.prototype=Object.create(o),n.prototype.constructor=n,e&&(n.options=e),n.prototype.namespace=t,i.modes[t]=n,n},i}),function(t,e){"function"==typeof define&&define.amd?define("masonry-layout/masonry",["outlayer/outlayer","get-size/get-size"],e):"object"==typeof module&&module.exports?module.exports=e(require("outlayer"),require("get-size")):t.Masonry=e(t.Outlayer,t.getSize)}(window,function(t,e){var i=t.create("masonry");i.compatOptions.fitWidth="isFitWidth";var o=i.prototype;return o._resetLayout=function(){this.getSize(),this._getMeasurement("columnWidth","outerWidth"),this._getMeasurement("gutter","outerWidth"),this.measureColumns(),this.colYs=[];for(var t=0;t<this.cols;t++)this.colYs.push(0);this.maxY=0,this.horizontalColIndex=0},o.measureColumns=function(){if(this.getContainerWidth(),!this.columnWidth){var t=this.items[0],i=t&&t.element;this.columnWidth=i&&e(i).outerWidth||this.containerWidth}var o=this.columnWidth+=this.gutter,n=this.containerWidth+this.gutter,s=n/o,r=o-n%o,a=r&&r<1?"round":"floor";s=Math[a](s),this.cols=Math.max(s,1)},o.getContainerWidth=function(){var t=this._getOption("fitWidth"),i=t?this.element.parentNode:this.element,o=e(i);this.containerWidth=o&&o.innerWidth},o._getItemLayoutPosition=function(t){t.getSize();var e=t.size.outerWidth%this.columnWidth,i=e&&e<1?"round":"ceil",o=Math[i](t.size.outerWidth/this.columnWidth);o=Math.min(o,this.cols);for(var n=this.options.horizontalOrder?"_getHorizontalColPosition":"_getTopColPosition",s=this[n](o,t),r={x:this.columnWidth*s.col,y:s.y},a=s.y+t.size.outerHeight,u=o+s.col,h=s.col;h<u;h++)this.colYs[h]=a;return r},o._getTopColPosition=function(t){var e=this._getTopColGroup(t),i=Math.min.apply(Math,e);return{col:e.indexOf(i),y:i}},o._getTopColGroup=function(t){if(t<2)return this.colYs;for(var e=[],i=this.cols+1-t,o=0;o<i;o++)e[o]=this._getColGroupY(o,t);return e},o._getColGroupY=function(t,e){if(e<2)return this.colYs[t];var i=this.colYs.slice(t,t+e);return Math.max.apply(Math,i)},o._getHorizontalColPosition=function(t,e){var i=this.horizontalColIndex%this.cols,o=t>1&&i+t>this.cols;i=o?0:i;var n=e.size.outerWidth&&e.size.outerHeight;return this.horizontalColIndex=n?i+t:this.horizontalColIndex,{col:i,y:this._getColGroupY(i,t)}},o._manageStamp=function(t){var i=e(t),o=this._getElementOffset(t),n=this._getOption("originLeft"),s=n?o.left:o.right,r=s+i.outerWidth,a=Math.floor(s/this.columnWidth);a=Math.max(0,a);var u=Math.floor(r/this.columnWidth);u-=r%this.columnWidth?0:1,u=Math.min(this.cols-1,u);for(var h=this._getOption("originTop"),d=(h?o.top:o.bottom)+i.outerHeight,l=a;l<=u;l++)this.colYs[l]=Math.max(d,this.colYs[l])},o._getContainerSize=function(){this.maxY=Math.max.apply(Math,this.colYs);var t={height:this.maxY};return this._getOption("fitWidth")&&(t.width=this._getContainerFitWidth()),t},o._getContainerFitWidth=function(){for(var t=0,e=this.cols;--e&&0===this.colYs[e];)t++;return(this.cols-t)*this.columnWidth-this.gutter},o.needsResizeLayout=function(){var t=this.containerWidth;return this.getContainerWidth(),t!=this.containerWidth},i}),function(t,e){"function"==typeof define&&define.amd?define("isotope-layout/js/layout-modes/masonry",["../layout-mode","masonry-layout/masonry"],e):"object"==typeof module&&module.exports?module.exports=e(require("../layout-mode"),require("masonry-layout")):e(t.Isotope.LayoutMode,t.Masonry)}(window,function(t,e){"use strict";var i=t.create("masonry"),o=i.prototype,n={_getElementOffset:!0,layout:!0,_getMeasurement:!0};for(var s in e.prototype)n[s]||(o[s]=e.prototype[s]);var r=o.measureColumns;o.measureColumns=function(){this.items=this.isotope.filteredItems,r.call(this)};var a=o._getOption;return o._getOption=function(t){return"fitWidth"==t?void 0!==this.options.isFitWidth?this.options.isFitWidth:this.options.fitWidth:a.apply(this.isotope,arguments)},i}),function(t,e){"function"==typeof define&&define.amd?define("isotope-layout/js/layout-modes/fit-rows",["../layout-mode"],e):"object"==typeof exports?module.exports=e(require("../layout-mode")):e(t.Isotope.LayoutMode)}(window,function(t){"use strict";var e=t.create("fitRows"),i=e.prototype;return i._resetLayout=function(){this.x=0,this.y=0,this.maxY=0,this._getMeasurement("gutter","outerWidth")},i._getItemLayoutPosition=function(t){t.getSize();var e=t.size.outerWidth+this.gutter,i=this.isotope.size.innerWidth+this.gutter;0!==this.x&&e+this.x>i&&(this.x=0,this.y=this.maxY);var o={x:this.x,y:this.y};return this.maxY=Math.max(this.maxY,this.y+t.size.outerHeight),this.x+=e,o},i._getContainerSize=function(){return{height:this.maxY}},e}),function(t,e){"function"==typeof define&&define.amd?define("isotope-layout/js/layout-modes/vertical",["../layout-mode"],e):"object"==typeof module&&module.exports?module.exports=e(require("../layout-mode")):e(t.Isotope.LayoutMode)}(window,function(t){"use strict";var e=t.create("vertical",{horizontalAlignment:0}),i=e.prototype;return i._resetLayout=function(){this.y=0},i._getItemLayoutPosition=function(t){t.getSize();var e=(this.isotope.size.innerWidth-t.size.outerWidth)*this.options.horizontalAlignment,i=this.y;return this.y+=t.size.outerHeight,{x:e,y:i}},i._getContainerSize=function(){return{height:this.y}},e}),function(t,e){"function"==typeof define&&define.amd?define(["outlayer/outlayer","get-size/get-size","desandro-matches-selector/matches-selector","fizzy-ui-utils/utils","isotope-layout/js/item","isotope-layout/js/layout-mode","isotope-layout/js/layout-modes/masonry","isotope-layout/js/layout-modes/fit-rows","isotope-layout/js/layout-modes/vertical"],function(i,o,n,s,r,a){return e(t,i,o,n,s,r,a)}):"object"==typeof module&&module.exports?module.exports=e(t,require("outlayer"),require("get-size"),require("desandro-matches-selector"),require("fizzy-ui-utils"),require("isotope-layout/js/item"),require("isotope-layout/js/layout-mode"),require("isotope-layout/js/layout-modes/masonry"),require("isotope-layout/js/layout-modes/fit-rows"),require("isotope-layout/js/layout-modes/vertical")):t.Isotope=e(t,t.Outlayer,t.getSize,t.matchesSelector,t.fizzyUIUtils,t.Isotope.Item,t.Isotope.LayoutMode)}(window,function(t,e,i,o,n,s,r){function a(t,e){return function(i,o){for(var n=0;n<t.length;n++){var s=t[n],r=i.sortData[s],a=o.sortData[s];if(r>a||r<a){var u=void 0!==e[s]?e[s]:e,h=u?1:-1;return(r>a?1:-1)*h}}return 0}}var u=t.jQuery,h=String.prototype.trim?function(t){return t.trim()}:function(t){return t.replace(/^\s+|\s+$/g,"")},d=e.create("isotope",{layoutMode:"masonry",isJQueryFiltering:!0,sortAscending:!0});d.Item=s,d.LayoutMode=r;var l=d.prototype;l._create=function(){this.itemGUID=0,this._sorters={},this._getSorters(),e.prototype._create.call(this),this.modes={},this.filteredItems=this.items,this.sortHistory=["original-order"];for(var t in r.modes)this._initLayoutMode(t)},l.reloadItems=function(){this.itemGUID=0,e.prototype.reloadItems.call(this)},l._itemize=function(){for(var t=e.prototype._itemize.apply(this,arguments),i=0;i<t.length;i++){var o=t[i];o.id=this.itemGUID++}return this._updateItemsSortData(t),t},l._initLayoutMode=function(t){var e=r.modes[t],i=this.options[t]||{};this.options[t]=e.options?n.extend(e.options,i):i,this.modes[t]=new e(this)},l.layout=function(){return!this._isLayoutInited&&this._getOption("initLayout")?void this.arrange():void this._layout()},l._layout=function(){var t=this._getIsInstant();this._resetLayout(),this._manageStamps(),this.layoutItems(this.filteredItems,t),this._isLayoutInited=!0},l.arrange=function(t){this.option(t),this._getIsInstant();var e=this._filter(this.items);this.filteredItems=e.matches,this._bindArrangeComplete(),this._isInstant?this._noTransition(this._hideReveal,[e]):this._hideReveal(e),this._sort(),this._layout()},l._init=l.arrange,l._hideReveal=function(t){this.reveal(t.needReveal),this.hide(t.needHide)},l._getIsInstant=function(){var t=this._getOption("layoutInstant"),e=void 0!==t?t:!this._isLayoutInited;return this._isInstant=e,e},l._bindArrangeComplete=function(){function t(){e&&i&&o&&n.dispatchEvent("arrangeComplete",null,[n.filteredItems])}var e,i,o,n=this;this.once("layoutComplete",function(){e=!0,t()}),this.once("hideComplete",function(){i=!0,t()}),this.once("revealComplete",function(){o=!0,t()})},l._filter=function(t){var e=this.options.filter;e=e||"*";for(var i=[],o=[],n=[],s=this._getFilterTest(e),r=0;r<t.length;r++){var a=t[r];if(!a.isIgnored){var u=s(a);u&&i.push(a),u&&a.isHidden?o.push(a):u||a.isHidden||n.push(a)}}return{matches:i,needReveal:o,needHide:n}},l._getFilterTest=function(t){return u&&this.options.isJQueryFiltering?function(e){return u(e.element).is(t);
}:"function"==typeof t?function(e){return t(e.element)}:function(e){return o(e.element,t)}},l.updateSortData=function(t){var e;t?(t=n.makeArray(t),e=this.getItems(t)):e=this.items,this._getSorters(),this._updateItemsSortData(e)},l._getSorters=function(){var t=this.options.getSortData;for(var e in t){var i=t[e];this._sorters[e]=f(i)}},l._updateItemsSortData=function(t){for(var e=t&&t.length,i=0;e&&i<e;i++){var o=t[i];o.updateSortData()}};var f=function(){function t(t){if("string"!=typeof t)return t;var i=h(t).split(" "),o=i[0],n=o.match(/^\[(.+)\]$/),s=n&&n[1],r=e(s,o),a=d.sortDataParsers[i[1]];return t=a?function(t){return t&&a(r(t))}:function(t){return t&&r(t)}}function e(t,e){return t?function(e){return e.getAttribute(t)}:function(t){var i=t.querySelector(e);return i&&i.textContent}}return t}();d.sortDataParsers={parseInt:function(t){return parseInt(t,10)},parseFloat:function(t){return parseFloat(t)}},l._sort=function(){if(this.options.sortBy){var t=n.makeArray(this.options.sortBy);this._getIsSameSortBy(t)||(this.sortHistory=t.concat(this.sortHistory));var e=a(this.sortHistory,this.options.sortAscending);this.filteredItems.sort(e)}},l._getIsSameSortBy=function(t){for(var e=0;e<t.length;e++)if(t[e]!=this.sortHistory[e])return!1;return!0},l._mode=function(){var t=this.options.layoutMode,e=this.modes[t];if(!e)throw new Error("No layout mode: "+t);return e.options=this.options[t],e},l._resetLayout=function(){e.prototype._resetLayout.call(this),this._mode()._resetLayout()},l._getItemLayoutPosition=function(t){return this._mode()._getItemLayoutPosition(t)},l._manageStamp=function(t){this._mode()._manageStamp(t)},l._getContainerSize=function(){return this._mode()._getContainerSize()},l.needsResizeLayout=function(){return this._mode().needsResizeLayout()},l.appended=function(t){var e=this.addItems(t);if(e.length){var i=this._filterRevealAdded(e);this.filteredItems=this.filteredItems.concat(i)}},l.prepended=function(t){var e=this._itemize(t);if(e.length){this._resetLayout(),this._manageStamps();var i=this._filterRevealAdded(e);this.layoutItems(this.filteredItems),this.filteredItems=i.concat(this.filteredItems),this.items=e.concat(this.items)}},l._filterRevealAdded=function(t){var e=this._filter(t);return this.hide(e.needHide),this.reveal(e.matches),this.layoutItems(e.matches,!0),e.matches},l.insert=function(t){var e=this.addItems(t);if(e.length){var i,o,n=e.length;for(i=0;i<n;i++)o=e[i],this.element.appendChild(o.element);var s=this._filter(e).matches;for(i=0;i<n;i++)e[i].isLayoutInstant=!0;for(this.arrange(),i=0;i<n;i++)delete e[i].isLayoutInstant;this.reveal(s)}};var c=l.remove;return l.remove=function(t){t=n.makeArray(t);var e=this.getItems(t);c.call(this,t);for(var i=e&&e.length,o=0;i&&o<i;o++){var s=e[o];n.removeFrom(this.filteredItems,s)}},l.shuffle=function(){for(var t=0;t<this.items.length;t++){var e=this.items[t];e.sortData.random=Math.random()}this.options.sortBy="random",this._sort(),this._layout()},l._noTransition=function(t,e){var i=this.options.transitionDuration;this.options.transitionDuration=0;var o=t.apply(this,e);return this.options.transitionDuration=i,o},l.getFilteredItemElements=function(){return this.filteredItems.map(function(t){return t.element})},d});
// source --> https://fotopress.hu/wp-content/themes/novo/js/scripts.js 
/*------------------------------------------------------------------
[Master Scripts]

Project:    Novo template
Version:    2.3.2

[Table of contents]

[Components]

	-Preloader 
	-Equal Height function 
	-Project slider 
	-Search 
	-Navigation 
	-Side bar 
	-Banner category 
	-Banner about 
	-Mobile menu 
	-Fixed header 
	-Price list 
	-Screen rezise events 
	-Project horizontal slider 
	-Scroll top button 
	-Fix centered container 
	-Portfolio items & filtering 
	-Blog items & filtering 
	-Post gallery masonry 
	-Comment reply 
	-Parallax 
	-Quantity 
	-Skills animation 
	
-------------------------------------------------------------------*/

"use strict";

/*------------------------------------------------------------------
[ Preloader ]
*/
jQuery(window).on('load', function () {
	jQuery(window).trigger('resize').trigger('scroll');
	var $preloader = jQuery('.preloader'),
		$spinner = $preloader.find('.spinner');
	$spinner.fadeOut();
	$preloader.delay(350).fadeOut('slow');

	jQuery('.owl-carousel').each(function () {
		jQuery(this).trigger('refresh.owl.carousel');
	});

	if (typeof skrollr !== "undefined") {
		skrollr.get().refresh();
	}

	jQuery('.isotope').isotope('layout');

	setTimeout(function () {
                jQuery(window).trigger('resize').trigger('scroll');
                jQuery('.isotope').isotope('layout');
                jQuery('.swiper').each(function() {
                        if(typeof jQuery(this).get(0).swiper !== 'undefined') {
                                jQuery(this).get(0).swiper.update();
                        }
                });
	}, 300);
});

jQuery('.tabs-head').on('click', '.item:not(.active-tab)', function () {
	jQuery(this).addClass('active-tab').siblings().removeClass('active-tab').parents('.tabs').find('.tabs-body .item').eq(jQuery(this).index()).fadeIn(150).siblings().hide();

  if(jQuery('.tabs-body div[data-name="'+jQuery(this).text()+'"] .post-gallery-grid').length) {
    jQuery('.tabs-body div[data-name="'+jQuery(this).text()+'"] .post-gallery-grid').isotope({
      itemSelector: '.col-12',
    });
  }

  jQuery(window).trigger("resize.image-comparison");

  jQuery('.image-comparison-slider').each(function () {
    var cur = jQuery(this);
    var width = cur.width() + 'px';
    cur.find('.resize .old').css('width', width);
  });
  
});

function leadZero(n) {
	return (n < 10 ? '0' : '') + n;
}

function addCssElement( selector, selectors, type = 'min-height' ) {
	var height = jQuery(window).outerHeight();

	for (var i = 0; i < selectors.length; i++) {
		var containerHeight = jQuery(selectors[i]).outerHeight();
		if ( containerHeight ) {
			height -= containerHeight;
		}
	}

	jQuery(selector).css(type, height);
}

function ownKeys(object, enumerableOnly) {
	var keys = Object.keys(object);
	if (Object.getOwnPropertySymbols) {
		var symbols = Object.getOwnPropertySymbols(object);
		if (enumerableOnly) symbols = symbols.filter(function (sym) {
			return Object.getOwnPropertyDescriptor(object, sym).enumerable;
		});
		keys.push.apply(keys, symbols);
	}
	return keys;
}

function _objectSpread(target) {
	for (var i = 1; i < arguments.length; i++) {
		var source = arguments[i] != null ? arguments[i] : {};
		if (i % 2) {
			ownKeys(Object(source), true).forEach(function (key) {
				_defineProperty(target, key, source[key]);
			});
		} else if (Object.getOwnPropertyDescriptors) {
			Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
		} else {
			ownKeys(Object(source)).forEach(function (key) {
				Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
			});
		}
	}
	return target;
}

function _defineProperty(obj, key, value) {
	if (key in obj) {
		Object.defineProperty(obj, key, {
			value: value,
			enumerable: true,
			configurable: true,
			writable: true
		});
	} else {
		obj[key] = value;
	}
	return obj;
}

function yprm_getCookie(name) {
	var matches = document.cookie.match(new RegExp("(?:^|; )" + name.replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g, '\$1') + "=([^;]*)"));
	return matches ? decodeURIComponent(matches[1]) : undefined;
}

function yprm_setCookie(name, value) {
	var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
	options = _objectSpread({
		path: '/'
	}, options);

	if (options.expires instanceof Date) {
		options.expires = options.expires.toUTCString();
	}

	var updatedCookie = encodeURIComponent(name) + "=" + encodeURIComponent(value);

	for (var optionKey in options) {
		updatedCookie += "; " + optionKey;
		var optionValue = options[optionKey];

		if (optionValue !== true) {
			updatedCookie += "=" + optionValue;
		}
	}

	document.cookie = updatedCookie;
}

if (yprm_getCookie('yprm_gdpr') == 'true') {
	jQuery('.gdpr-modal-block').remove();
}

jQuery(document).ready(function () {
  jQuery(".tabs:not(.elementor-block)").each(function () {
    var item = jQuery(this).find(".tabs-body > .item"),
      tabs_head = jQuery(this).find(".tabs-head");
    item.each(function () {
      var name = jQuery(this).data("name");

      tabs_head.append('<div class="item">' + name + "</div>");
    });

    tabs_head.find(".item:first-of-type").addClass("active-tab");
    jQuery(this)
      .find(".tabs-body > .item:first-of-type")
      .css("display", "block");
  });

  jQuery(".wpb_column .vertical-parallax-slider").each(function () {
    jQuery("body").addClass("body-one-screen");

    var this_el = jQuery(this),
      el = this_el.find(".item"),
      delay = 800,
      dots = this_el.parent().find(".pagination-dots"),
      nav = this_el.parent().find(".nav-arrows"),
      status = false;

    el.each(function () {
      jQuery(this).css("z-index", parseInt(el.length - jQuery(this).index()));
      dots.append("<span></span>");
    });

    function vertical_parallax(coef, index) {
      index = index === undefined ? false : index;
      if (coef != false) {
        var index = this_el.find(".item.active").index() - coef;
      }
      el.eq(index)
        .removeClass("prev next")
        .addClass("active")
        .siblings()
        .removeClass("active");
      el.eq(index).prevAll().removeClass("next").addClass("prev");
      el.eq(index).nextAll().removeClass("prev").addClass("next");
      dots
        .find("span")
        .eq(index)
        .addClass("active")
        .siblings()
        .removeClass("active");
    }

    vertical_parallax(false, 0);

    this_el.on("mousewheel wheel", function (e) {
      if (jQuery(window).width() > 992) {
        e.preventDefault();
        var cur = this_el.find(".item.active").index();
        if (status != true) {
          status = true;
          if (e.originalEvent.deltaY > 0 && cur != parseInt(el.length - 1)) {
            vertical_parallax("-1");
            setTimeout(function () {
              status = false;
            }, delay);
          } else if (e.originalEvent.deltaY < 0 && cur != 0) {
            vertical_parallax("1");
            setTimeout(function () {
              status = false;
            }, delay);
          } else {
            status = false;
          }
        }
      }
    });

    dots.on("click", "span:not(.active)", function () {
      jQuery(this).addClass("active").siblings().removeClass("active");
      vertical_parallax(false, jQuery(this).index());
    });

    nav
      .on("click", ".prev", function () {
        var cur = this_el.find(".item.active").index();
        if (cur != parseInt(el.length - 1)) {
          vertical_parallax("-1");
        }
      })
      .on("click", ".next", function () {
        var cur = this_el.find(".item.active").index();
        if (cur != 0) {
          vertical_parallax("1");
        }
      });
  });

  /*------------------------------------------------------------------
	[ Equal Height function ]
	*/
  function equalHeight(group) {
    if (jQuery(window).width() > "768") {
      var tallest = 0;
      jQuery(group).each(function () {
        var thisHeight = jQuery(this).css("height", "").height();
        if (thisHeight > tallest) {
          tallest = thisHeight;
        }
      });
      jQuery(group).height(tallest);
    } else {
      jQuery(group).height("auto");
    }
  }

  if (jQuery(".navigation > ul > li").length > 7) {
    jQuery(".navigation").addClass("min");
  }

  /*------------------------------------------------------------------
	[ Project slider ]
	*/
  jQuery(".project-slider").each(function () {
    var head_slider = jQuery(this);
    if (head_slider.find(".item").length == 1) {
      head_slider.parent().removeClass("with-carousel-nav");
    }
    if (jQuery(this).find(".item").length > 1) {
      head_slider.addClass("owl-carousel").owlCarousel({
        //loop:true,
        items: 1,
        nav: true,
        dots: false,
        autoplay: false,
        navClass: [
          "owl-prev basic-ui-icon-left-arrow",
          "owl-next basic-ui-icon-right-arrow",
        ],
        navText: false,
        autoHeight: true,
      });

      var child_carousel = head_slider.next(".project-slider-carousel");

      var i = 0;
      var flag = false;
      var c_items = "4";

      if (head_slider.find(".owl-item:not(.cloned)").find(".item").length < 4) {
        c_items = head_slider
          .find(".owl-item:not(.cloned)")
          .find(".item").length;
      }

      var child_carousel_c = child_carousel
        .addClass("owl-carousel")
        .owlCarousel({
          //loop:true,
          items: 1,
          nav: true,
          dots: false,
          autoplay: false,
          navClass: [
            "owl-prev basic-ui-icon-left-arrow",
            "owl-next basic-ui-icon-right-arrow",
          ],
          navText: false,
          margin: 15,
          responsive: {
            0: {
              nav: false,
            },
            480: {},
            768: {
              nav: true,
              items: c_items,
            },
          },
        })
        .on("click initialized.owl.carousel", ".item", function (e) {
          e.preventDefault();
          head_slider.trigger("to.owl.carousel", [
            jQuery(e.target).parents(".owl-item").index(),
            300,
            true,
          ]);
          jQuery(e.target)
            .parents(".owl-item")
            .addClass("active-item")
            .siblings()
            .removeClass("active-item");
        })
        .data("owl.carousel");

      var child_carousel_item = child_carousel.find(".owl-item.active");

      head_slider
        .on("change.owl.carousel", function (e) {
          if (
            e.namespace &&
            e.property.name === "position" &&
            !flag &&
            typeof child_carousel_c !== "undefined"
          ) {
            flag = true;
            child_carousel_c.to(
              e.relatedTarget.relative(e.property.value),
              300,
              true
            );
            head_slider
              .parent()
              .find(".banner-carousel .owl-item.active")
              .first()
              .addClass("active-item")
              .siblings()
              .removeClass("active-item");
            flag = false;
          }
        })
        .data("owl.carousel");
    }
  });

  /*------------------------------------------------------------------
	[ Image Comparison Slider ]
	*/

  jQuery(document).ready(function () {
    jQuery(".image-comparison-slider").each(function () {
      var cur = jQuery(this);
      var width = cur.width() + "px";
      cur.find(".resize .old").css("width", width);
      drags(cur.find(".line"), cur.find(".resize"), cur);
    });
  });

  jQuery(window).resize(function () {
    jQuery(".image-comparison-slider").each(function () {
      var cur = jQuery(this);
      var width = cur.width() + "px";
      cur.find(".resize .old").css("width", width);
    });
  });

  function drags(dragElement, resizeElement, container) {
    dragElement
      .on("mousedown touchstart", function (e) {
        dragElement.addClass("draggable");
        resizeElement.addClass("resizable");

        var startX = e.pageX ? e.pageX : e.originalEvent.touches[0].pageX,
          dragWidth = dragElement.outerWidth(),
          posX = dragElement.offset().left + dragWidth - startX,
          containerOffset = container.offset().left,
          containerWidth = container.outerWidth(),
          minLeft = containerOffset,
          maxLeft = containerOffset + containerWidth - dragWidth;

        dragElement
          .parents()
          .on("mousemove touchmove", function (e) {
            var moveX = e.pageX ? e.pageX : e.originalEvent.touches[0].pageX,
              leftValue = moveX + posX - dragWidth;

            if (leftValue < minLeft) {
              leftValue = minLeft;
            } else if (leftValue > maxLeft) {
              leftValue = maxLeft;
            }

            var widthValue =
              ((leftValue + dragWidth / 2 - containerOffset) * 100) /
                containerWidth +
              "%";

            jQuery(".draggable")
              .css("left", widthValue)
              .on("mouseup touchend touchcancel", function () {
                jQuery(this).removeClass("draggable");
                resizeElement.removeClass("resizable");
              });
            jQuery(".resizable").css("width", widthValue);
          })
          .on("mouseup touchend touchcancel", function () {
            dragElement.removeClass("draggable");
            resizeElement.removeClass("resizable");
          });
        e.preventDefault();
      })
      .on("mouseup touchend touchcancel", function (e) {
        dragElement.removeClass("draggable");
        resizeElement.removeClass("resizable");
      });
  }

  /*------------------------------------------------------------------
  [ Right click disable ]
	*/

  jQuery(".right-click-disable:not(.admin-bar)").on("contextmenu", function () {
    jQuery(".right-click-disable-message").addClass("active");
    return false;
  });

  jQuery(".right-click-disable-message:not(.lic)").on("click", function () {
    jQuery(this).removeClass("active");
    return false;
  });

  /* GDPR Close Cookie */

  jQuery(".gdpr-modal-block").on("click", ".close", function () {
    yprm_setCookie("yprm_gdpr", true);
    jQuery(this).parent().fadeOut();
  });

  /*------------------------------------------------------------------
	[ Search ]
	*/

  jQuery(".site-header .search-button").on("click", function () {
    if (jQuery(this).hasClass("active")) {
      jQuery(this).removeClass("active");
      jQuery(".search-popup").fadeOut();
    } else {
      jQuery(this).addClass("active");
      jQuery(".search-popup").fadeIn();
    }
  });

  jQuery(".search-popup .close").on("click", function () {
    jQuery(".site-header .search-button").removeClass("active");
    jQuery(".search-popup").fadeOut();
  });

  /*------------------------------------------------------------------
	[ Navigation ]
	*/

  jQuery(
    ".nav-button.hidden_menu:not([data-type]), .nav-button.visible_menu:not([data-type])"
  ).on("click", function () {
    if (jQuery(this).hasClass("active")) {
      jQuery(this).removeClass("active");
      jQuery(".navigation").removeClass("active");
    } else {
      jQuery(this).addClass("active");
      jQuery(".navigation").addClass("active");
    }
  });

  jQuery(".nav-button.full_screen:not([data-type])").on("click", function () {
    if (jQuery(this).hasClass("active")) {
      jQuery(this).removeClass("active");
      jQuery(".full-screen-nav").fadeOut();
    } else {
      jQuery(this).addClass("active");
      jQuery(".full-screen-nav").fadeIn();
    }
  });

  jQuery(".full-screen-nav .close").on("click", function () {
    jQuery(".nav-button.full_screen").removeClass("active");
    jQuery(".full-screen-nav").fadeOut();
  });

  jQuery(".full-screen-nav .menu-item-has-children > a").on(
    "click",
    function () {
      if (!jQuery(this).hasClass("active")) {
        jQuery(this)
          .addClass("active")
          .parent()
          .children(".sub-menu")
          .slideDown()
          .parent()
          .siblings()
          .children("a")
          .removeClass("active")
          .next(".sub-menu")
          .slideUp();
        return false;
      }
    }
  );

  jQuery(
    ".side-navigation ul li.menu-item-has-children > a,.side-navigation ul li.page_item_has_children > a"
  ).on("click", function () {
    jQuery(this).parents("li").addClass("active-child");
    return false;
  });

  jQuery(
    ".side-navigation .sub-menu .back,.side-navigation .children .back"
  ).on("click", function () {
    jQuery(this).parent().parent().removeClass("active-child");
    return false;
  });

  /*------------------------------------------------------------------
	[ Side bar ]
	*/

  jQuery(".side-bar-button").on("click", function () {
    jQuery(".side-bar-area").addClass("active");
  });

  jQuery(".side-bar-area .close").on("click", function () {
    jQuery(".side-bar-area").removeClass("active");
  });

  /*------------------------------------------------------------------
	[ Mobile menu ]
	*/

  jQuery(".navigation .menu-item-has-children > a").on("click", function () {
    if (jQuery(window).width() <= "1200") {
      if (!jQuery(this).hasClass("active")) {
        jQuery(this)
          .addClass("active")
          .parent()
          .children(".sub-menu")
          .slideDown()
          .siblings()
          .children(".sub-menu")
          .slideUp()
          .find("a.active")
          .removeClass("active");
        return false;
      } else if (
        jQuery(this).attr("href") == "" ||
        jQuery(this).attr("href") == "#"
      ) {
        jQuery(this)
          .removeClass("active")
          .parent()
          .children(".sub-menu")
          .slideUp();
        return false;
      }
    }
  });

  /*------------------------------------------------------------------
	[ Fixed header ]
	*/

  jQuery(window).on("load resize scroll elementor/frontend/init", function () {
    if (jQuery(document).scrollTop() > 0) {
      jQuery(".site-header:not(.without-fixed)").addClass("fixed");
    } else {
      jQuery(".site-header:not(.without-fixed)").removeClass("fixed");
    }

    // jQuery('.main-row, .protected-post-form').css('min-height', window_height - jQuery('.site-footer').outerHeight());
  });

  /*------------------------------------------------------------------
	[ Price list ]
	*/

  jQuery(document).on(
    "click",
    ".price-list .item .options .button-style1",
    function () {
      if (jQuery(this).parent().hasClass("active")) {
        jQuery(this)
          .removeClass("active")
          .parent()
          .removeClass("active")
          .find(".wrap")
          .slideUp();
      } else {
        jQuery(this)
          .addClass("active")
          .parent()
          .addClass("active")
          .find(".wrap")
          .slideDown();
      }
      return false;
    }
  );

  /*------------------------------------------------------------------
	[ Screen rezise events ]
	*/

  jQuery("#wpadminbar").addClass("wpadminbar");
  var nav_el = "";
  if (jQuery(".navigation").hasClass("visible_menu")) {
    nav_el = "yes";
  }

  jQuery(window).on("load resize elementor/frontend/init", function () {
    jQuery(".header-space").css(
      "height",
      (jQuery(".site-header").outerHeight() || 0) +
        jQuery(".header + .navigation").outerHeight() +
        (jQuery(".ypromo-site-bar").outerHeight() || 0)
    );

    var containers = [
      ".site-footer",
      ".footer-social-button",
      ".header-space:not(.hide)",
      ".ypromo-site-bar",
      "#wpadminbar",
    ];
    addCssElement("main.main-row", containers);
    var selectors = [
      ".site-footer",
      ".footer-social-button",
      ".header-space:not(.hide)",
      ".ypromo-site-bar",
      "#wpadminbar",
    ];
    addCssElement(".protected-post-form .cell", selectors, "height");

    jQuery(".banner:not(.fixed-height)").each(function () {
      var coef = 0;
      if (
        jQuery(this).parents(".banner-area").hasClass("external-indent") &&
        !jQuery(this).parents(".banner-area").hasClass("with-carousel-nav")
      ) {
        coef = 70;
      }

        jQuery(this).css(
          "height",
          jQuery(window).outerHeight() -
            (jQuery(".header-space:not(.hide)").outerHeight() || 0) -
            (jQuery("#wpadminbar").outerHeight() || 0) -
            coef
        );

      jQuery(this).find(".cell").css("height", jQuery(this).height());
      jQuery(this)
        .parent()
        .find(".banner-categories .item")
        .css("height", jQuery(this).height());
      jQuery(this)
        .parent()
        .find(".banner-about .cell")
        .css("height", jQuery(this).height() - 20);
      jQuery(this)
        .parent()
        .find(".banner-about .image")
        .css("height", jQuery(this).height());
      jQuery(this)
        .parent()
        .find(".banner-about .text")
        .css("height", jQuery(this).height());
      jQuery(this)
        .parent()
        .find(".banner-right-buttons .cell")
        .css("height", jQuery(this).height());
    });
    jQuery(".banner.fixed-height").each(function () {
      jQuery(this).find(".cell").css("height", jQuery(this).height());
      jQuery(this)
        .parent()
        .find(".banner-categories .item")
        .css("height", jQuery(this).height());
      jQuery(this)
        .parent()
        .find(".banner-about .cell")
        .css("height", jQuery(this).height() - 20);
      jQuery(this)
        .parent()
        .find(".banner-about .image")
        .css("height", jQuery(this).height());
      jQuery(this)
        .parent()
        .find(".banner-about .text")
        .css("height", jQuery(this).height());
      jQuery(this)
        .parent()
        .find(".banner-right-buttons .cell")
        .css("height", jQuery(this).height());
    });

    
      jQuery(".full-screen-nav .cell").css(
        "height",
        jQuery(window).height() - 20 - (jQuery("#wpadminbar").height() || 0)
      );

    jQuery(".side-header .cell").css(
      "height",
      jQuery(".side-header .wrap").height()
    );

    if (nav_el == "yes") {
      if (jQuery(window).width() > 1198) {
        jQuery(".navigation").addClass("visible_menu");
        jQuery(".nav-button").addClass("hidden");
      } else {
        jQuery(".navigation").removeClass("visible_menu");
        jQuery(".nav-button").removeClass("hidden").removeClass("active");
      }
    }

    if (jQuery(window).width() <= "768") {
      jQuery("body").addClass("is-mobile-body");
    } else {
      jQuery("body").removeClass("is-mobile-body");
    }

    jQuery('div[data-vc-full-width-mod="true"]').each(function () {
      var coef =
        (jQuery(".container").outerWidth() - jQuery("#all").width()) / 2;
      jQuery(this).css("left", coef).css("width", jQuery("#all").width());
    });

    jQuery(".price-list").each(function () {
      var h = 0;
      jQuery(this)
        .find(".item")
        .each(function () {
          if (h < jQuery(this).find(".wrap").outerHeight()) {
            h = jQuery(this).find(".wrap").outerHeight();
          }
        });
      jQuery(this)
        .find(".item")
        .css("padding-bottom", h + 130);
    });

    jQuery(".blog-type-grid").each(function () {
      //equalHeight(jQuery(this).find('.blog-item .content'));
    });

    jQuery(".woocommerce .products").each(function () {
      equalHeight(jQuery(this).find("article div.product"));
    });

    jQuery(
      ".project-horizontal-slider img, .project-horizontal, .project-horizontal-img"
    ).css(
      "height",
      jQuery(window).outerHeight() -
        jQuery(".header-space:not(.hide)").height() -
        (jQuery(".site-footer").outerHeight() || 0) -
        (jQuery("#wpadminbar").outerHeight() || 0)
    );
    jQuery(".project-horizontal .cell").css(
      "height",
      jQuery(".project-horizontal").outerHeight()
    );

    jQuery(".category-slider-area").each(function () {
      var this_el = jQuery(this);
      
        this_el.css(
          "height",
          jQuery(window).height() - (jQuery("#wpadminbar").outerHeight() || 0)
        );

      this_el.find(".category-slider-images").css("height", this_el.height());
      this_el.find(".cell").css("height", this_el.height());
    });

    jQuery(".wpb_wrapper .vertical-parallax-slider").each(function () {

        if (jQuery(".header-space:not(.hide)").length) {
          jQuery(this).css(
            "height",
            jQuery(window).outerHeight() -
              (jQuery(".header-space:not(.hide)").outerHeight() || 0) -
              (jQuery("#wpadminbar").outerHeight() || 0)
          );
          jQuery(this).find(".cell").css("height", jQuery(this).height());

      } else {
        if (jQuery(".header-space:not(.hide)").length) {
          jQuery(this).css(
            "height",
            jQuery(window).outerHeight() -
              (jQuery(".header-space:not(.hide)").outerHeight() || 0)
          );
          jQuery(this).find(".cell").css("height", jQuery(this).height());
        } else {
          jQuery(this).css("height", jQuery(window).outerHeight());
          jQuery(this).find(".cell").css("height", jQuery(this).height());
        }
      }
    });

    jQuery(".navigation > ul > li > .sub-menu").each(function () {
      var left = jQuery(this).offset().left,
        width = jQuery(this).outerWidth(),
        window_w = jQuery(window).width();

      if (!jQuery(this).hasClass("right") && window_w < left + width) {
        jQuery(this).addClass("right");
      }
    });

    jQuery(".album-area").each(function () {
      if (jQuery(this).find(".album-cover").length > 0) {
        var cover_height = jQuery(this).find(".album-cover").outerHeight(),
          top_height = jQuery(this).find(".top").outerHeight();

        jQuery(this)
          .find(".jp-playlist")
          .css("height", cover_height - top_height);
      }
    });
  });

  /*------------------------------------------------------------------
	[ Project horizontal slider ]
	*/
  jQuery(".project-horizontal-slider").each(function () {
    var head_slider = jQuery(this);
    if (head_slider.find(".item").length > 1) {
      head_slider.imagesLoaded(function () {
        head_slider.addClass("owl-carousel").owlCarousel({
          items: 1,
          nav: true,
          dots: false,
          autoplay: false,
          autoWidth: true,
          navClass: [
            "owl-prev basic-ui-icon-left-arrow",
            "owl-next basic-ui-icon-right-arrow",
          ],
          navText: false,
          margin: 30,
          responsive: {
            0: {
              nav: false,
            },
            480: {},
            768: {
              nav: true,
            },
          },
        });
      });
    }
  });

  /*------------------------------------------------------------------
	[ Scroll top button ]
	*/

  jQuery("#scroll-top").on("click", function () {
    jQuery("body, html").animate(
      {
        scrollTop: "0",
      },
      1100
    );
    return false;
  });

  /*------------------------------------------------------------------
	[ Fix centered container ]
	*/
  jQuery(window).on("load resize elementor/frontend/init", function () {
    jQuery(".centered-container").each(function () {
      var width = parseInt(Math.round(jQuery(this).width()).toFixed(0)),
        height = parseInt(Math.round(jQuery(this).height()).toFixed(0));

      jQuery(this).css("width", "").css("height", "");

      if (width & 1) {
        jQuery(this).css("width", width + 1 + "px");
      }

      if (height & 1) {
        jQuery(this).css("height", height + 1 + "px");
      }
    });
  });

  /*------------------------------------------------------------------
	[ Portfolio items & filtering ]
	*/

  jQuery(
    ".portfolio-type-grid, .portfolio-type-masonry, .portfolio-type-scattered"
   ).each(function () {
    var wrap = jQuery(this);
    wrap.imagesLoaded(function () {
      var $grid = wrap.isotope({
        itemSelector: "article",
        masonry: {
          //horizontalOrder: true
        },
      });

      // ensure proper layout when page loads
      jQuery(window).trigger("resize").trigger("scroll");

      wrap.prev(".filter-button-group").on("click", "button", function () {
        jQuery(this).addClass("active").siblings().removeClass("active");
        var filterValue = jQuery(this).attr("data-filter");
        if (
          jQuery(this).parents(".portfolio-block").find(".loadmore-button")
            .length > 0
        ) {
          jQuery(this)
            .parents(".portfolio-block")
            .find(".loadmore-button")
            .trigger("click", [false]);
        } else {
          $grid.isotope({
            filter: filterValue,
          });
        }

        jQuery(window).trigger("resize").trigger("scroll");
      });
    });
  });

  jQuery(".product-block .products").each(function () {
    var wrap = jQuery(this);
    wrap.imagesLoaded(function () {
      var $grid = wrap.isotope({
        itemSelector: "li",
        masonry: {
          //horizontalOrder: true
        },
      });

      wrap.prev(".filter-button-group").on("click", "button", function () {
        if (
          wrap.parents(".product-block").find(".loadmore-button").length &&
          wrap
            .parents(".product-block")
            .find(".loadmore-button")
            .hasClass("loading")
        ) {
          return false;
        }
        jQuery(this).addClass("active").siblings().removeClass("active");
        var filterValue = jQuery(this).attr("data-filter");
        if (
          jQuery(this).parents(".product-block").find(".loadmore-button")
            .length > 0
        ) {
          jQuery(this)
            .parents(".product-block")
            .find(".loadmore-button")
            .trigger("click", [false]);
        } else {
          $grid.isotope({
            filter: filterValue,
          });
        }

        jQuery(window).trigger("resize").trigger("scroll");
      });
    });
  });

  jQuery(".post-gallery-grid:not(.disable-iso)").each(function () {
    var $grid = jQuery(this).addClass("isotope").isotope({
      itemSelector: ".col-12",
      //horizontalOrder: true
    });
  });

  jQuery(".product-thumb-slider").each(function () {
    let $product_thumb_slider = jQuery(this),
        $product_thumb_slider_container = new Swiper($product_thumb_slider.get(0), { 
          loop: true,
          spaceBetween: 10,
          navigation: {
            nextEl: $product_thumb_slider.find(".next").get(0), 
            prevEl: $product_thumb_slider.find(".prev").get(0), 
          },
        });
  });
  

  jQuery(".js-pixproof-gallery").each(function () {
    var $grid = jQuery(this)
      .addClass("isotope")
      .isotope({
        itemSelector: ".proof-photo",
        getSortData: {
          selected: "[class]",
        },
        sortAscending: false,
      });
  });

  jQuery(".products.isotope").each(function () {
    var $grid = jQuery(this).isotope({
      itemSelector: "li",
      layoutMode: "fitRows",
    });
  });

  /*------------------------------------------------------------------
	[ Blog items & filtering ]
	*/
  jQuery(window).bind("load", function () {
    jQuery(".blog-items").each(function () {
      var wrap = jQuery(this);
      //wrap.imagesLoaded( function() {
      var $grid = jQuery(this).isotope({
        itemSelector: "article",
      });
      //});

      wrap.prev(".filter-button-group").on("click", "button", function () {
        jQuery(this).addClass("active").siblings().removeClass("active");
        var filterValue = jQuery(this).attr("data-filter");
        if (
          jQuery(this).parents(".blog-block").find(".loadmore-button").length >
          0
        ) {
          jQuery(this)
            .parents(".blog-block")
            .find(".loadmore-button")
            .trigger("click", [false]);
        } else {
          $grid.isotope({
            filter: filterValue,
          });
        }

        jQuery(window).trigger("resize").trigger("scroll");
      });
    });
  });

  /*------------------------------------------------------------------
	[ Post gallery masonry ]
	*/
  jQuery(window).on("load", function () {
    jQuery(".post-gallery-masonry").each(function () {
      var $grid = jQuery(this).isotope({
        itemSelector: "div",
      });
    });
  });

  /*------------------------------------------------------------------
	[ Comment reply ]
	*/

  jQuery(".replytocom").on("click", function () {
    var id_parent = jQuery(this).attr("data-id");
    jQuery("#comment_parent").val(id_parent);
    jQuery("#respond").appendTo(jQuery(this).parents(".comment-item"));
    jQuery("#cancel-comment-reply-link").show();
    return false;
  });

  jQuery("#cancel-comment-reply-link").on("click", function () {
    jQuery("#comment_parent").val("0");
    jQuery("#respond").appendTo(jQuery("#commentform-area"));
    jQuery("#cancel-comment-reply-link").hide();
    return false;
  });

  /*------------------------------------------------------------------
	[ Parallax ]
	*/

  jQuery(window).on("load scroll", function () {
    jQuery(".background-parallax").each(function () {
      
        var wScroll =
          jQuery(window).scrollTop() -
          jQuery(this).parent().offset().top +
          (jQuery("#wpadminbar").height() || 0) +
          (jQuery(".header-space").height() || 0);

      jQuery(this).css("transform", "translate(0px," + wScroll + "px)");
      jQuery(this)
        .parents(".owl-carousel")
        .find(".owl-nav div")
        .css("margin-top", wScroll);
    });
  });

  jQuery(".project-image-load-button .button-style1").each(function () {

    var $grid = jQuery(".post-gallery-grid").isotope({
      itemSelector: ".portfolio-item",
    }); 

    var $button = jQuery(this),
      time = 0,
      l_button_index = 0;

    $button.on("click", function () {
      var $this = jQuery(this),
        $wrap = $this.parents(".project-grid-page"),
        $load_items = $wrap.find(".load-items"),
        cout_pages = $load_items.length;

      l_button_index++;
      if (cout_pages == 1) {
        jQuery(this).addClass("hide").parent().fadeOut();
      }
      var items = $wrap.find(".load-items" + l_button_index).find(".col-12, .col-6, .col-md-3");
      $wrap.find(".load-items" + l_button_index).remove();

      $wrap
        .find(".post-gallery-grid")
        .append(items)
        .isotope("appended", items)
        .queue(function (next) {
          if (typeof lazyLoad === "function") {
            lazyLoad();
          }

          next();
        });

      return false;
    });

    if ($button.hasClass("load_more_on_scroll")) {
      jQuery(window).on("scroll", function () {
        $button
          .parent()
          .prev()
          .imagesLoaded(function () {
            var new_time = Date.now();

            if (time + 1000 < new_time && !$button.hasClass("hide")) {
              var top = $button.offset().top - 500,
                w_top = jQuery(window).scrollTop() + jQuery(window).height();

              if (w_top > jQuery(window).height() + 150 && top < w_top) {
                $button.trigger("click");
              }

              time = new_time;
            }
          });
      });
    }
  });

  /*------------------------------------------------------------------
	[ Quantity ]
	*/

  jQuery(".quantity .down").on("click", function () {
    var val = jQuery(this).parent().find(".input-text").val();
    if (val == "") {
      val = 0;
    }

    if (val > 1) {
      val = parseInt(val) - 1;
      jQuery(this).parent().find(".input-text").val(val);
      jQuery(this).parent().find(".input-text").trigger("change");
    }
    return false;
  });

  jQuery(".quantity .up").on("click", function () {
    var val = jQuery(this).parent().find(".input-text").val();
    if (val == "") {
      val = 0;
    }
    val = parseInt(val) + 1;
    jQuery(this).parent().find(".input-text").val(val);
    jQuery(this).parent().find(".input-text").trigger("change");
    return false;
  });

  /*------------------------------------------------------------------
	[ Skills animation ]
	*/

  jQuery(window).on("load scroll", function () {
    jQuery(".skill-item .chart").each(function () {
      var top = jQuery(document).scrollTop() + jQuery(window).height();
      var pos_top = jQuery(this).offset().top;
      if (top > pos_top) {
        jQuery(this).addClass("animated");
      }
    });
  });

  jQuery(document).on("click", '[href="#"]', function () {
    return false;
  });

  /*------------------------------------------------------------------
	[ Photo carousel ]
	*/
  jQuery(".photo-carousel .carousel").each(function () {
    var head_slider = jQuery(this);
    if (head_slider.find(".item").length > 1) {
      head_slider.addClass("owl-carousel").owlCarousel({
        loop: true,
        items: 1,
        nav: false,
        dots: false,
        autoplay: true,
        autoplayTimeout: 3000,
        smartSpeed: 2000,
        autoWidth: false,
        navText: false,
        responsive: {
          0: {
            items: 2,
          },
          480: {
            items: 3,
          },
          768: {
            items: 4,
          },
          980: {
            items: 5,
          },
          1200: {
            items: 6,
          },
          1400: {
            items: 7,
          },
          1700: {
            items: 8,
          },
          1980: {
            items: 9,
          },
        },
      });
    }
  });

  jQuery(".product-image-block").each(function () {
    var $block = jQuery(this),
        $thumbs_carousel = $block.find(".thumbs .swiper"),
        $image_slider = $block.find(".slider");
  
    
    var $thumbs_carousel_swiper = new Swiper($thumbs_carousel.get(0), { 
      direction: "vertical",
      slidesPerView: "auto",
      spaceBetween: 15,
    });
  
    
    var $image_slider_swiper = new Swiper($image_slider.get(0), { 
      navigation: {
        nextEl: $image_slider.find(".swiper-next").get(0), 
        prevEl: $image_slider.find(".swiper-prev").get(0), 
      },
      slideToClickedSlide: true,
      thumbs: {
        swiper: $thumbs_carousel_swiper,
      },
      spaceBetween: 15,
    });
  });
  

  jQuery(".project-single-carousel").each(function () {
    var $portfolio_carousel = jQuery(this),
        $portfolio_carousel_swiper = new Swiper(
          $portfolio_carousel.find(".swiper").get(0), 
          {
            slidesPerView: "auto",
            spaceBetween: 30,
            navigation: {
              prevEl: $portfolio_carousel.find(".prev").get(0), 
              nextEl: $portfolio_carousel.find(".next").get(0), 
            },
            breakpoints: {
              576: {
                autoHeight: true,
              },
            },
          }
        );
  });
  

  jQuery(".single_variation_wrap").on(
    "show_variation",
    function (event, variation) {
      let image = variation.image;

      if (jQuery(".product-image-block").length > 0) {
        let swiperSlider = jQuery(".product-image-block")
            .find(".slider")
            .get(0).swiper,
          swiperThumbs = jQuery(".product-image-block")
            .find(".thumbs .swiper")
            .get(0).swiper,
          adaptive = jQuery(".product-image-block").hasClass("adaptive");

        if (adaptive) {
          jQuery(swiperSlider.slides[0]).find("img").attr({
            src: image.src,
            srcset: image.srcset,
            sizes: image.sizes,
          });
        } else {
          jQuery(swiperSlider.slides[0])
            .find("a")
            .css("background-image", "url(" + image + ")");
        }

        jQuery(swiperThumbs.slides[0]).css(
          "background-image",
          "url(" + image + ")"
        );
        swiperSlider.slideTo(0);
      } else if (jQuery(".product-image").length > 0) {
        let adaptive = jQuery(".product-image").hasClass("adaptive");

        if (adaptive) {
          jQuery(".product-image").find("img").attr({
            src: image.src,
            srcset: image.srcset,
            sizes: image.sizes,
          });
        } else {
          jQuery(".product-image")
            .find("a")
            .css("background-image", "url(" + image + ")");
        }
      }
    }
  );

  /*------------------------------------------------------------------
	[ Color Switcher ]
	*/

  let colorScheme = "dark";

  if (jQuery("body").hasClass("site-light")) {
    colorScheme = "light";
  } else {
    colorScheme = "dark";
  }

  if (yprm_getCookie("swicher_color_scheme")) {
    colorScheme = yprm_getCookie("swicher_color_scheme");
  }

  yprm_setCookie("swicher_color_scheme", colorScheme);

  jQuery(".switch-site-scheme").each(function () {
    if (colorScheme == "light") {
      jQuery(this).addClass("active");
    }
  });

  function yprmChangeScheme() {
    if(colorScheme == 'dark') {
      jQuery('body').removeClass('site-light').addClass('site-dark')
      jQuery('.dark-header').removeClass('dark-header').addClass('light-header')
      jQuery('.side-header').removeClass('light').addClass('dark')
      jQuery('.row-light-bg-switch').removeClass('row-light-bg-switch').addClass('row-dark-bg-switch');
    } else {
      jQuery('body').removeClass('site-dark').addClass('site-light')
      jQuery('.light-header').removeClass('light-header').addClass('dark-header')
      jQuery('.side-header').removeClass('dark').addClass('light')
      jQuery('.row-dark-bg-switch').removeClass('row-dark-bg-switch').addClass('row-light-bg-switch');
    }
}

  yprmChangeScheme();

  jQuery(document).on("click", ".switch-site-scheme", function () {
    jQuery(this).toggleClass("active");

    if (colorScheme == "dark") {
      colorScheme = "light";
    } else {
      colorScheme = "dark";
    }

    yprm_setCookie("swicher_color_scheme", colorScheme);
    yprmChangeScheme();
  });

      // Mobile view owl nav hidden when circle nav is enabled
      function mobileOwlNavHiding() {
        var bannerCircleNav = jQuery('.banner-circle-nav');
  
        if (bannerCircleNav.length > 0) {
          jQuery('.banner.arrows-bottom .owl-nav').hide();
        }
      }

      mobileOwlNavHiding();


});
// source --> https://fotopress.hu/wp-content/plugins/pt-novo-shortcodes/assets/js/js_composer_front.min.js?ver=1.0.0 
function vc_js() {
  vc_toggleBehaviour(),
    vc_tabsBehaviour(),
    vc_accordionBehaviour(),
    vc_teaserGrid(),
    vc_carouselBehaviour(),
    vc_slidersBehaviour(),
    vc_prettyPhoto(),
    vc_googleplus(),
    vc_pinterest(),
    vc_progress_bar(),
    vc_plugin_flexslider(),
    vc_google_fonts(),
    vc_gridBehaviour(),
    vc_rowBehaviour(),
    vc_prepareHoverBox(),
    vc_googleMapsPointer(),
    vc_ttaActivation(),
    jQuery(document).trigger("vc_js"),
    window.setTimeout(vc_waypoints, 500)
}
document.documentElement.className += " js_active ",
  document.documentElement.className += "ontouchstart" in document.documentElement ? " vc_mobile " : " vc_desktop ",
  function () {
    for (var prefix = ["-webkit-", "-moz-", "-ms-", "-o-", ""], i = 0; i < prefix.length; i++)
      prefix[i] + "transform" in document.documentElement.style && (document.documentElement.className += " vc_transform ")
  }(),
  "function" != typeof window.vc_plugin_flexslider && (window.vc_plugin_flexslider = function ($parent) {
    ($parent ? $parent.find(".wpb_flexslider") : jQuery(".wpb_flexslider")).each(function () {
      var this_element = jQuery(this),
        sliderTimeout = 1e3 * parseInt(this_element.attr("data-interval")),
        sliderFx = this_element.attr("data-flex_fx"),
        slideshow = !0;
      0 === sliderTimeout && (slideshow = !1),
        this_element.is(":visible") && this_element.flexslider({
          animation: sliderFx,
          slideshow: slideshow,
          slideshowSpeed: sliderTimeout,
          sliderSpeed: 800,
          smoothHeight: !0
        })
    })
  }),
  "function" != typeof window.vc_googleplus && (window.vc_googleplus = function () {
    0 < jQuery(".wpb_googleplus").length && function () {
      var po = document.createElement("script");
      po.type = "text/javascript",
        po.async = !0,
        po.src = "https://apis.google.com/js/plusone.js";
      var s = document.getElementsByTagName("script")[0];
      s.parentNode.insertBefore(po, s)
    }()
  }),
  "function" != typeof window.vc_pinterest && (window.vc_pinterest = function () {
    0 < jQuery(".wpb_pinterest").length && function () {
      var po = document.createElement("script");
      po.type = "text/javascript",
        po.async = !0,
        po.src = "https://assets.pinterest.com/js/pinit.js";
      var s = document.getElementsByTagName("script")[0];
      s.parentNode.insertBefore(po, s)
    }()
  }),
  "function" != typeof window.vc_progress_bar && (window.vc_progress_bar = function () {
    void 0 !== jQuery.fn.waypoint && jQuery(".vc_progress_bar").waypoint(function () {
      jQuery(this).find(".vc_single_bar").each(function (index) {
        var bar = jQuery(this).find(".vc_bar"),
          val = bar.data("percentage-value");
        setTimeout(function () {
          bar.css({
            width: val + "%"
          })
        }, 200 * index)
      })
    }, {
      offset: "85%"
    })
  }),
  "function" != typeof window.vc_waypoints && (window.vc_waypoints = function () {
    void 0 !== jQuery.fn.vcwaypoint && jQuery(".wpb_animate_when_almost_visible:not(.wpb_start_animation)").each(function () {
      var $el = jQuery(this);
      $el.vcwaypoint(function () {
        $el.addClass("wpb_start_animation animated")
      }, {
        offset: "85%"
      })
    })
  }),
  "function" != typeof window.vc_toggleBehaviour && (window.vc_toggleBehaviour = function ($el) {
    function event(e) {
      e && e.preventDefault && e.preventDefault();
      var element = jQuery(this).closest(".vc_toggle"),
        content = element.find(".vc_toggle_content");
      element.hasClass("vc_toggle_active") ? content.slideUp({
        duration: 300,
        complete: function () {
          element.removeClass("vc_toggle_active")
        }
      }) : content.slideDown({
        duration: 300,
        complete: function () {
          element.addClass("vc_toggle_active")
        }
      })
    }
    $el ? $el.hasClass("vc_toggle_title") ? $el.unbind("click").click(event) : $el.find(".vc_toggle_title").unbind("click").click(event) : jQuery(".vc_toggle_title").unbind("click").on("click", event)
  }),
  "function" != typeof window.vc_tabsBehaviour && (window.vc_tabsBehaviour = function ($tab) {
    if (jQuery.ui) {
      var $call = $tab || jQuery(".wpb_tabs, .wpb_tour"),
        ver = jQuery.ui && jQuery.ui.version ? jQuery.ui.version.split(".") : "1.10",
        old_version = 1 === parseInt(ver[0]) && parseInt(ver[1]) < 9;
      $call.each(function (index) {
        var $tabs, interval = jQuery(this).attr("data-interval"),
          tabs_array = [];
        if ($tabs = jQuery(this).find(".wpb_tour_tabs_wrapper").tabs({
            show: function (event, ui) {
              wpb_prepare_tab_content(event, ui)
            },
            beforeActivate: function (event, ui) {
              1 !== ui.newPanel.index() && ui.newPanel.find(".vc_pie_chart:not(.vc_ready)")
            },
            activate: function (event, ui) {
              wpb_prepare_tab_content(event, ui)
            }
          }),
          interval && 0 < interval)
          try {
            $tabs.tabs("rotate", 1e3 * interval)
          } catch (e) {
            window.console && window.console.warn && console.warn(e)
          }
        jQuery(this).find(".wpb_tab").each(function () {
            tabs_array.push(this.id)
          }),
          jQuery(this).find(".wpb_tabs_nav li").click(function (e) {
            return e.preventDefault(),
              old_version ? $tabs.tabs("select", jQuery("a", this).attr("href")) : $tabs.tabs("option", "active", jQuery(this).index()),
              !1
          }),
          jQuery(this).find(".wpb_prev_slide a, .wpb_next_slide a").click(function (e) {
            if (e.preventDefault(),
              old_version) {
              var index = $tabs.tabs("option", "selected");
              jQuery(this).parent().hasClass("wpb_next_slide") ? index++ : index--,
                index < 0 ? index = $tabs.tabs("length") - 1 : index >= $tabs.tabs("length") && (index = 0),
                $tabs.tabs("select", index)
            } else {
              index = $tabs.tabs("option", "active");
              var length = $tabs.find(".wpb_tab").length;
              index = jQuery(this).parent().hasClass("wpb_next_slide") ? length <= index + 1 ? 0 : index + 1 : index - 1 < 0 ? length - 1 : index - 1,
                $tabs.tabs("option", "active", index)
            }
          })
      })
    }
  }),
  "function" != typeof window.vc_accordionBehaviour && (window.vc_accordionBehaviour = function () {
    jQuery(".wpb_accordion").each(function (index) {
      var $tabs, $this = jQuery(this),
        active_tab = ($this.attr("data-interval"),
          !isNaN(jQuery(this).data("active-tab")) && 0 < parseInt($this.data("active-tab")) && parseInt($this.data("active-tab")) - 1),
        collapsible = !1 === active_tab || "yes" === $this.data("collapsible");
      $tabs = $this.find(".wpb_accordion_wrapper").accordion({
          header: "> div > h3",
          autoHeight: !1,
          heightStyle: "content",
          active: active_tab,
          collapsible: collapsible,
          navigation: !0,
          activate: vc_accordionActivate,
          change: function (event, ui) {
            void 0 !== jQuery.fn.isotope && ui.newContent.find(".isotope").isotope("layout"),
              vc_carouselBehaviour(ui.newPanel)
          }
        }),
        !0 === $this.data("vcDisableKeydown") && ($tabs.data("uiAccordion")._keydown = function () {})
    })
  }),
  "function" != typeof window.vc_teaserGrid && (window.vc_teaserGrid = function () {
    var layout_modes = {
      fitrows: "fitRows",
      masonry: "masonry"
    };
    jQuery(".wpb_grid .teaser_grid_container:not(.wpb_carousel), .wpb_filtered_grid .teaser_grid_container:not(.wpb_carousel)").each(function () {
      var $container = jQuery(this),
        $thumbs = $container.find(".wpb_thumbnails"),
        layout_mode = $thumbs.attr("data-layout-mode");
      $thumbs.isotope({
          itemSelector: ".isotope-item",
          layoutMode: void 0 === layout_modes[layout_mode] ? "fitRows" : layout_modes[layout_mode]
        }),
        $container.find(".categories_filter a").data("isotope", $thumbs).click(function (e) {
          e.preventDefault();
          var $thumbs = jQuery(this).data("isotope");
          jQuery(this).parent().parent().find(".active").removeClass("active"),
            jQuery(this).parent().addClass("active"),
            $thumbs.isotope({
              filter: jQuery(this).attr("data-filter")
            })
        }),
        jQuery(window).bind("load resize", function () {
          $thumbs.isotope("layout")
        })
    })
  }),
  "function" != typeof window.vc_carouselBehaviour && (window.vc_carouselBehaviour = function ($parent) {
    ($parent ? $parent.find(".wpb_carousel") : jQuery(".wpb_carousel")).each(function () {
      var $this = jQuery(this);
      if (!0 !== $this.data("carousel_enabled") && $this.is(":visible")) {
        $this.data("carousel_enabled", !0);
        getColumnsCount(jQuery(this));
        jQuery(this).hasClass("columns_count_1") && 900;
        var carousele_li = jQuery(this).find(".wpb_thumbnails-fluid li");
        carousele_li.css({
          "margin-right": carousele_li.css("margin-left"),
          "margin-left": 0
        });
        var fluid_ul = jQuery(this).find("ul.wpb_thumbnails-fluid");
        fluid_ul.width(fluid_ul.width() + 300),
          jQuery(window).resize(function () {
            screen_size != (screen_size = getSizeName()) && window.setTimeout("location.reload()", 20)
          })
      }
    })
  }),
  "function" != typeof window.vc_slidersBehaviour && (window.vc_slidersBehaviour = function () {
    jQuery(".wpb_gallery_slides").each(function (index) {
      var $imagesGrid, this_element = jQuery(this);
      if (this_element.hasClass("wpb_slider_nivo")) {
        var sliderTimeout = 1e3 * this_element.attr("data-interval");
        0 === sliderTimeout && (sliderTimeout = 9999999999),
          this_element.find(".nivoSlider").nivoSlider({
            effect: "boxRainGrow,boxRain,boxRainReverse,boxRainGrowReverse",
            slices: 15,
            boxCols: 8,
            boxRows: 4,
            animSpeed: 800,
            pauseTime: sliderTimeout,
            startSlide: 0,
            directionNav: !0,
            directionNavHide: !0,
            controlNav: !0,
            keyboardNav: !1,
            pauseOnHover: !0,
            manualAdvance: !1,
            prevText: "Prev",
            nextText: "Next"
          })
      } else
        this_element.hasClass("wpb_image_grid") && (jQuery.fn.imagesLoaded ? $imagesGrid = this_element.find(".wpb_image_grid_ul").imagesLoaded(function () {
          $imagesGrid.isotope({
            itemSelector: ".isotope-item",
            layoutMode: "fitRows"
          })
        }) : this_element.find(".wpb_image_grid_ul").isotope({
          itemSelector: ".isotope-item",
          layoutMode: "fitRows"
        }))
    })
  }),
  "function" != typeof window.vc_prettyPhoto && (window.vc_prettyPhoto = function () {
    try {
      jQuery && jQuery.fn && jQuery.fn.prettyPhoto && jQuery('a.prettyphoto, .gallery-icon a[href*=".jpg"]').prettyPhoto({
        animationSpeed: "normal",
        hook: "data-rel",
        padding: 15,
        opacity: .7,
        showTitle: !0,
        allowresize: !0,
        counter_separator_label: "/",
        hideflash: !1,
        deeplinking: !1,
        modal: !1,
        callback: function () {
          -1 < location.href.indexOf("#!prettyPhoto") && (location.hash = "")
        },
        social_tools: ""
      })
    } catch (err) {
      window.console && window.console.warn && console.warn(err)
    }
  }),
  "function" != typeof window.vc_google_fonts && (window.vc_google_fonts = function () {
    return !1
  }),
  window.vcParallaxSkroll = !1,
  "function" != typeof window.vc_rowBehaviour && (window.vc_rowBehaviour = function () {
    var vcSkrollrOptions, callSkrollInit, $ = window.jQuery;

    function fullWidthRow() {
      var $elements = $('[data-vc-full-width="true"]');
      $.each($elements, function (key, item) {
          var $el = $(this);
          $el.addClass("vc_hidden");
          var $el_full = $el.next(".vc_row-full-width");
          if ($el_full.length || ($el_full = $el.parent().next(".vc_row-full-width")),
            $el_full.length) {
            var el_body = parseInt($('#all').css('padding-left'), 10);
            if($('body').hasClass('header_type_side')) {
              var el_body = parseInt($('#all').css('padding-left'), 10);
            }
            var padding, paddingRight, el_margin_left = parseInt($el.css("margin-left"), 10) - el_body,
              el_margin_right = parseInt($el.css("margin-right"), 10) - el_body,
              offset = 0 - $el_full.offset().left - el_margin_left,
              width = $(window).width() - el_body;

            if($('body').hasClass('header_type_side')) {
              width = $(window).width() - el_body - parseInt($('#all').css('padding-right'), 10);
            }
            if ("rtl" === $el.css("direction") && (offset -= $el_full.width(),
                offset += width,
                offset += el_margin_left,
                offset += el_margin_right),
              $el.css({
                position: "relative",
                left: offset,
                "box-sizing": "border-box",
                width: width
              }),
              !$el.data("vcStretchContent"))
              "rtl" === $el.css("direction") ? ((padding = offset) < 0 && (padding = 0),
                (paddingRight = offset) < 0 && (paddingRight = 0)) : ((padding = -1 * offset) < 0 && (padding = 0),
                (paddingRight = width - padding - $el_full.width() + el_margin_left + el_margin_right) < 0 && (paddingRight = 0)),
              $el.css({
                "padding-left": padding + "px",
                "padding-right": paddingRight + "px"
              });
            $el.attr("data-vc-full-width-init", "true"),
              $el.removeClass("vc_hidden"),
              $(document).trigger("vc-full-width-row-single", {
                el: $el,
                offset: offset,
                marginLeft: el_margin_left,
                marginRight: el_margin_right,
                elFull: $el_full,
                width: width
              })
          }
        }),
        $(document).trigger("vc-full-width-row", $elements)
    }

    function fullHeightRow() {
      var coef = 0;
      if($('body').hasClass('header-on-side-type2')) {
        coef = 65;
      }
      var windowHeight, offsetTop, fullHeight, $element = $(".vc_row-o-full-height:first");
      $element.length && (windowHeight = $(window).height(),
        (offsetTop = $element.offset().top) < windowHeight && (fullHeight = 100 - (coef + offsetTop) / (windowHeight / 100),
          $element.css("min-height", fullHeight + "vh")));
      $(document).trigger("vc-full-height-row", $element)
    }
    $(window).off("resize.vcRowBehaviour").on("resize.vcRowBehaviour", fullWidthRow).on("resize.vcRowBehaviour", fullHeightRow),
      fullWidthRow(),
      fullHeightRow(),
      (0 < window.navigator.userAgent.indexOf("MSIE ") || navigator.userAgent.match(/Trident.*rv\:11\./)) && $(".vc_row-o-full-height").each(function () {
        "flex" === $(this).css("display") && $(this).wrap('<div class="vc_ie-flexbox-fixer"></div>')
      }),
      vc_initVideoBackgrounds(),
      callSkrollInit = !1,
      window.vcParallaxSkroll && window.vcParallaxSkroll.destroy(),
      $(".vc_parallax-inner").remove(),
      $("[data-5p-top-bottom]").removeAttr("data-5p-top-bottom data-30p-top-bottom"),
      $("[data-vc-parallax]").each(function () {
        var skrollrSize, skrollrStart, $parallaxElement, parallaxImage, youtubeId;
        callSkrollInit = !0,
          "on" === $(this).data("vcParallaxOFade") && $(this).children().attr("data-5p-top-bottom", "opacity:0;").attr("data-30p-top-bottom", "opacity:1;"),
          skrollrSize = 100 * $(this).data("vcParallax"),
          ($parallaxElement = $("<div />").addClass("vc_parallax-inner").appendTo($(this))).height(skrollrSize + "%"),
          (youtubeId = vcExtractYoutubeId(parallaxImage = $(this).data("vcParallaxImage"))) ? insertYoutubeVideoAsBackground($parallaxElement, youtubeId) : void 0 !== parallaxImage && $parallaxElement.css("background-image", "url(" + parallaxImage + ")"),
          skrollrStart = -(skrollrSize - 100),
          $parallaxElement.attr("data-bottom-top", "top: " + skrollrStart + "%;").attr("data-top-bottom", "top: 0%;")
      }),
      callSkrollInit && window.skrollr && (vcSkrollrOptions = {
          forceHeight: !1,
          smoothScrolling: !1,
          mobileCheck: function () {
            return !1
          }
        },
        window.vcParallaxSkroll = skrollr.init(vcSkrollrOptions),
        window.vcParallaxSkroll)
  }),
  "function" != typeof window.vc_gridBehaviour && (window.vc_gridBehaviour = function () {
    jQuery.fn.vcGrid && jQuery("[data-vc-grid]").vcGrid()
  }),
  "function" != typeof window.getColumnsCount && (window.getColumnsCount = function (el) {
    for (var find = !1, i = 1; !1 === find;) {
      if (el.hasClass("columns_count_" + i))
        return find = !0,
          i;
      i++
    }
  });
var screen_size = getSizeName();

function getSizeName() {
  var screen_w = jQuery(window).width();
  return 1170 < screen_w ? "desktop_wide" : 960 < screen_w && screen_w < 1169 ? "desktop" : 768 < screen_w && screen_w < 959 ? "tablet" : 300 < screen_w && screen_w < 767 ? "mobile" : screen_w < 300 ? "mobile_portrait" : ""
}

function loadScript(url, $obj, callback) {
  var script = document.createElement("script");
  script.type = "text/javascript",
    script.readyState && (script.onreadystatechange = function () {
      "loaded" !== script.readyState && "complete" !== script.readyState || (script.onreadystatechange = null,
        callback())
    }),
    script.src = url,
    $obj.get(0).appendChild(script)
}

function vc_ttaActivation() {
  jQuery("[data-vc-accordion]").on("show.vc.accordion", function (e) {
    var $ = window.jQuery,
      ui = {};
    ui.newPanel = $(this).data("vc.accordion").getTarget(),
      window.wpb_prepare_tab_content(e, ui)
  })
}

function vc_accordionActivate(event, ui) {
  if (ui.newPanel.length && ui.newHeader.length) {
    var $pie_charts = ui.newPanel.find(".vc_pie_chart:not(.vc_ready)"),
      $round_charts = ui.newPanel.find(".vc_round-chart"),
      $line_charts = ui.newPanel.find(".vc_line-chart"),
      $carousel = ui.newPanel.find('[data-ride="vc_carousel"]');
    void 0 !== jQuery.fn.isotope && ui.newPanel.find(".isotope, .wpb_image_grid_ul").isotope("layout"),
      ui.newPanel.find(".vc_masonry_media_grid, .vc_masonry_grid").length && ui.newPanel.find(".vc_masonry_media_grid, .vc_masonry_grid").each(function () {
        var grid = jQuery(this).data("vcGrid");
        grid && grid.gridBuilder && grid.gridBuilder.setMasonry && grid.gridBuilder.setMasonry()
      }),
      vc_carouselBehaviour(ui.newPanel),
      vc_plugin_flexslider(ui.newPanel),
      $pie_charts.length && jQuery.fn.vcChat && $pie_charts.vcChat(),
      $round_charts.length && jQuery.fn.vcRoundChart && $round_charts.vcRoundChart({
        reload: !1
      }),
      $line_charts.length && jQuery.fn.vcLineChart && $line_charts.vcLineChart({
        reload: !1
      }),
      $carousel.length && jQuery.fn.carousel && $carousel.carousel("resizeAction"),
      ui.newPanel.parents(".isotope").length && ui.newPanel.parents(".isotope").each(function () {
        jQuery(this).isotope("layout")
      })
  }
}

function initVideoBackgrounds() {
  return window.console && window.console.warn && window.console.warn("this function is deprecated use vc_initVideoBackgrounds"),
    vc_initVideoBackgrounds()
}

function vc_initVideoBackgrounds() {
  jQuery("[data-vc-video-bg]").each(function () {
    var youtubeId, $element = jQuery(this);
    $element.data("vcVideoBg") ? ((youtubeId = vcExtractYoutubeId($element.data("vcVideoBg"))) && ($element.find(".vc_video-bg").remove(),
        insertYoutubeVideoAsBackground($element, youtubeId)),
      jQuery(window).on("grid:items:added", function (event, $grid) {
        $element.has($grid).length && vcResizeVideoBackground($element)
      })) : $element.find(".vc_video-bg").remove()
  })
}

function insertYoutubeVideoAsBackground($element, youtubeId, counter) {
  if ("undefined" == typeof YT || void 0 === YT.Player)
    return 100 < (counter = void 0 === counter ? 0 : counter) ? void console.warn("Too many attempts to load YouTube api") : void setTimeout(function () {
      insertYoutubeVideoAsBackground($element, youtubeId, counter++)
    }, 100);
  var $container = $element.prepend('<div class="vc_video-bg vc_hidden-xs"><div class="inner"></div></div>').find(".inner");
  new YT.Player($container[0], {
      width: "100%",
      height: "100%",
      videoId: youtubeId,
      playerVars: {
        playlist: youtubeId,
        iv_load_policy: 3,
        enablejsapi: 1,
        disablekb: 1,
        autoplay: 1,
        controls: 0,
        showinfo: 0,
        rel: 0,
        loop: 1,
        wmode: "transparent"
      },
      events: {
        onReady: function (event) {
          event.target.mute().setLoop(!0)
        }
      }
    }),
    vcResizeVideoBackground($element),
    jQuery(window).bind("resize", function () {
      vcResizeVideoBackground($element)
    })
}

function vcResizeVideoBackground($element) {
  var iframeW, iframeH, marginLeft, marginTop, containerW = $element.innerWidth(),
    containerH = $element.innerHeight();
  containerW / containerH < 16 / 9 ? (iframeW = containerH * (16 / 9),
      iframeH = containerH,
      marginLeft = -Math.round((iframeW - containerW) / 2) + "px",
      marginTop = -Math.round((iframeH - containerH) / 2) + "px") : (iframeH = (iframeW = containerW) * (9 / 16),
      marginTop = -Math.round((iframeH - containerH) / 2) + "px",
      marginLeft = -Math.round((iframeW - containerW) / 2) + "px"),
    iframeW += "px",
    iframeH += "px",
    $element.find(".vc_video-bg iframe").css({
      maxWidth: "1000%",
      marginLeft: marginLeft,
      marginTop: marginTop,
      width: iframeW,
      height: iframeH
    })
}

function vcExtractYoutubeId(url) {
  if (void 0 === url)
    return !1;
  var id = url.match(/(?:https?:\/{2})?(?:w{3}\.)?youtu(?:be)?\.(?:com|be)(?:\/watch\?v=|\/)([^\s&]+)/);
  return null !== id && id[1]
}
if ("function" != typeof window.wpb_prepare_tab_content && (window.wpb_prepare_tab_content = function (event, ui) {
    var $ui_panel, $google_maps, panel = ui.panel || ui.newPanel,
      $pie_charts = panel.find(".vc_pie_chart:not(.vc_ready)"),
      $round_charts = panel.find(".vc_round-chart"),
      $line_charts = panel.find(".vc_line-chart"),
      $carousel = panel.find('[data-ride="vc_carousel"]');
    if (vc_carouselBehaviour(),
      vc_plugin_flexslider(panel),
      ui.newPanel.find(".vc_masonry_media_grid, .vc_masonry_grid").length && ui.newPanel.find(".vc_masonry_media_grid, .vc_masonry_grid").each(function () {
        var grid = jQuery(this).data("vcGrid");
        grid && grid.gridBuilder && grid.gridBuilder.setMasonry && grid.gridBuilder.setMasonry()
      }),
      panel.find(".vc_masonry_media_grid, .vc_masonry_grid").length && panel.find(".vc_masonry_media_grid, .vc_masonry_grid").each(function () {
        var grid = jQuery(this).data("vcGrid");
        grid && grid.gridBuilder && grid.gridBuilder.setMasonry && grid.gridBuilder.setMasonry()
      }),
      $pie_charts.length && jQuery.fn.vcChat && $pie_charts.vcChat(),
      $round_charts.length && jQuery.fn.vcRoundChart && $round_charts.vcRoundChart({
        reload: !1
      }),
      $line_charts.length && jQuery.fn.vcLineChart && $line_charts.vcLineChart({
        reload: !1
      }),
      $carousel.length && jQuery.fn.carousel && $carousel.carousel("resizeAction"),
      $ui_panel = panel.find(".isotope, .wpb_image_grid_ul"),
      $google_maps = panel.find(".wpb_gmaps_widget"),
      0 < $ui_panel.length && $ui_panel.isotope("layout"),
      $google_maps.length && !$google_maps.is(".map_ready")) {
      var $frame = $google_maps.find("iframe");
      $frame.attr("src", $frame.attr("src")),
        $google_maps.addClass("map_ready")
    }
    panel.parents(".isotope").length && panel.parents(".isotope").each(function () {
      jQuery(this).isotope("layout")
    })
  }),
  "function" != typeof window.vc_googleMapsPointer)

function vc_googleMapsPointer() {
  var $ = window.jQuery,
    $wpbGmapsWidget = $(".wpb_gmaps_widget");
  $wpbGmapsWidget.click(function () {
      $("iframe", this).css("pointer-events", "auto")
    }),
    $wpbGmapsWidget.mouseleave(function () {
      $("iframe", this).css("pointer-events", "none")
    }),
    $(".wpb_gmaps_widget iframe").css("pointer-events", "none")
}

function vc_setHoverBoxPerspective(hoverBox) {
  hoverBox.each(function () {
    var $this = jQuery(this),
      perspective = 4 * $this.width() + "px";
    $this.css("perspective", perspective)
  })
}

function vc_setHoverBoxHeight(hoverBox) {
  hoverBox.each(function () {
    var $this = jQuery(this),
      hoverBoxInner = $this.find(".vc-hoverbox-inner");
    hoverBoxInner.css("min-height", 0);
    var frontHeight = $this.find(".vc-hoverbox-front-inner").outerHeight(),
      backHeight = $this.find(".vc-hoverbox-back-inner").outerHeight(),
      hoverBoxHeight = backHeight < frontHeight ? frontHeight : backHeight;
    hoverBoxHeight < 250 && (hoverBoxHeight = 250),
      hoverBoxInner.css("min-height", hoverBoxHeight + "px")
  })
}

function vc_prepareHoverBox() {
  var hoverBox = jQuery(".vc-hoverbox");
  vc_setHoverBoxHeight(hoverBox),
    vc_setHoverBoxPerspective(hoverBox)
}
jQuery(document).ready(vc_prepareHoverBox),
  jQuery(window).resize(vc_prepareHoverBox),
  jQuery(document).ready(function ($) {
    window.vc_js()
  });