/* ----------------------- Normalize ----------------------- */
html {
    width: 100%;
    height: 100%;
}

body {
    width: 100%;
    height: 100%;
    margin: 0;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}


/* -----------------------
   ----------------------- Transitions ----------------------- */
.b-leaflet_box,
.b-leaflet_perspective {
    -webkit-transition: -webkit-transform 400ms, opacity 400ms, visibility 400ms;
    -o-transition: -o-transform 400ms, opacity 400ms, visibility 400ms;
    transition: transform 400ms, opacity 400ms, visibility 400ms;
}

.b-leaflet_overlay,
.b-leaflet_box_content {
    -webkit-transition: opacity 400ms, visibility 400ms;
    -o-transition: opacity 400ms, visibility 400ms;
    transition: opacity 400ms, visibility 400ms;
}


/* -----------------------
   ----------------------- Add to composite layers ----------------------- */
.b-leaflet_box,
.b-leaflet_overlay {
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}


/* -----------------------
   ----------------------- 3D transforms ----------------------- */
.b-leaflet_perspective {
    position: relative;
    z-index: 25000;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
    -webkit-perspective: 1500px;
    perspective: 1500px;
    -webkit-transform-style: preserve-3d;
    transform-style: preserve-3d;
}

@media (min-width: 640px) {

    .m-leaflet-type-image .b-leaflet_perspective {
        display: inline-block;
    }

}


/* -----------------------
   ----------------------- Layout ----------------------- */
.b-leaflet {
    position: fixed;
    z-index: 55501;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    overflow-y: hidden; /*-webkit-overflow-scrolling: touch; */
}

@media not all and (min-resolution: .001dpcm) {
    @supports (-webkit-appearance: none) {
        .b-leaflet {
            -webkit-overflow-scrolling: touch;
        }
    }
}

/* Safari iOS 10.1+ */

.b-leaflet_capsule {
    display: table;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: fixed;
}

.b-leaflet_capsule_inner {
    display: table-cell;
    vertical-align: middle;
    text-align: center;
}

/* * * Layout :: offsets * * */
@media (max-width: 639px) {

    .b-leaflet_capsule_inner {
        padding: 24px 10px !important;
    }

    .m-leaflet-type-image .b-leaflet_capsule_inner {
        padding: 24px 32px !important;
    }

}

/* * * Layout :: sources container * * */
.b-leaflet_inner_sources {
    position: absolute;
    left: -10000px;
    top: -10000px;
    height: 0;
    width: 0;
    overflow: hidden;
    visibility: hidden;
}


/* ----------------------- Scroll lock ----------------------- */
.m-leaflet-outer-mode body {
    overflow-y: scroll;
}

.m-leaflet-outer-mode .b-leaflet { /*position: relative; */
    position: fixed;
    overflow-x: hidden;
    overflow-y: scroll;
}

.m-leaflet-outer-mode .b-leaflet_locker {
    position: fixed;
    overflow: hidden;
    left: 0;
    top: 0;
    right: 0;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}


/* ----------------------- Scroll unlock ----------------------- */
.m-leaflet-inner-mode .b-leaflet_box_content {
    max-height: inherit; /*overflow-y: scroll; overflow-x: visible;*/
}


/* -----------------------
   ----------------------- Overlay ----------------------- */
.b-leaflet_overlay {
    display: none;
    position: fixed;
    z-index: 0;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    pointer-events: auto;
    visibility: hidden;
    opacity: 0;
    background-color: #000;
}

.b-leaflet_overlay_loader {
    display: none;
}

.m-leaflet-overlay .b-leaflet_overlay {
    display: block;
}

.m-leaflet-loading .b-leaflet_overlay {
    background: #000 url('../images/icons/loading.gif') center center no-repeat;
}

/* * * Webkit bug fix * * */
.b-leaflet_overlay {
    -webkit-transform: translateZ(-1000px);
    transform: translateZ(-1000px);
}


/* ----------------------- Control buttons ----------------------- */
/* * * Control buttons :: close in box * * */
.b-leaflet_box .b-leaflet_close {
    position: absolute;
    z-index: 25;
    top: 2px;
    right: 0 !important;
    padding: 12px;
    width: 48px;
    height: 48px;
    line-height: 24px;
    text-align: center;
    text-decoration: none;
    color: #b8b8b8;
    background: transparent;
    border: none;
    cursor: pointer;
    pointer-events: auto;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

.b-leaflet_box .b-leaflet_close:before {
    display: block;
    width: 16px;
    height: 16px;
    font-size: 24px;
    line-height: 24px;
    background-size: auto;
    -webkit-transition: opacity 250ms;
    -o-transition: opacity 250ms;
    transition: opacity 250ms;
}

.b-leaflet_box .b-leaflet_close:hover {
    color: #1fa6a3;
}

/* * * Control buttons :: close on overlay * * */
.b-leaflet_overlay ~ .b-leaflet_close {
    position: fixed;
    z-index: 25;
    top: 0;
    right: 0;
    width: 32px;
    height: 32px;
    font-size: 24px;
    line-height: 32px;
    text-align: center;
    text-decoration: none;
    color: #fff;
    cursor: pointer;
    pointer-events: auto;
}

.b-leaflet_overlay ~ .b-leaflet_close:before {
    display: block;
    width: inherit;
    height: inherit;
    line-height: inherit;
}

.b-leaflet_overlay ~ .b-leaflet_close:hover {
    color: #fff;
    background: rgba(0, 0, 0, .25);
}

@media (min-width: 600px) {

    .b-leaflet_overlay ~ .b-leaflet_close {
        width: 64px;
        height: 64px;
        font-size: 24px;
        line-height: 64px;
    }

}

/* * * Control buttons :: nav * * */
.b-leaflet_box .b-leaflet_nav .b-leaflet_direction {
    position: fixed;
    z-index: 5;
    top: 50%;
    margin-top: -9px;
    width: 18px;
    height: 18px;
    text-align: center;
    cursor: pointer;
    pointer-events: auto;
}

.b-leaflet_box .b-leaflet_nav .b-leaflet_direction:before {
    display: block;
    font-weight: normal;
    font-size: 18px;
    line-height: 18px;
    text-align: center;
}

.b-leaflet_box .b-leaflet_nav .b-leaflet_direction:hover {
    color: #acacac;
}

.b-leaflet_box .b-leaflet_nav .b-leaflet_prev {
    left: 0;
}

.b-leaflet_box .b-leaflet_nav .b-leaflet_next {
    right: 0;
}

.b-leaflet_perspective ~ .b-leaflet_nav .b-leaflet_direction {
    position: fixed;
    z-index: 5;
    top: 0;
    bottom: 0;
    width: 32px;
    text-align: center;
    color: #fff;
    cursor: pointer;
    pointer-events: auto;
}

.b-leaflet_perspective ~ .b-leaflet_nav .b-leaflet_direction:before {
    position: absolute;
    left: 50%;
    top: 50%;
    margin: -16px 0 0 -16px;
    width: inherit !important;
    height: 32px;
    font-weight: normal;
    font-size: 12px;
    line-height: 32px;
    text-align: center;
}

.b-leaflet_perspective ~ .b-leaflet_nav .b-leaflet_direction:hover {
    color: #fff;
    background: rgba(0, 0, 0, .25);
}

.b-leaflet_perspective ~ .b-leaflet_nav .b-leaflet_prev {
    left: 0;
}

.b-leaflet_perspective ~ .b-leaflet_nav .b-leaflet_next {
    right: 0;
}

@media (min-width: 600px) {

    .b-leaflet_perspective ~ .b-leaflet_nav .b-leaflet_direction {
        width: 64px;
    }

    .b-leaflet_perspective ~ .b-leaflet_nav .b-leaflet_direction:before {
        margin: -32px 0 0 -32px;
        height: 64px;
        font-size: 16px;
        line-height: 64px;
    }

}

.b-leaflet_close,
.b-leaflet_direction {
    -webkit-transition: all 400ms;
    -o-transition: all 400ms;
    transition: all 400ms;
}


/* -----------------------
   ----------------------- Box ----------------------- */
.b-leaflet_box {
    position: relative;
    z-index: 25;
    margin-left: auto;
    margin-right: auto;
    visibility: hidden;
    opacity: 0;
    -webkit-box-sizing: content-box;
    -moz-box-sizing: content-box;
    box-sizing: content-box;
}


/* -----------------------
   ----------------------- Box title ----------------------- */
.b-leaflet_box_title {
    position: absolute;
    left: 0;
    top: 100%;
    right: 0;
    margin-top: 10px;
    padding: 10px;
    font: 400 16px/1.2 'Roboto', sans-serif;
    text-align: center;
    color: #fff; /*background: rgba(0, 0, 0, .4); border-radius: 5px; */
}


/* ----------------------- Content types ----------------------- */
/* * * Content popup * * */
.b-leaflet_box {
    padding: 34px 30px;
    font: 400 16px 'Roboto', sans-serif;
    color: #000;
    background: #fff;
    -webkit-border-radius: 9px;
    border-radius: 9px;
    -webkit-box-shadow: 1px 5px 9px rgba(0, 0, 0, .21);
    box-shadow: 1px 5px 9px rgba(0, 0, 0, .21);
}

@media (max-width: 479px) {

    .b-leaflet_box {
        padding: 30px 24px;
    }

}

.b-leaflet_heading {
    position: relative;
    margin: -34px -30px 26px;
    padding: 0 60px 0 30px;
    font: 400 13px 'Roboto', sans-serif;
    color: #000;
    background: #f8f8f8;
    -webkit-border-radius: 5px 5px 0 0;
    border-radius: 5px 5px 0 0;
}

.b-leaflet_heading_capsule {
    display: table;
    position: relative;
    width: 100%;
    height: 70px;
    border-collapse: separate;
    table-layout: fixed;
}

.b-leaflet_heading_capsule_cell {
    display: table-cell;
    vertical-align: middle;
    padding: 12px 0;
}

.b-leaflet_heading_title {
    font: 500 18px 'Roboto', sans-serif;
    color: #000;
}

.b-leaflet_heading_title ~ * {
    margin-top: 2px;
}

@media (max-width: 479px) {

    .b-leaflet_heading {
        margin: -30px -24px 24px;
        padding: 0 48px 0 24px;
    }

}

.b-leaflet_wrap {
    position: relative;
}

/* * * Image popup * * */
.m-leaflet-type-image .b-leaflet_box {
    padding: 0;
    background: none;
}

.m-leaflet-type-image .b-leaflet_box_content {
    padding: 0;
    color: #000;
    background: none;
    overflow: hidden;
}

.m-leaflet-type-image .b-leaflet_box_content img {
    display: block; /*padding: 12px;*/
    max-width: 100%;
    max-height: -webkit-calc(100vh - 130px);
    max-height: calc(100vh - 130px);
    margin: 0 auto;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    background: #fff;
    -webkit-border-radius: 9px;
    border-radius: 9px;
    -webkit-box-shadow: 1px 5px 9px rgba(0, 0, 0, .21);
    box-shadow: 1px 5px 9px rgba(0, 0, 0, .21);
}

.m-leaflet-type-image .b-leaflet_box__zoom {
    cursor: -webkit-zoom-in;
    cursor: -moz-zoom-in;
    cursor: zoom-in;
}

.m-leaflet-type-image .b-leaflet_box__zoom.out {
    cursor: -webkit-zoom-out;
    cursor: -moz-zoom-out;
    cursor: zoom-out;
}

.m-leaflet-type-image .b-leaflet_box__zoom.out .b-leaflet_box_content img {
    max-height: none !important;
}

.m-leaflet-type-image .b-leaflet_box__zoom.out .b-leaflet_box_title {
    max-width: 100% !important;
}

/* * * IFrame popup * * */
.m-leaflet-type-iframe .b-leaflet_box {
    padding: 0;
    background: none;
}

.m-leaflet-type-iframe .b-leaflet_box_content {
    padding: 0;
    color: #000;
    background: none;
}

.m-leaflet-type-iframe .b-leaflet_box_iframe {
    position: relative;
    height: 0;
    padding-bottom: 56.470588235294%;
    overflow: hidden;
}

.m-leaflet-type-iframe .b-leaflet_box_iframe iframe {
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    -webkit-backface-visibility: visible;
    backface-visibility: visible;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}


/* ----------------------- Box show methods ----------------------- */
.b-leaflet_box,
.b-leaflet_content,
.b-leaflet_content * {
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

/* * * Scale * * */
.m-leaflet-scale-transition .b-leaflet_box {
    -webkit-transform: scale(.6, .6);
    -ms-transform: scale(.6, .6);
    -o-transform: scale(.6, .6);
    transform: scale(.6, .6);
}

/* * * Super scale * * */
.m-leaflet-superScale-transition .b-leaflet_box {
    -webkit-transform: scale(1.4, 1.4);
    -ms-transform: scale(1.4, 1.4);
    -o-transform: scale(1.4, 1.4);
    transform: scale(1.4, 1.4);
}

/* * * Drop * * */
.m-leaflet-drop-transition .b-leaflet_box {
    -webkit-transform: translate(0, -150%);
    -ms-transform: translate(0, -150%);
    -o-transform: translate(0, -150%);
    transform: translate(0, -150%);
}

/* * * Newspaper * * */
.m-leaflet-newspaper-transition .b-leaflet_box {
    -webkit-transform: scale(.2, .2) rotate(720deg);
    -ms-transform: scale(.2, .2) rotate(720deg);
    -o-transform: scale(.2, .2) rotate(720deg);
    transform: scale(.2, .2) rotate(720deg);
}


/* * * Drop 3d * * */
.m-leaflet-drop3d-transition .b-leaflet_box {
    -webkit-transform-origin: top;
    -ms-transform-origin: top;
    -o-transform-origin: top;
    transform-origin: top;
    -webkit-transform: translate3d(0, -100px, 0) rotateX(-90deg);
    -ms-transform: translate3d(0, -100px, 0) rotateX(-90deg);
    transform: translate3d(0, -100px, 0) rotateX(-90deg);
}

/* * * Flip 3d * * */
.m-leaflet-flip3d-transition .b-leaflet_box {
    -webkit-transform-origin: center top;
    -ms-transform-origin: center top;
    -o-transform-origin: center top;
    transform-origin: center top;
    -webkit-transform: rotateY(-70deg);
    -ms-transform: rotateY(-70deg);
    transform: rotateY(-70deg);
}

/* * * Flip 3d Vertical * * */
.m-leaflet-flip3dVertical-transition .b-leaflet_box {
    -webkit-transform-origin: 0 50%;
    -ms-transform-origin: 0 50%;
    -o-transform-origin: 0 50%;
    transform-origin: 0 50%;
    -webkit-transform: rotateX(-70deg);
    -ms-transform: rotateX(-70deg);
    transform: rotateX(-70deg);
}

/* * * Side fall * * */
.m-leaflet-sideFall-transition .b-leaflet_box {
    -webkit-transform-origin: 50%;
    -ms-transform-origin: 50%;
    -o-transform-origin: 50%;
    transform-origin: 50%;
    -webkit-transform: translate(30%) translateZ(600px) rotate(10deg);
    -ms-transform: translate(30%) translateZ(600px) rotate(10deg);
    transform: translate(30%) translateZ(600px) rotate(10deg);
}