.gal-list-item A {
    text-decoration: none;
}
.gal-list-item A[href] {
    cursor: pointer;
}


.gal-page-item-header {
    padding: 0 120px;
    position: relative;
}
.gal-page-item-header .gal-backlink-pos {
    position: absolute;
    top: 5px;
    right: 0;
}



.lp-gal {     display: table;
    width: 100%;
}

.lc-gal-list-item {     position: relative;     width: 23.08%;
    margin-right: 2.56%;
    margin-bottom: 2.56%;
    float: left;
    -webkit-transition: width .3s ease, margin .3s ease;
-moz-transition: width .3s ease, margin .3s ease;
-ms-transition: width .3s ease, margin .3s ease;
-o-transition: width .3s ease, margin .3s ease;
transition: width .3s ease, margin .3s ease;
    -outline: 1px dotted orange;
}
.lc-gal-list-item.-o4 {
    margin-right: 0;
}

.lcd-gal-list-item {     display: none;
    clear: both;
    width: 100%;
    overflow: hidden;
    height: 0px;
    -background-color: blue;
}
.lcd-gal-list-item.-o4 {     display: block;
}


.gal-list-item-bg {
    position: absolute;
    left: 0; right: 0; top: 0;
    height: 100%;
    -moz-box-shadow: 0px 20px 30px 0px rgba(0, 0, 0, 0.1); -webkit-box-shadow: 0px 20px 30px 0px rgba(0, 0, 0, 0.1); box-shadow: 0px 20px 30px 0px rgba(0, 0, 0, 0.1); ;
    background-color: #ffffff;
}
.gal-list-item-bg.-selected {
    -moz-box-shadow: 0 6px 30px 0px rgba(43, 100, 143, 0.6); -webkit-box-shadow: 0 6px 30px 0px rgba(43, 100, 143, 0.6); box-shadow: 0 6px 30px 0px rgba(43, 100, 143, 0.6); ;
}

.gal-list-item {
    position: relative;
    overflow: hidden;
    padding: 15px;
    padding-top: 195px;
    -webkit-transition: margin .3s ease, padding .3s ease;
-moz-transition: margin .3s ease, padding .3s ease;
-ms-transition: margin .3s ease, padding .3s ease;
-o-transition: margin .3s ease, padding .3s ease;
transition: margin .3s ease, padding .3s ease;
}

.gal-list-item-thumb {
    display: block;
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    height: 180px;
    background-repeat: no-repeat;
    background-position: center 30%;     -webkit-background-size: cover; -moz-background-size: cover; -o-background-size: cover; background-size: cover;     -webkit-transition: height .3s ease;
-moz-transition: height .3s ease;
-ms-transition: height .3s ease;
-o-transition: height .3s ease;
transition: height .3s ease;
    cursor: pointer;
}
.gal-list-item-thumb IMG {
    display: none;
}


.gal-list-item.-asCover {
    position: absolute;
    left 0; top: 0;
    padding: 0;
    height: 100%;
    width: 100%;
}
.gal-list-item.-asCover .gal-list-item-thumb {
    height: 100%;
}
.gal-list-item-basis {
    height: 200px;
}



.gal-list-item-title, .gal-list-item-title * {
    font-size: 18px;
    font-weight: bold;
}


.gal-one-cat .gal-page-item-header {
    display: none;
}


@media (max-width: 960px) {
    
    .lc-gal-list-item {
        width: 31.26%;
        margin-bottom: 3.1%;
    }
    .lc-gal-list-item, .lc-gal-list-item.-o4 {
        margin-right: 3.1%;
    }
    .lc-gal-list-item.-o3 {
        margin-right: 0;
    }
    .lcd-gal-list-item.-o4 {
        display: none;
    }
    .lcd-gal-list-item.-o3 {
        display: block;
    }
}

@media (max-width: 667px) {
        .lc-gal-list-item {
        width: 47.74%;
        margin-bottom: 4.52%;
    }
    .lc-gal-list-item, .lc-gal-list-item.-o3 {
        margin-right: 4.52%;
    }
    .lc-gal-list-item.-o2 {
        margin-right: 0;
    }
    .lcd-gal-list-item.-o3 {
        display: none;
    }
    .lcd-gal-list-item.-o2 {
        display: block;
    }

    .gal-page-item-header {
        padding: 0 40px;
    }
    .gal-page-item-header .gal-backlink-pos {
        position: relative;
        top: 0;
        right: -40px;
        text-align: right;
    }
}

@media (max-width: 480px) {
    .lcd-gal-list-item.-o2 {
        display: none;
    }
    .lc-gal-list-item {
        width: 100%;
        margin-bottom: 15px;
    }
    .lc-gal-list-item .gal-list-item {
        margin-left: 5px;
        margin-right: 5px;
    }
}
