/* Magnific Popup CSS */
.mfp-bg {
    position: fixed;
    z-index: 1042;
    top: 0;
    left: 0;
    overflow: hidden;
    width: 100%;
    height: 100%;
    opacity: 0.67;
    background: #000000;
}

.mfp-wrap {
    position: fixed;
    z-index: 1043;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    outline: none !important;

    -webkit-backface-visibility: hidden;
}

.mfp-container {
    position: absolute;
    top: 0;
    left: 0;
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    padding: 0 8px;
    text-align: center;
}

.mfp-container:before {
    display: inline-block;
    height: 100%;
    content: "";
    vertical-align: middle;
}

.mfp-align-top .mfp-container:before {
    display: none;
}

.mfp-content {
    position: relative;
    z-index: 1045;
    display: inline-block;
    margin: 0 auto;
    text-align: left;
    vertical-align: middle;
}

.mfp-inline-holder .mfp-content,
.mfp-ajax-holder .mfp-content {
    width: 100%;
    cursor: auto;
}

.mfp-ajax-cur {
    cursor: progress;
}

.mfp-zoom-out-cur,
.mfp-zoom-out-cur .mfp-image-holder .mfp-close {
    cursor:    -moz-zoom-out;
    cursor: -webkit-zoom-out;
    cursor:         zoom-out;
}

.mfp-zoom {
    cursor: pointer;
    cursor: -webkit-zoom-in;
    cursor:    -moz-zoom-in;
    cursor:         zoom-in;
}

.mfp-auto-cursor .mfp-content {
    cursor: auto;
}

.mfp-close,
.mfp-arrow,
.mfp-preloader,
.mfp-counter {
    -webkit-user-select: none;
       -moz-user-select: none;
            user-select: none;
}

.mfp-loading.mfp-figure {
    display: none;
}

.mfp-hide {
    display: none !important;
}

.mfp-preloader {
    position: absolute;
    z-index: 1044;
    top: 50%;
    right: 8px;
    left: 8px;
    width: auto;
    margin-top: -0.8em;
    text-align: center;
    color: #cccccc;
}
.mfp-preloader a {
    color: #cccccc;
}
.mfp-preloader a:hover {
    color: #ffffff;
}

.mfp-s-ready .mfp-preloader {
    display: none;
}

.mfp-s-error .mfp-content {
    display: none;
}

button.mfp-close,
button.mfp-arrow {
    z-index: 1046;
    display: block;
    overflow: visible;
    padding: 0;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    color: #ffffff;
    border: 0;
    border-radius: 50%;
    outline: none;
    background: transparent;
    background-color: rgba(255,255,255,0.2);
    box-shadow: none;

    -webkit-appearance: none;
    touch-action: manipulation;
}
.mfp-close:hover,
.mfp-close:focus,
.mfp-arrow:hover,
.mfp-arrow:focus {
    color: #2f649b;
    background-color: #ffffff;
}

button::-moz-focus-inner {
    padding: 0;
    border: 0;
}

.mfp-close {
    position: absolute;
    top: 0;
    right: 0;
    width: 61px;
    height: 61px;
    font-size: 0;
    line-height: 61px;
}
.mfp-close:before {
    font-size: 20px;
}
.mfp-close:active {
    top: 1px;
}

.mfp-close-btn-in .mfp-close {
    color: #333333;
}

.mfp-image-holder .mfp-close,
.mfp-iframe-holder .mfp-close {
    right: -6px;
    width: 100%;
    padding-right: 6px;
    text-align: right;
    color: #ffffff;
}

.mfp-counter {
    position: absolute;
    top: 0;
    right: 0;
    display: none;
    white-space: nowrap;
    color: #cccccc;
    font-size: 12px;
    line-height: 18px;
}

.mfp-arrow,
button.mfp-arrow {
    position: absolute;
    top: 50%;
    width: 73px;
    height: 73px;
    margin: 0;
    margin-top: -36.5px;
    font-size: 23px;
    line-height: 73px;

    -webkit-tap-highlight-color: transparent;
}
.mfp-arrow:hover,
.mfp-arrow:focus {
    color: #2f649b;
    background-color: #ffffff;
}
.mfp-arrow-left {
    left: 75px;
}
.mfp-arrow-right {
    right: 75px;
}

.mfp-iframe-holder {
    padding-top: 40px;
    padding-bottom: 40px;
}
.mfp-iframe-holder .mfp-content {
    width: 100%;
    max-width: 900px;
    line-height: 0;
}
.mfp-iframe-holder .mfp-close {
    top: -40px;
}

.mfp-iframe-scaler {
    overflow: hidden;
    width: 100%;
    height: 0;
    padding-top: 56.25%;
}
.mfp-iframe-scaler iframe {
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    width: 100%;
    height: 100%;
    background: #000000;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.6);
}

/* Main image in popup */
img.mfp-img {
    display: block;
    box-sizing: border-box;
    width: auto;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
    padding: 40px 0 40px;
    line-height: 0;
}

/* The shadow behind the image */
.mfp-figure {
    line-height: 0;
}
.mfp-figure:after {
    position: absolute;
    z-index: -1;
    top: 39px;
    right: -1px;
    bottom: 39px;
    left: -1px;
    display: block;
    width: auto;
    height: auto;
    content: "";
    border: solid 1px #4c4c4c;
    background: #444444;
    box-shadow: 0 0 38px rgba(0,0,0,0.22);
}
.mfp-figure small {
    display: block;
    color: #bdbdbd;
    font-size: 12px;
    line-height: 14px;
}
.mfp-figure figure {
    margin: 0;
}

.mfp-bottom-bar {
    position: absolute;
    right: 0;
    bottom: 40px;
    left: 0;
    padding-right: 28px;
    padding-bottom: 19px;
    padding-left: 28px;
    cursor: auto;
}
.mfp-bottom-bar:before {
    position: absolute;
    top: -100%;
    right: 0;
    bottom: 0;
    left: 0;
    content: "";
    opacity: 0.6;
    background:    -moz-linear-gradient(top, rgba(1,5,9,0), rgba(1,5,9,1));
    background: -webkit-linear-gradient(top, rgba(1,5,9,0), rgba(1,5,9,1));
    background:         linear-gradient(to bottom, rgba(1,5,9,0), rgba(1,5,9,1));

    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#00010509', endColorstr='#010509',GradientType=0 );
}

.mfp-title {
    position: relative;
    padding-right: 184px;
    text-align: left;
    word-wrap: break-word;
    color: #ffffff;
    line-height: 18px;
}

.mfp-bottom-bar .projects__item-title {
    margin-bottom: 0;
    font-family: "MuseoSansCyrl-700", "Helvetica Neue", Arial, sans-serif;
    font-size: 30px;
}
.mfp-bottom-bar .projects__item-text {
}

.mfp-image-holder .mfp-content {
    max-width: 100%;
}

.mfp-gallery .mfp-image-holder .mfp-figure {
    cursor: pointer;
}
.mfp-gallery .mfp-figure > .mfp-close {
    display: none;
}
.mfp-gallery .mfp-close {
    top: 32px;
    right: 34px;
}


@media screen and (max-width: 800px) and (orientation: landscape), screen and (max-height: 300px) {
    /**
       * Remove all paddings around the image on small screen
       */
    .mfp-img-mobile .mfp-image-holder {
        padding-right: 0;
        padding-left: 0;
    }
    .mfp-img-mobile img.mfp-img {
        padding: 0;
    }
    .mfp-img-mobile .mfp-figure:after {
        top: 0;
        bottom: 0;
    }
    .mfp-img-mobile .mfp-figure small {
        display: inline;
        margin-left: 5px;
    }
    .mfp-img-mobile .mfp-bottom-bar {
        position: fixed;
        top: auto;
        bottom: 0;
        box-sizing: border-box;
        margin: 0;
        padding: 3px 5px;
        background: rgba(0, 0, 0, 0.6);
    }
    .mfp-img-mobile .mfp-bottom-bar:empty {
        padding: 0;
    }
    .mfp-img-mobile .mfp-counter {
        top: 3px;
        right: 5px;
    }
    .mfp-img-mobile .mfp-close {
        position: fixed;
        top: 0;
        right: 0;
        width: 35px;
        height: 35px;
        padding: 0;
        text-align: center;
        background: rgba(0, 0, 0, 0.6);
        line-height: 35px;
    }
}

@media all and (max-width: 900px) {
    .mfp-arrow {
        -webkit-transform: scale(0.75);
                transform: scale(0.75);
    }
    .mfp-arrow-left {
        -webkit-transform-origin: 0;
                transform-origin: 0;
    }
    .mfp-arrow-right {
        -webkit-transform-origin: 100%;
                transform-origin: 100%;
    }
    .mfp-container {
        padding-right: 6px;
        padding-left: 6px;
    }
}

.my-mfp-zoom-in .zoom-anim-dialog {
	transition: all 0.2s ease-in-out; 
	transform: scale(0.8); 
	opacity: 0;
}

/* animate in */
.my-mfp-zoom-in.mfp-ready .zoom-anim-dialog {
	transform: scale(1); 
	opacity: 1;
}

/* animate out */
.my-mfp-zoom-in.mfp-removing .zoom-anim-dialog {
	transform: scale(0.8); 
	opacity: 0;
}

/* Dark overlay, start state */
.my-mfp-zoom-in.mfp-bg {
	transition: opacity 0.3s ease-out;
	opacity: 0;
}
/* animate in */
.my-mfp-zoom-in.mfp-ready.mfp-bg {
	opacity: 0.8;
}
/* animate out */
.my-mfp-zoom-in.mfp-removing.mfp-bg {
	opacity: 0;
}
