#inlineGallery {
    font-size: 0;
    box-sizing: border-box;
    border: 1px solid #ffffff;
    overflow-x: hidden;
    /*background: #f5f5f5;*/
    margin-bottom: 20px;
    background-image: url(../images/loading_spinner.gif);
    background-position: center;
    background-repeat: no-repeat;
}
.inlineGalleryStage {
    height: 100%;
}
.inlineGalleryThumb {
    position: relative;
    display: inline-block;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    /*float: left;*/
    border: 0px solid #999;
    box-sizing: border-box;
    overflow: hidden;
    background-color: #e2e2e2;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100% 100%;
}
.inlineGalleryThumb > img {
    width: 100%;
    height: 100%;
}

#inlineGalleryThumbIcon {
    display: block;
    position: absolute;
    left: 50%;
    top: 50%;
    margin-left: -18px;
    margin-top: -15px;
    width: 36px;
    height: 27px;
    background: url("../images/photogallery/btns.png") -108px 0 no-repeat;
    opacity: 0;
    pointer-events: none;
}

#inlineGalleryThumbText {
    display: block;
    position: absolute;
    left: 0px;
    right: 0px;
    bottom: 0px;
    background: rgba(0,0,0,0.4);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    text-align: center;
    color: #ffffff;
    line-height: 20px;
    padding: 10px;
    box-sizing: border-box;
    /*pointer-events: none;*/
    opacity: 0;
    cursor: text;
    margin: 0;
}

#fotoViewport {
    display: none;
    position:fixed; 
    left:50%; top:50%; 
    width: 10%; height: 10%; 
    margin-left: -5%; margin-top: -5%; 
    z-index:20000;
    opacity: 0;
    background: #000;
    overflow: hidden;
    font-size: 0;
}

#fotoViewportStage {
    position:absolute; 
    left:0; top:0; 
    width: 100%; height: 100%; 
    opacity: 0;
    overflow: hidden;
    font-size: 0;
    /*border: 2px dashed #777;*/
    /*background: #999;*/
    box-sizing: border-box;
}


    a.buy, a.grayBtn {
        display: block;
        position: fixed;
        right: 60px;
        top: 4px;      
        border-radius: 4px;
        border: 1px solid #434f49;
        height: 30px;
        line-height: 30px;
        font-family: "Open Sans", Arial, sans-serif !important;
        font-size: 15px !important;
        font-weight: normal !important;
        margin: 2px;
        padding-left: 20px !important;
        padding-right: 20px !important;
        outline: none;
        cursor: pointer;
        text-decoration: none !important;
        margin-top: 0px !important;
        opacity: 0;
        z-index:21000;
    }

    a.buy {
        /*background: -webkit-linear-gradient(#6bab62, #1d492b);*/
        /*background: -moz-linear-gradient(#6bab62, #1d492b);*/
        /*background: -ms-linear-gradient(#6bab62, #1d492b);*/
        /*background: -o-linear-gradient(#6bab62, #1d492b);*/
        /*background: -linear-gradient(#6bab62, #1d492b);*/
        /*filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#6bab62', endColorstr='#1d492b',GradientType=0 );*/
        color:#ffffff !important;
    }

    a.buy > img {
        position: absolute !important;
        right:10px !important;
        top:50% !important;
        margin: 0 !important;
        margin-top: -10px !important;
        border: 0px solid #333 !important;
        border-width: 0px  !important;
    }

    a.buy:hover {
        /*background: -webkit-linear-gradient(#73b769, #27623a);*/
        /*background: -moz-linear-gradient(#73b769, #27623a);*/
        /*background: -ms-linear-gradient(#73b769, #27623a);*/
        /*background: -o-linear-gradient(#73b769, #27623a);*/
        /*background: -linear-gradient(#73b769, #27623a);*/
        /*filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#73b769', endColorstr='#27623a',GradientType=0 );*/
        /*border: 1px solid #3399ee;*/
        text-decoration: none !important;
    }

    a.buy:active {
        /*background: -webkit-linear-gradient(#225633, #6bab62);*/
        /*background: -moz-linear-gradient(#225633, #6bab62);*/
        /*background: -ms-linear-gradient(#225633, #6bab62);*/
        /*background: -o-linear-gradient(#225633, #6bab62);*/
        /*background: -linear-gradient(#225633, #6bab62);*/
        /*filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#225633', endColorstr='#6bab62',GradientType=0 );*/

    }            

    a.grayBtn {
        background: -webkit-linear-gradient(#f7f7f7, #8b9fae);
        background: -moz-linear-gradient(#f7f7f7, #8b9fae);
        background: -ms-linear-gradient(#f7f7f7, #8b9fae);
        background: -o-linear-gradient(#f7f7f7, #8b9fae);
        background: -linear-gradient(#f7f7f7, #8b9fae);
        filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#f7f7f7', endColorstr='#8b9fae',GradientType=0 );
        color:#333333;
    }

    a.grayBtn:hover {
        border: 1px solid #3399ee;
    }

    a.grayBtn:active {
        background: -webkit-linear-gradient(#8b9fae, #f7f7f7);
        background: -moz-linear-gradient(#8b9fae, #f7f7f7);
        background: -ms-linear-gradient(#8b9fae, #f7f7f7);
        background: -o-linear-gradient(#8b9fae, #f7f7f7);
        background: -linear-gradient(#8b9fae, #f7f7f7);
        filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#8b9fae', endColorstr='#f7f7f7',GradientType=0 );
    }  

#fotoCloseBtn {
    display: none;
    position: fixed;
    right: 0;
    top: 0px;
    width: 45px;
    height: 40px;
    touch-action: manipulation;
    opacity: 0;
    z-index:21000;
    cursor: pointer;
    background-image: url(../images/photogallery/menu_hide_btn.png);
    background-position: center;
    background-repeat: no-repeat;
    background-size: 45px auto;
}
#fotoCloseBtn:hover { background-image: url(../images/photogallery/menu_hide_btn_glow.png); }

#fotoPrevBtn {
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    width: 185px;
    height: 100%;
    touch-action: manipulation;
    opacity: 0;
    z-index:20000;
    cursor: pointer;
    background-image: url(../images/photogallery/foto_prev_btn.png);
    background-position: left;
    background-repeat: no-repeat;
    background-size: 85px auto;
}
#fotoPrevBtn:hover { background-image: url(../images/photogallery/foto_prev_btn_glow.png); }

#fotoNextBtn {
    display: none;
    position: fixed;
    right: 0;
    top: 0;
    width: 185px;
    height: 100%;
    touch-action: manipulation;
    opacity: 0;
    z-index:20000;
    cursor: pointer;
    background-image: url(../images/photogallery/foto_next_btn.png);
    background-position: right;
    background-repeat: no-repeat;
    background-size: 85px auto;
}
#fotoNextBtn:hover { background-image: url(../images/photogallery/foto_next_btn_glow.png); }

.fotoStageIdle {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: #999;
    box-sizing:border-box;
    /*z-index: -1;*/
    opacity: 0;
}

#fotoStageScroll {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    /*background: #999;*/
    box-sizing:border-box;
    /*z-index: -1;*/
    opacity: 1;
    background-position: center;
    background-repeat: no-repeat;
}

#fotoStageScrollImg {
    opacity: 0;
}

#fotoStageScrollSide {
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
    /*background: #777;*/
    box-sizing:border-box;
    z-index: -1;
    opacity: 1;
    background-position: center;
    background-repeat: no-repeat;

}

.gallery_title {
    font-family: Helvetica, Arial;
    font-size: 1.2rem;
    line-height: 1.4rem;
    margin: 0 0 6px 0;
    color: #4f9fd2;
    font-weight: normal;
    text-align: center;
}

.gallery_text {
    /*text-align: justify;*/
    font-size: 0.8125rem;
    line-height: 0.9375rem;
    margin: 0;
    color: #777;
}


.galleryItem {
    display: block;
    position: relative;
    /*background: #eee;*/
    min-height: 70px;
    padding: 7px;
    border:0px solid #7ab2e1;
    border-bottom-width: 1px;
    font-family: Helvetica, Arial;
    text-decoration: none;
}

#photoGallerysContainer > a:nth-child(even) {
    background: #f8fdff;
}

#photoGallerysContainer > a:last-child {
    border-bottom-width: 0px;
}

.galleryItemImgCont {
    position: relative; 
    float:left;
    margin: 0 10px 0px 0;
    width: 70px;
    height: 70px;
    box-sizing: border-box;
}

.galleryItem h3 {
    font-size: 1rem;
    line-height: 1rem;
    margin: 0 0 4px 0;
    color: #4f9fd2;
    font-weight: normal;
}

.galleryItem p {
    /*text-align: justify;*/
    font-size: 0.8125rem;
    line-height: 0.9375rem;
    margin: 0;
    color: #777;
}

.galleryItem img {
    width: 70px;
    height: 70px;
}