
/* =====================================================
   MAGNIFIC POPUP - ИСКРИНКА
   Светлая и тёмная темы
===================================================== */

/* Фон затемнения */
.mfp-bg {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1042;
    overflow: hidden;
    position: fixed;
    background: #172c29;
    opacity: .86;
}

/* Обёртка */
.mfp-wrap {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1043;
    position: fixed;
    outline: none !important;
    -webkit-backface-visibility: hidden;
}

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

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

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

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

.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: zoom-out;
}

.mfp-zoom {
    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 {
    color: #b9c9c3;
    position: absolute;
    top: 50%;
    width: auto;
    text-align: center;
    margin-top: -.8em;
    left: 8px;
    right: 8px;
    z-index: 1044;
}

.mfp-preloader a {
    color: #36CFC4;
}

.mfp-preloader a:hover {
    color: #8ce5dc;
}

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

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

/* Кнопки */
button.mfp-close,
button.mfp-arrow {
    overflow: visible;
    cursor: pointer;
    background: transparent;
    border: 0;
    -webkit-appearance: none;
    display: block;
    outline: none;
    padding: 0;
    z-index: 1046;
    box-shadow: none;
}

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

/* Закрытие */
.mfp-close {
    width: 44px;
    height: 44px;
    line-height: 44px;
    position: absolute;
    right: 0;
    top: 0;
    text-decoration: none;
    text-align: center;
    opacity: .75;
    padding: 0 0 18px 10px;
    color: #e5d3c5;
    font-style: normal;
    font-size: 28px;
    font-family: Arial, Baskerville, monospace;
}

.mfp-close:hover,
.mfp-close:focus {
    opacity: 1;
    color: #36CFC4;
}

.mfp-close:active {
    top: 1px;
}

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

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

/* Счётчик */
.mfp-counter {
    position: absolute;
    top: 0;
    right: 0;
    color: #b9c9c3;
    font-size: 12px;
    line-height: 18px;
}

/* =====================================================
   СТРЕЛКИ ПЕРЕКЛЮЧЕНИЯ
   Единый вид для светлой и тёмной темы
===================================================== */

.mfp-arrow {
    position: absolute;
    opacity: 1;
    margin: 0;
    top: 50%;
    margin-top: -22px;
    padding: 0;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(54, 207, 196, .5);
    border-radius: 50%;
    background: rgba(54, 207, 196, .16);
    box-shadow: 0 3px 12px rgba(0, 0, 0, .3);
    -webkit-tap-highlight-color: transparent;
    transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.mfp-arrow:active {
    margin-top: -22px;
}

.mfp-arrow:hover,
.mfp-arrow:focus {
    opacity: 1;
    background: #36CFC4;
    border-color: #36CFC4;
    transform: scale(1.07);
}

/* Убираем стандартные треугольники */
.mfp-arrow:before,
.mfp-arrow:after,
.mfp-arrow .mfp-b,
.mfp-arrow .mfp-a {
    content: none;
}

/* Рисуем новые шевроны */
.mfp-arrow:after {
    content: '';
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 10px;
    margin-top: -5px;
    border: solid #9bded6;
    border-width: 2px 2px 0 0;
    background: transparent;
}

/* Левая стрелка */
.mfp-arrow-left {
    left: 15px;
}

.mfp-arrow-left:after {
    transform: rotate(-135deg);
    margin-left: -3px;
}

/* Правая стрелка */
.mfp-arrow-right {
    right: 15px;
}

.mfp-arrow-right:after {
    transform: rotate(45deg);
    margin-left: -7px;
}

/* Цвет шевронов при наведении */
.mfp-arrow:hover:after,
.mfp-arrow:focus:after {
    border-color: #174b46;
}

/* =====================================================
   IFRAME
===================================================== */

.mfp-iframe-holder {
    padding-top: 40px;
    padding-bottom: 40px;
}

.mfp-iframe-holder .mfp-content {
    line-height: 0;
    width: 100%;
    max-width: 900px;
}

.mfp-iframe-holder .mfp-close {
    top: -40px;
}

.mfp-iframe-scaler {
    width: 100%;
    height: 0;
    overflow: hidden;
    padding-top: 56.25%;
}

.mfp-iframe-scaler iframe {
    position: absolute;
    display: block;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    box-shadow: 0 0 8px rgba(0, 0, 0, .6);
    background: #101817;
}

/* =====================================================
   ИЗОБРАЖЕНИЕ
===================================================== */

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

/* Рамка и тень */
.mfp-figure {
    line-height: 0;
}

.mfp-figure:after {
    content: '';
    position: absolute;
    left: 0;
    top: 40px;
    bottom: 40px;
    display: block;
    right: 0;
    width: auto;
    height: auto;
    z-index: -1;
    box-shadow: 0 0 8px rgba(0, 0, 0, .6);
    background: #252b2a;
}

.mfp-figure small {
    color: #b9c9c3;
    display: block;
    font-size: 12px;
    line-height: 14px;
}

/* Подпись */
.mfp-bottom-bar {
    margin-top: -36px;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    cursor: auto;
}

.mfp-title {
    text-align: left;
    line-height: 18px;
    color: #d2d8d4;
    word-wrap: break-word;
    padding-right: 36px;
}

/* Галерея */
.mfp-image-holder .mfp-content {
    max-width: 100%;
}

.mfp-gallery .mfp-image-holder .mfp-figure {
    cursor: pointer;
}

/* =====================================================
   МОБИЛЬНАЯ ВЕРСИЯ
===================================================== */

@media screen and (max-width: 800px) and (orientation: landscape),
       screen and (max-height: 300px) {

    .mfp-img-mobile .mfp-image-holder {
        padding-left: 0;
        padding-right: 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 {
        background: rgba(23, 44, 41, .85);
        bottom: 0;
        margin: 0;
        top: auto;
        padding: 3px 5px;
        position: fixed;
        box-sizing: border-box;
    }

    .mfp-img-mobile .mfp-bottom-bar:empty {
        padding: 0;
    }

    .mfp-img-mobile .mfp-counter {
        right: 5px;
        top: 3px;
    }

    .mfp-img-mobile .mfp-close {
        top: 0;
        right: 0;
        width: 35px;
        height: 35px;
        line-height: 35px;
        background: rgba(23, 44, 41, .85);
        position: fixed;
        text-align: center;
        padding: 0;
    }
}

/* Планшеты и небольшие экраны */
@media all and (max-width: 900px) {
    .mfp-arrow {
        transform: scale(.9);
    }

    .mfp-arrow-left {
        transform-origin: 0;
    }

    .mfp-arrow-right {
        transform-origin: 100%;
    }

    .mfp-container {
        padding-left: 6px;
        padding-right: 6px;
    }
}

/* =====================================================
   ТЁМНАЯ ТЕМА САЙТА
===================================================== */

.dark-theme .mfp-bg {
    background: #080f0e;
    opacity: .92;
}

.dark-theme .mfp-close {
    color: #d2d8d4;
}

.dark-theme .mfp-close:hover,
.dark-theme .mfp-close:focus {
    color: #36CFC4;
}

.dark-theme .mfp-close-btn-in .mfp-close {
    color: #d2d8d4;
}

.dark-theme .mfp-counter {
    color: #aebdb7;
}

.dark-theme .mfp-title {
    color: #d2d8d4;
}

.dark-theme .mfp-figure:after {
    background: #252b2a;
}

.dark-theme .mfp-figure small {
    color: #aebdb7;
}

.dark-theme .mfp-preloader {
    color: #aebdb7;
}

/* =====================================================
   IE7 - СОХРАНЕНИЕ СОВМЕСТИМОСТИ
===================================================== */

.mfp-ie7 .mfp-img {
    padding: 0;
}

.mfp-ie7 .mfp-bottom-bar {
    width: 600px;
    left: 50%;
    margin-left: -300px;
    margin-top: 5px;
    padding-bottom: 5px;
}

.mfp-ie7 .mfp-container {
    padding: 0;
}

.mfp-ie7 .mfp-content {
    padding-top: 44px;
}

.mfp-ie7 .mfp-close {
    top: 0;
    right: 0;
    padding-top: 0;
}
