/* Magnific Popup CSS */
.mfp-bg{
    position: fixed;
    z-index: 1042;
    top: 0;
    left: 0;

    overflow: hidden;

    width: 100%;
    height: 100%;

    opacity: .8;
    background: #0b0b0b;


}

.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;

    -webkit-box-sizing: border-box;
       -moz-box-sizing: border-box;
            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;

    padding: 2.4rem;

    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:    pointer;
}

.mfp-zoom{
    cursor: pointer;

}

.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: #ccc;
}
.mfp-preloader a{
    color: #ccc;
}
.mfp-preloader a:hover{
    color: white;
}

.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;

    border: 0;
    outline: none;
    background: transparent;
            box-shadow: none;

    -webkit-appearance: none;
}
button::-moz-focus-inner{
    padding: 0;

    border: 0;
}

.mfp-close{
    font-family: Arial, Baskerville, monospace;
    font-size: 28px;
    font-style: normal;
    line-height: 44px;

    position: absolute;
    top: 0;
    right: 0;
    right: -6px;

    width: 44px;
    width: 100%;
    height: 44px;
    padding: 0 0 18px 10px;
    padding-right: 20px;

    text-align: center;
    text-align: right;
    text-decoration: none;

    opacity: 0.65;
    color: white;
    color: #333;


}
.mfp-close:hover, .mfp-close:focus{
    opacity: 1;


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

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

.mfp-image-holder .mfp-close, .mfp-iframe-holder .mfp-close{
    right: -6px;

    width: 100%;
    padding-right: 20px;

    text-align: right;

    color: 333;
}

.mfp-counter{
    font-size: 12px;
    line-height: 18px;

    position: absolute;
    top: 0;
    right: 0;

    color: #ccc;
}

.mfp-arrow{
    position: absolute;
    top: 50%;

    width: 90px;
    height: 110px;
    margin: 0;
    margin-top: -55px;
    padding: 0;

    opacity: 0.65;


    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}
.mfp-arrow:active{
    margin-top: -54px;
}
.mfp-arrow:hover, .mfp-arrow:focus{
    opacity: 1;


}
.mfp-arrow:before, .mfp-arrow:after, .mfp-arrow .mfp-b, .mfp-arrow .mfp-a{
    position: absolute;
    top: 0;
    left: 0;

    display: block;

    width: 0;
    height: 0;
    margin-top: 35px;
    margin-left: 35px;

    content: '';

    border: medium inset transparent;
}
.mfp-arrow:after, .mfp-arrow .mfp-a{
    top: 8px;

    border-top-width: 13px;
    border-bottom-width: 13px;
}
.mfp-arrow:before, .mfp-arrow .mfp-b{
    opacity: .7;
    border-top-width: 21px;
    border-bottom-width: 21px;
}

.mfp-arrow-left{
    left: 50%;

    margin-left: -420px;
}
.mfp-arrow-left:after, .mfp-arrow-left .mfp-a{
    font-family: 'fontawesome';
    font-size: 3rem;
    content: '\f053';

    color: #fff;
}

.mfp-arrow-right{
    right: 50%;

    margin-right: -410px;
}
.mfp-arrow-right:after, .mfp-arrow-right .mfp-a{
    font-family: 'fontawesome';
    font-size: 3rem;

    content: '\f054';

    color: #fff;
}


.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{
    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: black;
    box-shadow: 0 0 8px rgba(0, 0, 0, .6);
}

/* Main image in popup */
img.mfp-img
{
    line-height: 0;

    display: block;

    -webkit-box-sizing: border-box;
       -moz-box-sizing: border-box;
            box-sizing: border-box;
    width: auto;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}

/* The shadow behind the image */
.mfp-figure
{
    line-height: 0;
}
.mfp-figure:after
{
    position: absolute;
    z-index: -1;
    top: 40px;
    right: 0;
    bottom: 40px;
    left: 0;

    display: block;

    width: auto;
    height: auto;

    content: '';
    /*
    background: #444;
    box-shadow: 0 0 8px rgba(0, 0, 0, .6);
    */
}
.mfp-figure small
{
    font-size: 12px;
    line-height: 14px;

    display: block;

    color: #bdbdbd;
}
.mfp-figure figure
{
    margin: 0;
}

.mfp-bottom-bar {
    position: absolute;
    top: 100%;
    left: 0;
    width: 96%;
    margin-top: -2.3rem;
    cursor: auto;
    padding: 0 1rem;
}

.mfp-title {

line-height: 18px;
text-align: left;
word-wrap: break-word;
color: #333;
font-weight: 700;

}

.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){
  /**
       * 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;

        -webkit-box-sizing: border-box;
           -moz-box-sizing: border-box;
                box-sizing: border-box;
        margin: 0;
        padding: 3px 5px;

        background: rgba(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    {
        line-height: 35px;

        position: fixed;
        top: 0;
        right: 0;

        width: 35px;
        height: 35px;
        padding: 0;

        text-align: center;

        background: rgba(0, 0, 0, .6);
    }
}

@media all and (max-width: 900px){
    .mfp-arrow    {
        -webkit-transform: scale(.75);
                transform: scale(.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;
    }
}

.mfp-ie7 .mfp-img{
    padding: 0;
}
.mfp-ie7 .mfp-bottom-bar{
    left: 50%;

    width: 600px;
    margin-top: 5px;
    margin-left: -300px;
    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;
}
