/*---Gallery Template---*/
.gallery h1.page-title {
    margin-bottom:22px;
    margin-top:10px;
    border-bottom:solid 1px #e8e7e7;
    padding-bottom:15px;
    max-width:100%;
}
.gallery h1.page-title a:hover {
    color:#d8aa08;
}
.gallery span.viewall {
    color:#d8aa08;
}
.gallery .zoom {
    width:20px;
    height:18px;
    background:url(assets/images/zoom.png) 0 5px no-repeat;
    padding-left:25px;
}
.page-content .fullwidth {
}
.page-content .fullwidth img {
    max-width:100%;
    height: auto;
}
.page-content .gallery {
    padding-bottom:25px;
    background-color:#fff;
}
div.thumbnail {
    list-style-type:none;
    overflow:hidden;
    margin:0 auto;
    padding:0px;
    width:100%;
    padding-top: 30px;
    padding-bottom: 30px;
    border: none;
}
.thumbnail li img:hover {
    -webkit-transition: all 0.8s ease-out;
    -moz-transition: all 0.8s ease-out;
    -o-transition: all 0.8s ease-out;
    opacity:.6;
    -webkit-opacity:.6;
}
div.thumbnail .item a {
    color:#818080;
    font-size:11px;
}
.item {
    float: left;
    position: relative;
    line-height: 1em;
    padding:2px;
}
.item img{
    width:100%;
    height:auto;    
}
.grid-sizer { width: 20%; }
.item { width: 20%; }

.content-bar .gallery .thumbnail img:hover,
.fullwidth .gallery .thumbnail img:hover,
.gallery .gall-img-section img:hover{
    opacity: 0.5 !important;
}
@media screen and (max-width: 1224px) {
    .grid-sizer { width: 20%; }
    .item { width: 20%; }
}

@media screen and (max-width: 720px) {
    /* 10 columns for larger screens */
    .grid-sizer { width: 25%; }
    .item { width: 25%; }
}
@media screen and (max-width: 720px) {
    /* 10 columns for larger screens */
    .grid-sizer { width: 25%; }
    .item { width: 25%; }
}
@media screen and (max-width: 480px) {
    /* 10 columns for larger screens */
    .grid-sizer { width: 33.33%; }
    .item { width: 33.33%; }
}
@media screen and (max-width: 320px) {
    /* 10 columns for larger screens */
    .grid-sizer { width: 50%; }
    .item { width: 50%; }
}
.image{
    max-width: 100%;
    margin: 0;
    display: block;
}

.image:after {
    clear:both;
}

.overlay {
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    position: absolute;
    top: 0;
    left: 0;
    text-decoration: none;
    color: #fff;
    display: none;
}

.overlay .title {
    text-align: center;
    font-size: 30px;
}

.overlay .description {
    position: absolute;
    bottom: 0;
    left: 0;
    background-color: rgba(0,0,0,0.80);
    width: 100%;
    margin: 0;
}

.overlay .description p {
    margin: 20px;
}

.item:hover .overlay {
    display: block;
}
/* End Gallery template*/

/** CSS for Gallery Page only - shortcode**/
@media only screen and (min-width:992px){
    /*Gallery page
================================================*/
    .content-bar .gallery .thumbnail {
        margin-left:0;
        padding:0;
        list-style-type:none;
        overflow:hidden;
    }
    .content-bar .gallery ul.thumbnail li {
        position:relative;
        width:216px;
        height:auto;
        margin-bottom:25px;
        text-align:center;
        padding-bottom:20px;
        vertical-align: top;
        float: none;
        display: inline-block;
        word-wrap: break-word;
    }
    .gallery .gall-img-section img {
        -webkit-transition: all .65s linear;
        -moz-transition: all .6s linear;
        -o-transition: all .6s linear;
        -ms-transition: all .6s linear;
        transition: all .6s linear;
        border: 1px solid #c3cccd;
        padding: 5px;
    }
    span.glyphicon.glyphicon-fullscreen.gallery-expand-icon{
        position: absolute;
        width: 70px;
        height: 70px;
        color: #FFF;
        margin: auto;
        top: 16%;
        left: 42%;
        opacity: 0;
        -moz-transition: all 1s ease;
        -webkit-transition: all 1s ease;
        -o-transition: all 1s ease;
        transition: all 1s ease;  
    }
    .gallery .row.thumbnail .gall-img-section:hover span.glyphicon.glyphicon-fullscreen.gallery-expand-icon{
        opacity:1;
        font-size:45px;
        transform: translate(0, 80%);
        -moz-transition: all 1s ease;
        -webkit-transition: all 1s ease;
        -o-transition: all 1s ease;
        transition: all 1s ease;
    }
    .gall-img-section {
        margin-bottom: 10px;
        margin-top: 10px;
        display: inline-block;
        vertical-align: top;
        float: none;
    }
    .gallery .gall-img-section a{
        display: block;
        margin: 0 auto;
        text-align: center;
        margin-top: 5px;
        word-wrap: break-word;
    }
    .gallery .col-5.gall-img-section{
        width: 20%;
        padding: 15px;
        padding-bottom: 0px;
        margin-bottom: 0;
        position: relative;
    }
    /*Default Gallery*/
    .content-bar .gallery .thumbnail.col-1 div {
        width:200px;
        height:auto;
        display:block;
        float:none;
        margin:0 auto;
        margin-bottom:20px;
    }
    /*Fullwidth Gallery*/
    .thumbnail{
        border:none;
    }
    .fullwidth .gallery .thumbnail .col-1  {
        width:200px;
        height:auto;
        display:block;
        float:none;
        margin:0 auto;
        margin-bottom:20px;
    }
    .fullwidth .gallery .thumbnail .col-1 .gall-img-section {
        width:200px;
    }
    .fullwidth .gallery .thumbnail .col-2  {
        width:270px;
        margin-left: 132px;
        margin-right: 165px;
        margin-bottom: 20px;
        height:auto;
    }
    .fullwidth .gallery .thumbnail .col-2 .gall-img-section {
        width:270px;
    }
    .fullwidth .gallery .thumbnail .col-3  {
        width:266px;
        margin-right:10%;
        height:auto;
        margin-bottom:20px;
    }

    .fullwidth .gallery .thumbnail .col-4 {
        width:230px;
        height:auto;
        margin-right:4.5%;
        margin-bottom:20px;
    }
    .fullwidth .gallery .thumbnail.col-4 .gall-img-section {
    }

    .fullwidth .gallery .thumbnail .col-5  {
        width:205px;
        height:auto;
        margin-right:14px;
        margin-bottom:20px;
    }
    .fullwidth .gallery .thumbnail .col-5  .gall-img-section {
        width:205px;
        margin-right:20px;
    }
    .fullwidth .gallery .thumbnail .col-6  {
        width:136px;
        height:auto;
        margin-right:55px;
        margin-bottom:20px;
    }
    .fullwidth .gallery .thumbnail.col-6 .gall-img-section {
        width: 150px;
        margin-right: 30px;
    }
    .fullwidth .gallery .thumbnail .col-7  {
        width:136px;
        height:auto;
        margin-right:20px;
        margin-bottom:20px;
    }

    .fullwidth .gallery .thumbnail .col-7 .gall-img-section {
        width:136px;
        margin-right:10px;
    }
    .fullwidth .gallery .thumbnail .col-8  {
        width:115px;
        height:auto;
        margin-right:25px;
        margin-bottom:20px;
    }

    .fullwidth .gallery .thumbnail .col-8 .gall-img-section {
        width:115px;
        margin-right:25px;
    }
    .fullwidth .gallery .thumbnail .col-9 {
        width:100px;
        height:auto;
        margin-right:25px;
        margin-bottom:20px;
    }
    .fullwidth .gallery .thumbnail .col-9.gall-img-section {
        width:100px;
    }


    /*Gallery style in content-bar bar
    ================================================*/
    .gallery.gall ul.thumbnail li span.fade {
        background:url(assets/images/view_photo.png) no-repeat;
        position:absolute;
        top:60px;
        left:65px;
        display:block;
        opacity:0;
        width:220px;
        height:153px;
    }
    .content-bar .gallery .thumbnail {
        margin-left:0;
        padding:0;
        list-style-type:none;
        overflow:inherit;
        margin:0 auto;
        max-width:100%;
    }
    .content-bar .gallery .thumbnail .col-1 {
        width:200px;
        /*height:150px;*/
        display:block;
        float:none;
        margin:0 auto;
    }
    .content-bar .gallery .thumbnail .col-2  {
        width:270px;
        /*height:155px;*/
        margin-bottom: 25px;
        margin-right: 70px;
    }
    .content-bar .gallery .thumbnail .col-2 img{
        height: 180px;
        width: auto;
    }
    .content-bar .gallery .thumbnail .col-3 {
        width:179px;
        /*height:155px;*/
        margin-bottom: 25px;
        margin-right: 60px;
    }
    .content-bar .gallery .thumbnail .col-4  {
        width: 130px;
        /*height: 106px;*/
        margin-bottom: 25px;
        margin-right:50px;
    }
    .content-bar .gallery .thumbnail .col-5 {
        width: 130px;
        /*height: 76px;*/
        margin-right: 15px;
        margin-bottom: 15px;
    }
    .content-bar .gallery .thumbnail .col-6 {
        width: 109px;
        /*height: 60px;*/
        margin-right: 16px;
        margin-bottom: 40px;
    }
    .content-bar .gallery .thumbnail .col-7 {
        width:77px;
        /*height:46px;*/
        margin-right:28px;
        margin-bottom: 40px;
    }
    .content-bar .gallery .thumbnail .col-8 {
        width:64px;
        /*height:35px;*/
        margin-right:25px;
        margin-bottom: 30px;
    }
    .content-bar .gallery .thumbnail .col-9 {
        width: 72px;
        margin-bottom: 30px;
        margin-right: 10px;
    }
    .content-bar .gallery .thumbnail img,
    .fullwidth .gallery .thumbnail img {
        -webkit-transition: all .65s linear;
        -moz-transition: all .6s linear;
        -o-transition: all .6s linear;
        -ms-transition: all .6s linear;
        transition: all .6s linear;
        border: 1px solid #c3cccd;
        padding: 5px;
    }
    .content-bar .gallery .thumbnail img:hover {
        opacity: 1;
    }

}

@media only screen and (min-width:992px) and (max-width:1200px){
    /*Fullwidth Gallery*/
    .fullwidth .gallery .thumbnail .col-9.gall-img-section {
        margin-right: 2px;
    }
    .fullwidth .gallery .thumbnail .col-8 {
        width: 111px;
        margin-right: 2px;
    }
    .fullwidth .gallery .thumbnail .col-7 {
        width: 115px;
        margin-right: 15px;
    }
    .fullwidth .gallery .thumbnail.col-6 .gall-img-section {
        width: 140px;
        margin-right: 14px;
    }
    .fullwidth .gallery .thumbnail .col-5 {
        width: 180px;
        margin-right: 0;
    }
    .fullwidth .gallery .thumbnail .col-4{
        margin-right: 5px;
    }
    .fullwidth .gallery .thumbnail .col-3 {
        margin-right: 4%;
    }
    .fullwidth .gallery .thumbnail .col-2 {
        margin-left: 5%;
    }
    /*Content Gallery*/
    .content-bar .gallery .thumbnail .col-2 {
        width: 270px;
        height: 155px;
        margin-right: 30px;
    }
    .content-bar .gallery .thumbnail .col-3 {
        margin-bottom: 15px;
        margin-right: 20px;
    }
    .content-bar .gallery .thumbnail .col-4 {
        margin-right: 20px;
    }
    .content-bar .gallery .thumbnail .col-5 {
        width: 123px;
        margin-right: 0;
    }
    .content-bar .gallery .thumbnail .col-6 {
        width: 85px;
        height: 60px;
        margin-right: 16px;
    }
    .content-bar .gallery .thumbnail .col-7,
    .content-bar .gallery .thumbnail .col-8 {
        margin-right:10px;
    }
    .content-bar .gallery .thumbnail .col-9 {
        width: 60px;
        height: 32px;
        margin-right: 8px;
    }
}

@media only screen and (max-width:991px){
    .gall-img-section {
        float: left;
        position: relative;
        line-height: 1em;
        padding:2px;
    }
    .gall-img-section img{
        /*width:100%;*/
        height:auto;    
    }
    .grid-sizer-gal { width: 20%; }
    .gall-img-section { width: 20%; }
}

@media screen and (max-width: 720px) {
    /* 10 columns for larger screens */
    .grid-sizer-gal { width: 25%; }
    .gall-img-section { width: 25%; }
}
@media screen and (max-width: 480px) {
    /* 10 columns for larger screens */
    .grid-sizer-gal { width: 33.33%; }
    .gall-img-section { width: 33.33%; }
}
@media screen and (max-width: 320px) {
    /* 10 columns for larger screens */
    .grid-sizer-gal { width: 50%; }
    .gall-img-section { width: 50%; }
}
/** Gallery Page CSS Ends **/

