fancybox3 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/MIT-LICENSE +20 -20
- data/README.md +28 -28
- data/Rakefile +37 -37
- data/app/assets/javascripts/{fancybox.js → jquery.fancybox.js} +4346 -4346
- data/app/assets/javascripts/{fancybox.min.js → jquery.fancybox.min.js} +11 -11
- data/app/assets/stylesheets/{fancybox.css → jquery.fancybox.css} +616 -616
- data/app/assets/stylesheets/{fancybox.min.css → jquery.fancybox.min.css} +0 -0
- data/lib/fancybox3.rb +5 -5
- data/lib/fancybox3/engine.rb +4 -4
- data/lib/fancybox3/version.rb +3 -3
- metadata +14 -15
@@ -1,12 +1,12 @@
|
|
1
|
-
// ==================================================
|
2
|
-
// fancyBox v3.0.47
|
3
|
-
//
|
4
|
-
// Licensed GPLv3 for open source use
|
5
|
-
// or fancyBox Commercial License for commercial use
|
6
|
-
//
|
7
|
-
// http://fancyapps.com/fancybox/
|
8
|
-
// Copyright 2017 fancyApps
|
9
|
-
//
|
10
|
-
// ==================================================
|
11
|
-
!function(t,e,n,o){"use strict";function s(t){var e=t.currentTarget,o=t.data?t.data.options:{},s=t.data?t.data.items:[],i="",a=0;t.preventDefault(),t.stopPropagation(),n(e).attr("data-fancybox")&&(i=n(e).data("fancybox")),i?(s=s.length?s.filter('[data-fancybox="'+i+'"]'):n("[data-fancybox="+i+"]"),a=s.index(e)):s=[e],n.fancybox.open(s,o,a)}if(!n)return o;var i={speed:330,loop:!0,opacity:"auto",margin:[44,0],gutter:30,infobar:!0,buttons:!0,slideShow:!0,fullScreen:!0,thumbs:!0,closeBtn:!0,smallBtn:"auto",image:{preload:"auto",protect:!1},ajax:{settings:{data:{fancybox:!0}}},iframe:{tpl:'<iframe id="fancybox-frame{rnd}" name="fancybox-frame{rnd}" class="fancybox-iframe" frameborder="0" vspace="0" hspace="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen allowtransparency="true" src=""></iframe>',preload:!0,scrolling:"no",css:{}},baseClass:"",slideClass:"",baseTpl:'<div class="fancybox-container" role="dialog" tabindex="-1"><div class="fancybox-bg"></div><div class="fancybox-controls"><div class="fancybox-infobar"><button data-fancybox-previous class="fancybox-button fancybox-button--left" title="Previous"></button><div class="fancybox-infobar__body"><span class="js-fancybox-index"></span> / <span class="js-fancybox-count"></span></div><button data-fancybox-next class="fancybox-button fancybox-button--right" title="Next"></button></div><div class="fancybox-buttons"><button data-fancybox-close class="fancybox-button fancybox-button--close" title="Close (Esc)"></button></div></div><div class="fancybox-slider-wrap"><div class="fancybox-slider"></div></div><div class="fancybox-caption-wrap"><div class="fancybox-caption"></div></div></div>',spinnerTpl:'<div class="fancybox-loading"></div>',errorTpl:'<div class="fancybox-error"><p>The requested content cannot be loaded. <br /> Please try again later.<p></div>',closeTpl:'<button data-fancybox-close class="fancybox-close-small"></button>',parentEl:"body",touch:!0,keyboard:!0,focus:!0,closeClickOutside:!0,beforeLoad:n.noop,afterLoad:n.noop,beforeMove:n.noop,afterMove:n.noop,onComplete:n.noop,onInit:n.noop,beforeClose:n.noop,afterClose:n.noop,onActivate:n.noop,onDeactivate:n.noop},a=n(t),r=n(e),c=0,l=function(t){return t&&t.hasOwnProperty&&t instanceof n},u=function(){return t.requestAnimationFrame||t.webkitRequestAnimationFrame||t.mozRequestAnimationFrame||function(e){t.setTimeout(e,1e3/60)}}(),d=function(o){var s;return"function"==typeof n&&o instanceof n&&(o=o[0]),s=o.getBoundingClientRect(),s.bottom>0&&s.right>0&&s.left<(t.innerWidth||e.documentElement.clientWidth)&&s.top<(t.innerHeight||e.documentElement.clientHeight)},p=function(t,o,s){var a=this;a.opts=n.extend(!0,{index:s},i,o||{}),a.id=a.opts.id||++c,a.group=[],a.currIndex=parseInt(a.opts.index,10)||0,a.prevIndex=null,a.prevPos=null,a.currPos=0,a.firstRun=null,a.createGroup(t),a.group.length&&(a.$lastFocus=n(e.activeElement).blur(),a.slides={},a.init(t))};n.extend(p.prototype,{init:function(){var t,e,o=this,s=!1;o.scrollTop=r.scrollTop(),o.scrollLeft=r.scrollLeft(),n.fancybox.getInstance()||(t=n("body").width(),n("html").addClass("fancybox-enabled"),n.fancybox.isTouch?(n.each(o.group,function(t,e){if("image"!==e.type&&"iframe"!==e.type)return s=!0,!1}),s&&n("body").css({position:"fixed",width:t,top:o.scrollTop*-1})):(t=n("body").width()-t,t>1&&n('<style id="fancybox-noscroll" type="text/css">').html(".compensate-for-scrollbar, .fancybox-enabled body { margin-right: "+t+"px; }").appendTo("head"))),e=n(o.opts.baseTpl).attr("id","fancybox-container-"+o.id).data("FancyBox",o).addClass(o.opts.baseClass).hide().prependTo(o.opts.parentEl),o.$refs={container:e,bg:e.find(".fancybox-bg"),controls:e.find(".fancybox-controls"),buttons:e.find(".fancybox-buttons"),slider_wrap:e.find(".fancybox-slider-wrap"),slider:e.find(".fancybox-slider"),caption:e.find(".fancybox-caption")},o.trigger("onInit"),o.activate(),o.current||o.jumpTo(o.currIndex)},createGroup:function(t){var e=this,s=n.makeArray(t);n.each(s,function(t,s){var i,a,r,c,l={},u={},d=[];n.isPlainObject(s)?(l=s,u=s.opts||{}):"object"===n.type(s)&&n(s).length?(i=n(s),d=i.data(),u="options"in d?d.options:{},u="object"===n.type(u)?u:{},l.type="type"in d?d.type:u.type,l.src="src"in d?d.src:u.src||i.attr("href"),u.width="width"in d?d.width:u.width,u.height="height"in d?d.height:u.height,u.thumb="thumb"in d?d.thumb:u.thumb,u.selector="selector"in d?d.selector:u.selector,"srcset"in d&&(u.image={srcset:d.srcset}),u.$orig=i):l={type:"html",content:s+""},l.opts=n.extend(!0,{},e.opts,u),a=l.type,r=l.src||"",a||(l.content?a="html":r.match(/(^data:image\/[a-z0-9+\/=]*,)|(\.(jp(e|g|eg)|gif|png|bmp|webp|svg|ico)((\?|#).*)?$)/i)?a="image":r.match(/\.(pdf)((\?|#).*)?$/i)?a="pdf":"#"===r.charAt(0)&&(a="inline"),l.type=a),l.index=e.group.length,l.opts.$orig&&!l.opts.$orig.length&&delete l.opts.$orig,!l.opts.$thumb&&l.opts.$orig&&(l.opts.$thumb=l.opts.$orig.find("img:first")),l.opts.$thumb&&!l.opts.$thumb.length&&delete l.opts.$thumb,"function"===n.type(l.opts.caption)?l.opts.caption=l.opts.caption.apply(s,[e,l]):"caption"in d?l.opts.caption=d.caption:u.$orig&&(l.opts.caption=i.attr("title")),l.opts.caption=l.opts.caption===o?"":l.opts.caption+"","ajax"===a&&(c=r.split(/\s+/,2),c.length>1&&(l.src=c.shift(),l.opts.selector=c.shift())),"auto"==l.opts.smallBtn&&(n.inArray(a,["html","inline","ajax"])>-1?(l.opts.buttons=!1,l.opts.smallBtn=!0):l.opts.smallBtn=!1),"pdf"===a&&(l.type="iframe",l.opts.closeBtn=!0,l.opts.smallBtn=!1,l.opts.iframe.preload=!1),l.opts.modal&&n.extend(!0,l.opts,{infobar:0,buttons:0,keyboard:0,slideShow:0,fullScreen:0,closeClickOutside:0}),e.group.push(l)})},addEvents:function(){var e=this;e.removeEvents(),e.$refs.container.on("click.fb-close","[data-fancybox-close]",function(t){t.stopPropagation(),t.preventDefault(),e.close(t)}).on("click.fb-previous","[data-fancybox-previous]",function(t){t.stopPropagation(),t.preventDefault(),e.previous()}).on("click.fb-next","[data-fancybox-next]",function(t){t.stopPropagation(),t.preventDefault(),e.next()}),n(t).on("orientationchange.fb resize.fb",function(t){u(function(){t&&t.originalEvent&&"resize"===t.originalEvent.type?e.update():(e.$refs.slider_wrap.hide(),u(function(){e.$refs.slider_wrap.show(),e.update()}))})}),r.on("focusin.fb",function(t){var o=n.fancybox?n.fancybox.getInstance():null;!o||n(t.target).hasClass("fancybox-container")||n.contains(o.$refs.container[0],t.target)||(t.stopPropagation(),o.focus(),a.scrollTop(e.scrollTop).scrollLeft(e.scrollLeft))}),r.on("keydown.fb",function(t){var o=e.current,s=t.keyCode||t.which;if(o&&o.opts.keyboard&&!n(t.target).is("input")&&!n(t.target).is("textarea")){if(8===s||27===s)return t.preventDefault(),void e.close(t);switch(s){case 37:case 38:t.preventDefault(),e.previous();break;case 39:case 40:t.preventDefault(),e.next();break;case 80:case 32:t.preventDefault(),e.SlideShow&&(t.preventDefault(),e.SlideShow.toggle());break;case 70:e.FullScreen&&(t.preventDefault(),e.FullScreen.toggle());break;case 71:e.Thumbs&&(t.preventDefault(),e.Thumbs.toggle())}}})},removeEvents:function(){a.off("scroll.fb resize.fb orientationchange.fb"),r.off("keydown.fb focusin.fb click.fb-close"),this.$refs.container.off("click.fb-close click.fb-previous click.fb-next")},previous:function(t){this.jumpTo(this.currIndex-1,t)},next:function(t){this.jumpTo(this.currIndex+1,t)},jumpTo:function(t,e){var n,s,i,a,r=this;if(n=r.firstRun=null===r.firstRun,s=i=t=parseInt(t,10),a=!!r.current&&r.current.opts.loop,!r.isAnimating&&(s!=r.currIndex||n)){if(r.group.length>1&&a)s%=r.group.length,s=s<0?r.group.length+s:s,2==r.group.length?i=t-r.currIndex+r.currPos:(i=s-r.currIndex+r.currPos,Math.abs(r.currPos-(i+r.group.length))<Math.abs(r.currPos-i)?i+=r.group.length:Math.abs(r.currPos-(i-r.group.length))<Math.abs(r.currPos-i)&&(i-=r.group.length));else if(!r.group[s])return void r.update(!1,!1,e);r.current&&(r.current.$slide.removeClass("fancybox-slide--current fancybox-slide--complete"),r.updateSlide(r.current,!0)),r.prevIndex=r.currIndex,r.prevPos=r.currPos,r.currIndex=s,r.currPos=i,r.current=r.createSlide(i),r.group.length>1&&((r.opts.loop||i-1>=0)&&r.createSlide(i-1),(r.opts.loop||i+1<r.group.length)&&r.createSlide(i+1)),r.current.isMoved=!1,r.current.isComplete=!1,e=parseInt(e===o?1.5*r.current.opts.speed:e,10),r.trigger("beforeMove"),r.updateControls(),n&&(r.current.$slide.addClass("fancybox-slide--current"),r.$refs.container.show(),u(function(){r.$refs.bg.css("transition-duration",r.current.opts.speed+"ms"),r.$refs.container.addClass("fancybox-container--ready")})),r.update(!0,!1,n?0:e,function(){r.afterMove()}),r.loadSlide(r.current),n&&r.current.$ghost||r.preload()}},createSlide:function(t){var e,o,s,i=this;if(o=t%i.group.length,o=o<0?i.group.length+o:o,!i.slides[t]&&i.group[o]){if(i.opts.loop&&i.group.length>2)for(var a in i.slides)if(i.slides[a].index===o)return s=i.slides[a],s.pos=t,i.slides[t]=s,delete i.slides[a],i.updateSlide(s),s;e=n('<div class="fancybox-slide"></div>').appendTo(i.$refs.slider),i.slides[t]=n.extend(!0,{},i.group[o],{pos:t,$slide:e,isMoved:!1,isLoaded:!1})}return i.slides[t]},zoomInOut:function(t,e,o){var s,i,a,r=this,c=r.current,l=c.$placeholder,u=c.opts.opacity,p=c.opts.$thumb,h=p?p.offset():0,f=c.$slide.offset();return!!(l&&c.isMoved&&h&&d(p))&&(!("In"===t&&!r.firstRun)&&(n.fancybox.stop(l),r.isAnimating=!0,s={top:h.top-f.top+parseFloat(p.css("border-top-width")||0),left:h.left-f.left+parseFloat(p.css("border-left-width")||0),width:p.width(),height:p.height(),scaleX:1,scaleY:1},"auto"==u&&(u=Math.abs(c.width/c.height-s.width/s.height)>.1),"In"===t?(i=s,a=r.getFitPos(c),a.scaleX=a.width/i.width,a.scaleY=a.height/i.height,u&&(i.opacity=.1,a.opacity=1)):(i=n.fancybox.getTranslate(l),a=s,c.$ghost&&(c.$ghost.show(),c.$image&&c.$image.remove()),i.scaleX=i.width/a.width,i.scaleY=i.height/a.height,i.width=a.width,i.height=a.height,u&&(a.opacity=0)),r.updateCursor(a.width,a.height),delete a.width,delete a.height,n.fancybox.setTranslate(l,i),l.show(),r.trigger("beforeZoom"+t),l.css("transition","all "+e+"ms"),n.fancybox.setTranslate(l,a),setTimeout(function(){var e;l.css("transition","none"),e=n.fancybox.getTranslate(l),e.scaleX=1,e.scaleY=1,n.fancybox.setTranslate(l,e),r.trigger("afterZoom"+t),o.apply(r),r.isAnimating=!1},e),!0))},canPan:function(){var t=this,e=t.current,n=e.$placeholder,o=!1;return n&&(o=t.getFitPos(e),o=Math.abs(n.width()-o.width)>1||Math.abs(n.height()-o.height)>1),o},isScaledDown:function(){var t=this,e=t.current,o=e.$placeholder,s=!1;return o&&(s=n.fancybox.getTranslate(o),s=s.width<e.width||s.height<e.height),s},scaleToActual:function(t,e,s){var i,a,r,c,l,u=this,d=u.current,p=d.$placeholder,h=parseInt(d.$slide.width(),10),f=parseInt(d.$slide.height(),10),g=d.width,b=d.height;p&&(u.isAnimating=!0,t=t===o?.5*h:t,e=e===o?.5*f:e,i=n.fancybox.getTranslate(p),c=g/i.width,l=b/i.height,a=.5*h-.5*g,r=.5*f-.5*b,g>h&&(a=i.left*c-(t*c-t),a>0&&(a=0),a<h-g&&(a=h-g)),b>f&&(r=i.top*l-(e*l-e),r>0&&(r=0),r<f-b&&(r=f-b)),u.updateCursor(g,b),n.fancybox.animate(p,null,{top:r,left:a,scaleX:c,scaleY:l},s||d.opts.speed,function(){u.isAnimating=!1}))},scaleToFit:function(t){var e,o=this,s=o.current,i=s.$placeholder;i&&(o.isAnimating=!0,e=o.getFitPos(s),o.updateCursor(e.width,e.height),n.fancybox.animate(i,null,{top:e.top,left:e.left,scaleX:e.width/i.width(),scaleY:e.height/i.height()},t||s.opts.speed,function(){o.isAnimating=!1}))},getFitPos:function(t){var e,o,s,i,r,c,l,u=t.$placeholder||t.$content,d=t.width,p=t.height,h=t.opts.margin;return!(!u||!u.length||!d&&!p)&&("number"===n.type(h)&&(h=[h,h]),2==h.length&&(h=[h[0],h[1],h[0],h[1]]),a.width()<800&&(h=[0,0,0,0]),e=parseInt(t.$slide.width(),10)-(h[1]+h[3]),o=parseInt(t.$slide.height(),10)-(h[0]+h[2]),s=Math.min(1,e/d,o/p),c=Math.floor(s*d),l=Math.floor(s*p),i=Math.floor(.5*(o-l))+h[0],r=Math.floor(.5*(e-c))+h[3],{top:i,left:r,width:c,height:l})},update:function(t,e,o,s){var i,a=this;a.isAnimating!==!0&&a.current&&(i=a.current.pos*Math.floor(a.current.$slide.width())*-1-a.current.pos*a.current.opts.gutter,o=parseInt(o,10)||0,n.fancybox.stop(a.$refs.slider),t===!1?a.updateSlide(a.current,e):n.each(a.slides,function(t,n){a.updateSlide(n,e)}),o?n.fancybox.animate(a.$refs.slider,null,{top:0,left:i},o,function(){a.current.isMoved=!0,"function"===n.type(s)&&s.apply(a)}):(n.fancybox.setTranslate(a.$refs.slider,{top:0,left:i}),a.current.isMoved=!0,"function"===n.type(s)&&s.apply(a)))},updateSlide:function(t,e){var o,s=this,i=t.$placeholder;t=t||s.current,t&&!s.isClosing&&(o=t.pos*Math.floor(t.$slide.width())+t.pos*t.opts.gutter,o!==t.leftPos&&(n.fancybox.setTranslate(t.$slide,{top:0,left:o}),t.leftPos=o),e!==!1&&i&&(n.fancybox.setTranslate(i,s.getFitPos(t)),t.pos===s.currPos&&s.updateCursor()),t.$slide.trigger("refresh"),s.trigger("onUpdate",t))},updateCursor:function(t,e){var n,s=this,i=s.$refs.container.removeClass("fancybox-controls--canzoomIn fancybox-controls--canzoomOut fancybox-controls--canGrab");!s.isClosing&&s.opts.touch&&(n=t!==o&&e!==o?t<s.current.width&&e<s.current.height:s.isScaledDown(),n?i.addClass("fancybox-controls--canzoomIn"):s.group.length<2?i.addClass("fancybox-controls--canzoomOut"):i.addClass("fancybox-controls--canGrab"))},loadSlide:function(t){var e,o,s,i=this;if(t&&!t.isLoaded&&!t.isLoading){switch(t.isLoading=!0,i.trigger("beforeLoad",t),e=t.type,o=t.$slide,o.off("refresh").trigger("onReset").addClass("fancybox-slide--"+(e||"unknown")).addClass(t.opts.slideClass),e){case"image":i.setImage(t);break;case"iframe":i.setIframe(t);break;case"html":i.setContent(t,t.content);break;case"inline":n(t.src).length?i.setContent(t,n(t.src)):i.setError(t);break;case"ajax":i.showLoading(t),s=n.ajax(n.extend({},t.opts.ajax.settings,{url:t.src,success:function(e,n){"success"===n&&i.setContent(t,e)},error:function(e,n){e&&"abort"!==n&&i.setError(t)}})),o.one("onReset",function(){s.abort()});break;default:i.setError(t)}return!0}},setImage:function(e){var o,s,i,a,r=this,c=e.opts.image.srcset;if(e.isLoaded&&!e.hasError)return void r.afterLoad(e);if(c){i=t.devicePixelRatio||1,a=t.innerWidth*i,s=c.split(",").map(function(t){var e={};return t.trim().split(/\s+/).forEach(function(t,n){var o=parseInt(t.substring(0,t.length-1),10);return 0===n?e.url=t:void(o&&(e.value=o,e.postfix=t[t.length-1]))}),e}),s.sort(function(t,e){return t.value-e.value});for(var l=0;l<s.length;l++){var u=s[l];if("w"===u.postfix&&u.value>=a||"x"===u.postfix&&u.value>=i){o=u;break}}!o&&s.length&&(o=s[s.length-1]),o&&(e.src=o.url,e.width&&e.height&&"w"==o.postfix&&(e.height=e.width/e.height*o.value,e.width=o.value))}e.$placeholder=n('<div class="fancybox-placeholder"></div>').hide().appendTo(e.$slide),e.opts.preload!==!1&&e.opts.width&&e.opts.height&&(e.opts.thumb||e.opts.$thumb)?(e.width=e.opts.width,e.height=e.opts.height,e.$ghost=n("<img />").one("load error",function(){r.isClosing||(n("<img/>")[0].src=e.src,r.revealImage(e,function(){r.setBigImage(e),r.firstRun&&e.index===r.currIndex&&r.preload()}))}).addClass("fancybox-image").appendTo(e.$placeholder).attr("src",e.opts.thumb||e.opts.$thumb.attr("src"))):r.setBigImage(e)},setBigImage:function(t){var e=this,o=n("<img />");t.$image=o.one("error",function(){e.setError(t)}).one("load",function(){clearTimeout(t.timouts),t.timouts=null,e.isClosing||(t.width=this.naturalWidth,t.height=this.naturalHeight,t.opts.image.srcset&&o.attr("sizes","100vw").attr("srcset",t.opts.image.srcset),e.afterLoad(t),t.$ghost&&(t.timouts=setTimeout(function(){t.$ghost.hide()},350)))}).addClass("fancybox-image").attr("src",t.src).appendTo(t.$placeholder),o[0].complete?o.trigger("load"):o[0].error?o.trigger("error"):t.timouts=setTimeout(function(){o[0].complete||t.hasError||e.showLoading(t)},150),t.opts.image.protect&&n('<div class="fancybox-spaceball"></div>').appendTo(t.$placeholder).on("contextmenu.fb",function(t){return 2==t.button&&t.preventDefault(),!0})},revealImage:function(t,e){var o=this;return e=e||n.noop,"image"!==t.type||t.hasError||t.isRevealed===!0?void e.apply(o):(t.isRevealed=!0,void(t.pos===o.currPos&&o.zoomInOut("In",t.opts.speed,e)||(t.$ghost&&!t.isLoaded&&o.updateSlide(t,!0),t.pos===o.currPos?n.fancybox.animate(t.$placeholder,{opacity:0},{opacity:1},300,e):t.$placeholder.show(),e.apply(o))))},setIframe:function(t){var e,s=this,i=t.opts.iframe,a=t.$slide;t.$content=n('<div class="fancybox-content"></div>').css(i.css).appendTo(a),e=n(i.tpl.replace(/\{rnd\}/g,(new Date).getTime())).attr("scrolling",n.fancybox.isTouch?"auto":i.scrolling).appendTo(t.$content),i.preload?(t.$content.addClass("fancybox-tmp"),s.showLoading(t),e.on("load.fb error.fb",function(e){this.isReady=1,t.$slide.trigger("refresh"),s.afterLoad(t)}),a.on("refresh.fb",function(){var n,s,a,r,c,l=t.$content;if(1===e[0].isReady){try{n=e.contents(),s=n.find("body")}catch(t){}s&&s.length&&(i.css.width===o||i.css.height===o)&&(a=e[0].contentWindow.document.documentElement.scrollWidth,r=Math.ceil(s.outerWidth(!0)+(l.width()-a)),c=Math.ceil(s.outerHeight(!0)),l.css({width:i.css.width===o?r+(l.outerWidth()-l.innerWidth()):i.css.width,height:i.css.height===o?c+(l.outerHeight()-l.innerHeight()):i.css.height})),l.removeClass("fancybox-tmp")}})):this.afterLoad(t),e.attr("src",t.src),t.opts.smallBtn&&t.$content.prepend(t.opts.closeTpl),a.one("onReset",function(){try{n(this).find("iframe").hide().attr("src","//about:blank")}catch(t){}n(this).empty(),t.isLoaded=!1})},setContent:function(t,e){var o=this;o.isClosing||(o.hideLoading(t),t.$slide.empty(),l(e)&&e.parent().length?(e.data("placeholder")&&e.parents(".fancybox-slide").trigger("onReset"),e.data({placeholder:n("<div></div>").hide().insertAfter(e)}).css("display","inline-block")):("string"===n.type(e)&&(e=n("<div>").append(e).contents(),3===e[0].nodeType&&(e=n("<div>").html(e))),t.opts.selector&&(e=n("<div>").html(e).find(t.opts.selector))),t.$slide.one("onReset",function(){var o=l(e)?e.data("placeholder"):0;o&&(e.hide().replaceAll(o),e.data("placeholder",null)),t.hasError||(n(this).empty(),t.isLoaded=!1)}),t.$content=n(e).appendTo(t.$slide),t.opts.smallBtn===!0&&t.$content.find(".fancybox-close-small").remove().end().eq(0).append(t.opts.closeTpl),this.afterLoad(t))},setError:function(t){t.hasError=!0,this.setContent(t,t.opts.errorTpl)},showLoading:function(t){var e=this;t=t||e.current,t&&!t.$spinner&&(t.$spinner=n(e.opts.spinnerTpl).appendTo(t.$slide))},hideLoading:function(t){var e=this;t=t||e.current,t&&t.$spinner&&(t.$spinner.remove(),delete t.$spinner)},afterMove:function(){var t=this,e=t.current,o={};e&&(e.$slide.siblings().trigger("onReset"),n.each(t.slides,function(e,n){n.pos>=t.currPos-1&&n.pos<=t.currPos+1?o[n.pos]=n:n&&n.$slide.remove()}),t.slides=o,t.trigger("afterMove"),e.isLoaded&&t.complete())},afterLoad:function(t){var e=this;e.isClosing||(t.isLoading=!1,t.isLoaded=!0,e.trigger("afterLoad",t),e.hideLoading(t),t.$ghost||e.updateSlide(t,!0),t.index===e.currIndex&&t.isMoved?e.complete():t.$ghost||e.revealImage(t))},complete:function(){var t=this,e=t.current;t.revealImage(e,function(){e.isComplete=!0,e.$slide.addClass("fancybox-slide--complete"),t.updateCursor(),t.trigger("onComplete"),e.opts.focus&&"image"!==e.type&&"iframe"!==e.type&&t.focus()})},preload:function(){var t,e,n=this;n.group.length<2||(t=n.slides[n.currPos+1],e=n.slides[n.currPos-1],t&&"image"===t.type&&n.loadSlide(t),e&&"image"===e.type&&n.loadSlide(e))},focus:function(){var t,e=this.current;t=e&&e.isComplete?e.$slide.find('button,:input,[tabindex],a:not(".disabled")').filter(":visible:first"):null,t&&t.length||(t=this.$refs.container),t.focus(),this.$refs.slider_wrap.scrollLeft(0),e&&e.$slide.scrollTop(0)},activate:function(){var t=this;n(".fancybox-container").each(function(){var e=n(this).data("FancyBox");e&&e.uid!==t.uid&&!e.isClosing&&e.trigger("onDeactivate")}),t.current&&(t.$refs.container.index()>0&&t.$refs.container.prependTo(e.body),t.updateControls()),t.trigger("onActivate"),t.addEvents()},close:function(t){var e=this,o=e.current,s=o.opts.speed,i=n.proxy(function(){e.cleanUp(t)},this);return!e.isAnimating&&!e.isClosing&&(e.trigger("beforeClose",t)===!1?(n.fancybox.stop(e.$refs.slider),void u(function(){e.update(!0,!0,150)})):(e.isClosing=!0,o.timouts&&clearTimeout(o.timouts),t!==!0&&n.fancybox.stop(e.$refs.slider),e.$refs.container.removeClass("fancybox-container--active").addClass("fancybox-container--closing"),o.$slide.removeClass("fancybox-slide--complete").siblings().remove(),o.isMoved||o.$slide.css("overflow","visible"),e.removeEvents(),e.hideLoading(o),e.hideControls(),e.updateCursor(),e.$refs.bg.css("transition-duration",s+"ms"),this.$refs.container.removeClass("fancybox-container--ready"),void(t===!0?setTimeout(i,s):e.zoomInOut("Out",s,i)||n.fancybox.animate(e.$refs.container,null,{opacity:0},s,"easeInSine",i))))},cleanUp:function(t){var e,o=this;o.$refs.slider.children().trigger("onReset"),o.$refs.container.empty().remove(),o.trigger("afterClose",t),o.current=null,e=n.fancybox.getInstance(),e?e.activate():(n("html").removeClass("fancybox-enabled"),n("body").removeAttr("style"),a.scrollTop(o.scrollTop).scrollLeft(o.scrollLeft),n("#fancybox-noscroll").remove()),o.$lastFocus&&o.$lastFocus.focus()},trigger:function(t,o){var s,i=Array.prototype.slice.call(arguments,1),a=this,r=o&&o.opts?o:a.current;return r?i.unshift(r):r=a,i.unshift(a),n.isFunction(r.opts[t])&&(s=r.opts[t].apply(r,i)),s===!1?s:void("afterClose"===t?n(e).trigger(t+".fb",i):a.$refs.container.trigger(t+".fb",i))},toggleControls:function(t){this.isHiddenControls?this.updateControls(t):this.hideControls()},hideControls:function(){this.isHiddenControls=!0,this.$refs.container.removeClass("fancybox-show-controls"),this.$refs.container.removeClass("fancybox-show-caption")},updateControls:function(t){var e=this,o=e.$refs.container,s=e.$refs.caption,i=e.current,a=i.index,r=i.opts,c=r.caption;this.isHiddenControls&&t!==!0||(this.isHiddenControls=!1,o.addClass("fancybox-show-controls").toggleClass("fancybox-show-infobar",!!r.infobar&&e.group.length>1).toggleClass("fancybox-show-buttons",!!r.buttons).toggleClass("fancybox-is-modal",!!r.modal),n(".fancybox-button--left",o).toggleClass("fancybox-button--disabled",!r.loop&&a<=0),n(".fancybox-button--right",o).toggleClass("fancybox-button--disabled",!r.loop&&a>=e.group.length-1),n(".fancybox-button--play",o).toggle(!!(r.slideShow&&e.group.length>1)),n(".fancybox-button--close",o).toggle(!!r.closeBtn),n(".js-fancybox-count",o).html(e.group.length),n(".js-fancybox-index",o).html(a+1),i.$slide.trigger("refresh"),s&&s.empty(),c&&c.length?(s.html(c),this.$refs.container.addClass("fancybox-show-caption "),e.$caption=s):this.$refs.container.removeClass("fancybox-show-caption"))}}),n.fancybox={version:"3.0.47",defaults:i,getInstance:function(t){var e=n('.fancybox-container:not(".fancybox-container--closing"):first').data("FancyBox"),o=Array.prototype.slice.call(arguments,1);return e instanceof p&&("string"===n.type(t)?e[t].apply(e,o):"function"===n.type(t)&&t.apply(e,o),e)},open:function(t,e,n){return new p(t,e,n)},close:function(t){var e=this.getInstance();e&&(e.close(),t===!0&&this.close())},isTouch:e.createTouch!==o&&/Android|webOS|iPhone|iPad|iPod|BlackBerry/i.test(navigator.userAgent),use3d:function(){var n=e.createElement("div");return t.getComputedStyle(n).getPropertyValue("transform")&&!(e.documentMode&&e.documentMode<=11)}(),getTranslate:function(t){var e,n;return!(!t||!t.length)&&(e=t.get(0).getBoundingClientRect(),n=t.eq(0).css("transform"),n&&n.indexOf("matrix")!==-1?(n=n.split("(")[1],n=n.split(")")[0],n=n.split(",")):n=[],n.length?(n=n.length>10?[n[13],n[12],n[0],n[5]]:[n[5],n[4],n[0],n[3]],n=n.map(parseFloat)):n=[0,0,1,1],{top:n[0],left:n[1],scaleX:n[2],scaleY:n[3],opacity:parseFloat(t.css("opacity")),width:e.width,height:e.height})},setTranslate:function(t,e){var n="",s={};if(t&&e)return e.left===o&&e.top===o||(n=(e.left===o?t.position().top:e.left)+"px, "+(e.top===o?t.position().top:e.top)+"px",n=this.use3d?"translate3d("+n+", 0px)":"translate("+n+")"),e.scaleX!==o&&e.scaleY!==o&&(n=(n.length?n+" ":"")+"scale("+e.scaleX+", "+e.scaleY+")"),n.length&&(s.transform=n),e.opacity!==o&&(s.opacity=e.opacity),e.width!==o&&(s.width=e.width),e.height!==o&&(s.height=e.height),t.css(s)},easing:{easeOutCubic:function(t,e,n,o){return n*((t=t/o-1)*t*t+1)+e},easeInCubic:function(t,e,n,o){return n*(t/=o)*t*t+e},easeOutSine:function(t,e,n,o){return n*Math.sin(t/o*(Math.PI/2))+e},easeInSine:function(t,e,n,o){return-n*Math.cos(t/o*(Math.PI/2))+n+e}},stop:function(t){t.removeData("animateID")},animate:function(t,e,s,i,a,r){var c,l,d,p=this,h=null,f=0,g=function(){s.scaleX!==o&&s.scaleY!==o&&e&&e.width!==o&&e.height!==o&&(s.width=e.width*s.scaleX,s.height=e.height*s.scaleY,s.scaleX=1,s.scaleY=1),p.setTranslate(t,s),r()},b=function(n){if(c=[],l=0,t.length&&t.data("animateID")===d){if(n=n||Date.now(),h&&(l=n-h),h=n,f+=l,f>=i)return void g();for(var r in s)s.hasOwnProperty(r)&&e[r]!==o&&(e[r]==s[r]?c[r]=s[r]:c[r]=p.easing[a](f,e[r],s[r]-e[r],i));p.setTranslate(t,c),u(b)}};p.animateID=d=p.animateID===o?1:p.animateID+1,t.data("animateID",d),r===o&&"function"==n.type(a)&&(r=a,a=o),a||(a="easeOutCubic"),r=r||n.noop,e?this.setTranslate(t,e):e=this.getTranslate(t),i?(t.show(),u(b)):g()}},n.fn.fancybox=function(t){return this.off("click.fb-start").on("click.fb-start",{items:this,options:t||{}},s),this},n(e).on("click.fb-start","[data-fancybox]",s)}(window,document,window.jQuery),function(t){"use strict";var e=function(e,n,o){if(e)return o=o||"","object"===t.type(o)&&(o=t.param(o,!0)),t.each(n,function(t,n){e=e.replace("$"+t,n||"")}),o.length&&(e+=(e.indexOf("?")>0?"&":"?")+o),e},n={youtube:{matcher:/(youtube\.com|youtu\.be|youtube\-nocookie\.com)\/(watch\?(.*&)?v=|v\/|u\/|embed\/?)?(videoseries\?list=(.*)|[\w-]{11}|\?listType=(.*)&list=(.*))(.*)/i,params:{autoplay:1,autohide:1,fs:1,rel:0,hd:1,wmode:"transparent",enablejsapi:1,html5:1},paramPlace:8,type:"iframe",url:"//www.youtube.com/embed/$4",thumb:"//img.youtube.com/vi/$4/hqdefault.jpg"},vimeo:{matcher:/^.+vimeo.com\/(.*\/)?([\d]+)(.*)?/,params:{autoplay:1,hd:1,show_title:1,show_byline:1,show_portrait:0,fullscreen:1,api:1},paramPlace:3,type:"iframe",url:"//player.vimeo.com/video/$2"},metacafe:{matcher:/metacafe.com\/watch\/(\d+)\/(.*)?/,type:"iframe",url:"//www.metacafe.com/embed/$1/?ap=1"},dailymotion:{matcher:/dailymotion.com\/video\/(.*)\/?(.*)/,params:{additionalInfos:0,autoStart:1},type:"iframe",url:"//www.dailymotion.com/embed/video/$1"},vine:{matcher:/vine.co\/v\/([a-zA-Z0-9\?\=\-]+)/,type:"iframe",url:"//vine.co/v/$1/embed/simple"},instagram:{matcher:/(instagr\.am|instagram\.com)\/p\/([a-zA-Z0-9_\-]+)\/?/i,type:"image",url:"//$1/p/$2/media/?size=l"},google_maps:{matcher:/(maps\.)?google\.([a-z]{2,3}(\.[a-z]{2})?)\/(((maps\/(place\/(.*)\/)?\@(.*),(\d+.?\d+?)z))|(\?ll=))(.*)?/i,type:"iframe",url:function(t){return"//maps.google."+t[2]+"/?ll="+(t[9]?t[9]+"&z="+Math.floor(t[10])+(t[12]?t[12].replace(/^\//,"&"):""):t[12])+"&output="+(t[12]&&t[12].indexOf("layer=c")>0?"svembed":"embed")}}};t(document).on("onInit.fb",function(o,s){t.each(s.group,function(o,s){var i,a,r,c,l,u,d=s.src||"",p=!1;s.type||(t.each(n,function(n,o){if(a=d.match(o.matcher),l={},u=n,a){if(p=o.type,o.paramPlace&&a[o.paramPlace]){c=a[o.paramPlace],"?"==c[0]&&(c=c.substring(1)),c=c.split("&");for(var h=0;h<c.length;++h){var f=c[h].split("=",2);2==f.length&&(l[f[0]]=decodeURIComponent(f[1].replace(/\+/g," ")))}}return r=t.extend(!0,{},o.params,s.opts[n],l),d="function"===t.type(o.url)?o.url.call(this,a,r,s):e(o.url,a,r),i="function"===t.type(o.thumb)?o.thumb.call(this,a,r,s):e(o.thumb,a),"vimeo"===u&&(d=d.replace("&%23","#")),!1}}),p?(s.src=d,s.type=p,s.opts.thumb||s.opts.$thumb&&s.opts.$thumb.length||(s.opts.thumb=i),"iframe"===p&&(t.extend(!0,s.opts,{iframe:{preload:!1,scrolling:"no"},smallBtn:!1,closeBtn:!0,fullScreen:!1,slideShow:!1}),s.opts.slideClass+=" fancybox-slide--video")):s.type="iframe")})})}(window.jQuery),function(t,e,n){"use strict";var o=function(){return t.requestAnimationFrame||t.webkitRequestAnimationFrame||t.mozRequestAnimationFrame||function(e){t.setTimeout(e,1e3/60)}}(),s=function(e){var n=[];e=e.originalEvent||e||t.e,e=e.touches&&e.touches.length?e.touches:e.changedTouches&&e.changedTouches.length?e.changedTouches:[e];for(var o in e)e[o].pageX?n.push({x:e[o].pageX,y:e[o].pageY}):e[o].clientX&&n.push({x:e[o].clientX,y:e[o].clientY});return n},i=function(t,e,n){return e&&t?"x"===n?t.x-e.x:"y"===n?t.y-e.y:Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2)):0},a=function(t){return t.is("a")||t.is("button")||t.is("input")||t.is("select")||t.is("textarea")||n.isFunction(t.get(0).onclick)},r=function(e){var n=t.getComputedStyle(e)["overflow-y"],o=t.getComputedStyle(e)["overflow-x"],s=("scroll"===n||"auto"===n)&&e.scrollHeight>e.clientHeight,i=("scroll"===o||"auto"===o)&&e.scrollWidth>e.clientWidth;return s||i},c=function(t){for(var e=!1;;){if(e=r(t.get(0)))break;if(t=t.parent(),!t.length||t.hasClass("fancybox-slider")||t.is("body"))break}return e},l=function(t){var e=this;e.instance=t,e.$wrap=t.$refs.slider_wrap,e.$slider=t.$refs.slider,e.$container=t.$refs.container,e.destroy(),e.$wrap.on("touchstart.fb mousedown.fb",n.proxy(e,"ontouchstart"))};l.prototype.destroy=function(){this.$wrap.off("touchstart.fb mousedown.fb touchmove.fb mousemove.fb touchend.fb touchcancel.fb mouseup.fb mouseleave.fb")},l.prototype.ontouchstart=function(e){var o=this,r=n(e.target),l=o.instance,u=l.current,d=u.$content||u.$placeholder;return o.startPoints=s(e),o.$target=r,o.$content=d,o.canvasWidth=Math.round(u.$slide[0].clientWidth),o.canvasHeight=Math.round(u.$slide[0].clientHeight),o.startEvent=e,e.originalEvent.clientX>o.canvasWidth+u.$slide.offset().left||(a(r)||a(r.parent())||c(r)?void 0:u.opts.touch?void(e.originalEvent&&2==e.originalEvent.button||(e.stopPropagation(),e.preventDefault(),!u||o.instance.isAnimating||o.instance.isClosing||!o.startPoints||o.startPoints.length>1&&!u.isMoved||(o.$wrap.off("touchmove.fb mousemove.fb",n.proxy(o,"ontouchmove")),o.$wrap.off("touchend.fb touchcancel.fb mouseup.fb mouseleave.fb",n.proxy(o,"ontouchend")),o.$wrap.on("touchend.fb touchcancel.fb mouseup.fb mouseleave.fb",n.proxy(o,"ontouchend")),o.$wrap.on("touchmove.fb mousemove.fb",n.proxy(o,"ontouchmove")),o.startTime=(new Date).getTime(),o.distanceX=o.distanceY=o.distance=0,o.canTap=!1,o.isPanning=!1,o.isSwiping=!1,o.isZooming=!1,o.sliderStartPos=n.fancybox.getTranslate(o.$slider),o.contentStartPos=n.fancybox.getTranslate(o.$content),o.contentLastPos=null,1!==o.startPoints.length||o.isZooming||(o.canTap=u.isMoved,"image"===u.type&&(o.contentStartPos.width>o.canvasWidth+1||o.contentStartPos.height>o.canvasHeight+1)?(n.fancybox.stop(o.$content),o.isPanning=!0):(n.fancybox.stop(o.$slider),o.isSwiping=!0),o.$container.addClass("fancybox-controls--isGrabbing")),2===o.startPoints.length&&u.isMoved&&!u.hasError&&"image"===u.type&&(u.isLoaded||u.$ghost)&&(o.isZooming=!0,o.isSwiping=!1,o.isPanning=!1,n.fancybox.stop(o.$content),o.centerPointStartX=.5*(o.startPoints[0].x+o.startPoints[1].x)-n(t).scrollLeft(),o.centerPointStartY=.5*(o.startPoints[0].y+o.startPoints[1].y)-n(t).scrollTop(),o.percentageOfImageAtPinchPointX=(o.centerPointStartX-o.contentStartPos.left)/o.contentStartPos.width,o.percentageOfImageAtPinchPointY=(o.centerPointStartY-o.contentStartPos.top)/o.contentStartPos.height,o.startDistanceBetweenFingers=i(o.startPoints[0],o.startPoints[1]))))):(o.endPoints=o.startPoints,o.ontap()))},l.prototype.ontouchmove=function(t){var e=this;t.preventDefault(),e.newPoints=s(t),e.newPoints&&e.newPoints.length&&(e.distanceX=i(e.newPoints[0],e.startPoints[0],"x"),e.distanceY=i(e.newPoints[0],e.startPoints[0],"y"),e.distance=i(e.newPoints[0],e.startPoints[0]),e.distance>0&&(e.isSwiping?e.onSwipe():e.isPanning?e.onPan():e.isZooming&&e.onZoom()))},l.prototype.onSwipe=function(){var e,s=this,i=s.isSwiping,a=s.sliderStartPos.left;i===!0?Math.abs(s.distance)>10&&(s.instance.group.length<2?s.isSwiping="y":!s.instance.current.isMoved||s.instance.opts.touch.vertical===!1||"auto"===s.instance.opts.touch.vertical&&n(t).width()>800?s.isSwiping="x":(e=Math.abs(180*Math.atan2(s.distanceY,s.distanceX)/Math.PI),
|
1
|
+
// ==================================================
|
2
|
+
// fancyBox v3.0.47
|
3
|
+
//
|
4
|
+
// Licensed GPLv3 for open source use
|
5
|
+
// or fancyBox Commercial License for commercial use
|
6
|
+
//
|
7
|
+
// http://fancyapps.com/fancybox/
|
8
|
+
// Copyright 2017 fancyApps
|
9
|
+
//
|
10
|
+
// ==================================================
|
11
|
+
!function(t,e,n,o){"use strict";function s(t){var e=t.currentTarget,o=t.data?t.data.options:{},s=t.data?t.data.items:[],i="",a=0;t.preventDefault(),t.stopPropagation(),n(e).attr("data-fancybox")&&(i=n(e).data("fancybox")),i?(s=s.length?s.filter('[data-fancybox="'+i+'"]'):n("[data-fancybox="+i+"]"),a=s.index(e)):s=[e],n.fancybox.open(s,o,a)}if(!n)return o;var i={speed:330,loop:!0,opacity:"auto",margin:[44,0],gutter:30,infobar:!0,buttons:!0,slideShow:!0,fullScreen:!0,thumbs:!0,closeBtn:!0,smallBtn:"auto",image:{preload:"auto",protect:!1},ajax:{settings:{data:{fancybox:!0}}},iframe:{tpl:'<iframe id="fancybox-frame{rnd}" name="fancybox-frame{rnd}" class="fancybox-iframe" frameborder="0" vspace="0" hspace="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen allowtransparency="true" src=""></iframe>',preload:!0,scrolling:"no",css:{}},baseClass:"",slideClass:"",baseTpl:'<div class="fancybox-container" role="dialog" tabindex="-1"><div class="fancybox-bg"></div><div class="fancybox-controls"><div class="fancybox-infobar"><button data-fancybox-previous class="fancybox-button fancybox-button--left" title="Previous"></button><div class="fancybox-infobar__body"><span class="js-fancybox-index"></span> / <span class="js-fancybox-count"></span></div><button data-fancybox-next class="fancybox-button fancybox-button--right" title="Next"></button></div><div class="fancybox-buttons"><button data-fancybox-close class="fancybox-button fancybox-button--close" title="Close (Esc)"></button></div></div><div class="fancybox-slider-wrap"><div class="fancybox-slider"></div></div><div class="fancybox-caption-wrap"><div class="fancybox-caption"></div></div></div>',spinnerTpl:'<div class="fancybox-loading"></div>',errorTpl:'<div class="fancybox-error"><p>The requested content cannot be loaded. <br /> Please try again later.<p></div>',closeTpl:'<button data-fancybox-close class="fancybox-close-small"></button>',parentEl:"body",touch:!0,keyboard:!0,focus:!0,closeClickOutside:!0,beforeLoad:n.noop,afterLoad:n.noop,beforeMove:n.noop,afterMove:n.noop,onComplete:n.noop,onInit:n.noop,beforeClose:n.noop,afterClose:n.noop,onActivate:n.noop,onDeactivate:n.noop},a=n(t),r=n(e),c=0,l=function(t){return t&&t.hasOwnProperty&&t instanceof n},u=function(){return t.requestAnimationFrame||t.webkitRequestAnimationFrame||t.mozRequestAnimationFrame||function(e){t.setTimeout(e,1e3/60)}}(),d=function(o){var s;return"function"==typeof n&&o instanceof n&&(o=o[0]),s=o.getBoundingClientRect(),s.bottom>0&&s.right>0&&s.left<(t.innerWidth||e.documentElement.clientWidth)&&s.top<(t.innerHeight||e.documentElement.clientHeight)},p=function(t,o,s){var a=this;a.opts=n.extend(!0,{index:s},i,o||{}),a.id=a.opts.id||++c,a.group=[],a.currIndex=parseInt(a.opts.index,10)||0,a.prevIndex=null,a.prevPos=null,a.currPos=0,a.firstRun=null,a.createGroup(t),a.group.length&&(a.$lastFocus=n(e.activeElement).blur(),a.slides={},a.init(t))};n.extend(p.prototype,{init:function(){var t,e,o=this,s=!1;o.scrollTop=r.scrollTop(),o.scrollLeft=r.scrollLeft(),n.fancybox.getInstance()||(t=n("body").width(),n("html").addClass("fancybox-enabled"),n.fancybox.isTouch?(n.each(o.group,function(t,e){if("image"!==e.type&&"iframe"!==e.type)return s=!0,!1}),s&&n("body").css({position:"fixed",width:t,top:o.scrollTop*-1})):(t=n("body").width()-t,t>1&&n('<style id="fancybox-noscroll" type="text/css">').html(".compensate-for-scrollbar, .fancybox-enabled body { margin-right: "+t+"px; }").appendTo("head"))),e=n(o.opts.baseTpl).attr("id","fancybox-container-"+o.id).data("FancyBox",o).addClass(o.opts.baseClass).hide().prependTo(o.opts.parentEl),o.$refs={container:e,bg:e.find(".fancybox-bg"),controls:e.find(".fancybox-controls"),buttons:e.find(".fancybox-buttons"),slider_wrap:e.find(".fancybox-slider-wrap"),slider:e.find(".fancybox-slider"),caption:e.find(".fancybox-caption")},o.trigger("onInit"),o.activate(),o.current||o.jumpTo(o.currIndex)},createGroup:function(t){var e=this,s=n.makeArray(t);n.each(s,function(t,s){var i,a,r,c,l={},u={},d=[];n.isPlainObject(s)?(l=s,u=s.opts||{}):"object"===n.type(s)&&n(s).length?(i=n(s),d=i.data(),u="options"in d?d.options:{},u="object"===n.type(u)?u:{},l.type="type"in d?d.type:u.type,l.src="src"in d?d.src:u.src||i.attr("href"),u.width="width"in d?d.width:u.width,u.height="height"in d?d.height:u.height,u.thumb="thumb"in d?d.thumb:u.thumb,u.selector="selector"in d?d.selector:u.selector,"srcset"in d&&(u.image={srcset:d.srcset}),u.$orig=i):l={type:"html",content:s+""},l.opts=n.extend(!0,{},e.opts,u),a=l.type,r=l.src||"",a||(l.content?a="html":r.match(/(^data:image\/[a-z0-9+\/=]*,)|(\.(jp(e|g|eg)|gif|png|bmp|webp|svg|ico)((\?|#).*)?$)/i)?a="image":r.match(/\.(pdf)((\?|#).*)?$/i)?a="pdf":"#"===r.charAt(0)&&(a="inline"),l.type=a),l.index=e.group.length,l.opts.$orig&&!l.opts.$orig.length&&delete l.opts.$orig,!l.opts.$thumb&&l.opts.$orig&&(l.opts.$thumb=l.opts.$orig.find("img:first")),l.opts.$thumb&&!l.opts.$thumb.length&&delete l.opts.$thumb,"function"===n.type(l.opts.caption)?l.opts.caption=l.opts.caption.apply(s,[e,l]):"caption"in d?l.opts.caption=d.caption:u.$orig&&(l.opts.caption=i.attr("title")),l.opts.caption=l.opts.caption===o?"":l.opts.caption+"","ajax"===a&&(c=r.split(/\s+/,2),c.length>1&&(l.src=c.shift(),l.opts.selector=c.shift())),"auto"==l.opts.smallBtn&&(n.inArray(a,["html","inline","ajax"])>-1?(l.opts.buttons=!1,l.opts.smallBtn=!0):l.opts.smallBtn=!1),"pdf"===a&&(l.type="iframe",l.opts.closeBtn=!0,l.opts.smallBtn=!1,l.opts.iframe.preload=!1),l.opts.modal&&n.extend(!0,l.opts,{infobar:0,buttons:0,keyboard:0,slideShow:0,fullScreen:0,closeClickOutside:0}),e.group.push(l)})},addEvents:function(){var e=this;e.removeEvents(),e.$refs.container.on("click.fb-close","[data-fancybox-close]",function(t){t.stopPropagation(),t.preventDefault(),e.close(t)}).on("click.fb-previous","[data-fancybox-previous]",function(t){t.stopPropagation(),t.preventDefault(),e.previous()}).on("click.fb-next","[data-fancybox-next]",function(t){t.stopPropagation(),t.preventDefault(),e.next()}),n(t).on("orientationchange.fb resize.fb",function(t){u(function(){t&&t.originalEvent&&"resize"===t.originalEvent.type?e.update():(e.$refs.slider_wrap.hide(),u(function(){e.$refs.slider_wrap.show(),e.update()}))})}),r.on("focusin.fb",function(t){var o=n.fancybox?n.fancybox.getInstance():null;!o||n(t.target).hasClass("fancybox-container")||n.contains(o.$refs.container[0],t.target)||(t.stopPropagation(),o.focus(),a.scrollTop(e.scrollTop).scrollLeft(e.scrollLeft))}),r.on("keydown.fb",function(t){var o=e.current,s=t.keyCode||t.which;if(o&&o.opts.keyboard&&!n(t.target).is("input")&&!n(t.target).is("textarea")){if(8===s||27===s)return t.preventDefault(),void e.close(t);switch(s){case 37:case 38:t.preventDefault(),e.previous();break;case 39:case 40:t.preventDefault(),e.next();break;case 80:case 32:t.preventDefault(),e.SlideShow&&(t.preventDefault(),e.SlideShow.toggle());break;case 70:e.FullScreen&&(t.preventDefault(),e.FullScreen.toggle());break;case 71:e.Thumbs&&(t.preventDefault(),e.Thumbs.toggle())}}})},removeEvents:function(){a.off("scroll.fb resize.fb orientationchange.fb"),r.off("keydown.fb focusin.fb click.fb-close"),this.$refs.container.off("click.fb-close click.fb-previous click.fb-next")},previous:function(t){this.jumpTo(this.currIndex-1,t)},next:function(t){this.jumpTo(this.currIndex+1,t)},jumpTo:function(t,e){var n,s,i,a,r=this;if(n=r.firstRun=null===r.firstRun,s=i=t=parseInt(t,10),a=!!r.current&&r.current.opts.loop,!r.isAnimating&&(s!=r.currIndex||n)){if(r.group.length>1&&a)s%=r.group.length,s=s<0?r.group.length+s:s,2==r.group.length?i=t-r.currIndex+r.currPos:(i=s-r.currIndex+r.currPos,Math.abs(r.currPos-(i+r.group.length))<Math.abs(r.currPos-i)?i+=r.group.length:Math.abs(r.currPos-(i-r.group.length))<Math.abs(r.currPos-i)&&(i-=r.group.length));else if(!r.group[s])return void r.update(!1,!1,e);r.current&&(r.current.$slide.removeClass("fancybox-slide--current fancybox-slide--complete"),r.updateSlide(r.current,!0)),r.prevIndex=r.currIndex,r.prevPos=r.currPos,r.currIndex=s,r.currPos=i,r.current=r.createSlide(i),r.group.length>1&&((r.opts.loop||i-1>=0)&&r.createSlide(i-1),(r.opts.loop||i+1<r.group.length)&&r.createSlide(i+1)),r.current.isMoved=!1,r.current.isComplete=!1,e=parseInt(e===o?1.5*r.current.opts.speed:e,10),r.trigger("beforeMove"),r.updateControls(),n&&(r.current.$slide.addClass("fancybox-slide--current"),r.$refs.container.show(),u(function(){r.$refs.bg.css("transition-duration",r.current.opts.speed+"ms"),r.$refs.container.addClass("fancybox-container--ready")})),r.update(!0,!1,n?0:e,function(){r.afterMove()}),r.loadSlide(r.current),n&&r.current.$ghost||r.preload()}},createSlide:function(t){var e,o,s,i=this;if(o=t%i.group.length,o=o<0?i.group.length+o:o,!i.slides[t]&&i.group[o]){if(i.opts.loop&&i.group.length>2)for(var a in i.slides)if(i.slides[a].index===o)return s=i.slides[a],s.pos=t,i.slides[t]=s,delete i.slides[a],i.updateSlide(s),s;e=n('<div class="fancybox-slide"></div>').appendTo(i.$refs.slider),i.slides[t]=n.extend(!0,{},i.group[o],{pos:t,$slide:e,isMoved:!1,isLoaded:!1})}return i.slides[t]},zoomInOut:function(t,e,o){var s,i,a,r=this,c=r.current,l=c.$placeholder,u=c.opts.opacity,p=c.opts.$thumb,h=p?p.offset():0,f=c.$slide.offset();return!!(l&&c.isMoved&&h&&d(p))&&(!("In"===t&&!r.firstRun)&&(n.fancybox.stop(l),r.isAnimating=!0,s={top:h.top-f.top+parseFloat(p.css("border-top-width")||0),left:h.left-f.left+parseFloat(p.css("border-left-width")||0),width:p.width(),height:p.height(),scaleX:1,scaleY:1},"auto"==u&&(u=Math.abs(c.width/c.height-s.width/s.height)>.1),"In"===t?(i=s,a=r.getFitPos(c),a.scaleX=a.width/i.width,a.scaleY=a.height/i.height,u&&(i.opacity=.1,a.opacity=1)):(i=n.fancybox.getTranslate(l),a=s,c.$ghost&&(c.$ghost.show(),c.$image&&c.$image.remove()),i.scaleX=i.width/a.width,i.scaleY=i.height/a.height,i.width=a.width,i.height=a.height,u&&(a.opacity=0)),r.updateCursor(a.width,a.height),delete a.width,delete a.height,n.fancybox.setTranslate(l,i),l.show(),r.trigger("beforeZoom"+t),l.css("transition","all "+e+"ms"),n.fancybox.setTranslate(l,a),setTimeout(function(){var e;l.css("transition","none"),e=n.fancybox.getTranslate(l),e.scaleX=1,e.scaleY=1,n.fancybox.setTranslate(l,e),r.trigger("afterZoom"+t),o.apply(r),r.isAnimating=!1},e),!0))},canPan:function(){var t=this,e=t.current,n=e.$placeholder,o=!1;return n&&(o=t.getFitPos(e),o=Math.abs(n.width()-o.width)>1||Math.abs(n.height()-o.height)>1),o},isScaledDown:function(){var t=this,e=t.current,o=e.$placeholder,s=!1;return o&&(s=n.fancybox.getTranslate(o),s=s.width<e.width||s.height<e.height),s},scaleToActual:function(t,e,s){var i,a,r,c,l,u=this,d=u.current,p=d.$placeholder,h=parseInt(d.$slide.width(),10),f=parseInt(d.$slide.height(),10),g=d.width,b=d.height;p&&(u.isAnimating=!0,t=t===o?.5*h:t,e=e===o?.5*f:e,i=n.fancybox.getTranslate(p),c=g/i.width,l=b/i.height,a=.5*h-.5*g,r=.5*f-.5*b,g>h&&(a=i.left*c-(t*c-t),a>0&&(a=0),a<h-g&&(a=h-g)),b>f&&(r=i.top*l-(e*l-e),r>0&&(r=0),r<f-b&&(r=f-b)),u.updateCursor(g,b),n.fancybox.animate(p,null,{top:r,left:a,scaleX:c,scaleY:l},s||d.opts.speed,function(){u.isAnimating=!1}))},scaleToFit:function(t){var e,o=this,s=o.current,i=s.$placeholder;i&&(o.isAnimating=!0,e=o.getFitPos(s),o.updateCursor(e.width,e.height),n.fancybox.animate(i,null,{top:e.top,left:e.left,scaleX:e.width/i.width(),scaleY:e.height/i.height()},t||s.opts.speed,function(){o.isAnimating=!1}))},getFitPos:function(t){var e,o,s,i,r,c,l,u=t.$placeholder||t.$content,d=t.width,p=t.height,h=t.opts.margin;return!(!u||!u.length||!d&&!p)&&("number"===n.type(h)&&(h=[h,h]),2==h.length&&(h=[h[0],h[1],h[0],h[1]]),a.width()<800&&(h=[0,0,0,0]),e=parseInt(t.$slide.width(),10)-(h[1]+h[3]),o=parseInt(t.$slide.height(),10)-(h[0]+h[2]),s=Math.min(1,e/d,o/p),c=Math.floor(s*d),l=Math.floor(s*p),i=Math.floor(.5*(o-l))+h[0],r=Math.floor(.5*(e-c))+h[3],{top:i,left:r,width:c,height:l})},update:function(t,e,o,s){var i,a=this;a.isAnimating!==!0&&a.current&&(i=a.current.pos*Math.floor(a.current.$slide.width())*-1-a.current.pos*a.current.opts.gutter,o=parseInt(o,10)||0,n.fancybox.stop(a.$refs.slider),t===!1?a.updateSlide(a.current,e):n.each(a.slides,function(t,n){a.updateSlide(n,e)}),o?n.fancybox.animate(a.$refs.slider,null,{top:0,left:i},o,function(){a.current.isMoved=!0,"function"===n.type(s)&&s.apply(a)}):(n.fancybox.setTranslate(a.$refs.slider,{top:0,left:i}),a.current.isMoved=!0,"function"===n.type(s)&&s.apply(a)))},updateSlide:function(t,e){var o,s=this,i=t.$placeholder;t=t||s.current,t&&!s.isClosing&&(o=t.pos*Math.floor(t.$slide.width())+t.pos*t.opts.gutter,o!==t.leftPos&&(n.fancybox.setTranslate(t.$slide,{top:0,left:o}),t.leftPos=o),e!==!1&&i&&(n.fancybox.setTranslate(i,s.getFitPos(t)),t.pos===s.currPos&&s.updateCursor()),t.$slide.trigger("refresh"),s.trigger("onUpdate",t))},updateCursor:function(t,e){var n,s=this,i=s.$refs.container.removeClass("fancybox-controls--canzoomIn fancybox-controls--canzoomOut fancybox-controls--canGrab");!s.isClosing&&s.opts.touch&&(n=t!==o&&e!==o?t<s.current.width&&e<s.current.height:s.isScaledDown(),n?i.addClass("fancybox-controls--canzoomIn"):s.group.length<2?i.addClass("fancybox-controls--canzoomOut"):i.addClass("fancybox-controls--canGrab"))},loadSlide:function(t){var e,o,s,i=this;if(t&&!t.isLoaded&&!t.isLoading){switch(t.isLoading=!0,i.trigger("beforeLoad",t),e=t.type,o=t.$slide,o.off("refresh").trigger("onReset").addClass("fancybox-slide--"+(e||"unknown")).addClass(t.opts.slideClass),e){case"image":i.setImage(t);break;case"iframe":i.setIframe(t);break;case"html":i.setContent(t,t.content);break;case"inline":n(t.src).length?i.setContent(t,n(t.src)):i.setError(t);break;case"ajax":i.showLoading(t),s=n.ajax(n.extend({},t.opts.ajax.settings,{url:t.src,success:function(e,n){"success"===n&&i.setContent(t,e)},error:function(e,n){e&&"abort"!==n&&i.setError(t)}})),o.one("onReset",function(){s.abort()});break;default:i.setError(t)}return!0}},setImage:function(e){var o,s,i,a,r=this,c=e.opts.image.srcset;if(e.isLoaded&&!e.hasError)return void r.afterLoad(e);if(c){i=t.devicePixelRatio||1,a=t.innerWidth*i,s=c.split(",").map(function(t){var e={};return t.trim().split(/\s+/).forEach(function(t,n){var o=parseInt(t.substring(0,t.length-1),10);return 0===n?e.url=t:void(o&&(e.value=o,e.postfix=t[t.length-1]))}),e}),s.sort(function(t,e){return t.value-e.value});for(var l=0;l<s.length;l++){var u=s[l];if("w"===u.postfix&&u.value>=a||"x"===u.postfix&&u.value>=i){o=u;break}}!o&&s.length&&(o=s[s.length-1]),o&&(e.src=o.url,e.width&&e.height&&"w"==o.postfix&&(e.height=e.width/e.height*o.value,e.width=o.value))}e.$placeholder=n('<div class="fancybox-placeholder"></div>').hide().appendTo(e.$slide),e.opts.preload!==!1&&e.opts.width&&e.opts.height&&(e.opts.thumb||e.opts.$thumb)?(e.width=e.opts.width,e.height=e.opts.height,e.$ghost=n("<img />").one("load error",function(){r.isClosing||(n("<img/>")[0].src=e.src,r.revealImage(e,function(){r.setBigImage(e),r.firstRun&&e.index===r.currIndex&&r.preload()}))}).addClass("fancybox-image").appendTo(e.$placeholder).attr("src",e.opts.thumb||e.opts.$thumb.attr("src"))):r.setBigImage(e)},setBigImage:function(t){var e=this,o=n("<img />");t.$image=o.one("error",function(){e.setError(t)}).one("load",function(){clearTimeout(t.timouts),t.timouts=null,e.isClosing||(t.width=this.naturalWidth,t.height=this.naturalHeight,t.opts.image.srcset&&o.attr("sizes","100vw").attr("srcset",t.opts.image.srcset),e.afterLoad(t),t.$ghost&&(t.timouts=setTimeout(function(){t.$ghost.hide()},350)))}).addClass("fancybox-image").attr("src",t.src).appendTo(t.$placeholder),o[0].complete?o.trigger("load"):o[0].error?o.trigger("error"):t.timouts=setTimeout(function(){o[0].complete||t.hasError||e.showLoading(t)},150),t.opts.image.protect&&n('<div class="fancybox-spaceball"></div>').appendTo(t.$placeholder).on("contextmenu.fb",function(t){return 2==t.button&&t.preventDefault(),!0})},revealImage:function(t,e){var o=this;return e=e||n.noop,"image"!==t.type||t.hasError||t.isRevealed===!0?void e.apply(o):(t.isRevealed=!0,void(t.pos===o.currPos&&o.zoomInOut("In",t.opts.speed,e)||(t.$ghost&&!t.isLoaded&&o.updateSlide(t,!0),t.pos===o.currPos?n.fancybox.animate(t.$placeholder,{opacity:0},{opacity:1},300,e):t.$placeholder.show(),e.apply(o))))},setIframe:function(t){var e,s=this,i=t.opts.iframe,a=t.$slide;t.$content=n('<div class="fancybox-content"></div>').css(i.css).appendTo(a),e=n(i.tpl.replace(/\{rnd\}/g,(new Date).getTime())).attr("scrolling",n.fancybox.isTouch?"auto":i.scrolling).appendTo(t.$content),i.preload?(t.$content.addClass("fancybox-tmp"),s.showLoading(t),e.on("load.fb error.fb",function(e){this.isReady=1,t.$slide.trigger("refresh"),s.afterLoad(t)}),a.on("refresh.fb",function(){var n,s,a,r,c,l=t.$content;if(1===e[0].isReady){try{n=e.contents(),s=n.find("body")}catch(t){}s&&s.length&&(i.css.width===o||i.css.height===o)&&(a=e[0].contentWindow.document.documentElement.scrollWidth,r=Math.ceil(s.outerWidth(!0)+(l.width()-a)),c=Math.ceil(s.outerHeight(!0)),l.css({width:i.css.width===o?r+(l.outerWidth()-l.innerWidth()):i.css.width,height:i.css.height===o?c+(l.outerHeight()-l.innerHeight()):i.css.height})),l.removeClass("fancybox-tmp")}})):this.afterLoad(t),e.attr("src",t.src),t.opts.smallBtn&&t.$content.prepend(t.opts.closeTpl),a.one("onReset",function(){try{n(this).find("iframe").hide().attr("src","//about:blank")}catch(t){}n(this).empty(),t.isLoaded=!1})},setContent:function(t,e){var o=this;o.isClosing||(o.hideLoading(t),t.$slide.empty(),l(e)&&e.parent().length?(e.data("placeholder")&&e.parents(".fancybox-slide").trigger("onReset"),e.data({placeholder:n("<div></div>").hide().insertAfter(e)}).css("display","inline-block")):("string"===n.type(e)&&(e=n("<div>").append(e).contents(),3===e[0].nodeType&&(e=n("<div>").html(e))),t.opts.selector&&(e=n("<div>").html(e).find(t.opts.selector))),t.$slide.one("onReset",function(){var o=l(e)?e.data("placeholder"):0;o&&(e.hide().replaceAll(o),e.data("placeholder",null)),t.hasError||(n(this).empty(),t.isLoaded=!1)}),t.$content=n(e).appendTo(t.$slide),t.opts.smallBtn===!0&&t.$content.find(".fancybox-close-small").remove().end().eq(0).append(t.opts.closeTpl),this.afterLoad(t))},setError:function(t){t.hasError=!0,this.setContent(t,t.opts.errorTpl)},showLoading:function(t){var e=this;t=t||e.current,t&&!t.$spinner&&(t.$spinner=n(e.opts.spinnerTpl).appendTo(t.$slide))},hideLoading:function(t){var e=this;t=t||e.current,t&&t.$spinner&&(t.$spinner.remove(),delete t.$spinner)},afterMove:function(){var t=this,e=t.current,o={};e&&(e.$slide.siblings().trigger("onReset"),n.each(t.slides,function(e,n){n.pos>=t.currPos-1&&n.pos<=t.currPos+1?o[n.pos]=n:n&&n.$slide.remove()}),t.slides=o,t.trigger("afterMove"),e.isLoaded&&t.complete())},afterLoad:function(t){var e=this;e.isClosing||(t.isLoading=!1,t.isLoaded=!0,e.trigger("afterLoad",t),e.hideLoading(t),t.$ghost||e.updateSlide(t,!0),t.index===e.currIndex&&t.isMoved?e.complete():t.$ghost||e.revealImage(t))},complete:function(){var t=this,e=t.current;t.revealImage(e,function(){e.isComplete=!0,e.$slide.addClass("fancybox-slide--complete"),t.updateCursor(),t.trigger("onComplete"),e.opts.focus&&"image"!==e.type&&"iframe"!==e.type&&t.focus()})},preload:function(){var t,e,n=this;n.group.length<2||(t=n.slides[n.currPos+1],e=n.slides[n.currPos-1],t&&"image"===t.type&&n.loadSlide(t),e&&"image"===e.type&&n.loadSlide(e))},focus:function(){var t,e=this.current;t=e&&e.isComplete?e.$slide.find('button,:input,[tabindex],a:not(".disabled")').filter(":visible:first"):null,t&&t.length||(t=this.$refs.container),t.focus(),this.$refs.slider_wrap.scrollLeft(0),e&&e.$slide.scrollTop(0)},activate:function(){var t=this;n(".fancybox-container").each(function(){var e=n(this).data("FancyBox");e&&e.uid!==t.uid&&!e.isClosing&&e.trigger("onDeactivate")}),t.current&&(t.$refs.container.index()>0&&t.$refs.container.prependTo(e.body),t.updateControls()),t.trigger("onActivate"),t.addEvents()},close:function(t){var e=this,o=e.current,s=o.opts.speed,i=n.proxy(function(){e.cleanUp(t)},this);return!e.isAnimating&&!e.isClosing&&(e.trigger("beforeClose",t)===!1?(n.fancybox.stop(e.$refs.slider),void u(function(){e.update(!0,!0,150)})):(e.isClosing=!0,o.timouts&&clearTimeout(o.timouts),t!==!0&&n.fancybox.stop(e.$refs.slider),e.$refs.container.removeClass("fancybox-container--active").addClass("fancybox-container--closing"),o.$slide.removeClass("fancybox-slide--complete").siblings().remove(),o.isMoved||o.$slide.css("overflow","visible"),e.removeEvents(),e.hideLoading(o),e.hideControls(),e.updateCursor(),e.$refs.bg.css("transition-duration",s+"ms"),this.$refs.container.removeClass("fancybox-container--ready"),void(t===!0?setTimeout(i,s):e.zoomInOut("Out",s,i)||n.fancybox.animate(e.$refs.container,null,{opacity:0},s,"easeInSine",i))))},cleanUp:function(t){var e,o=this;o.$refs.slider.children().trigger("onReset"),o.$refs.container.empty().remove(),o.trigger("afterClose",t),o.current=null,e=n.fancybox.getInstance(),e?e.activate():(n("html").removeClass("fancybox-enabled"),n("body").removeAttr("style"),a.scrollTop(o.scrollTop).scrollLeft(o.scrollLeft),n("#fancybox-noscroll").remove()),o.$lastFocus&&o.$lastFocus.focus()},trigger:function(t,o){var s,i=Array.prototype.slice.call(arguments,1),a=this,r=o&&o.opts?o:a.current;return r?i.unshift(r):r=a,i.unshift(a),n.isFunction(r.opts[t])&&(s=r.opts[t].apply(r,i)),s===!1?s:void("afterClose"===t?n(e).trigger(t+".fb",i):a.$refs.container.trigger(t+".fb",i))},toggleControls:function(t){this.isHiddenControls?this.updateControls(t):this.hideControls()},hideControls:function(){this.isHiddenControls=!0,this.$refs.container.removeClass("fancybox-show-controls"),this.$refs.container.removeClass("fancybox-show-caption")},updateControls:function(t){var e=this,o=e.$refs.container,s=e.$refs.caption,i=e.current,a=i.index,r=i.opts,c=r.caption;this.isHiddenControls&&t!==!0||(this.isHiddenControls=!1,o.addClass("fancybox-show-controls").toggleClass("fancybox-show-infobar",!!r.infobar&&e.group.length>1).toggleClass("fancybox-show-buttons",!!r.buttons).toggleClass("fancybox-is-modal",!!r.modal),n(".fancybox-button--left",o).toggleClass("fancybox-button--disabled",!r.loop&&a<=0),n(".fancybox-button--right",o).toggleClass("fancybox-button--disabled",!r.loop&&a>=e.group.length-1),n(".fancybox-button--play",o).toggle(!!(r.slideShow&&e.group.length>1)),n(".fancybox-button--close",o).toggle(!!r.closeBtn),n(".js-fancybox-count",o).html(e.group.length),n(".js-fancybox-index",o).html(a+1),i.$slide.trigger("refresh"),s&&s.empty(),c&&c.length?(s.html(c),this.$refs.container.addClass("fancybox-show-caption "),e.$caption=s):this.$refs.container.removeClass("fancybox-show-caption"))}}),n.fancybox={version:"3.0.47",defaults:i,getInstance:function(t){var e=n('.fancybox-container:not(".fancybox-container--closing"):first').data("FancyBox"),o=Array.prototype.slice.call(arguments,1);return e instanceof p&&("string"===n.type(t)?e[t].apply(e,o):"function"===n.type(t)&&t.apply(e,o),e)},open:function(t,e,n){return new p(t,e,n)},close:function(t){var e=this.getInstance();e&&(e.close(),t===!0&&this.close())},isTouch:e.createTouch!==o&&/Android|webOS|iPhone|iPad|iPod|BlackBerry/i.test(navigator.userAgent),use3d:function(){var n=e.createElement("div");return t.getComputedStyle(n).getPropertyValue("transform")&&!(e.documentMode&&e.documentMode<=11)}(),getTranslate:function(t){var e,n;return!(!t||!t.length)&&(e=t.get(0).getBoundingClientRect(),n=t.eq(0).css("transform"),n&&n.indexOf("matrix")!==-1?(n=n.split("(")[1],n=n.split(")")[0],n=n.split(",")):n=[],n.length?(n=n.length>10?[n[13],n[12],n[0],n[5]]:[n[5],n[4],n[0],n[3]],n=n.map(parseFloat)):n=[0,0,1,1],{top:n[0],left:n[1],scaleX:n[2],scaleY:n[3],opacity:parseFloat(t.css("opacity")),width:e.width,height:e.height})},setTranslate:function(t,e){var n="",s={};if(t&&e)return e.left===o&&e.top===o||(n=(e.left===o?t.position().top:e.left)+"px, "+(e.top===o?t.position().top:e.top)+"px",n=this.use3d?"translate3d("+n+", 0px)":"translate("+n+")"),e.scaleX!==o&&e.scaleY!==o&&(n=(n.length?n+" ":"")+"scale("+e.scaleX+", "+e.scaleY+")"),n.length&&(s.transform=n),e.opacity!==o&&(s.opacity=e.opacity),e.width!==o&&(s.width=e.width),e.height!==o&&(s.height=e.height),t.css(s)},easing:{easeOutCubic:function(t,e,n,o){return n*((t=t/o-1)*t*t+1)+e},easeInCubic:function(t,e,n,o){return n*(t/=o)*t*t+e},easeOutSine:function(t,e,n,o){return n*Math.sin(t/o*(Math.PI/2))+e},easeInSine:function(t,e,n,o){return-n*Math.cos(t/o*(Math.PI/2))+n+e}},stop:function(t){t.removeData("animateID")},animate:function(t,e,s,i,a,r){var c,l,d,p=this,h=null,f=0,g=function(){s.scaleX!==o&&s.scaleY!==o&&e&&e.width!==o&&e.height!==o&&(s.width=e.width*s.scaleX,s.height=e.height*s.scaleY,s.scaleX=1,s.scaleY=1),p.setTranslate(t,s),r()},b=function(n){if(c=[],l=0,t.length&&t.data("animateID")===d){if(n=n||Date.now(),h&&(l=n-h),h=n,f+=l,f>=i)return void g();for(var r in s)s.hasOwnProperty(r)&&e[r]!==o&&(e[r]==s[r]?c[r]=s[r]:c[r]=p.easing[a](f,e[r],s[r]-e[r],i));p.setTranslate(t,c),u(b)}};p.animateID=d=p.animateID===o?1:p.animateID+1,t.data("animateID",d),r===o&&"function"==n.type(a)&&(r=a,a=o),a||(a="easeOutCubic"),r=r||n.noop,e?this.setTranslate(t,e):e=this.getTranslate(t),i?(t.show(),u(b)):g()}},n.fn.fancybox=function(t){return this.off("click.fb-start").on("click.fb-start",{items:this,options:t||{}},s),this},n(e).on("click.fb-start","[data-fancybox]",s)}(window,document,window.jQuery),function(t){"use strict";var e=function(e,n,o){if(e)return o=o||"","object"===t.type(o)&&(o=t.param(o,!0)),t.each(n,function(t,n){e=e.replace("$"+t,n||"")}),o.length&&(e+=(e.indexOf("?")>0?"&":"?")+o),e},n={youtube:{matcher:/(youtube\.com|youtu\.be|youtube\-nocookie\.com)\/(watch\?(.*&)?v=|v\/|u\/|embed\/?)?(videoseries\?list=(.*)|[\w-]{11}|\?listType=(.*)&list=(.*))(.*)/i,params:{autoplay:1,autohide:1,fs:1,rel:0,hd:1,wmode:"transparent",enablejsapi:1,html5:1},paramPlace:8,type:"iframe",url:"//www.youtube.com/embed/$4",thumb:"//img.youtube.com/vi/$4/hqdefault.jpg"},vimeo:{matcher:/^.+vimeo.com\/(.*\/)?([\d]+)(.*)?/,params:{autoplay:1,hd:1,show_title:1,show_byline:1,show_portrait:0,fullscreen:1,api:1},paramPlace:3,type:"iframe",url:"//player.vimeo.com/video/$2"},metacafe:{matcher:/metacafe.com\/watch\/(\d+)\/(.*)?/,type:"iframe",url:"//www.metacafe.com/embed/$1/?ap=1"},dailymotion:{matcher:/dailymotion.com\/video\/(.*)\/?(.*)/,params:{additionalInfos:0,autoStart:1},type:"iframe",url:"//www.dailymotion.com/embed/video/$1"},vine:{matcher:/vine.co\/v\/([a-zA-Z0-9\?\=\-]+)/,type:"iframe",url:"//vine.co/v/$1/embed/simple"},instagram:{matcher:/(instagr\.am|instagram\.com)\/p\/([a-zA-Z0-9_\-]+)\/?/i,type:"image",url:"//$1/p/$2/media/?size=l"},google_maps:{matcher:/(maps\.)?google\.([a-z]{2,3}(\.[a-z]{2})?)\/(((maps\/(place\/(.*)\/)?\@(.*),(\d+.?\d+?)z))|(\?ll=))(.*)?/i,type:"iframe",url:function(t){return"//maps.google."+t[2]+"/?ll="+(t[9]?t[9]+"&z="+Math.floor(t[10])+(t[12]?t[12].replace(/^\//,"&"):""):t[12])+"&output="+(t[12]&&t[12].indexOf("layer=c")>0?"svembed":"embed")}}};t(document).on("onInit.fb",function(o,s){t.each(s.group,function(o,s){var i,a,r,c,l,u,d=s.src||"",p=!1;s.type||(t.each(n,function(n,o){if(a=d.match(o.matcher),l={},u=n,a){if(p=o.type,o.paramPlace&&a[o.paramPlace]){c=a[o.paramPlace],"?"==c[0]&&(c=c.substring(1)),c=c.split("&");for(var h=0;h<c.length;++h){var f=c[h].split("=",2);2==f.length&&(l[f[0]]=decodeURIComponent(f[1].replace(/\+/g," ")))}}return r=t.extend(!0,{},o.params,s.opts[n],l),d="function"===t.type(o.url)?o.url.call(this,a,r,s):e(o.url,a,r),i="function"===t.type(o.thumb)?o.thumb.call(this,a,r,s):e(o.thumb,a),"vimeo"===u&&(d=d.replace("&%23","#")),!1}}),p?(s.src=d,s.type=p,s.opts.thumb||s.opts.$thumb&&s.opts.$thumb.length||(s.opts.thumb=i),"iframe"===p&&(t.extend(!0,s.opts,{iframe:{preload:!1,scrolling:"no"},smallBtn:!1,closeBtn:!0,fullScreen:!1,slideShow:!1}),s.opts.slideClass+=" fancybox-slide--video")):s.type="iframe")})})}(window.jQuery),function(t,e,n){"use strict";var o=function(){return t.requestAnimationFrame||t.webkitRequestAnimationFrame||t.mozRequestAnimationFrame||function(e){t.setTimeout(e,1e3/60)}}(),s=function(e){var n=[];e=e.originalEvent||e||t.e,e=e.touches&&e.touches.length?e.touches:e.changedTouches&&e.changedTouches.length?e.changedTouches:[e];for(var o in e)e[o].pageX?n.push({x:e[o].pageX,y:e[o].pageY}):e[o].clientX&&n.push({x:e[o].clientX,y:e[o].clientY});return n},i=function(t,e,n){return e&&t?"x"===n?t.x-e.x:"y"===n?t.y-e.y:Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2)):0},a=function(t){return t.is("a")||t.is("button")||t.is("input")||t.is("select")||t.is("textarea")||n.isFunction(t.get(0).onclick)},r=function(e){var n=t.getComputedStyle(e)["overflow-y"],o=t.getComputedStyle(e)["overflow-x"],s=("scroll"===n||"auto"===n)&&e.scrollHeight>e.clientHeight,i=("scroll"===o||"auto"===o)&&e.scrollWidth>e.clientWidth;return s||i},c=function(t){for(var e=!1;;){if(e=r(t.get(0)))break;if(t=t.parent(),!t.length||t.hasClass("fancybox-slider")||t.is("body"))break}return e},l=function(t){var e=this;e.instance=t,e.$wrap=t.$refs.slider_wrap,e.$slider=t.$refs.slider,e.$container=t.$refs.container,e.destroy(),e.$wrap.on("touchstart.fb mousedown.fb",n.proxy(e,"ontouchstart"))};l.prototype.destroy=function(){this.$wrap.off("touchstart.fb mousedown.fb touchmove.fb mousemove.fb touchend.fb touchcancel.fb mouseup.fb mouseleave.fb")},l.prototype.ontouchstart=function(e){var o=this,r=n(e.target),l=o.instance,u=l.current,d=u.$content||u.$placeholder;return o.startPoints=s(e),o.$target=r,o.$content=d,o.canvasWidth=Math.round(u.$slide[0].clientWidth),o.canvasHeight=Math.round(u.$slide[0].clientHeight),o.startEvent=e,e.originalEvent.clientX>o.canvasWidth+u.$slide.offset().left||(a(r)||a(r.parent())||c(r)?void 0:u.opts.touch?void(e.originalEvent&&2==e.originalEvent.button||(e.stopPropagation(),e.preventDefault(),!u||o.instance.isAnimating||o.instance.isClosing||!o.startPoints||o.startPoints.length>1&&!u.isMoved||(o.$wrap.off("touchmove.fb mousemove.fb",n.proxy(o,"ontouchmove")),o.$wrap.off("touchend.fb touchcancel.fb mouseup.fb mouseleave.fb",n.proxy(o,"ontouchend")),o.$wrap.on("touchend.fb touchcancel.fb mouseup.fb mouseleave.fb",n.proxy(o,"ontouchend")),o.$wrap.on("touchmove.fb mousemove.fb",n.proxy(o,"ontouchmove")),o.startTime=(new Date).getTime(),o.distanceX=o.distanceY=o.distance=0,o.canTap=!1,o.isPanning=!1,o.isSwiping=!1,o.isZooming=!1,o.sliderStartPos=n.fancybox.getTranslate(o.$slider),o.contentStartPos=n.fancybox.getTranslate(o.$content),o.contentLastPos=null,1!==o.startPoints.length||o.isZooming||(o.canTap=u.isMoved,"image"===u.type&&(o.contentStartPos.width>o.canvasWidth+1||o.contentStartPos.height>o.canvasHeight+1)?(n.fancybox.stop(o.$content),o.isPanning=!0):(n.fancybox.stop(o.$slider),o.isSwiping=!0),o.$container.addClass("fancybox-controls--isGrabbing")),2===o.startPoints.length&&u.isMoved&&!u.hasError&&"image"===u.type&&(u.isLoaded||u.$ghost)&&(o.isZooming=!0,o.isSwiping=!1,o.isPanning=!1,n.fancybox.stop(o.$content),o.centerPointStartX=.5*(o.startPoints[0].x+o.startPoints[1].x)-n(t).scrollLeft(),o.centerPointStartY=.5*(o.startPoints[0].y+o.startPoints[1].y)-n(t).scrollTop(),o.percentageOfImageAtPinchPointX=(o.centerPointStartX-o.contentStartPos.left)/o.contentStartPos.width,o.percentageOfImageAtPinchPointY=(o.centerPointStartY-o.contentStartPos.top)/o.contentStartPos.height,o.startDistanceBetweenFingers=i(o.startPoints[0],o.startPoints[1]))))):(o.endPoints=o.startPoints,o.ontap()))},l.prototype.ontouchmove=function(t){var e=this;t.preventDefault(),e.newPoints=s(t),e.newPoints&&e.newPoints.length&&(e.distanceX=i(e.newPoints[0],e.startPoints[0],"x"),e.distanceY=i(e.newPoints[0],e.startPoints[0],"y"),e.distance=i(e.newPoints[0],e.startPoints[0]),e.distance>0&&(e.isSwiping?e.onSwipe():e.isPanning?e.onPan():e.isZooming&&e.onZoom()))},l.prototype.onSwipe=function(){var e,s=this,i=s.isSwiping,a=s.sliderStartPos.left;i===!0?Math.abs(s.distance)>10&&(s.instance.group.length<2?s.isSwiping="y":!s.instance.current.isMoved||s.instance.opts.touch.vertical===!1||"auto"===s.instance.opts.touch.vertical&&n(t).width()>800?s.isSwiping="x":(e=Math.abs(180*Math.atan2(s.distanceY,s.distanceX)/Math.PI),
|
12
12
|
s.isSwiping=e>45&&e<135?"y":"x"),s.canTap=!1,s.instance.current.isMoved=!1,s.startPoints=s.newPoints):("x"==i&&(!s.instance.current.opts.loop&&0===s.instance.current.index&&s.distanceX>0?a+=Math.pow(s.distanceX,.8):!s.instance.current.opts.loop&&s.instance.current.index===s.instance.group.length-1&&s.distanceX<0?a-=Math.pow(-s.distanceX,.8):a+=s.distanceX),s.sliderLastPos={top:"x"==i?0:s.sliderStartPos.top+s.distanceY,left:a},o(function(){n.fancybox.setTranslate(s.$slider,s.sliderLastPos)}))},l.prototype.onPan=function(){var t,e,s,i=this;i.canTap=!1,t=i.contentStartPos.width>i.canvasWidth?i.contentStartPos.left+i.distanceX:i.contentStartPos.left,e=i.contentStartPos.top+i.distanceY,s=i.limitMovement(t,e,i.contentStartPos.width,i.contentStartPos.height),s.scaleX=i.contentStartPos.scaleX,s.scaleY=i.contentStartPos.scaleY,i.contentLastPos=s,o(function(){n.fancybox.setTranslate(i.$content,i.contentLastPos)})},l.prototype.limitMovement=function(t,e,n,o){var s,i,a,r,c=this,l=c.canvasWidth,u=c.canvasHeight,d=c.contentStartPos.left,p=c.contentStartPos.top,h=c.distanceX,f=c.distanceY;return s=Math.max(0,.5*l-.5*n),i=Math.max(0,.5*u-.5*o),a=Math.min(l-n,.5*l-.5*n),r=Math.min(u-o,.5*u-.5*o),n>l&&(h>0&&t>s&&(t=s-1+Math.pow(-s+d+h,.8)||0),h<0&&t<a&&(t=a+1-Math.pow(a-d-h,.8)||0)),o>u&&(f>0&&e>i&&(e=i-1+Math.pow(-i+p+f,.8)||0),f<0&&e<r&&(e=r+1-Math.pow(r-p-f,.8)||0)),{top:e,left:t}},l.prototype.limitPosition=function(t,e,n,o){var s=this,i=s.canvasWidth,a=s.canvasHeight;return n>i?(t=t>0?0:t,t=t<i-n?i-n:t):t=Math.max(0,i/2-n/2),o>a?(e=e>0?0:e,e=e<a-o?a-o:e):e=Math.max(0,a/2-o/2),{top:e,left:t}},l.prototype.onZoom=function(){var e=this,s=e.contentStartPos.width,a=e.contentStartPos.height,r=e.contentStartPos.left,c=e.contentStartPos.top,l=i(e.newPoints[0],e.newPoints[1]),u=l/e.startDistanceBetweenFingers,d=Math.floor(s*u),p=Math.floor(a*u),h=(s-d)*e.percentageOfImageAtPinchPointX,f=(a-p)*e.percentageOfImageAtPinchPointY,g=(e.newPoints[0].x+e.newPoints[1].x)/2-n(t).scrollLeft(),b=(e.newPoints[0].y+e.newPoints[1].y)/2-n(t).scrollTop(),m=g-e.centerPointStartX,y=b-e.centerPointStartY,v=r+(h+m),x=c+(f+y),w={top:x,left:v,scaleX:e.contentStartPos.scaleX*u,scaleY:e.contentStartPos.scaleY*u};e.canTap=!1,e.newWidth=d,e.newHeight=p,e.contentLastPos=w,o(function(){n.fancybox.setTranslate(e.$content,e.contentLastPos)})},l.prototype.ontouchend=function(t){var e=this,o=e.instance.current,i=Math.max((new Date).getTime()-e.startTime,1),a=e.isSwiping,r=e.isPanning,c=e.isZooming;return e.endPoints=s(t),e.$container.removeClass("fancybox-controls--isGrabbing"),e.$wrap.off("touchmove.fb mousemove.fb",n.proxy(this,"ontouchmove")),e.$wrap.off("touchend.fb touchcancel.fb mouseup.fb mouseleave.fb",n.proxy(this,"ontouchend")),e.isSwiping=!1,e.isPanning=!1,e.isZooming=!1,e.canTap?e.ontap():(e.velocityX=e.distanceX/i*.5,e.velocityY=e.distanceY/i*.5,e.speed=o.opts.speed||330,e.speedX=Math.max(.75*e.speed,Math.min(1.5*e.speed,1/Math.abs(e.velocityX)*e.speed)),e.speedY=Math.max(.75*e.speed,Math.min(1.5*e.speed,1/Math.abs(e.velocityY)*e.speed)),void(r?e.endPanning():c?e.endZooming():e.endSwiping(a)))},l.prototype.endSwiping=function(t){var e=this;"y"==t&&Math.abs(e.distanceY)>50?(n.fancybox.animate(e.$slider,null,{top:e.sliderStartPos.top+e.distanceY+150*e.velocityY,left:e.sliderStartPos.left,opacity:0},e.speedY),e.instance.close(!0)):"x"==t&&e.distanceX>50?e.instance.previous(e.speedX):"x"==t&&e.distanceX<-50?e.instance.next(e.speedX):e.instance.update(!1,!0,150)},l.prototype.endPanning=function(){var t,e,o,s=this;s.contentLastPos&&(t=s.contentLastPos.left+s.velocityX*s.speed*2,e=s.contentLastPos.top+s.velocityY*s.speed*2,o=s.limitPosition(t,e,s.contentStartPos.width,s.contentStartPos.height),o.width=s.contentStartPos.width,o.height=s.contentStartPos.height,n.fancybox.animate(s.$content,null,o,s.speed,"easeOutSine"))},l.prototype.endZooming=function(){var t,e,o,s,i=this,a=i.instance.current,r=i.newWidth,c=i.newHeight;i.contentLastPos&&(t=i.contentLastPos.left,e=i.contentLastPos.top,s={top:e,left:t,width:r,height:c,scaleX:1,scaleY:1},n.fancybox.setTranslate(i.$content,s),r<i.canvasWidth&&c<i.canvasHeight?i.instance.scaleToFit(150):r>a.width||c>a.height?i.instance.scaleToActual(i.centerPointStartX,i.centerPointStartY,150):(o=i.limitPosition(t,e,r,c),n.fancybox.animate(i.$content,null,o,i.speed,"easeOutSine")))},l.prototype.ontap=function(){var t=this,e=t.instance,o=e.current,s=t.endPoints[0].x,i=t.endPoints[0].y;if(s-=t.$wrap.offset().left,i-=t.$wrap.offset().top,e.SlideShow&&e.SlideShow.isActive&&e.SlideShow.stop(),!n.fancybox.isTouch)return o.opts.closeClickOutside&&t.$target.is(".fancybox-slide")?void e.close(t.startEvent):void("image"==o.type&&o.isMoved&&(e.canPan()?e.scaleToFit():e.isScaledDown()?e.scaleToActual(s,i):e.group.length<2&&e.close(t.startEvent)));if(t.tapped){if(clearTimeout(t.tapped),t.tapped=null,Math.abs(s-t.x)>50||Math.abs(i-t.y)>50||!o.isMoved)return this;"image"==o.type&&(o.isLoaded||o.$ghost)&&(e.canPan()?e.scaleToFit():e.isScaledDown()&&e.scaleToActual(s,i))}else t.x=s,t.y=i,t.tapped=setTimeout(function(){t.tapped=null,e.toggleControls(!0)},300);return this},n(e).on("onActivate.fb",function(t,e){e&&!e.Guestures&&(e.Guestures=new l(e))}),n(e).on("beforeClose.fb",function(t,e){e&&e.Guestures&&e.Guestures.destroy()})}(window,document,window.jQuery),function(t,e){"use strict";var n=function(t){this.instance=t,this.init()};e.extend(n.prototype,{timer:null,isActive:!1,$button:null,speed:3e3,init:function(){var t=this;t.$button=e('<button data-fancybox-play class="fancybox-button fancybox-button--play" title="Slideshow (P)"></button>').appendTo(t.instance.$refs.buttons),t.instance.$refs.container.on("click","[data-fancybox-play]",function(){t.toggle()})},set:function(){var t=this;t.instance&&t.instance.current&&(t.instance.current.opts.loop||t.instance.currIndex<t.instance.group.length-1)?t.timer=setTimeout(function(){t.instance.next()},t.instance.current.opts.slideShow.speed||t.speed):t.stop()},clear:function(){var t=this;clearTimeout(t.timer),t.timer=null},start:function(){var t=this;t.stop(),t.instance&&t.instance.current&&(t.instance.current.opts.loop||t.instance.currIndex<t.instance.group.length-1)&&(t.instance.$refs.container.on({"beforeLoad.fb.player":e.proxy(t,"clear"),"onComplete.fb.player":e.proxy(t,"set")}),t.isActive=!0,t.instance.current.isComplete&&t.set(),t.instance.$refs.container.trigger("onPlayStart"),t.$button.addClass("fancybox-button--pause"))},stop:function(){var t=this;t.clear(),t.instance.$refs.container.trigger("onPlayEnd").off(".player"),t.$button.removeClass("fancybox-button--pause"),t.isActive=!1},toggle:function(){var t=this;t.isActive?t.stop():t.start()}}),e(t).on("onInit.fb",function(t,e){e&&e.group.length>1&&e.opts.slideShow&&!e.SlideShow&&(e.SlideShow=new n(e))}),e(t).on("beforeClose.fb onDeactivate.fb",function(t,e){e&&e.SlideShow&&e.SlideShow.stop()})}(document,window.jQuery),function(t,e){"use strict";var n=function(){var e,n,o,s=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]],i={};for(n=0;n<s.length;n++)if(e=s[n],e&&e[1]in t){for(o=0;o<e.length;o++)i[s[0][o]]=e[o];return i}return!1}();if(n){var o={request:function(e){e=e||t.documentElement,e[n.requestFullscreen](e.ALLOW_KEYBOARD_INPUT)},exit:function(){t[n.exitFullscreen]()},toggle:function(t){this.isFullscreen()?this.exit():this.request(t)},isFullscreen:function(){return Boolean(t[n.fullscreenElement])},enabled:function(){return Boolean(t[n.fullscreenEnabled])}};e(t).on({"onInit.fb":function(t,n){var s;n&&n.opts.fullScreen&&!n.FullScreen&&(s=n.$refs.container,n.$refs.button_fs=e('<button data-fancybox-fullscreen class="fancybox-button fancybox-button--fullscreen" title="Full screen (F)"></button>').appendTo(n.$refs.buttons),s.on("click.fb-fullscreen","[data-fancybox-fullscreen]",function(t){t.stopPropagation(),t.preventDefault(),o.toggle(s[0])}),n.opts.fullScreen.requestOnStart===!0&&o.request(s[0]))},"beforeMove.fb":function(t,e){e&&e.$refs.button_fs&&e.$refs.button_fs.toggle(!!e.current.opts.fullScreen)},"beforeClose.fb":function(){o.exit()}}),e(t).on(n.fullscreenchange,function(){var t=e.fancybox.getInstance(),n=t?t.current.$placeholder:null;n&&(n.css("transition","none"),t.isAnimating=!1,t.update(!0,!0,0))})}}(document,window.jQuery),function(t,e){"use strict";var n=function(t){this.instance=t,this.init()};e.extend(n.prototype,{$button:null,$grid:null,$list:null,isVisible:!1,init:function(){var t=this;t.$button=e('<button data-fancybox-thumbs class="fancybox-button fancybox-button--thumbs" title="Thumbnails (G)"></button>').appendTo(this.instance.$refs.buttons).on("touchend click",function(e){e.stopPropagation(),e.preventDefault(),t.toggle()})},create:function(){var t,n,o=this.instance;this.$grid=e('<div class="fancybox-thumbs"></div>').appendTo(o.$refs.container),t="<ul>",e.each(o.group,function(e,o){n=o.opts.thumb||(o.opts.$thumb?o.opts.$thumb.attr("src"):null),n||"image"!==o.type||(n=o.src),n&&n.length&&(t+='<li data-index="'+e+'" tabindex="0" class="fancybox-thumbs-loading"><img data-src="'+n+'" /></li>')}),t+="</ul>",this.$list=e(t).appendTo(this.$grid).on("click touchstart","li",function(){o.jumpTo(e(this).data("index"))}),this.$list.find("img").hide().one("load",function(){var t,n,o,s,i=e(this).parent().removeClass("fancybox-thumbs-loading"),a=i.outerWidth(),r=i.outerHeight();t=this.naturalWidth||this.width,n=this.naturalHeight||this.height,o=t/a,s=n/r,o>=1&&s>=1&&(o>s?(t/=s,n=r):(t=a,n/=o)),e(this).css({width:Math.floor(t),height:Math.floor(n),"margin-top":Math.min(0,Math.floor(.3*r-.3*n)),"margin-left":Math.min(0,Math.floor(.5*a-.5*t))}).show()}).each(function(){this.src=e(this).data("src")})},focus:function(){this.instance.current&&this.$list.children().removeClass("fancybox-thumbs-active").filter('[data-index="'+this.instance.current.index+'"]').addClass("fancybox-thumbs-active").focus()},close:function(){this.$grid.hide()},update:function(){this.instance.$refs.container.toggleClass("fancybox-container--thumbs",this.isVisible),this.isVisible?(this.$grid||this.create(),this.$grid.show(),this.focus()):this.$grid&&this.$grid.hide(),this.instance.update()},hide:function(){this.isVisible=!1,this.update()},show:function(){this.isVisible=!0,this.update()},toggle:function(){this.isVisible?this.hide():this.show()}}),e(t).on("onInit.fb",function(t,e){var o=e.group[0],s=e.group[1];e.opts.thumbs&&!e.Thumbs&&e.group.length>1&&("image"==o.type||o.opts.thumb||o.opts.$thumb)&&("image"==s.type||s.opts.thumb||s.opts.$thumb)&&(e.Thumbs=new n(e))}),e(t).on("beforeMove.fb",function(t,e,n){var o=e&&e.Thumbs;o&&(n.modal?(o.$button.hide(),o.hide()):(e.opts.thumbs.showOnStart===!0&&e.firstRun&&o.show(),o.$button.show(),o.isVisible&&o.focus()))}),e(t).on("beforeClose.fb",function(t,e){e&&e.Thumbs&&(e.Thumbs.isVisible&&e.opts.thumbs.hideOnClosing!==!1&&e.Thumbs.close(),e.Thumbs=null)})}(document,window.jQuery),function(t,e,n){"use strict";function o(){var t=e.location.hash.substr(1),n=t.split("-"),o=n.length>1&&/^\+?\d+$/.test(n[n.length-1])?parseInt(n.pop(-1),10)||1:1,s=n.join("-");return o<1&&(o=1),{hash:t,index:o,gallery:s}}function s(t){var e;""!==t.gallery&&(e=n("[data-fancybox='"+n.escapeSelector(t.gallery)+"']").eq(t.index-1),e.length?e.trigger("click"):n("#"+n.escapeSelector(t.gallery)).trigger("click"))}function i(t){var e;return!!t&&(e=t.current?t.current.opts:t.opts,e.$orig?e.$orig.data("fancybox"):e.hash||"")}n.escapeSelector||(n.escapeSelector=function(t){var e=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g,n=function(t,e){return e?"\0"===t?"�":t.slice(0,-1)+"\\"+t.charCodeAt(t.length-1).toString(16)+" ":"\\"+t};return(t+"").replace(e,n)});var a=null;n(function(){setTimeout(function(){n.fancybox.defaults.hash!==!1&&(n(e).on("hashchange.fb",function(){var t=o();n.fancybox.getInstance()?a&&a!==t.gallery+"-"+t.index&&(a=null,n.fancybox.close()):""!==t.gallery&&s(t)}),n(t).on({"onInit.fb":function(t,e){var n=o(),s=i(e);s&&n.gallery&&s==n.gallery&&(e.currIndex=n.index-1)},"beforeMove.fb":function(n,o,s){var r=i(o);r&&""!==r&&(e.location.hash.indexOf(r)<0&&(o.opts.origHash=e.location.hash),a=r+(o.group.length>1?"-"+(s.index+1):""),"pushState"in history?history.pushState("",t.title,e.location.pathname+e.location.search+"#"+a):e.location.hash=a)},"beforeClose.fb":function(n,o,s){var r=i(o),c=o&&o.opts.origHash?o.opts.origHash:"";r&&""!==r&&("pushState"in history?history.pushState("",t.title,e.location.pathname+e.location.search+c):e.location.hash=c),a=null}}),s(o()))},50)})}(document,window,window.jQuery);
|
@@ -1,616 +1,616 @@
|
|
1
|
-
@charset "UTF-8";
|
2
|
-
.fancybox-enabled {
|
3
|
-
overflow: hidden; }
|
4
|
-
|
5
|
-
.fancybox-enabled body {
|
6
|
-
overflow: visible;
|
7
|
-
height: 100%; }
|
8
|
-
|
9
|
-
.fancybox-container {
|
10
|
-
position: fixed;
|
11
|
-
top: 0;
|
12
|
-
left: 0;
|
13
|
-
width: 100%;
|
14
|
-
height: 100%;
|
15
|
-
z-index: 99993;
|
16
|
-
-webkit-backface-visibility: hidden;
|
17
|
-
backface-visibility: hidden; }
|
18
|
-
|
19
|
-
/* Make sure that the first one is on the top */
|
20
|
-
.fancybox-container ~ .fancybox-container {
|
21
|
-
z-index: 99992; }
|
22
|
-
|
23
|
-
.fancybox-bg {
|
24
|
-
position: absolute;
|
25
|
-
top: 0;
|
26
|
-
right: 0;
|
27
|
-
bottom: 0;
|
28
|
-
left: 0;
|
29
|
-
background: #0f0f11;
|
30
|
-
opacity: 0;
|
31
|
-
transition-timing-function: cubic-bezier(0.55, 0.06, 0.68, 0.19);
|
32
|
-
-webkit-backface-visibility: hidden;
|
33
|
-
backface-visibility: hidden; }
|
34
|
-
|
35
|
-
.fancybox-container--ready .fancybox-bg {
|
36
|
-
opacity: 0.87;
|
37
|
-
transition-timing-function: cubic-bezier(0.22, 0.61, 0.36, 1); }
|
38
|
-
|
39
|
-
.fancybox-controls {
|
40
|
-
position: absolute;
|
41
|
-
top: 0;
|
42
|
-
left: 0;
|
43
|
-
right: 0;
|
44
|
-
text-align: center;
|
45
|
-
opacity: 0;
|
46
|
-
z-index: 99994;
|
47
|
-
transition: opacity .2s;
|
48
|
-
pointer-events: none;
|
49
|
-
-webkit-backface-visibility: hidden;
|
50
|
-
backface-visibility: hidden;
|
51
|
-
direction: ltr; }
|
52
|
-
|
53
|
-
.fancybox-show-controls .fancybox-controls {
|
54
|
-
opacity: 1; }
|
55
|
-
|
56
|
-
.fancybox-infobar {
|
57
|
-
display: none; }
|
58
|
-
|
59
|
-
.fancybox-show-infobar .fancybox-infobar {
|
60
|
-
display: inline-block;
|
61
|
-
pointer-events: all; }
|
62
|
-
|
63
|
-
.fancybox-infobar__body {
|
64
|
-
display: inline-block;
|
65
|
-
width: 70px;
|
66
|
-
line-height: 44px;
|
67
|
-
font-size: 13px;
|
68
|
-
font-family: "Helvetica Neue",Helvetica,Arial,sans-serif;
|
69
|
-
text-align: center;
|
70
|
-
color: #ddd;
|
71
|
-
background-color: rgba(30, 30, 30, 0.7);
|
72
|
-
pointer-events: none;
|
73
|
-
-webkit-user-select: none;
|
74
|
-
-moz-user-select: none;
|
75
|
-
-ms-user-select: none;
|
76
|
-
user-select: none;
|
77
|
-
-webkit-touch-callout: none;
|
78
|
-
-webkit-tap-highlight-color: transparent;
|
79
|
-
-webkit-font-smoothing: subpixel-antialiased; }
|
80
|
-
|
81
|
-
.fancybox-buttons {
|
82
|
-
position: absolute;
|
83
|
-
top: 0;
|
84
|
-
right: 0;
|
85
|
-
display: none;
|
86
|
-
pointer-events: all; }
|
87
|
-
|
88
|
-
.fancybox-show-buttons .fancybox-buttons {
|
89
|
-
display: block; }
|
90
|
-
|
91
|
-
.fancybox-slider-wrap {
|
92
|
-
overflow: hidden;
|
93
|
-
direction: ltr; }
|
94
|
-
|
95
|
-
.fancybox-slider-wrap,
|
96
|
-
.fancybox-slider {
|
97
|
-
position: absolute;
|
98
|
-
top: 0;
|
99
|
-
left: 0;
|
100
|
-
bottom: 0;
|
101
|
-
right: 0;
|
102
|
-
padding: 0;
|
103
|
-
margin: 0;
|
104
|
-
z-index: 99993;
|
105
|
-
-webkit-backface-visibility: hidden;
|
106
|
-
backface-visibility: hidden;
|
107
|
-
-webkit-tap-highlight-color: transparent; }
|
108
|
-
|
109
|
-
.fancybox-slide {
|
110
|
-
position: absolute;
|
111
|
-
top: 0;
|
112
|
-
left: 0;
|
113
|
-
width: 100%;
|
114
|
-
height: 100%;
|
115
|
-
margin: 0;
|
116
|
-
padding: 0;
|
117
|
-
overflow: auto;
|
118
|
-
outline: none;
|
119
|
-
white-space: normal;
|
120
|
-
box-sizing: border-box;
|
121
|
-
text-align: center;
|
122
|
-
z-index: 99994;
|
123
|
-
-webkit-overflow-scrolling: touch; }
|
124
|
-
|
125
|
-
.fancybox-slide::before {
|
126
|
-
content: '';
|
127
|
-
display: inline-block;
|
128
|
-
vertical-align: middle;
|
129
|
-
height: 100%;
|
130
|
-
width: 0; }
|
131
|
-
|
132
|
-
.fancybox-slide > * {
|
133
|
-
display: inline-block;
|
134
|
-
position: relative;
|
135
|
-
padding: 24px;
|
136
|
-
margin: 44px 0 44px;
|
137
|
-
border-width: 0;
|
138
|
-
vertical-align: middle;
|
139
|
-
text-align: left;
|
140
|
-
background-color: #fff;
|
141
|
-
overflow: auto;
|
142
|
-
box-sizing: border-box; }
|
143
|
-
|
144
|
-
.fancybox-slide--image {
|
145
|
-
overflow: hidden; }
|
146
|
-
|
147
|
-
.fancybox-slide--image::before {
|
148
|
-
display: none; }
|
149
|
-
|
150
|
-
.fancybox-content {
|
151
|
-
display: inline-block;
|
152
|
-
position: relative;
|
153
|
-
margin: 44px auto;
|
154
|
-
padding: 0;
|
155
|
-
border: 0;
|
156
|
-
width: 80%;
|
157
|
-
height: calc(100% - 88px);
|
158
|
-
vertical-align: middle;
|
159
|
-
line-height: normal;
|
160
|
-
text-align: left;
|
161
|
-
white-space: normal;
|
162
|
-
outline: none;
|
163
|
-
font-size: 16px;
|
164
|
-
font-family: Arial, sans-serif;
|
165
|
-
box-sizing: border-box;
|
166
|
-
-webkit-tap-highlight-color: transparent;
|
167
|
-
-webkit-overflow-scrolling: touch; }
|
168
|
-
|
169
|
-
.fancybox-iframe {
|
170
|
-
display: block;
|
171
|
-
margin: 0;
|
172
|
-
padding: 0;
|
173
|
-
border: 0;
|
174
|
-
width: 100%;
|
175
|
-
height: 100%;
|
176
|
-
background: #fff; }
|
177
|
-
|
178
|
-
.fancybox-slide--video .fancybox-content,
|
179
|
-
.fancybox-slide--video .fancybox-iframe {
|
180
|
-
background: transparent; }
|
181
|
-
|
182
|
-
.fancybox-placeholder {
|
183
|
-
position: absolute;
|
184
|
-
top: 0;
|
185
|
-
left: 0;
|
186
|
-
margin: 0;
|
187
|
-
padding: 0;
|
188
|
-
border: 0;
|
189
|
-
z-index: 99995;
|
190
|
-
background: transparent;
|
191
|
-
cursor: default;
|
192
|
-
overflow: visible;
|
193
|
-
-webkit-transform-origin: top left;
|
194
|
-
-ms-transform-origin: top left;
|
195
|
-
transform-origin: top left;
|
196
|
-
background-size: 100% 100%;
|
197
|
-
background-repeat: no-repeat;
|
198
|
-
-webkit-backface-visibility: hidden;
|
199
|
-
backface-visibility: hidden; }
|
200
|
-
|
201
|
-
.fancybox-image,
|
202
|
-
.fancybox-spaceball {
|
203
|
-
position: absolute;
|
204
|
-
top: 0;
|
205
|
-
left: 0;
|
206
|
-
width: 100%;
|
207
|
-
height: 100%;
|
208
|
-
margin: 0;
|
209
|
-
padding: 0;
|
210
|
-
border: 0;
|
211
|
-
max-width: none;
|
212
|
-
max-height: none;
|
213
|
-
background: transparent;
|
214
|
-
background-size: 100% 100%; }
|
215
|
-
|
216
|
-
.fancybox-controls--canzoomOut .fancybox-placeholder {
|
217
|
-
cursor: -webkit-zoom-out;
|
218
|
-
cursor: zoom-out; }
|
219
|
-
|
220
|
-
.fancybox-controls--canzoomIn .fancybox-placeholder {
|
221
|
-
cursor: -webkit-zoom-in;
|
222
|
-
cursor: zoom-in; }
|
223
|
-
|
224
|
-
.fancybox-controls--canGrab .fancybox-placeholder {
|
225
|
-
cursor: -webkit-grab;
|
226
|
-
cursor: grab; }
|
227
|
-
|
228
|
-
.fancybox-controls--isGrabbing .fancybox-placeholder {
|
229
|
-
cursor: -webkit-grabbing;
|
230
|
-
cursor: grabbing; }
|
231
|
-
|
232
|
-
.fancybox-spaceball {
|
233
|
-
z-index: 1; }
|
234
|
-
|
235
|
-
.fancybox-tmp {
|
236
|
-
position: absolute;
|
237
|
-
top: -9999px;
|
238
|
-
left: -9999px;
|
239
|
-
visibility: hidden; }
|
240
|
-
|
241
|
-
.fancybox-error {
|
242
|
-
position: absolute;
|
243
|
-
margin: 0;
|
244
|
-
padding: 40px;
|
245
|
-
top: 50%;
|
246
|
-
left: 50%;
|
247
|
-
width: 380px;
|
248
|
-
max-width: 100%;
|
249
|
-
-webkit-transform: translate(-50%, -50%);
|
250
|
-
-ms-transform: translate(-50%, -50%);
|
251
|
-
transform: translate(-50%, -50%);
|
252
|
-
background: #fff;
|
253
|
-
cursor: default; }
|
254
|
-
|
255
|
-
.fancybox-error p {
|
256
|
-
margin: 0;
|
257
|
-
padding: 0;
|
258
|
-
color: #444;
|
259
|
-
font: 16px/20px "Helvetica Neue",Helvetica,Arial,sans-serif; }
|
260
|
-
|
261
|
-
.fancybox-close-small {
|
262
|
-
position: absolute;
|
263
|
-
top: 0;
|
264
|
-
right: 0;
|
265
|
-
width: 44px;
|
266
|
-
height: 44px;
|
267
|
-
padding: 0;
|
268
|
-
margin: 0;
|
269
|
-
border: 0;
|
270
|
-
border-radius: 0;
|
271
|
-
outline: none;
|
272
|
-
background: transparent;
|
273
|
-
z-index: 10;
|
274
|
-
cursor: pointer; }
|
275
|
-
|
276
|
-
.fancybox-close-small:after {
|
277
|
-
content: '×';
|
278
|
-
position: absolute;
|
279
|
-
top: 5px;
|
280
|
-
right: 5px;
|
281
|
-
width: 30px;
|
282
|
-
height: 30px;
|
283
|
-
font: 20px/30px Arial,"Helvetica Neue",Helvetica,sans-serif;
|
284
|
-
color: #888;
|
285
|
-
font-weight: 300;
|
286
|
-
text-align: center;
|
287
|
-
border-radius: 50%;
|
288
|
-
border-width: 0;
|
289
|
-
background: #fff;
|
290
|
-
transition: background .2s;
|
291
|
-
box-sizing: border-box;
|
292
|
-
z-index: 2; }
|
293
|
-
|
294
|
-
.fancybox-close-small:focus:after {
|
295
|
-
outline: 1px dotted #888; }
|
296
|
-
|
297
|
-
.fancybox-slide--video .fancybox-close-small {
|
298
|
-
top: -36px;
|
299
|
-
right: -36px;
|
300
|
-
background: transparent; }
|
301
|
-
|
302
|
-
.fancybox-close-small:hover:after {
|
303
|
-
color: #555;
|
304
|
-
background: #eee; }
|
305
|
-
|
306
|
-
/* Caption */
|
307
|
-
.fancybox-caption-wrap {
|
308
|
-
position: absolute;
|
309
|
-
bottom: 0;
|
310
|
-
left: 0;
|
311
|
-
right: 0;
|
312
|
-
padding: 60px 30px 0 30px;
|
313
|
-
z-index: 99998;
|
314
|
-
-webkit-backface-visibility: hidden;
|
315
|
-
backface-visibility: hidden;
|
316
|
-
box-sizing: border-box;
|
317
|
-
background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.1) 20%, rgba(0, 0, 0, 0.2) 40%, rgba(0, 0, 0, 0.6) 80%, rgba(0, 0, 0, 0.8) 100%);
|
318
|
-
opacity: 0;
|
319
|
-
transition: opacity .2s;
|
320
|
-
pointer-events: none; }
|
321
|
-
|
322
|
-
.fancybox-show-caption .fancybox-caption-wrap {
|
323
|
-
opacity: 1; }
|
324
|
-
|
325
|
-
.fancybox-caption {
|
326
|
-
padding: 30px 0;
|
327
|
-
border-top: 1px solid rgba(255, 255, 255, 0.4);
|
328
|
-
font-size: 14px;
|
329
|
-
font-family: "Helvetica Neue",Helvetica,Arial,sans-serif;
|
330
|
-
color: #fff;
|
331
|
-
line-height: 20px;
|
332
|
-
-webkit-text-size-adjust: none; }
|
333
|
-
|
334
|
-
.fancybox-caption a,
|
335
|
-
.fancybox-caption button {
|
336
|
-
pointer-events: all; }
|
337
|
-
|
338
|
-
.fancybox-caption a {
|
339
|
-
color: #fff;
|
340
|
-
text-decoration: underline; }
|
341
|
-
|
342
|
-
/* Buttons */
|
343
|
-
.fancybox-button {
|
344
|
-
display: inline-block;
|
345
|
-
position: relative;
|
346
|
-
width: 44px;
|
347
|
-
height: 44px;
|
348
|
-
line-height: 44px;
|
349
|
-
margin: 0;
|
350
|
-
padding: 0;
|
351
|
-
border: 0;
|
352
|
-
border-radius: 0;
|
353
|
-
cursor: pointer;
|
354
|
-
background: transparent;
|
355
|
-
color: #fff;
|
356
|
-
box-sizing: border-box;
|
357
|
-
vertical-align: top;
|
358
|
-
outline: none; }
|
359
|
-
|
360
|
-
.fancybox-button--disabled {
|
361
|
-
cursor: default;
|
362
|
-
pointer-events: none; }
|
363
|
-
|
364
|
-
.fancybox-infobar__body, .fancybox-button {
|
365
|
-
background: rgba(30, 30, 30, 0.6); }
|
366
|
-
|
367
|
-
.fancybox-button:hover {
|
368
|
-
background: rgba(0, 0, 0, 0.8); }
|
369
|
-
|
370
|
-
.fancybox-button::before,
|
371
|
-
.fancybox-button::after {
|
372
|
-
content: '';
|
373
|
-
pointer-events: none;
|
374
|
-
position: absolute;
|
375
|
-
border-color: #fff;
|
376
|
-
background-color: currentColor;
|
377
|
-
color: currentColor;
|
378
|
-
opacity: 0.9;
|
379
|
-
box-sizing: border-box;
|
380
|
-
display: inline-block; }
|
381
|
-
|
382
|
-
.fancybox-button--disabled::before,
|
383
|
-
.fancybox-button--disabled::after {
|
384
|
-
opacity: 0.5; }
|
385
|
-
|
386
|
-
.fancybox-button--left::after {
|
387
|
-
left: 20px;
|
388
|
-
top: 18px;
|
389
|
-
width: 6px;
|
390
|
-
height: 6px;
|
391
|
-
background: transparent;
|
392
|
-
border-top: solid 2px currentColor;
|
393
|
-
border-right: solid 2px currentColor;
|
394
|
-
-webkit-transform: rotate(-135deg);
|
395
|
-
-ms-transform: rotate(-135deg);
|
396
|
-
transform: rotate(-135deg); }
|
397
|
-
|
398
|
-
.fancybox-button--right::after {
|
399
|
-
right: 20px;
|
400
|
-
top: 18px;
|
401
|
-
width: 6px;
|
402
|
-
height: 6px;
|
403
|
-
background: transparent;
|
404
|
-
border-top: solid 2px currentColor;
|
405
|
-
border-right: solid 2px currentColor;
|
406
|
-
-webkit-transform: rotate(45deg);
|
407
|
-
-ms-transform: rotate(45deg);
|
408
|
-
transform: rotate(45deg); }
|
409
|
-
|
410
|
-
.fancybox-button--left {
|
411
|
-
border-bottom-left-radius: 5px; }
|
412
|
-
|
413
|
-
.fancybox-button--right {
|
414
|
-
border-bottom-right-radius: 5px; }
|
415
|
-
|
416
|
-
.fancybox-button--close {
|
417
|
-
float: right; }
|
418
|
-
|
419
|
-
.fancybox-button--close::before, .fancybox-button--close::after {
|
420
|
-
content: '';
|
421
|
-
display: inline-block;
|
422
|
-
position: absolute;
|
423
|
-
height: 2px;
|
424
|
-
width: 16px;
|
425
|
-
top: calc(50% - 1px);
|
426
|
-
left: calc(50% - 8px); }
|
427
|
-
|
428
|
-
.fancybox-button--close::before {
|
429
|
-
-webkit-transform: rotate(45deg);
|
430
|
-
-ms-transform: rotate(45deg);
|
431
|
-
transform: rotate(45deg); }
|
432
|
-
|
433
|
-
.fancybox-button--close::after {
|
434
|
-
-webkit-transform: rotate(-45deg);
|
435
|
-
-ms-transform: rotate(-45deg);
|
436
|
-
transform: rotate(-45deg); }
|
437
|
-
|
438
|
-
/* Loading spinner */
|
439
|
-
.fancybox-loading {
|
440
|
-
border: 6px solid rgba(100, 100, 100, 0.4);
|
441
|
-
border-top: 6px solid rgba(255, 255, 255, 0.6);
|
442
|
-
border-radius: 100%;
|
443
|
-
height: 50px;
|
444
|
-
width: 50px;
|
445
|
-
-webkit-animation: fancybox-rotate .8s infinite linear;
|
446
|
-
animation: fancybox-rotate .8s infinite linear;
|
447
|
-
background: transparent;
|
448
|
-
position: absolute;
|
449
|
-
top: 50%;
|
450
|
-
left: 50%;
|
451
|
-
margin-top: -25px;
|
452
|
-
margin-left: -25px;
|
453
|
-
z-index: 99999; }
|
454
|
-
|
455
|
-
@-webkit-keyframes fancybox-rotate {
|
456
|
-
from {
|
457
|
-
-webkit-transform: rotate(0deg);
|
458
|
-
transform: rotate(0deg); }
|
459
|
-
to {
|
460
|
-
-webkit-transform: rotate(359deg);
|
461
|
-
transform: rotate(359deg); } }
|
462
|
-
|
463
|
-
@keyframes fancybox-rotate {
|
464
|
-
from {
|
465
|
-
-webkit-transform: rotate(0deg);
|
466
|
-
transform: rotate(0deg); }
|
467
|
-
to {
|
468
|
-
-webkit-transform: rotate(359deg);
|
469
|
-
transform: rotate(359deg); } }
|
470
|
-
|
471
|
-
/* Styling for Small-Screen Devices */
|
472
|
-
@media all and (max-width: 800px) {
|
473
|
-
.fancybox-controls {
|
474
|
-
text-align: left; }
|
475
|
-
.fancybox-button--left,
|
476
|
-
.fancybox-button--right,
|
477
|
-
.fancybox-buttons button:not(.fancybox-button--close) {
|
478
|
-
display: none !important; }
|
479
|
-
.fancybox-caption {
|
480
|
-
padding: 20px 0;
|
481
|
-
margin: 0; } }
|
482
|
-
|
483
|
-
/* Fullscreen */
|
484
|
-
.fancybox-button--fullscreen::before {
|
485
|
-
width: 15px;
|
486
|
-
height: 11px;
|
487
|
-
left: 15px;
|
488
|
-
top: 16px;
|
489
|
-
border: 2px solid;
|
490
|
-
background: none; }
|
491
|
-
|
492
|
-
/* Slideshow button */
|
493
|
-
.fancybox-button--play::before {
|
494
|
-
top: 16px;
|
495
|
-
left: 18px;
|
496
|
-
width: 0;
|
497
|
-
height: 0;
|
498
|
-
border-top: 6px inset transparent;
|
499
|
-
border-bottom: 6px inset transparent;
|
500
|
-
border-left: 10px solid;
|
501
|
-
border-radius: 1px;
|
502
|
-
background: transparent; }
|
503
|
-
|
504
|
-
.fancybox-button--pause::before {
|
505
|
-
top: 16px;
|
506
|
-
left: 18px;
|
507
|
-
width: 7px;
|
508
|
-
height: 11px;
|
509
|
-
border-style: solid;
|
510
|
-
border-width: 0 2px 0 2px;
|
511
|
-
background: transparent; }
|
512
|
-
|
513
|
-
/* Thumbs */
|
514
|
-
.fancybox-button--thumbs span {
|
515
|
-
font-size: 23px; }
|
516
|
-
|
517
|
-
.fancybox-button--thumbs::before {
|
518
|
-
top: 20px;
|
519
|
-
left: 21px;
|
520
|
-
width: 3px;
|
521
|
-
height: 3px;
|
522
|
-
box-shadow: 0 -4px 0, -4px -4px 0, 4px -4px 0, 0 0 0 32px inset, -4px 0 0, 4px 0 0, 0 4px 0, -4px 4px 0, 4px 4px 0; }
|
523
|
-
|
524
|
-
.fancybox-container--thumbs .fancybox-controls,
|
525
|
-
.fancybox-container--thumbs .fancybox-slider-wrap,
|
526
|
-
.fancybox-container--thumbs .fancybox-caption-wrap {
|
527
|
-
right: 220px; }
|
528
|
-
|
529
|
-
.fancybox-thumbs {
|
530
|
-
position: absolute;
|
531
|
-
top: 0;
|
532
|
-
right: 0;
|
533
|
-
bottom: 0;
|
534
|
-
left: auto;
|
535
|
-
width: 220px;
|
536
|
-
margin: 0;
|
537
|
-
padding: 5px 5px 0 0;
|
538
|
-
background: #fff;
|
539
|
-
z-index: 99993;
|
540
|
-
word-break: normal;
|
541
|
-
-webkit-overflow-scrolling: touch;
|
542
|
-
-webkit-tap-highlight-color: transparent;
|
543
|
-
box-sizing: border-box; }
|
544
|
-
|
545
|
-
.fancybox-thumbs > ul {
|
546
|
-
list-style: none;
|
547
|
-
position: absolute;
|
548
|
-
position: relative;
|
549
|
-
width: 100%;
|
550
|
-
height: 100%;
|
551
|
-
margin: 0;
|
552
|
-
padding: 0;
|
553
|
-
overflow-x: hidden;
|
554
|
-
overflow-y: auto;
|
555
|
-
font-size: 0; }
|
556
|
-
|
557
|
-
.fancybox-thumbs > ul > li {
|
558
|
-
float: left;
|
559
|
-
overflow: hidden;
|
560
|
-
max-width: 50%;
|
561
|
-
padding: 0;
|
562
|
-
margin: 0;
|
563
|
-
width: 105px;
|
564
|
-
height: 75px;
|
565
|
-
position: relative;
|
566
|
-
cursor: pointer;
|
567
|
-
outline: none;
|
568
|
-
border: 5px solid #fff;
|
569
|
-
border-top-width: 0;
|
570
|
-
border-right-width: 0;
|
571
|
-
-webkit-tap-highlight-color: transparent;
|
572
|
-
-webkit-backface-visibility: hidden;
|
573
|
-
backface-visibility: hidden;
|
574
|
-
box-sizing: border-box; }
|
575
|
-
|
576
|
-
li.fancybox-thumbs-loading {
|
577
|
-
background: rgba(0, 0, 0, 0.1); }
|
578
|
-
|
579
|
-
.fancybox-thumbs > ul > li > img {
|
580
|
-
position: absolute;
|
581
|
-
top: 0;
|
582
|
-
left: 0;
|
583
|
-
min-width: 100%;
|
584
|
-
min-height: 100%;
|
585
|
-
max-width: none;
|
586
|
-
max-height: none;
|
587
|
-
-webkit-touch-callout: none;
|
588
|
-
-webkit-user-select: none;
|
589
|
-
-moz-user-select: none;
|
590
|
-
-ms-user-select: none;
|
591
|
-
user-select: none; }
|
592
|
-
|
593
|
-
.fancybox-thumbs > ul > li:before {
|
594
|
-
content: '';
|
595
|
-
position: absolute;
|
596
|
-
top: 0;
|
597
|
-
right: 0;
|
598
|
-
bottom: 0;
|
599
|
-
left: 0;
|
600
|
-
border-radius: 2px;
|
601
|
-
border: 4px solid #4ea7f9;
|
602
|
-
z-index: 99991;
|
603
|
-
opacity: 0;
|
604
|
-
transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
|
605
|
-
|
606
|
-
.fancybox-thumbs > ul > li.fancybox-thumbs-active:before {
|
607
|
-
opacity: 1; }
|
608
|
-
|
609
|
-
/* Styling for Small-Screen Devices */
|
610
|
-
@media all and (max-width: 800px) {
|
611
|
-
.fancybox-thumbs {
|
612
|
-
display: none !important; }
|
613
|
-
.fancybox-container--thumbs .fancybox-controls,
|
614
|
-
.fancybox-container--thumbs .fancybox-slider-wrap,
|
615
|
-
.fancybox-container--thumbs .fancybox-caption-wrap {
|
616
|
-
right: 0; } }
|
1
|
+
@charset "UTF-8";
|
2
|
+
.fancybox-enabled {
|
3
|
+
overflow: hidden; }
|
4
|
+
|
5
|
+
.fancybox-enabled body {
|
6
|
+
overflow: visible;
|
7
|
+
height: 100%; }
|
8
|
+
|
9
|
+
.fancybox-container {
|
10
|
+
position: fixed;
|
11
|
+
top: 0;
|
12
|
+
left: 0;
|
13
|
+
width: 100%;
|
14
|
+
height: 100%;
|
15
|
+
z-index: 99993;
|
16
|
+
-webkit-backface-visibility: hidden;
|
17
|
+
backface-visibility: hidden; }
|
18
|
+
|
19
|
+
/* Make sure that the first one is on the top */
|
20
|
+
.fancybox-container ~ .fancybox-container {
|
21
|
+
z-index: 99992; }
|
22
|
+
|
23
|
+
.fancybox-bg {
|
24
|
+
position: absolute;
|
25
|
+
top: 0;
|
26
|
+
right: 0;
|
27
|
+
bottom: 0;
|
28
|
+
left: 0;
|
29
|
+
background: #0f0f11;
|
30
|
+
opacity: 0;
|
31
|
+
transition-timing-function: cubic-bezier(0.55, 0.06, 0.68, 0.19);
|
32
|
+
-webkit-backface-visibility: hidden;
|
33
|
+
backface-visibility: hidden; }
|
34
|
+
|
35
|
+
.fancybox-container--ready .fancybox-bg {
|
36
|
+
opacity: 0.87;
|
37
|
+
transition-timing-function: cubic-bezier(0.22, 0.61, 0.36, 1); }
|
38
|
+
|
39
|
+
.fancybox-controls {
|
40
|
+
position: absolute;
|
41
|
+
top: 0;
|
42
|
+
left: 0;
|
43
|
+
right: 0;
|
44
|
+
text-align: center;
|
45
|
+
opacity: 0;
|
46
|
+
z-index: 99994;
|
47
|
+
transition: opacity .2s;
|
48
|
+
pointer-events: none;
|
49
|
+
-webkit-backface-visibility: hidden;
|
50
|
+
backface-visibility: hidden;
|
51
|
+
direction: ltr; }
|
52
|
+
|
53
|
+
.fancybox-show-controls .fancybox-controls {
|
54
|
+
opacity: 1; }
|
55
|
+
|
56
|
+
.fancybox-infobar {
|
57
|
+
display: none; }
|
58
|
+
|
59
|
+
.fancybox-show-infobar .fancybox-infobar {
|
60
|
+
display: inline-block;
|
61
|
+
pointer-events: all; }
|
62
|
+
|
63
|
+
.fancybox-infobar__body {
|
64
|
+
display: inline-block;
|
65
|
+
width: 70px;
|
66
|
+
line-height: 44px;
|
67
|
+
font-size: 13px;
|
68
|
+
font-family: "Helvetica Neue",Helvetica,Arial,sans-serif;
|
69
|
+
text-align: center;
|
70
|
+
color: #ddd;
|
71
|
+
background-color: rgba(30, 30, 30, 0.7);
|
72
|
+
pointer-events: none;
|
73
|
+
-webkit-user-select: none;
|
74
|
+
-moz-user-select: none;
|
75
|
+
-ms-user-select: none;
|
76
|
+
user-select: none;
|
77
|
+
-webkit-touch-callout: none;
|
78
|
+
-webkit-tap-highlight-color: transparent;
|
79
|
+
-webkit-font-smoothing: subpixel-antialiased; }
|
80
|
+
|
81
|
+
.fancybox-buttons {
|
82
|
+
position: absolute;
|
83
|
+
top: 0;
|
84
|
+
right: 0;
|
85
|
+
display: none;
|
86
|
+
pointer-events: all; }
|
87
|
+
|
88
|
+
.fancybox-show-buttons .fancybox-buttons {
|
89
|
+
display: block; }
|
90
|
+
|
91
|
+
.fancybox-slider-wrap {
|
92
|
+
overflow: hidden;
|
93
|
+
direction: ltr; }
|
94
|
+
|
95
|
+
.fancybox-slider-wrap,
|
96
|
+
.fancybox-slider {
|
97
|
+
position: absolute;
|
98
|
+
top: 0;
|
99
|
+
left: 0;
|
100
|
+
bottom: 0;
|
101
|
+
right: 0;
|
102
|
+
padding: 0;
|
103
|
+
margin: 0;
|
104
|
+
z-index: 99993;
|
105
|
+
-webkit-backface-visibility: hidden;
|
106
|
+
backface-visibility: hidden;
|
107
|
+
-webkit-tap-highlight-color: transparent; }
|
108
|
+
|
109
|
+
.fancybox-slide {
|
110
|
+
position: absolute;
|
111
|
+
top: 0;
|
112
|
+
left: 0;
|
113
|
+
width: 100%;
|
114
|
+
height: 100%;
|
115
|
+
margin: 0;
|
116
|
+
padding: 0;
|
117
|
+
overflow: auto;
|
118
|
+
outline: none;
|
119
|
+
white-space: normal;
|
120
|
+
box-sizing: border-box;
|
121
|
+
text-align: center;
|
122
|
+
z-index: 99994;
|
123
|
+
-webkit-overflow-scrolling: touch; }
|
124
|
+
|
125
|
+
.fancybox-slide::before {
|
126
|
+
content: '';
|
127
|
+
display: inline-block;
|
128
|
+
vertical-align: middle;
|
129
|
+
height: 100%;
|
130
|
+
width: 0; }
|
131
|
+
|
132
|
+
.fancybox-slide > * {
|
133
|
+
display: inline-block;
|
134
|
+
position: relative;
|
135
|
+
padding: 24px;
|
136
|
+
margin: 44px 0 44px;
|
137
|
+
border-width: 0;
|
138
|
+
vertical-align: middle;
|
139
|
+
text-align: left;
|
140
|
+
background-color: #fff;
|
141
|
+
overflow: auto;
|
142
|
+
box-sizing: border-box; }
|
143
|
+
|
144
|
+
.fancybox-slide--image {
|
145
|
+
overflow: hidden; }
|
146
|
+
|
147
|
+
.fancybox-slide--image::before {
|
148
|
+
display: none; }
|
149
|
+
|
150
|
+
.fancybox-content {
|
151
|
+
display: inline-block;
|
152
|
+
position: relative;
|
153
|
+
margin: 44px auto;
|
154
|
+
padding: 0;
|
155
|
+
border: 0;
|
156
|
+
width: 80%;
|
157
|
+
height: calc(100% - 88px);
|
158
|
+
vertical-align: middle;
|
159
|
+
line-height: normal;
|
160
|
+
text-align: left;
|
161
|
+
white-space: normal;
|
162
|
+
outline: none;
|
163
|
+
font-size: 16px;
|
164
|
+
font-family: Arial, sans-serif;
|
165
|
+
box-sizing: border-box;
|
166
|
+
-webkit-tap-highlight-color: transparent;
|
167
|
+
-webkit-overflow-scrolling: touch; }
|
168
|
+
|
169
|
+
.fancybox-iframe {
|
170
|
+
display: block;
|
171
|
+
margin: 0;
|
172
|
+
padding: 0;
|
173
|
+
border: 0;
|
174
|
+
width: 100%;
|
175
|
+
height: 100%;
|
176
|
+
background: #fff; }
|
177
|
+
|
178
|
+
.fancybox-slide--video .fancybox-content,
|
179
|
+
.fancybox-slide--video .fancybox-iframe {
|
180
|
+
background: transparent; }
|
181
|
+
|
182
|
+
.fancybox-placeholder {
|
183
|
+
position: absolute;
|
184
|
+
top: 0;
|
185
|
+
left: 0;
|
186
|
+
margin: 0;
|
187
|
+
padding: 0;
|
188
|
+
border: 0;
|
189
|
+
z-index: 99995;
|
190
|
+
background: transparent;
|
191
|
+
cursor: default;
|
192
|
+
overflow: visible;
|
193
|
+
-webkit-transform-origin: top left;
|
194
|
+
-ms-transform-origin: top left;
|
195
|
+
transform-origin: top left;
|
196
|
+
background-size: 100% 100%;
|
197
|
+
background-repeat: no-repeat;
|
198
|
+
-webkit-backface-visibility: hidden;
|
199
|
+
backface-visibility: hidden; }
|
200
|
+
|
201
|
+
.fancybox-image,
|
202
|
+
.fancybox-spaceball {
|
203
|
+
position: absolute;
|
204
|
+
top: 0;
|
205
|
+
left: 0;
|
206
|
+
width: 100%;
|
207
|
+
height: 100%;
|
208
|
+
margin: 0;
|
209
|
+
padding: 0;
|
210
|
+
border: 0;
|
211
|
+
max-width: none;
|
212
|
+
max-height: none;
|
213
|
+
background: transparent;
|
214
|
+
background-size: 100% 100%; }
|
215
|
+
|
216
|
+
.fancybox-controls--canzoomOut .fancybox-placeholder {
|
217
|
+
cursor: -webkit-zoom-out;
|
218
|
+
cursor: zoom-out; }
|
219
|
+
|
220
|
+
.fancybox-controls--canzoomIn .fancybox-placeholder {
|
221
|
+
cursor: -webkit-zoom-in;
|
222
|
+
cursor: zoom-in; }
|
223
|
+
|
224
|
+
.fancybox-controls--canGrab .fancybox-placeholder {
|
225
|
+
cursor: -webkit-grab;
|
226
|
+
cursor: grab; }
|
227
|
+
|
228
|
+
.fancybox-controls--isGrabbing .fancybox-placeholder {
|
229
|
+
cursor: -webkit-grabbing;
|
230
|
+
cursor: grabbing; }
|
231
|
+
|
232
|
+
.fancybox-spaceball {
|
233
|
+
z-index: 1; }
|
234
|
+
|
235
|
+
.fancybox-tmp {
|
236
|
+
position: absolute;
|
237
|
+
top: -9999px;
|
238
|
+
left: -9999px;
|
239
|
+
visibility: hidden; }
|
240
|
+
|
241
|
+
.fancybox-error {
|
242
|
+
position: absolute;
|
243
|
+
margin: 0;
|
244
|
+
padding: 40px;
|
245
|
+
top: 50%;
|
246
|
+
left: 50%;
|
247
|
+
width: 380px;
|
248
|
+
max-width: 100%;
|
249
|
+
-webkit-transform: translate(-50%, -50%);
|
250
|
+
-ms-transform: translate(-50%, -50%);
|
251
|
+
transform: translate(-50%, -50%);
|
252
|
+
background: #fff;
|
253
|
+
cursor: default; }
|
254
|
+
|
255
|
+
.fancybox-error p {
|
256
|
+
margin: 0;
|
257
|
+
padding: 0;
|
258
|
+
color: #444;
|
259
|
+
font: 16px/20px "Helvetica Neue",Helvetica,Arial,sans-serif; }
|
260
|
+
|
261
|
+
.fancybox-close-small {
|
262
|
+
position: absolute;
|
263
|
+
top: 0;
|
264
|
+
right: 0;
|
265
|
+
width: 44px;
|
266
|
+
height: 44px;
|
267
|
+
padding: 0;
|
268
|
+
margin: 0;
|
269
|
+
border: 0;
|
270
|
+
border-radius: 0;
|
271
|
+
outline: none;
|
272
|
+
background: transparent;
|
273
|
+
z-index: 10;
|
274
|
+
cursor: pointer; }
|
275
|
+
|
276
|
+
.fancybox-close-small:after {
|
277
|
+
content: '×';
|
278
|
+
position: absolute;
|
279
|
+
top: 5px;
|
280
|
+
right: 5px;
|
281
|
+
width: 30px;
|
282
|
+
height: 30px;
|
283
|
+
font: 20px/30px Arial,"Helvetica Neue",Helvetica,sans-serif;
|
284
|
+
color: #888;
|
285
|
+
font-weight: 300;
|
286
|
+
text-align: center;
|
287
|
+
border-radius: 50%;
|
288
|
+
border-width: 0;
|
289
|
+
background: #fff;
|
290
|
+
transition: background .2s;
|
291
|
+
box-sizing: border-box;
|
292
|
+
z-index: 2; }
|
293
|
+
|
294
|
+
.fancybox-close-small:focus:after {
|
295
|
+
outline: 1px dotted #888; }
|
296
|
+
|
297
|
+
.fancybox-slide--video .fancybox-close-small {
|
298
|
+
top: -36px;
|
299
|
+
right: -36px;
|
300
|
+
background: transparent; }
|
301
|
+
|
302
|
+
.fancybox-close-small:hover:after {
|
303
|
+
color: #555;
|
304
|
+
background: #eee; }
|
305
|
+
|
306
|
+
/* Caption */
|
307
|
+
.fancybox-caption-wrap {
|
308
|
+
position: absolute;
|
309
|
+
bottom: 0;
|
310
|
+
left: 0;
|
311
|
+
right: 0;
|
312
|
+
padding: 60px 30px 0 30px;
|
313
|
+
z-index: 99998;
|
314
|
+
-webkit-backface-visibility: hidden;
|
315
|
+
backface-visibility: hidden;
|
316
|
+
box-sizing: border-box;
|
317
|
+
background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.1) 20%, rgba(0, 0, 0, 0.2) 40%, rgba(0, 0, 0, 0.6) 80%, rgba(0, 0, 0, 0.8) 100%);
|
318
|
+
opacity: 0;
|
319
|
+
transition: opacity .2s;
|
320
|
+
pointer-events: none; }
|
321
|
+
|
322
|
+
.fancybox-show-caption .fancybox-caption-wrap {
|
323
|
+
opacity: 1; }
|
324
|
+
|
325
|
+
.fancybox-caption {
|
326
|
+
padding: 30px 0;
|
327
|
+
border-top: 1px solid rgba(255, 255, 255, 0.4);
|
328
|
+
font-size: 14px;
|
329
|
+
font-family: "Helvetica Neue",Helvetica,Arial,sans-serif;
|
330
|
+
color: #fff;
|
331
|
+
line-height: 20px;
|
332
|
+
-webkit-text-size-adjust: none; }
|
333
|
+
|
334
|
+
.fancybox-caption a,
|
335
|
+
.fancybox-caption button {
|
336
|
+
pointer-events: all; }
|
337
|
+
|
338
|
+
.fancybox-caption a {
|
339
|
+
color: #fff;
|
340
|
+
text-decoration: underline; }
|
341
|
+
|
342
|
+
/* Buttons */
|
343
|
+
.fancybox-button {
|
344
|
+
display: inline-block;
|
345
|
+
position: relative;
|
346
|
+
width: 44px;
|
347
|
+
height: 44px;
|
348
|
+
line-height: 44px;
|
349
|
+
margin: 0;
|
350
|
+
padding: 0;
|
351
|
+
border: 0;
|
352
|
+
border-radius: 0;
|
353
|
+
cursor: pointer;
|
354
|
+
background: transparent;
|
355
|
+
color: #fff;
|
356
|
+
box-sizing: border-box;
|
357
|
+
vertical-align: top;
|
358
|
+
outline: none; }
|
359
|
+
|
360
|
+
.fancybox-button--disabled {
|
361
|
+
cursor: default;
|
362
|
+
pointer-events: none; }
|
363
|
+
|
364
|
+
.fancybox-infobar__body, .fancybox-button {
|
365
|
+
background: rgba(30, 30, 30, 0.6); }
|
366
|
+
|
367
|
+
.fancybox-button:hover {
|
368
|
+
background: rgba(0, 0, 0, 0.8); }
|
369
|
+
|
370
|
+
.fancybox-button::before,
|
371
|
+
.fancybox-button::after {
|
372
|
+
content: '';
|
373
|
+
pointer-events: none;
|
374
|
+
position: absolute;
|
375
|
+
border-color: #fff;
|
376
|
+
background-color: currentColor;
|
377
|
+
color: currentColor;
|
378
|
+
opacity: 0.9;
|
379
|
+
box-sizing: border-box;
|
380
|
+
display: inline-block; }
|
381
|
+
|
382
|
+
.fancybox-button--disabled::before,
|
383
|
+
.fancybox-button--disabled::after {
|
384
|
+
opacity: 0.5; }
|
385
|
+
|
386
|
+
.fancybox-button--left::after {
|
387
|
+
left: 20px;
|
388
|
+
top: 18px;
|
389
|
+
width: 6px;
|
390
|
+
height: 6px;
|
391
|
+
background: transparent;
|
392
|
+
border-top: solid 2px currentColor;
|
393
|
+
border-right: solid 2px currentColor;
|
394
|
+
-webkit-transform: rotate(-135deg);
|
395
|
+
-ms-transform: rotate(-135deg);
|
396
|
+
transform: rotate(-135deg); }
|
397
|
+
|
398
|
+
.fancybox-button--right::after {
|
399
|
+
right: 20px;
|
400
|
+
top: 18px;
|
401
|
+
width: 6px;
|
402
|
+
height: 6px;
|
403
|
+
background: transparent;
|
404
|
+
border-top: solid 2px currentColor;
|
405
|
+
border-right: solid 2px currentColor;
|
406
|
+
-webkit-transform: rotate(45deg);
|
407
|
+
-ms-transform: rotate(45deg);
|
408
|
+
transform: rotate(45deg); }
|
409
|
+
|
410
|
+
.fancybox-button--left {
|
411
|
+
border-bottom-left-radius: 5px; }
|
412
|
+
|
413
|
+
.fancybox-button--right {
|
414
|
+
border-bottom-right-radius: 5px; }
|
415
|
+
|
416
|
+
.fancybox-button--close {
|
417
|
+
float: right; }
|
418
|
+
|
419
|
+
.fancybox-button--close::before, .fancybox-button--close::after {
|
420
|
+
content: '';
|
421
|
+
display: inline-block;
|
422
|
+
position: absolute;
|
423
|
+
height: 2px;
|
424
|
+
width: 16px;
|
425
|
+
top: calc(50% - 1px);
|
426
|
+
left: calc(50% - 8px); }
|
427
|
+
|
428
|
+
.fancybox-button--close::before {
|
429
|
+
-webkit-transform: rotate(45deg);
|
430
|
+
-ms-transform: rotate(45deg);
|
431
|
+
transform: rotate(45deg); }
|
432
|
+
|
433
|
+
.fancybox-button--close::after {
|
434
|
+
-webkit-transform: rotate(-45deg);
|
435
|
+
-ms-transform: rotate(-45deg);
|
436
|
+
transform: rotate(-45deg); }
|
437
|
+
|
438
|
+
/* Loading spinner */
|
439
|
+
.fancybox-loading {
|
440
|
+
border: 6px solid rgba(100, 100, 100, 0.4);
|
441
|
+
border-top: 6px solid rgba(255, 255, 255, 0.6);
|
442
|
+
border-radius: 100%;
|
443
|
+
height: 50px;
|
444
|
+
width: 50px;
|
445
|
+
-webkit-animation: fancybox-rotate .8s infinite linear;
|
446
|
+
animation: fancybox-rotate .8s infinite linear;
|
447
|
+
background: transparent;
|
448
|
+
position: absolute;
|
449
|
+
top: 50%;
|
450
|
+
left: 50%;
|
451
|
+
margin-top: -25px;
|
452
|
+
margin-left: -25px;
|
453
|
+
z-index: 99999; }
|
454
|
+
|
455
|
+
@-webkit-keyframes fancybox-rotate {
|
456
|
+
from {
|
457
|
+
-webkit-transform: rotate(0deg);
|
458
|
+
transform: rotate(0deg); }
|
459
|
+
to {
|
460
|
+
-webkit-transform: rotate(359deg);
|
461
|
+
transform: rotate(359deg); } }
|
462
|
+
|
463
|
+
@keyframes fancybox-rotate {
|
464
|
+
from {
|
465
|
+
-webkit-transform: rotate(0deg);
|
466
|
+
transform: rotate(0deg); }
|
467
|
+
to {
|
468
|
+
-webkit-transform: rotate(359deg);
|
469
|
+
transform: rotate(359deg); } }
|
470
|
+
|
471
|
+
/* Styling for Small-Screen Devices */
|
472
|
+
@media all and (max-width: 800px) {
|
473
|
+
.fancybox-controls {
|
474
|
+
text-align: left; }
|
475
|
+
.fancybox-button--left,
|
476
|
+
.fancybox-button--right,
|
477
|
+
.fancybox-buttons button:not(.fancybox-button--close) {
|
478
|
+
display: none !important; }
|
479
|
+
.fancybox-caption {
|
480
|
+
padding: 20px 0;
|
481
|
+
margin: 0; } }
|
482
|
+
|
483
|
+
/* Fullscreen */
|
484
|
+
.fancybox-button--fullscreen::before {
|
485
|
+
width: 15px;
|
486
|
+
height: 11px;
|
487
|
+
left: 15px;
|
488
|
+
top: 16px;
|
489
|
+
border: 2px solid;
|
490
|
+
background: none; }
|
491
|
+
|
492
|
+
/* Slideshow button */
|
493
|
+
.fancybox-button--play::before {
|
494
|
+
top: 16px;
|
495
|
+
left: 18px;
|
496
|
+
width: 0;
|
497
|
+
height: 0;
|
498
|
+
border-top: 6px inset transparent;
|
499
|
+
border-bottom: 6px inset transparent;
|
500
|
+
border-left: 10px solid;
|
501
|
+
border-radius: 1px;
|
502
|
+
background: transparent; }
|
503
|
+
|
504
|
+
.fancybox-button--pause::before {
|
505
|
+
top: 16px;
|
506
|
+
left: 18px;
|
507
|
+
width: 7px;
|
508
|
+
height: 11px;
|
509
|
+
border-style: solid;
|
510
|
+
border-width: 0 2px 0 2px;
|
511
|
+
background: transparent; }
|
512
|
+
|
513
|
+
/* Thumbs */
|
514
|
+
.fancybox-button--thumbs span {
|
515
|
+
font-size: 23px; }
|
516
|
+
|
517
|
+
.fancybox-button--thumbs::before {
|
518
|
+
top: 20px;
|
519
|
+
left: 21px;
|
520
|
+
width: 3px;
|
521
|
+
height: 3px;
|
522
|
+
box-shadow: 0 -4px 0, -4px -4px 0, 4px -4px 0, 0 0 0 32px inset, -4px 0 0, 4px 0 0, 0 4px 0, -4px 4px 0, 4px 4px 0; }
|
523
|
+
|
524
|
+
.fancybox-container--thumbs .fancybox-controls,
|
525
|
+
.fancybox-container--thumbs .fancybox-slider-wrap,
|
526
|
+
.fancybox-container--thumbs .fancybox-caption-wrap {
|
527
|
+
right: 220px; }
|
528
|
+
|
529
|
+
.fancybox-thumbs {
|
530
|
+
position: absolute;
|
531
|
+
top: 0;
|
532
|
+
right: 0;
|
533
|
+
bottom: 0;
|
534
|
+
left: auto;
|
535
|
+
width: 220px;
|
536
|
+
margin: 0;
|
537
|
+
padding: 5px 5px 0 0;
|
538
|
+
background: #fff;
|
539
|
+
z-index: 99993;
|
540
|
+
word-break: normal;
|
541
|
+
-webkit-overflow-scrolling: touch;
|
542
|
+
-webkit-tap-highlight-color: transparent;
|
543
|
+
box-sizing: border-box; }
|
544
|
+
|
545
|
+
.fancybox-thumbs > ul {
|
546
|
+
list-style: none;
|
547
|
+
position: absolute;
|
548
|
+
position: relative;
|
549
|
+
width: 100%;
|
550
|
+
height: 100%;
|
551
|
+
margin: 0;
|
552
|
+
padding: 0;
|
553
|
+
overflow-x: hidden;
|
554
|
+
overflow-y: auto;
|
555
|
+
font-size: 0; }
|
556
|
+
|
557
|
+
.fancybox-thumbs > ul > li {
|
558
|
+
float: left;
|
559
|
+
overflow: hidden;
|
560
|
+
max-width: 50%;
|
561
|
+
padding: 0;
|
562
|
+
margin: 0;
|
563
|
+
width: 105px;
|
564
|
+
height: 75px;
|
565
|
+
position: relative;
|
566
|
+
cursor: pointer;
|
567
|
+
outline: none;
|
568
|
+
border: 5px solid #fff;
|
569
|
+
border-top-width: 0;
|
570
|
+
border-right-width: 0;
|
571
|
+
-webkit-tap-highlight-color: transparent;
|
572
|
+
-webkit-backface-visibility: hidden;
|
573
|
+
backface-visibility: hidden;
|
574
|
+
box-sizing: border-box; }
|
575
|
+
|
576
|
+
li.fancybox-thumbs-loading {
|
577
|
+
background: rgba(0, 0, 0, 0.1); }
|
578
|
+
|
579
|
+
.fancybox-thumbs > ul > li > img {
|
580
|
+
position: absolute;
|
581
|
+
top: 0;
|
582
|
+
left: 0;
|
583
|
+
min-width: 100%;
|
584
|
+
min-height: 100%;
|
585
|
+
max-width: none;
|
586
|
+
max-height: none;
|
587
|
+
-webkit-touch-callout: none;
|
588
|
+
-webkit-user-select: none;
|
589
|
+
-moz-user-select: none;
|
590
|
+
-ms-user-select: none;
|
591
|
+
user-select: none; }
|
592
|
+
|
593
|
+
.fancybox-thumbs > ul > li:before {
|
594
|
+
content: '';
|
595
|
+
position: absolute;
|
596
|
+
top: 0;
|
597
|
+
right: 0;
|
598
|
+
bottom: 0;
|
599
|
+
left: 0;
|
600
|
+
border-radius: 2px;
|
601
|
+
border: 4px solid #4ea7f9;
|
602
|
+
z-index: 99991;
|
603
|
+
opacity: 0;
|
604
|
+
transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
|
605
|
+
|
606
|
+
.fancybox-thumbs > ul > li.fancybox-thumbs-active:before {
|
607
|
+
opacity: 1; }
|
608
|
+
|
609
|
+
/* Styling for Small-Screen Devices */
|
610
|
+
@media all and (max-width: 800px) {
|
611
|
+
.fancybox-thumbs {
|
612
|
+
display: none !important; }
|
613
|
+
.fancybox-container--thumbs .fancybox-controls,
|
614
|
+
.fancybox-container--thumbs .fancybox-slider-wrap,
|
615
|
+
.fancybox-container--thumbs .fancybox-caption-wrap {
|
616
|
+
right: 0; } }
|