div#fancy_overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    z-index: 30;
}

div#fancy_loading {
    position: absolute;
    height: 40px;
    width: 40px;
    cursor: pointer;
    display: none;
    overflow: hidden;
    background: transparent;
    z-index: 100;
}

div#fancy_loading div {
    position: absolute;
    top: 0;
    left: 0;
    width: 40px;
    height: 480px;
    background: transparent url('fancy_progress.png') no-repeat;
}

div#fancy_outer {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 90;
    padding: 20px 20px 40px 20px;
    margin: 0;
    background: transparent;
    display: none;
}

div#fancy_inner {
    position: relative;
    width: 100%;
    height: 100%;
    background: #FFF;
}

div#fancy_content {
    margin: 0;
    z-index: 100;
    position: absolute;
}

div#fancy_div {
    background: #000;
    color: #FFF;
    height: 100%;
    width: 100%;
    z-index: 100;
}

img#fancy_img {
    position: absolute;
    top: 0;
    left: 0;
    border: 0;
    padding: 0;
    margin: 0;
    z-index: 100;
    width: 100%;
    height: 100%;
}

div#fancy_close {
    position: absolute;
    top: -12px;
    right: -15px;
    height: 30px;
    width: 30px;
    background: url('fancy_closebox.png') top left no-repeat;
    cursor: pointer;
    z-index: 181;
    display: none;
}

#fancy_frame {
    position: relative;
    width: 100%;
    height: 100%;
    display: none;
}

#fancy_ajax {
    width: 100%;
    height: 100%;
    overflow: auto;
}

a#fancy_left, a#fancy_right {
    position: absolute;
    bottom: 0px;
    height: 100%;
    width: 35%;
    cursor: pointer;
    z-index: 111;
    display: none;
    background-image: url("data:image/gif;base64,AAAA");
    outline: none;
    overflow: hidden;
}

a#fancy_left {
    left: 0px;
}

a#fancy_right {
    right: 0px;
}

span.fancy_ico {
    position: absolute;
    top: 50%;
    margin-top: -15px;
    width: 30px;
    height: 30px;
    z-index: 112;
    cursor: pointer;
    display: block;
}

span#fancy_left_ico {
    left: -9999px;
    background: transparent url('fancy_left.png') no-repeat;
}

span#fancy_right_ico {
    right: -9999px;
    background: transparent url('fancy_right.png') no-repeat;
}

a#fancy_left:hover, a#fancy_right:hover {
    visibility: visible;
    background-color: transparent;
}

a#fancy_left:hover span {
    left: 20px;
}

a#fancy_right:hover span {
    right: 20px;
}

#fancy_bigIframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
}

div#fancy_bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 70;
    border: 0;
    padding: 0;
    margin: 0;
}

div.fancy_bg {
    position: absolute;
    display: block;
    z-index: 70;
    border: 0;
    padding: 0;
    margin: 0;
}

div#fancy_bg_n {
    top: -20px;
    left: 0;
    width: 100%;
    height: 20px;
    background: transparent url('fancy_shadow_n.png') repeat-x;
}

div#fancy_bg_ne {
    top: -20px;
    right: -20px;
    width: 20px;
    height: 20px;
    background: transparent url('fancy_shadow_ne.png') no-repeat;
}

div#fancy_bg_e {
    right: -20px;
    height: 100%;
    width: 20px;
    background: transparent url('fancy_shadow_e.png') repeat-y;
}

div#fancy_bg_se {
    bottom: -20px;
    right: -20px;
    width: 20px;
    height: 20px;
    background: transparent url('fancy_shadow_se.png') no-repeat;
}

div#fancy_bg_s {
    bottom: -20px;
    left: 0;
    width: 100%;
    height: 20px;
    background: transparent url('fancy_shadow_s.png') repeat-x;
}

div#fancy_bg_sw {
    bottom: -20px;
    left: -20px;
    width: 20px;
    height: 20px;
    background: transparent url('fancy_shadow_sw.png') no-repeat;
}

div#fancy_bg_w {
    left: -20px;
    height: 100%;
    width: 20px;
    background: transparent url('fancy_shadow_w.png') repeat-y;
}

div#fancy_bg_nw {
    top: -20px;
    left: -20px;
    width: 20px;
    height: 20px;
    background: transparent url('fancy_shadow_nw.png') no-repeat;
}

div#fancy_title {
    position: absolute;
    z-index: 100;
    display: none;
}

div#fancy_title div {
    color: #FFF;
    font: bold 12px Arial;
    padding-bottom: 3px;
    white-space: nowrap;
}

div#fancy_title table {
    margin: 0 auto;
}

div#fancy_title table td {
    padding: 0;
    vertical-align: middle;
}

td#fancy_title_left {
    height: 32px;
    width: 15px;
    background: transparent url('fancy_title_left.png') repeat-x;
}

td#fancy_title_main {
    height: 32px;
    background: transparent url('fancy_title_main.png') repeat-x;
}

td#fancy_title_right {
    height: 32px;
    width: 15px;
    background: transparent url('fancy_title_right.png') repeat-x;
}

#fancybox-loading {
    cursor: pointer;
    display: none;
    height: 40px;
    left: 50%;
    margin-left: -20px;
    margin-top: -20px;
    overflow: hidden;
    position: fixed;
    top: 50%;
    width: 40px;
    z-index: 984;
}

#fancybox-loading div {
    background-image: url("fancybox.png");
    height: 480px;
    left: 0;
    position: absolute;
    top: 0;
    width: 40px;
}

#fancybox-overlay {
    display: none;
    left: 0;
    /* position: absolute; */
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 980;
    background-color: rgb(119, 119, 119); 
    opacity: 0.7;
     cursor: pointer;  
     
     height:100vh;
     min-height: 100%;
} 

#fancybox-tmp {
    border: 0 none;
    display: none;
    margin: 0;
    overflow: auto;
    padding: 0;
}

#fancybox-wrap {
    display: none;
    left: 0;
    outline: medium none;
    padding: 20px;
    position: absolute;
    top: 0;
    z-index: 1101;
}

#fancybox-outer {
    background: none repeat scroll 0 0 #fff;
    height: 100%;
    position: relative;
    width: 100%;
}

#fancybox-content {
    border: 0 solid #fff;
    height: 0;
    outline: medium none;
    overflow: hidden;
    padding: 0;
    position: relative;
    width: 0;
    z-index: 982;
}

#fancybox-hide-sel-frame {
    background: none repeat scroll 0 0 transparent;
    height: 100%;
    left: 0;
    position: absolute;
    top: 0;
    width: 100%;
    z-index: 981;
}

#fancybox-close {
    background: url("images/fancybox.png") repeat scroll -40px 0 transparent;
    cursor: pointer;
    display: none;
    height: 30px;
    position: absolute;
    right: -15px;
    top: -15px;
    width: 30px;
    z-index: 983;
}

#fancybox-error {
    color: #444;
    font: 12px/20px Arial;
    margin: 0;
    padding: 14px;
}

#fancybox-img {
    border: medium none;
    height: 100%;
    line-height: 0;
    margin: 0;
    outline: medium none;
    padding: 0;
    vertical-align: top;
    width: 100%;
}

#fancybox-frame {
    border: medium none;
    display: block;
    height: 100%;
    width: 100%;
}

#fancybox-left, #fancybox-right {
    background: url("blank.gif") repeat scroll 0 0 transparent;
    bottom: 0;
    cursor: pointer;
    display: none;
    height: 100%;
    outline: medium none;
    position: absolute;
    width: 35%;
    z-index: 982;
}

#fancybox-left {
    left: 0;
}

#fancybox-right {
    right: 0;
}

#fancybox-left-ico, #fancybox-right-ico {
    cursor: pointer;
    display: block;
    height: 30px;
    left: -9999px;
    margin-top: -15px;
    position: absolute;
    top: 50%;
    width: 30px;
    z-index: 982;
}

#fancybox-left-ico {
    background-image: url("fancybox.png");
    background-position: -40px -30px;
}

#fancybox-right-ico {
    background-image: url("fancybox.png");
    background-position: -40px -60px;
}

#fancybox-left:hover, #fancybox-right:hover {
    visibility: visible;
}

#fancybox-left:hover span {
    left: 20px;
}

#fancybox-right:hover span {
    left: auto;
    right: 20px;
}

.fancybox-bg {
    border: 0 none;
    /* height: 20px; */
    margin: 0;
    padding: 0;
    position: absolute;
    /* width: 20px; */
    z-index: 981;
}

#fancybox-bg-n {
    background-image: url("fancybox-x.png");
    left: 0;
    top: -20px;
    width: 100%;
}

#fancybox-bg-ne {
    background-image: url("fancybox.png");
    background-position: -40px -162px;
    right: -20px;
    top: -20px;
}

#fancybox-bg-e {
    background-image: url("fancybox-y.png");
    background-position: -20px 0;
    height: 100%;
    right: -20px;
    top: 0;
}

#fancybox-bg-se {
    background-image: url("fancybox.png");
    background-position: -40px -182px;
    bottom: -20px;
    right: -20px;
}

#fancybox-bg-s {
    background-image: url("fancybox-x.png");
    background-position: 0 -20px;
    bottom: -20px;
    left: 0;
    width: 100%;
}

#fancybox-bg-sw {
    background-image: url("fancybox.png");
    background-position: -40px -142px;
    bottom: -20px;
    left: -20px;
}

#fancybox-bg-w {
    background-image: url("fancybox-y.png");
    height: 100%;
    left: -20px;
    top: 0;
}

#fancybox-bg-nw {
    background-image: url("fancybox.png");
    background-position: -40px -122px;
    left: -20px;
    top: -20px;
}

#fancybox-title {
    font-family: Helvetica;
    font-size: 12px;
    z-index: 982;
}

.fancybox-title-inside {
    background: none repeat scroll 0 0 #fff;
    color: #333;
    padding-bottom: 10px;
    position: relative;
    text-align: center;
}

.fancybox-title-outside {
    color: #fff;
    padding-top: 10px;
}

.fancybox-title-over {
    bottom: 0;
    color: #fff;
    left: 0;
    position: absolute;
    text-align: left;
}

#fancybox-title-over {
    background-image: url("fancy_title_over.png");
    display: block;
    padding: 10px;
}

.fancybox-title-float {
    bottom: -20px;
    height: 32px;
    left: 0;
    position: absolute;
}

#fancybox-title-float-wrap {
    border: medium none;
    border-collapse: collapse;
    width: auto;
}

#fancybox-title-float-wrap td {
    border: medium none;
    white-space: nowrap;
}

#fancybox-title-float-left {
    background: url("fancybox.png") no-repeat scroll -40px -90px rgba(0, 0, 0, 0);
    padding: 0 0 0 15px;
}

#fancybox-title-float-main {
    background: url("fancybox-x.png") repeat scroll 0 -40px rgba(0, 0, 0, 0);
    color: #fff;
    font-weight: bold;
    line-height: 29px;
    padding: 0 0 3px;
}

#fancybox-title-float-right {
    background: url("fancybox.png") no-repeat scroll -55px -90px rgba(0, 0, 0, 0);
    padding: 0 0 0 15px;
}

.fancybox-ie .fancybox-bg {
    background: none repeat scroll 0 0 transparent !important;
}

.fancybox-ie #fancybox-bg-n {}

.fancybox-ie #fancybox-bg-ne {}

.fancybox-ie #fancybox-bg-e {}

.fancybox-ie #fancybox-bg-se {}

.fancybox-ie #fancybox-bg-s {}

.fancybox-ie #fancybox-bg-sw {}

.fancybox-ie #fancybox-bg-w {}

.fancybox-ie #fancybox-bg-nw {}

@media (max-width: 999px) {
    #fancybox-wrap {
        left: 20% !important;
    }
}

@media (max-width: 767px) {
    #fancybox-wrap {
        left: 10px !important;
    }
}

@media (max-width: 643px) {
    #fancybox-wrap {
        left: 0 !important;
    }
    #fancybox-content {
        height: 90%!important;
        width: 100% !important;
    }
    /* #fancybox-content img {
        height: 90% !important;
        width: 100% !important;
        ;
    } */
}

@media (max-width: 359px) {
    .gallery {
        margin-left: 0;
    }
    #fancybox-wrap {
        left: 0;
    }
}

.fancybox-inner div, .fancybox-inner img{
    box-sizing:    content-box;

}
