/*---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;
}
.main-content .fullwidth {
}
.main-content .fullwidth img {
    max-width:100%;
    height: auto;
}
.main-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 img{
    -webkit-transition: all 0.5s ease-out;
    -moz-transition: all 0.5s ease-out;
    -o-transition: all 0.5s ease-out;
    transition: all 0.5s ease-out;
}
.thumbnail img:hover {
    opacity:.5;
    -webkit-opacity:.5;
    -moz-opacity:.5;
    -o-opacity:.5;
}
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%; }


@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;
}
.gallery .thumbnail img {
    width: 100%;
    height: auto;
}

/* End Gallery template*/

/** CSS for Gallery Page only - shortcode**/
@media only screen and (min-width:992px){
    .gallery .thumbnail .gall-img-section{
        margin-right: 6px;
    }
    /*Gallery page
================================================*/
    .content .gallery .thumbnail {
        margin-left:0;
        padding:0;
        list-style-type:none;
        overflow:hidden;
    }
    .content .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-top: 2px;
        display: inline-block;
        vertical-align: top;
        float: none;
    }
    .gallery .gall-img-section a{
        display: block;
        margin: 0 auto;
        text-align: center;
        margin-top: 3px;
        word-wrap: break-word;
    }
    /*Default Gallery*/
    /*    .content .gallery .thumbnail.col-1 div {
            width:200px;
            height:auto;
            display:block;
            float:none;
            margin:0 auto;
            margin-bottom:20px;
        }*/
    /*Fullwidth Gallery*/
    .thumbnail{
        border:none;
    }
    .gallery .thumbnail .col-1  {
        width:100%;
        height:auto;
        display:block;
    }
    .gallery .thumbnail .col-1 .gall-img-section {
        width:100%;
    }
    .gallery .thumbnail .col-2  {
        width:49%;
        height:auto;
    }
    .gallery .thumbnail .col-2 .gall-img-section {
        width:49%;
    }
    .gallery .thumbnail .col-3  {
        width: 32%;
        height: auto;
    }
    .gallery .thumbnail .col-4 {
        width:24%;
        height:auto;
    }
    .gallery .thumbnail.col-4 .gall-img-section {
        width:24%;
    }

    .gallery .thumbnail .col-5  {
        width: 19%;
        height: auto;
    }
    .gallery .thumbnail .col-5  .gall-img-section {
        width: 19%;
        height: auto;
    }
    .gallery .thumbnail .col-6  {
        width: 16%;
        height:auto;
    }
    .gallery .thumbnail.col-6 .gall-img-section {
        width: 16%;
        height:auto;
    }
    .gallery .thumbnail .col-7  {
        width:13.5%;
        height:auto;
    }
    .gallery .thumbnail .col-7 .gall-img-section {
        width:13.5%;
    }
    .gallery .thumbnail .col-8  {
        width:11.5%;
        height:auto;
    }
    .gallery .thumbnail .col-8 .gall-img-section {
        width:11.5%;
    }
    .gallery .thumbnail .col-9 {
        width:10.2%;
        height:auto;
    }
    .gallery .thumbnail .col-9.gall-img-section {
        width:10.2%;
    }


    /*Gallery style in content 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 .gallery .thumbnail {
        margin-left:0;
        padding:0;
        list-style-type:none;
        overflow:inherit;
        margin:0 auto;
        max-width:100%;
    }
    /*    .content .gallery .thumbnail .col-1 {
            width:200px;
            display:block;
            float:none;
            margin:0 auto;
        }*/
    /*    .content .gallery .thumbnail .col-2  {
            width:270px;
            margin-bottom: 25px;
            margin-right: 70px;
        }
        .content .gallery .thumbnail .col-2 img{
            height: 180px;
            width: auto;
        }
        .content .gallery .thumbnail .col-3 {
            width:179px;
            margin-bottom: 25px;
            margin-right: 52px;
        }
        .content .gallery .thumbnail .col-4  {
            width: 130px;
            margin-bottom: 25px;
            margin-right:40px;
        }
        .content .gallery .thumbnail .col-5 {
            width: 130px;
            margin-right: 6px;
            margin-bottom: 15px;
        }
    
    
     .gallery .thumbnail .col-7  {
        width:13.5%;
        height:auto;
    }
    .gallery .thumbnail .col-7 .gall-img-section {
        width:13.5%;
    }
    .gallery .thumbnail .col-8  {
        width:11.5%;
        height:auto;
    }
    .gallery .thumbnail .col-8 .gall-img-section {
        width:11.5%;
    }
    .gallery .thumbnail .col-9 {
        width:10.2%;
        height:auto;
    }
    */ .content .gallery .thumbnail .col-6 {
        width: 15.5%;
    }
    .content .gallery .thumbnail .col-7 {
        width:13%;
    }
    .content .gallery .thumbnail .col-8 {
        width:11.5%;
    }
    .content .gallery .thumbnail .col-9 {
        width: 10.1%;
    }
    .content .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 .gallery .thumbnail img:hover {
        opacity: 1;
    }

}

@media only screen and (min-width:992px) and (max-width:1200px){
    /*Fullwidth Gallery*/
    /*Content Gallery*/
    /*    .content .gallery .thumbnail .col-2 {
            width: 270px;
            height: 155px;
            margin-right: 10px;
        }
        .content .gallery .thumbnail .col-3 {
            margin-bottom: 15px;
            margin-right: 8px;
        }
        .content .gallery .thumbnail .col-4 {
            margin-right: 10px;
        }
        .content .gallery .thumbnail .col-5 {
            width: 123px;
            margin-right: -10px;
        }
        .content .gallery .thumbnail .col-6 {
            width: 85px;
            height: 60px;
            margin-right: 8px;
        }
        .content .gallery .thumbnail .col-7,
        .content .gallery .thumbnail .col-8 {
            margin-right:2px;
        }
        .content .gallery .thumbnail .col-9 {
            width: 60px;
            height: 32px;
            margin-right: 2px;
        }*/
}

@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 **/

.fullwidth .gallery,
.content .gallery{
    margin: auto;
    overflow: hidden;
    text-align: center !important;
}
.fullwidth .gallery .thumbnail,
.content .gallery .thumbnail{
    background-color: transparent;
}