@charset "utf-8";

.gallery-container {
    z-index: 999;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%
}

.gallery-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: #000;
    opacity: .8;
    filter: Alpha(Opacity=80)
}

.gallery-popup {
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    margin: 5%;
    background: #fff center no-repeat
}

.gallery-thumbs {
    position: absolute;
    background: #fff;
    /*border-left: 1px solid #add8e6;*/
    border-left: 1px solid #ff7d19;
    padding: 3px;
    overflow: auto;
    width: 93px;
    top: 0;
    right: 0;
    bottom: 0
}

.gallery-thumbs > a {
    display: block;
    line-height: 64px;
    border: 1px solid transparent;
    text-align: center
}

.gallery-thumbs .ui-state-active {
    border: 1px solid #aaa;
}

.gallery-thumbs > a > img {
    vertical-align: middle;
    max-width: 64px;
    max-height: 64px;
    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none
}

.gallery-view {
    position: absolute;
    display: block;
    left: 0;
    top: 0;
    right: 100px;
    bottom: 0;
    margin: 32px;
    overflow: hidden;
    background: #fff center no-repeat
}

.gallery-view > img {
    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
    transition: opacity .4s;
}

.gallery-view.autofit {
    text-align: center
}

.gallery-view.autofit::after {
    content: '';
    display: inline-block;
    vertical-align: middle;
    height: 100%
}

.gallery-view.autofit > img {
    vertical-align: middle;
    max-height: 100%;
    max-width: 100%;
    width: auto !important;
    height: auto !important;
    margin: 0 !important
}

.gallery-view.loading {
    background-image: url('../img/loading.gif')
}

.gallery-view.loading > img {
    opacity: 0
}

.gallery-view.error {
    background-image: url('../img/picture_coming_soon.gif')
}

.gallery-view.error > img {
    opacity: 0
}

.gallery-title {
    position: absolute;
    text-align: center;
    overflow: hidden;
    left: 0;
    right: 100px;
    bottom: 0;
    padding: 5px 10px;
    font: bold 15px Verdana, sans-serif;
    color: #076ad8
}

.gallery-popup .icon64 {
    position: absolute;
    cursor: pointer;
}

.gallery-popup .icon-gallery-prev {
    top: 50%;
    left: 5px;
    margin: -32px 0 0;
}

.gallery-popup .icon-gallery-next {
    top: 50%;
    right: 105px;
    margin: -32px 0 0;
}

.gallery-popup .icon-gallery-close {
    top: 5px;
    right: 105px;
}

.gallery-popup .icon-gallery-zoom {
    top: 55px;
    right: 105px;
}

.gallery-popup .icon-gallery-fit {
    top: 55px;
    right: 105px;
}

ul.list > li:before, .icon8, .icon16, .icon24, .icon29, .icon32, .icon48, .icon50, .icon64, .icon100 {
    display: inline-block;
    vertical-align: middle;
    text-indent: -99999px
}

.icon64 {
    width: 64px;
    height: 64px
}

.icon64.icon-gallery-close {
    background-image: url('../img/modal-close.png');
}

.icon64.icon-gallery-close:hover {
    background-image: url('../img/modal-close-2.png');
}

.icon64.icon-gallery-next {
    background-image: url('../img/modal-arrow.png');
}

.icon64.icon-gallery-next:hover {
    background-image: url('../img/modal-arrow-2.png');
}

.icon64.icon-gallery-prev {
    background-image: url('../img/modal-arrow.png');
    transform: rotate(180deg);
}

.icon64.icon-gallery-prev:hover {
    background-image: url('../img/modal-arrow-2.png');
    transform: rotate(180deg);
}

.icon64.icon-gallery-zoom {
    background-image: url('../img/modal-zoom-pl.png');
}

.icon64.icon-gallery-zoom:hover {
    background-image: url('../img/modal-zoom-pl-2.png');
}

.icon64.icon-gallery-fit {
    background-image: url('../img/modal-zoom-mn.png');
}

.icon64.icon-gallery-fit:hover {
    background-image: url('../img/modal-zoom-mn-2.png');
}

#goods_center {
    position: relative;
    clear: both;
    margin: 0 0 10px;
    overflow: hidden;
    min-height: 340px
}

#goods_photo_container {
    position: absolute;
    display: block;
    left: 0;
    top: 0;
    bottom: 0;
    right: 490px;
    text-align: center;
    padding: 2px 0;
}

#goods_photo_container.has_recommended {
    width: 100%;
}

#goods_photo {
    display: block;
    height: 100%
}

#goods_photo > img {
    vertical-align: middle;
    max-width: 100%;
    max-height: 100%
}

#goods_photo:before {
    display: inline-block;
    /*height: 100%;*/
    vertical-align: middle;
    content: ''
}

#goods_photo > u {
    position: absolute;
    top: 0;
    right: 0
}

#goods_thumbs {
    overflow: auto;
    /*white-space: nowrap;*/
    clear: both;
    min-width: 340px;
}

#goods_thumbs a {
    width: 80px;
    height: 80px;
    line-height: 80px;
    display: inline-block;
    background: #fff;
    text-align: center;
    border: 1px solid #fff;

}

#goods_thumbs a.curr {
    border: 1px solid #aaa;
}

#goods_thumbs img {
    vertical-align: middle;
    max-width: 70px;
    max-height: 70px;
}

#goods_info {
    float: right;
    width: 460px;
    padding: 0;
    border: 1px solid #add8e6;
    background: #f0fcff
}

#goods_info > div {
    margin: 15px;
    clear: both
}

@media screen and (max-width: 1024px) {
   #goods_photo_container {
        position: relative;
        height: 300px;
        margin: 15px 0
    }

    .icon-gallery-zoom,
    .icon-gallery-fit {
        display: none;
    }

    .icon64.icon-gallery-fit,
    .icon64.icon-gallery-zoom{
        width: 0;
        height: 0;
    }



    /*#goods_photo_container.has_thumbs {*/
    /*margin-top: 145px*/
    /*}*/
    /*#goods_info {*/
    /*width: auto;*/
    /*margin: 15px 0;*/
    /*float: none*/
    /*}*/
    /*#goods_thumbs {*/
    /*position: absolute;*/
    /*top: 0;*/
    /*left: 0;*/
    /*right: 0;*/
    /*margin: 0 !important*/
    /*}*/
}

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

    #goods_thumbs {
        min-width: 238px;
    }

    #goods_thumbs a {
        width: 56px;
        height: 56px;
        line-height: 56px;
    }

    #goods_thumbs img {
        max-width: 49px;
        max-height: 49px;
    }

    #goods_info {
        width: 322px;
    }

    #goods_info > div {
        margin: 11px;
    }
}

