/* lightbox.css: image viewer (js/lightbox.js). Felix, 12/3.

   Replaces the theme's PhotoSwipe 4 and keeps its default skin. The values below are copied from the theme
   (frontend.css; rem = the site's root size, 18px), so this file still works once the theme CSS is gone.
   Icons: PhotoSwipe's default-skin sprite (MIT licence), media/pswp-default-skin.png and .svg.

   .fc-lb                       fixed, full screen. States: is-open, is-in (opening finished: no transitions),
                                is-fading (an image that failed to load: the whole viewer fades in and out),
                                no-touch / is-touch, has-mouse, can-fs, is-fs, can-zoom, is-zoomed (zoomed with
                                the mouse), is-dragging (pressed while zoomed with the mouse)
     .fc-lb-bg                  black, fades in
     .fc-lb-wrap
       .fc-lb-track             moves while swiping
         .fc-lb-slide x3        previous, current, next
           .fc-lb-zoom          translate + scale (position and zoom of the image)
             img.fc-lb-img
       .fc-lb-ui                is-fit (controls get their own space), is-idle, is-hidden, is-one
         .fc-lb-bar             counter, close, fullscreen, zoom, loader
         .fc-lb-arrow.fc-lb-prev / .fc-lb-next
*/

.fc-lb { display: none; position: fixed; left: 0; top: 0; width: 100%; height: 100%; overflow: hidden; touch-action: none; z-index: 1500; -webkit-text-size-adjust: 100%; -webkit-backface-visibility: hidden; outline: 0; }
.fc-lb.is-open { display: block; }
.fc-lb.is-fading { opacity: .001; will-change: opacity; transition: opacity 333ms cubic-bezier(.4, 0, .22, 1); }
.fc-lb * { box-sizing: border-box; }
.fc-lb img { max-width: none; }

.fc-lb-bg { position: absolute; left: 0; top: 0; width: 100%; height: 100%; background: #000; opacity: 0; transform: translateZ(0); -webkit-backface-visibility: hidden; will-change: opacity; transition: opacity 333ms cubic-bezier(.4, 0, .22, 1); }
.fc-lb-wrap { position: absolute; left: 0; top: 0; width: 100%; height: 100%; overflow: hidden; }
.fc-lb-track, .fc-lb-zoom { touch-action: none; position: absolute; left: 0; right: 0; top: 0; bottom: 0; -webkit-backface-visibility: hidden; }
.fc-lb-track, .fc-lb-img { user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; -webkit-touch-callout: none; }
.fc-lb-zoom { width: 100%; transform-origin: left top; transition: transform 333ms cubic-bezier(.4, 0, .22, 1); }
.fc-lb.is-in .fc-lb-bg, .fc-lb.is-in .fc-lb-zoom { transition: none; }
.fc-lb-slide { position: absolute; left: 0; right: 0; top: 0; bottom: 0; overflow: hidden; }
.fc-lb-img { position: absolute; width: auto; height: auto; top: 0; left: 0; -webkit-user-drag: none; }
.fc-lb.can-zoom .fc-lb-img { cursor: zoom-in; }
.fc-lb.is-zoomed .fc-lb-img { cursor: grab; }
.fc-lb.is-dragging .fc-lb-img { cursor: grabbing; }
.fc-lb-error { position: absolute; left: 0; top: 50%; width: 100%; text-align: center; font-size: .7777777778rem; line-height: .8888888889rem; margin-top: -.4444444444rem; color: #ccc; }
.fc-lb-error a { color: #ccc; text-decoration: underline; }

/* buttons (arrows are buttons too) */
.fc-lb-btn { width: 2.4444444444rem; height: 2.4444444444rem; position: relative; background: 0 0; cursor: pointer; overflow: visible; -webkit-appearance: none; appearance: none; display: block; border: 0; padding: 0; margin: 0; float: right; opacity: .75; transition: opacity .2s; box-shadow: none; }
.fc-lb-btn:focus, .fc-lb-btn:hover { opacity: 1; }
.fc-lb-btn:active { outline: 0; opacity: .9; }
.fc-lb-btn::-moz-focus-inner { padding: 0; border: 0; }
.fc-lb-btn, .fc-lb-arrow::before { background: url(../media/pswp-default-skin.png) 0 0 no-repeat; background-size: 14.6666666667rem 4.8888888889rem; width: 2.4444444444rem; height: 2.4444444444rem; }
@media (-webkit-min-device-pixel-ratio: 1.1), (min-resolution: 105dpi), (min-resolution: 1.1dppx) {
  .fc-lb-btn, .fc-lb-arrow::before { background-image: url(../media/pswp-default-skin.svg); }
  .fc-lb .fc-lb-arrow { background: 0 0 !important; }
}
.fc-lb-close { background-position: 0 -2.3611111111rem; }
.fc-lb-fs { display: none; }
.fc-lb.can-fs .fc-lb-fs { display: block; }
.fc-lb-fs { background-position: 0 .0555555556rem; }
.fc-lb.is-fs .fc-lb-fs { background-position: -2.3888888889rem .0555555556rem; }
.fc-lb-zoom-btn { display: none; background-position: -4.8888888889rem .0555555556rem; }
.fc-lb.can-zoom .fc-lb-zoom-btn { display: block; }
.fc-lb.is-zoomed .fc-lb-zoom-btn { background-position: -7.3333333333rem .0555555556rem; }
.fc-lb.is-touch .fc-lb-arrow { visibility: hidden; }
.fc-lb-arrow { background: 0 0; top: 50%; margin-top: -2.7777777778rem; width: 3.8888888889rem; height: 5.5555555556rem; position: absolute; }
.fc-lb-prev { left: 0; }
.fc-lb-next { right: 0; }
.fc-lb-arrow::before { content: ""; top: 1.9444444444rem; background-color: rgba(0, 0, 0, .3); height: 2.1111111111rem; width: 2.2222222222rem; position: absolute; }
.fc-lb-prev::before { left: .5555555556rem; background-position: -7.5555555556rem -2.2222222222rem; }
.fc-lb-next::before { right: .5555555556rem; background-position: -4.8333333333rem -2.2222222222rem; }

/* counter and loading indicator */
.fc-lb-count { position: absolute; left: 0; top: 0; height: 3.4444444444rem; font-size: .7222222222rem; line-height: 3.4444444444rem; color: #fff; opacity: .75; padding: 0 1.1111111111rem; user-select: none; -webkit-user-select: none; }
.fc-lb-loader { width: 2.4444444444rem; height: 2.4444444444rem; position: absolute; top: 0; left: 50%; margin-left: -1.2222222222rem; opacity: 0; transition: opacity .25s ease-out; will-change: opacity; direction: ltr; }
.fc-lb-loader-icn { background: 0 0; opacity: .75; width: .7777777778rem; height: .7777777778rem; position: absolute; left: .8333333333rem; top: .8333333333rem; margin: 0; }
.fc-lb-loader-cut { position: relative; width: .3888888889rem; height: .7777777778rem; overflow: hidden; }
.fc-lb-loader-donut { box-sizing: border-box; width: .7777777778rem; height: .7777777778rem; border: .1111111111rem solid #fff; border-radius: 50%; border-left-color: transparent; border-bottom-color: transparent; position: absolute; top: 0; left: 0; background: 0 0; margin: 0; }
.fc-lb-loader.is-active { opacity: 1; }
.fc-lb-loader.is-active .fc-lb-loader-icn { animation: fc-lb-clockwise .5s linear infinite; }
.fc-lb-loader.is-active .fc-lb-loader-donut { animation: fc-lb-donut 1s cubic-bezier(.4, 0, .22, 1) infinite; }
@keyframes fc-lb-clockwise { 0% { transform: rotate(0); } to { transform: rotate(1turn); } }
@keyframes fc-lb-donut { 0% { transform: rotate(0); } 50% { transform: rotate(-140deg); } to { transform: rotate(0); } }
@media screen and (max-width: 1024px) {
  .fc-lb-loader { position: relative; left: auto; top: auto; margin: 0; float: right; }
}

/* controls layer */
.fc-lb-ui { -webkit-font-smoothing: auto; visibility: visible; opacity: 1; z-index: 1550; }
.fc-lb-bar { position: absolute; left: 0; top: 0; height: 3.4444444444rem; width: 100%; padding: 8px; }
.fc-lb.has-mouse .fc-lb-arrow, .fc-lb-bar { -webkit-backface-visibility: hidden; will-change: opacity; transition: opacity 333ms cubic-bezier(.4, 0, .22, 1); }
.fc-lb.has-mouse .fc-lb-arrow { visibility: visible; }
.fc-lb-bar { background-color: rgba(0, 0, 0, .5); }
.fc-lb-ui.is-fit .fc-lb-bar { background-color: rgba(0, 0, 0, .3); }
.fc-lb-ui.is-idle .fc-lb-bar { opacity: 0; }
.fc-lb-ui.is-idle .fc-lb-arrow { opacity: 0; }
.fc-lb-ui.is-hidden .fc-lb-arrow, .fc-lb-ui.is-hidden .fc-lb-bar { opacity: .001; }
.fc-lb-ui.is-one .fc-lb-arrow, .fc-lb-ui.is-one .fc-lb-count { display: none; }
.fc-lb-btn:focus-visible { outline: 2px solid var(--fc-acc, #ffd300); outline-offset: -4px; }
