!function(){var e;(e=jQuery)(window).on("et_pb_init_modules",(function(){window.et_pb_init_fullscreen_section_modules=function(){const t="object"==typeof window.ET_Builder,s=void 0!==window.ETBlockLayoutModulesScript&&e("body").hasClass("et-block-layout-preview"),i=t||s?ET_Builder.Frames.top:window,n=e(s?i:window);let a=!1;window.et_calculate_fullscreen_section_size=function(){e("section.et_pb_fullscreen").each((function(){et_calc_fullscreen_section.bind(e(this))()})),t||(clearTimeout(a),a=setTimeout((()=>{n.off("resize",et_calculate_fullscreen_section_size),n.off("et-pb-header-height-calculated",et_calculate_fullscreen_section_size),n.trigger("resize"),n.on("resize",et_calculate_fullscreen_section_size),n.on("et-pb-header-height-calculated",et_calculate_fullscreen_section_size)})))},e((()=>{const s={},a={};window.et_calc_fullscreen_section=function(t,n){const o="object"==typeof t&&"resize"===t.type,l=e(i),c=n||e(this),h=c.index(".et_pb_fullscreen"),r=o&&void 0!==s[h]&&t.target.window_width>s[h]?800:0;s[h]=l.width(),void 0!==a[h]&&clearTimeout(a[h]),a[h]=setTimeout((()=>{const t=e("body"),s=e(".et-l--header").first(),n=s.length>0?s.height():0,a=c.length,o=c.index(".et_pb_fullwidth_header"),h=a?c.offset():{},r=c.children(".et_pb_fullwidth_header_container"),d=r.children(".header-content-container"),_=r.children(".header-image-container");let u=i.innerHeight||l.height();const w=i.jQuery("#wpadminbar"),f=w.length,g=f?w.height():0,p=e("#top-header"),m=p.length,b=m?p.height():0,v=e("#main-header"),C=v.length;let x=C?v.outerHeight():0;const y=function(){if(!window.et_is_fixed_nav)return 0;const t=void 0===e("#main-header").attr("data-fixed-height-onload")?0:e("#main-header").attr("data-fixed-height-onload");return window.et_is_fixed_nav?parseFloat(t):0}(),z=l.width()<782,T=l.width()>980,j=(l.width()<=980&&l.width(),l.width(),g+n+b+(window.et_is_vertical_nav&&T?0:x)),H=void 0!==h.top&&h.top<=j,$=t.hasClass("et_hide_nav"),B=i.jQuery(".edit-post-header"),F=i.jQuery(".edit-post-layout__footer");v.attr("data-height-onload")&&(x=parseFloat(v.attr("data-height-onload"))),f&&(z?H&&(u-=g):u-=g),B.length>0&&(u-=B.outerHeight()),F.length>0&&(u-=F.outerHeight()),m&&T&&($&&!window.et_is_vertical_nav?H||(u-=b):!window.et_is_fixed_nav||window.et_is_vertical_nav?H&&(u-=b):u-=b),C&&(T?$&&!window.et_is_vertical_nav?H||(u-=y):window.et_is_fixed_nav&&!window.et_is_vertical_nav?u-=H?x:y:window.et_is_fixed_nav||window.et_is_vertical_nav||H&&(u-=x):H&&(u-=x)),t.hasClass("et_transparent_nav")&&t.hasClass("et_hide_nav")&&0===o&&c.css("padding-top","");const L=parseInt(c.css("borderTopWidth"));L&&(u-=L);const Q=parseInt(c.css("borderBottomWidth"));if(Q&&(u-=Q),n>0&&0===o&&0===c.closest(s).length&&(u-=n),setTimeout((()=>{c.css("min-height",`${u}px`),r.css("min-height",`${u}px`)}),100),r.hasClass("center")&&d.hasClass("bottom")&&_.hasClass("bottom")&&r.addClass("bottom-bottom"),r.hasClass("center")&&d.hasClass("center")&&_.hasClass("center")&&r.addClass("center-center"),r.hasClass("center")&&d.hasClass("center")&&_.hasClass("bottom")){r.addClass("center-bottom");const e=u-_.outerHeight(!0);e>0&&d.css("min-height",`${e}px`).css("height","10px")}r.hasClass("center")&&d.hasClass("bottom")&&_.hasClass("center")&&r.addClass("bottom-center"),(r.hasClass("left")||r.hasClass("right"))&&!d.length&&_.length&&r.css("justify-content","flex-end"),r.hasClass("center")&&d.hasClass("bottom")&&!_.length&&d.find(".header-content").css("margin-bottom","80px"),d.hasClass("bottom")&&_.hasClass("center")&&(_.find(".header-image").css("margin-bottom","80px"),_.css("align-self","flex-end"));let E=0;d.length&&(E+=d.outerHeight()),_.length&&(E+=_.outerHeight()),E>u&&(c.css("min-height",`${E}px`),r.css("min-height",`${E}px`)),_.hasClass("bottom")&&(E<u&&(c.css("min-height",`${E+80}px`),r.css("min-height",`${E+80}px`)),r.css("justify-content","flex-end"))}),r)},t||(n.on("resize",et_calculate_fullscreen_section_size),n.on("et-pb-header-height-calculated",et_calculate_fullscreen_section_size)),e(window).resize((function(){}))}))},window.et_pb_init_fullscreen_section_modules()})),((window.divi=window.divi||{}).scriptLibrary=window.divi.scriptLibrary||{}).scriptLibraryFullscreenSection={}}();