!function(e,t){"use strict";"object"==typeofmodule&&"object"==typeofmodule.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)thrownewError("jQuery requires a window with a document");returnt(e)}:t(e)}("undefined"!=typeofwindow?window:this,function(e,t){"use strict";functionn(e,t){t=t||W;varn=t.createElement("script");n.text=e,t.head.appendChild(n).parentNode.removeChild(n)}functionr(e){vart=!!e&&"length"ine&&e.length,n=ne.type(e);return"function"!==n&&!ne.isWindow(e)&&("array"===n||0===t||"number"==typeoft&&t>0&&t-1ine)}functioni(e,t){returne.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}functiono(e,t,n){returnne.isFunction(t)?ne.grep(e,function(e,r){return!!t.call(e,r,e)!==n}):t.nodeType?ne.grep(e,function(e){returne===t!==n}):"string"!=typeoft?ne.grep(e,function(e){returnY.call(t,e)>-1!==n}):de.test(t)?ne.filter(t,e,n):(t=ne.filter(t,e),ne.grep(e,function(e){returnY.call(t,e)>-1!==n&&1===e.nodeType}))}functiona(e,t){for(;(e=e[t])&&1!==e.nodeType;);returne}functions(e){vart={};returnne.each(e.match(ye)||[],function(e,n){t[n]=!0}),t}functionl(e){returne}functionu(e){throwe}functionc(e,t,n,r){vari;try{e&&ne.isFunction(i=e.promise)?i.call(e).done(t).fail(n):e&&ne.isFunction(i=e.then)?i.call(e,t,n):t.apply(void0,[e].slice(r))}catch(e){n.apply(void0,[e])}}functionf(){W.removeEventListener("DOMContentLoaded",f),e.removeEventListener("load",f),ne.ready()}functiond(){this.expando=ne.expando+d.uid++}functionp(e){return"true"===e||"false"!==e&&("null"===e?null:e===+e+""?+e:Ee.test(e)?JSON.parse(e):e)}functionh(e,t,n){varr;if(void0===n&&1===e.nodeType)if(r="data-"+t.replace(Se,"-$&").toLowerCase(),n=e.getAttribute(r),"string"==typeofn){try{n=p(n)}catch(i){}ke.set(e,t,n)}elsen=void0;returnn}functionm(e,t,n,r){vari,o=1,a=20,s=r?function(){returnr.cur()}:function(){returnne.css(e,t,"")},l=s(),u=n&&n[3]||(ne.cssNumber[t]?"":"px"),c=(ne.cssNumber[t]||"px"!==u&&+l)&&Ae.exec(ne.css(e,t));if(c&&c[3]!==u){u=u||c[3],n=n||[],c=+l||1;doo=o||".5",c/=o,ne.style(e,t,c+u);while(o!==(o=s()/l)&&1!==o&&--a)}returnn&&(c=+c||+l||0,i=n[1]?c+(n[1]+1)*n[2]:+n[2],r&&(r.unit=u,r.start=c,r.end=i)),i}functiong(e){vart,n=e.ownerDocument,r=e.nodeName,i=Oe[r];returni?i:(t=n.body.appendChild(n.createElement(r)),i=ne.css(t,"display"),t.parentNode.removeChild(t),"none"===i&&(i="block"),Oe[r]=i,i)}functionv(e,t){for(varn,r,i=[],o=0,a=e.length;a>o;o++)r=e[o],r.style&&(n=r.style.display,t?("none"===n&&(i[o]=Te.get(r,"display")||null,i[o]||(r.style.display="")),""===r.style.display&&De(r)&&(i[o]=g(r))):"none"!==n&&(i[o]="none",Te.set(r,"display",n)));for(o=0;a>o;o++)null!=i[o]&&(e[o].style.display=i[o]);returne}functiony(e,t){varn;returnn="undefined"!=typeofe.getElementsByTagName?e.getElementsByTagName(t||"*"):"undefined"!=typeofe.querySelectorAll?e.querySelectorAll(t||"*"):[],void0===t||t&&i(e,t)?ne.merge([e],n):n}functionb(e,t){for(varn=0,r=e.length;r>n;n++)Te.set(e[n],"globalEval",!t||Te.get(t[n],"globalEval"))}functionx(e,t,n,r,i){for(varo,a,s,l,u,c,f=t.createDocumentFragment(),d=[],p=0,h=e.length;h>p;p++)if(o=e[p],o||0===o)if("object"===ne.type(o))ne.merge(d,o.nodeType?[o]:o);elseif(Me.test(o)){for(a=a||f.appendChild(t.createElement("div")),s=(je.exec(o)||["",""])[1].toLowerCase(),l=He[s]||He._default,a.innerHTML=l[1]+ne.htmlPrefilter(o)+l[2],c=l[0];c--;)a=a.lastChild;ne.merge(d,a.childNodes),a=f.firstChild,a.textContent=""}elsed.push(t.createTextNode(o));for(f.textContent="",p=0;o=d[p++];)if(r&&ne.inArray(o,r)>-1)i&&i.push(o);elseif(u=ne.contains(o.ownerDocument,o),a=y(f.appendChild(o),"script"),u&&b(a),n)for(c=0;o=a[c++];)Fe.test(o.type||"")&&n.push(o);returnf}functionw(){return!0}functionC(){return!1}functionT(){try{returnW.activeElement}catch(e){}}functionk(e,t,n,r,i,o){vara,s;if("object"==typeoft){"string"!=typeofn&&(r=r||n,n=void0);for(sint)k(e,s,n,r,t[s],o);returne}if(null==r&&null==i?(i=n,r=n=void0):null==i&&("string"==typeofn?(i=r,r=void0):(i=r,r=n,n=void0)),i===!1)i=C;elseif(!i)returne;return1===o&&(a=i,i=function(e){returnne().off(e),a.
p={duration:s,easing:i.easing,complete:function(){i.afterScroll.call(i.link,i)}},i.step&&(p.step=i.step),o.length?o.stop().animate(d,p):i.afterScroll.call(i.link,i)},e.smoothScroll.version=t,e.smoothScroll.filterPath=function(e){returne=e||"",e.replace(/^\//,"").replace(/(?:index|default).[a-zA-Z]{3,4}$/,"").replace(/\/$/,"")},e.fn.smoothScroll.defaults=r}),$(document).ready(function(){vare=function(){$("body").css("margin-bottom",$(".page__footer").outerHeight(!0))},t=!1;e(),$(window).resize(function(){t=!0}),setInterval(function(){t&&(t=!1,e())},250),$("#main").fitVids(),$(".author__urls-wrapper button").on("click",function(){$(".author__urls").toggleClass("is--visible"),$(".author__urls-wrapper button").toggleClass("open")}),$("a").smoothScroll({offset:-20}),$("a[href$='.jpg'],a[href$='.jpeg'],a[href$='.JPG'],a[href$='.png'],a[href$='.gif']").addClass("image-popup"),$(".image-popup").magnificPopup({type:"image",tLoading:"Loading image #%curr%...",gallery:{enabled:!0,navigateByImgClick:!0,preload:[0,1]},image:{tError:'<a href="%url%">Image #%curr%</a> could not be loaded.'},removalDelay:500,mainClass:"mfp-zoom-in",callbacks:{beforeOpen:function(){this.st.image.markup=this.st.image.markup.replace("mfp-figure","mfp-figure mfp-with-anim")}},closeOnContentClick:!0,midClick:!0})});