/*! PhotoSwipe main CSS by Dmitry Semenov | photoswipe.com | MIT license */
/*
	Styles for basic PhotoSwipe functionality (sliding area, open/close transitions)
*/
/* pswp = photoswipe */
.pswp {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    overflow: hidden;
    touch-action: none;
    z-index: 1500;
    -webkit-text-size-adjust: 100%;
    /* create separate layer, to avoid paint on window.onscroll in webkit/blink */
    -webkit-backface-visibility: hidden;
    outline: none;
}
/* .pswp * {
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
} */
.pswp img {
    max-width: none;
}

/* style is added when JS option showHideOpacity is set to true */
.pswp--animate_opacity {
    /* 0.001, because opacity:0 doesn't trigger Paint action, which causes lag at start of transition */
    opacity: 0.001;
    will-change: opacity;
    /* for open/close transition */
    transition: opacity 333ms cubic-bezier(0.4, 0, 0.22, 1);
}

.pswp.is-open {
    display: block;
}

/*
	Background is added as a separate element.
	As animating opacity is much faster than animating rgba() background-color.
*/
.pswp__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;
}

.pswp__scroll-wrap {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.pswp__container,
.pswp__zoom-wrap {
    touch-action: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
}

/* Prevent selection and tap highlights */
.pswp__container,
.pswp__img {
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
}

.pswp__zoom-wrap {
    position: absolute;
    width: 100%;
    transform-origin: left top;
    /* for open/close transition */
    transition: transform 333ms cubic-bezier(0.4, 0, 0.22, 1);
}

.pswp__bg {
    will-change: opacity;
    /* for open/close transition */
    transition: opacity 333ms cubic-bezier(0.4, 0, 0.22, 1);
}

.pswp--animated-in .pswp__bg,
.pswp--animated-in .pswp__zoom-wrap {
    transition: none;
}

.pswp__container,
.pswp__zoom-wrap {
    -webkit-backface-visibility: hidden;
}

.pswp__item {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    overflow: hidden;
}

.pswp__img {
    position: absolute;
    width: auto;
    height: auto;
    top: 0;
    left: 0;
}

/*
	stretched thumbnail or div placeholder element (see below)
	style is added to avoid flickering in webkit/blink when layers overlap
*/
.pswp__img--placeholder {
    -webkit-backface-visibility: hidden;
}

/*
	div element that matches size of large image
	large image loads on top of it
*/
.pswp__img--placeholder--blank {
    background: #222;
}

/*
	Error message appears when image is not loaded
	(JS option errorMsg controls markup)
*/
.pswp__error-msg {
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    text-align: center;
    font-size: 14px;
    line-height: 16px;
    margin-top: -8px;
    color: #ccc;
}

.pswp__error-msg a {
    color: #ccc;
    text-decoration: underline;
}

/*

    clem

*/

/*! PhotoSwipe Default UI CSS by Dmitry Semenov | photoswipe.com | MIT license */
/*
	Contents:

	1. Buttons
	4. Caption
	5. Loading indicator
	6. Additional styles (root element, top bar, idle state, hidden state, etc.)

*/

/*

	1. Buttons

 */
.pswp__button.btn {
    width: 56px;
    height: 56px;
    opacity: 0.8;
    transition-property: opacity, background;
    transition-duration: 0.2s;
}
.pswp__button.btn:hover {
    background: rgba(255, 255, 255, 0.2);
    filter: none;
}
.pswp__button:focus,
.pswp__button:active,
.pswp__button:hover {
    opacity: 1;
}
.pswp__button:active {
    outline: none;
    /* opacity: 0.9; */
}
.pswp__button::-moz-focus-inner {
    padding: 0;
    border: 0;
}

/* SVG fill color */
.pswp__button.btn svg {
    fill: #fff;
}

/*
    Arrow buttons navigation
*/
.pswp__button--arrow--left,
.pswp__button--arrow--right {
    position: absolute;
    top: 50%;
    margin: -28px 4px 0;
    background: rgba(255, 255, 255, 0.1);
}
.pswp__button--arrow--left:hover,
.pswp__button--arrow--right:hover {
    background: rgba(255, 255, 255, 0.3);
}
.pswp__button--arrow--left {
    left: 0;
}
.pswp__button--arrow--right {
    right: 0;
}

/* no arrows on touch screens */
.pswp--touch .pswp__button--arrow--left,
.pswp--touch .pswp__button--arrow--right {
    visibility: hidden;
}

/* Hide fullscreen button on unsupported devices (iOS) */
.pswp__button--fs {
    display: none;
}
.pswp--supports-fs .pswp__button--fs {
    display: flex;
}

/*

    4. Caption

*/
.pswp__caption {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    min-height: 44px;
}
.pswp__caption small {
    font-size: 11px;
    color: #bbb;
}

.pswp__caption__center {
    text-align: center;
    color: #eee;
    background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.8));
}

.pswp__caption--empty {
    display: none;
}

/*

    5. Loading indicator (preloader)

*/
.pswp__preloader {
    position: absolute;
    height: 100%;
    top: 0;
    left: 50%;
    margin-left: -12px;
    opacity: 0;
    transition: opacity 0.25s ease-out;
    will-change: opacity;
}
.pswp__preloader.pswp__preloader--active {
    opacity: 0.9;
}

/*

    6. Additional styles

*/
/* root element of UI */
.pswp__ui {
    -webkit-font-smoothing: auto;
    visibility: visible;
    opacity: 1;
    z-index: 1550;
}

/* top black bar with buttons */
.pswp__top-bar {
    position: absolute;
    width: 100%;
    left: 0;
    top: 0;
    padding: 0 2px;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0));
}
@media (min-width: 840px) {
    .pswp__top-bar {
        padding: 0 16px;
    }
    .pswp__button--arrow--left,
    .pswp__button--arrow--right {
        margin-inline: 16px;
    }
}

.pswp__caption,
.pswp__top-bar,
.pswp--has_mouse .pswp__button--arrow--left,
.pswp--has_mouse .pswp__button--arrow--right,
.pswp__aside {
    -webkit-backface-visibility: hidden;
    will-change: opacity;
    transition: opacity 333ms cubic-bezier(0.4, 0, 0.22, 1);
}

/* pswp--has_mouse class is added only when two subsequent mousemove events occur */
.pswp--has_mouse .pswp__button--arrow--left,
.pswp--has_mouse .pswp__button--arrow--right {
    visibility: visible;
}

/* pswp__ui--idle class is added when mouse isn't moving for several seconds (JS option timeToIdle) */
.pswp__ui--idle .pswp__top-bar {
    /* clem */
    opacity: 0;
}

.pswp__ui--idle .pswp__button--arrow--left,
.pswp__ui--idle .pswp__button--arrow--right {
    opacity: 0;
}

/*
      pswp__ui--hidden class is added when controls are hidden
      e.g. when user taps to toggle visibility of controls
  */
.pswp__ui--hidden .pswp__top-bar,
.pswp__ui--hidden .pswp__caption,
.pswp__ui--hidden .pswp__button--arrow--left,
.pswp__ui--hidden .pswp__button--arrow--right,
.pswp__ui--hidden.pswp__aside {
    /* Force paint & create composition layer for controls. */
    opacity: 0.001;
}

/* Don't hide sidebar when idle (mobile) */
@media (max-width: 839px) {
    .pswp.has-sidebar .pswp__ui--hidden.pswp__aside {
        opacity: 1;
    }
}

/* pswp__ui--one-slide class is added when there is just one item in gallery */
.pswp__ui--one-slide .pswp__button--arrow--left,
.pswp__ui--one-slide .pswp__button--arrow--right,
.pswp__ui--one-slide .pswp__counter {
    display: none;
}

.pswp__element--disabled {
    display: none !important;
}

/*

    7. Sidebar

*/

aside.pswp__aside {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    right: 0;
    overflow: hidden auto;
    background: #f7f7f7;
    z-index: 11;

    /* Closed (mobile) */
    will-change: opacity, transform;
    transition: opacity 333ms cubic-bezier(0.4, 0, 0.22, 1),
        transform 0.2s cubic-bezier(1, 0.5, 0.8, 1);
    transform: translateX(101%);
}
/* Open */
.pswp.has-sidebar aside.pswp__aside {
    transform: translateX(0);
}

/* Top (album meta and caption) */
aside.pswp__aside .pswp__aside--top,
aside.pswp__aside .pswp__aside--admin-buttons {
    background: #fff;
}
/* Album name */
aside.pswp__aside .pswp__aside--top.item-header,
aside.pswp__aside .pswp__aside--admin-buttons {
    padding: 0 16px 16px;
}
aside.pswp__aside .pswp__aside--top.item-header h1 {
    font-size: 18px;
}
aside.pswp__aside .pswp__aside--date {
    display: inline-block;
}
/* Album meta */
aside.pswp__aside .pswp__aside--top.item-header .meta {
    margin-bottom: 2px;
}
/* Photo caption */
aside.pswp__aside .pswp__aside--caption:not(:empty) {
    margin-top: 16px;
}

/* Desktop */
@media (min-width: 840px) {
    /* Photoswipe container */
    .pswp:not(.pswp__pswp--fs) .pswp__scroll-wrap,
    .pswp.pswp__pswp--fs.has-sidebar .pswp__scroll-wrap {
        width: auto;
        right: 300px;
    }

    /* Photoswipe caption */
    .pswp:not(.pswp__pswp--fs) aside.pswp__aside .page-header,
    .pswp:not(.pswp__pswp--fs) .pswp__button--comments,
    .pswp.pswp__pswp--fs.has-sidebar .pswp__button--comments,
    .pswp:not(.pswp__pswp--fs) .pswp__caption,
    .pswp.pswp__pswp--fs.has-sidebar .pswp__caption {
        display: none;
    }

    /* Sidebar */
    .pswp aside.pswp__aside {
        width: 300px;
    }
    .pswp:not(.pswp__pswp--fs) aside.pswp__aside {
        transition: opacity 333ms cubic-bezier(0.4, 0, 0.22, 1);
        transform: translateX(0) !important;
    }

    /* Album name */
    .pswp:not(.pswp__pswp--fs) aside.pswp__aside .pswp__aside--top.item-header {
        padding-top: 16px;
    }
}
