* { -moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box; }
@font-face 
{
    font-family: "Myriad-Regular";
    src:local("MYRIADPRO-REGULAR"),
    local("MYRIADPRO-REGULAR"), 
    url("../font/MYRIADPRO-REGULAR.OTF");
}
@font-face 
{
    font-family: "Myriad-Semibold";
    src:local("MYRIADPRO-SEMIBOLD"),
    local("MYRIADPRO-SEMIBOLD"), 
    url("../font/MYRIADPRO-SEMIBOLD.OTF");
}

.overlay-shell
{
    position: fixed;
    top:0px;
    left:0px;
    width: 100%;
    height:100%;
    display:table;
    z-index: 99999999999;
    background:rgba(0, 0, 0, 0.9);
}
#overlay {
    display: none;
}
.overlay 
{
    -moz-border-radius:5px;
    -khtml-border-radius:5px;
    -webkit-border-radius:5px;
    border-radius:5px;
}
.overlay_back
{
    position:absolute;
    width:100%;
    height:100%;
}

.content {
    width: 1110px;
    min-height:600px;
}  

.content #responsive_gallery {
    display: none;
}

.content #left_gallery {
    width: 960px;
    height: 500px;
    display: inline-block;
    vertical-align: top;
}

.content #left_gallery .main_img {
    width: 800px;
    height: 360px;
    margin: 50px auto;
    text-align: center;
    position: relative;
    border-bottom: 1px solid #424242;
}

.content #left_gallery .main_img .main_left {
    position: absolute;
    cursor: pointer;
    margin-top: 110px;
}

.content #left_gallery .main_img .main_left:hover, .main_right:hover {
    opacity: .7;
}

.content #left_gallery .thumbs #wrapped_thumbs {
    width: 480px;
    height: 85px;
    margin: 0 auto;
    overflow: hidden;
    padding-top: 32px;
}

.content #left_gallery .thumbs #wrapped #wrap_thumbs {
    white-space: nowrap;
}

.content #left_gallery .thumbs #thumbs_arrow .thumbs_right {
    cursor: pointer;
    margin-top: 20px;
    position: absolute;
    margin-left: 647px;
}

.content #left_gallery .thumbs #thumbs_arrow {
    margin-left: 79px;
}

.content #left_gallery .thumbs #thumbs_arrow .thumbs_left {
    cursor: pointer;
    margin-top: 20px;
    margin-left: 133px;
    position: absolute;
}

.content #left_gallery .thumbs #thumbs_arrow .thumbs_left:hover, .thumbs_right:hover {
    opacity: .7;
}

.content #left_gallery .thumbs #images {
    margin-top: -30px;
    margin-left: -40px;
    text-align: center;
    white-space: nowrap;
}

.content #left_gallery .thumbs ul li {
    display: inline-block;
}

.content #left_gallery .thumbs #images img {
    width: 80px;
    height: 65px;
    padding: 3px;
    cursor: pointer;
}

.content #left_gallery .thumbs #images img:hover, .selected {
    background: #c92a30;
}

.content #left_gallery .main_img .main_right {
    cursor: pointer;
    margin-top: 110px;
    margin-left: 750px;
    position: absolute;
}

.content #left_gallery .main_img img {
    max-height: 300px;
}

.content #left_gallery .nav_img {
    color: rgba(255,255,255,.7);
    font-size: 14px;
    position: absolute;
    bottom: 10px;
    left: 50px;
}

.content #left_gallery .nav_img #current {
    display: inline-block;
}

.content #left_gallery .nav_img #all{
    display: inline-block;
    
}

.content #right_gallery {
    width: 300px;
    height: auto;
    color: #fff;
    margin-left: -4px;
    vertical-align: top;
    display: inline-block;
}

.content #left_gallery .proekt {

}

.content #left_gallery h2 {
    color: #fff;
    font-size: 22px;
    margin: -5px 0 0 0;
    display: inline-block;
}

.content #left_gallery h1 {
    margin: 0;
    color: #c92a30;
    font-size: 22px;
    display: inline-block;
}

.y-center-overlay
{
    display:table-cell; 
    vertical-align: middle;
}
.overlay, .overlay-pop 
{
    width: 950px;
    font-size: 20px;
    color: #000;
    padding: 10px;
}
.contain-overlay 
{
    position: relative;
    margin:0px auto  !important;
    display:block;
}
.overlay-int
{
    position: relative;
}

.overlay-close 
{
    right: 0px;
    top: 0px;
    position: absolute;
    width: 31px;
    height: 31px;
    cursor:pointer;
    z-index: 999;
    text-indent: -9999px;
    background:url("../images/close.png");
}

@media screen and (min-width: 600px) and (max-width: 960px) { 

    .content {
        width: 100%;
        height: 100% !important;
    }

    .content #left_gallery {
        display: none !important;
    }

    .overlay-close {
        left: 0px;
        top: -30px;
    }

    .content #right_gallery {
        display: none !important;
    }

    .content #responsive_gallery {
        width: 100%;
        height: 500px;
        display: block;
        margin-top:  50px;
        overflow-y: hidden;
        overflow-x: scroll;
    }

    .content #responsive_gallery #responsive_wrap {
        width: 100%;
        white-space: nowrap;
    }

    .content #responsive_gallery img {
        max-height: 500px;
        margin-left: 15px;
        display: inline-block;
    }
}

@media screen and (max-width: 600px) {

    .content {
        width: 100%;
        height: 100% !important;
    }

    .overlay-close {
     left: 0;
     top: -30px;
    }

    .content #left_gallery {
        display: none !important;
    }

    .content #right_gallery {
        display: none !important;
    }

    .content #responsive_gallery {
        width: 100%;
        height: 350px;
        display: block;
        margin-top: 30px; 
        overflow-y: hidden;
        overflow-x: scroll;
    }

    .content #responsive_gallery #responsive_wrap {
        width: 100%;
        white-space: nowrap;
    }

    .content #responsive_gallery img {
        max-height: 350px;
        margin-left: 15px;
        display: inline-block;
    }
}