
/*------------------------------------------------------------------
effect and transitions for poping up the image
-------------------------------------------------------------------*/

@-webkit-keyframes fadeInScale {
    0% {
        -webkit-transform:scale(0.2);
        opacity:0;
    }

    100% {
        -webkit-transform:scale(1);
        opacity:1;
    }
}

@-moz-keyframes fadeInScale {
    0% {
        -moz-transform:scale(0.2);
        opacity:0;
    }

    100% {
        -moz-transform:scale(1);
        opacity:1;
    }
}

@-o-keyframes fadeInScale {
    0% {
        -o-transform:scale(0.2);
        opacity:0;
    }

    100% {
        -o-transform:scale(1);
        opacity:1;
    }
}

@-ms-keyframes fadeInScale {
    0% {
        -ms-transform:scale(0.2);
        opacity:0;
    }

    100% {
        -ms-transform:scale(1);
        opacity:1;
    }
}

@keyframes fadeInScale {
    0% {
        transform:scale(0.2);
        opacity:0;
    }

    100% {
        transform:scale(1);
        opacity:1;
    }
}

.content_holder{
    margin: 0 auto;
    padding-bottom: 2.5%;
    padding-top: 5%;
    width: 80%;
}

#gallery_holder {
    overflow:hidden;
    margin: 0 auto;
    /*margin-bottom:70px;*/
}

.gallery {
    width:80%;
    margin:0 auto;
    /*margin-bottom:2em;*/
}

#gallery_container{
    max-width: 100%;
}

.image_container{
    width:20%;
    float:left;

}

.image_info{
    position:relative;
    overflow: hidden;
}

.gallery li {
    /*width: 100%;*/
    margin: 0 0.15em;
    padding: 0.15em;
    /*position:relative;*/
}

.gallery li > a,.gallery li > a img {
    display:block;
}

.gallery li > a {
    /*width:150px;*/
    /*height:84px;*/
    /*position:relative;*/
    width:100%;
    padding: 0.15em;
    /*margin: 0 0.15em;*/
    /*margin-right: 0.5em;*/
    /*margin-right: 0.5em;*/
    /*background:rgb(000, 000, 000);*/
    -moz-border-radius:0;
    -webkit-border-radius:0;
}

img.thumb {
    width: 100%;
}

.image{
    background-color: #000000;
    /*margin: 0.5em;*/
    max-width: 100%;
    /*padding: 1em;*/
    position: relative;
}


.gallery li > a span {
    background: #444 none repeat scroll 0 0;
    color: #fff;
    height: 100%;
    line-height: 4em;
    text-align: center;
    font-size: 1.5em;
    left: 0;
    position: absolute;
    top: 0;
    width: 100%;
    opacity:0;
    /*margin: 0.5em;*/
    /*padding:1em;*/
    /*margin-right: 1em;*/
    /*margin-right: 1em;*/
    filter:alpha(opacity=0);
    -ms-filter:progid:DXImageTransform.Microsoft.Alpha(opacity=0);
    -webkit-transition:opacity .3s linear;
    -moz-transition:opacity .3s linear;
    -o-transition:opacity .3s linear;
    -ms-transition:opacity .3s linear;
    transition:opacity .3s linear;
}

.gallery li > a:hover span {
    opacity:.8;
    filter:alpha(opacity=99);
    -ms-filter:progid:DXImageTransform.Microsoft.Alpha(opacity=99);
}

.gallery-overlay {
    padding:0;
    z-index:99;
    position:fixed;
    overflow:hidden;
    width:0;
    height:0;
    left:0;
    top:0;
    text-align:center;
    background:rgba(0,0,0,0.70);
}

.gallery-overlay > div {
    filter:alpha(opacity=0);
    -ms-filter:progid:DXImageTransform.Microsoft.Alpha(opacity=0);
    width:80%;
    margin:10px auto 0;
    text-shadow:0 1px 1px rgba(255,255,255,0.6);
    -webkit-transition:opacity .3s linear 1.3s;
    -moz-transition:opacity .3s linear 1.3s;
    -o-transition:opacity .3s linear 1.3s;
    -ms-transition:opacity .3s linear 1.3s;
    transition:opacity .3s linear 1.3s;
    position:relative;
    color:rgba(27,54,81,0.8);
    opacity:0;
}

.gallery-overlay div h3 span {
    display:block;
    line-height:6px;
}

.gallery-overlay div h3 {
    font-size:36px;
    text-align:right;
    border-right:1px solid rgba(27,54,81,0.4);
    float:left;
}

.gallery-overlay div p {
    text-align:left;
    float:left;
    width:50%;
}

.gallery-overlay div h3 span,.gallery-overlay div p {
    font-size:16px;
}

.gallery-overlay div h3,.gallery-overlay div p {
    width:200px;
    height:60px;
    padding:0 20px;
}

.gallery-overlay a.close_image {
    font-size:15px;
    line-height:26px;
    color:#fff;
    position:absolute;
    top:40px;
    background:#000;
    margin-left:-25px;
    opacity:0;
    z-index:1001;
    /*left:5;*/
    height: 25px;
    overflow:hidden;
    text-align:center;
    width:50px;
    filter:alpha(opacity=0);
    -ms-filter:progid:DXImageTransform.Microsoft.Alpha(opacity=0);
    -webkit-transition:opacity .3s linear .4s;
    -moz-transition:opacity .3s linear .4s;
    -o-transition:opacity .3s linear .4s;
    -ms-transition:opacity .3s linear .4s;
    transition:opacity .3s linear .4s;
}

.gallery-overlay a.image_link {
    font-size:15px;
    line-height:26px;
    color:#fff;
    position:absolute;
    top:43px;
    background:#000;
    margin-left:500px;
    opacity:0;
    z-index:1001;
    left:5;
    height: 23px;
    overflow:hidden;
    text-align:center;
    width:120px;
    filter:alpha(opacity=0);
    -ms-filter:progid:DXImageTransform.Microsoft.Alpha(opacity=0);
    -webkit-transition:opacity .3s linear .4s;
    -moz-transition:opacity .3s linear .4s;
    -o-transition:opacity .3s linear .4s;
    -ms-transition:opacity .3s linear .4s;
    transition:opacity .3s linear .4s;
}

.gallery-overlay:target {
    width:auto;
    height:auto;
    padding:80px 100px 120px;
    bottom:0;
    right:0;
}

.gallery-overlay:target a.close_image,.gallery-overlay:target > div {
    opacity:1;
    filter:alpha(opacity=99);
    -ms-filter:progid:DXImageTransform.Microsoft.Alpha(opacity=99);
}

.gallery-overlay:target a.image_link,.gallery-overlay:target > div {
    opacity:1;
    filter:alpha(opacity=99);
    -ms-filter:progid:DXImageTransform.Microsoft.Alpha(opacity=99);
}

.gallery-overlay img {
    max-height:100%;
    /*border:5px solid #fff;*/
    border-radius:0;
    position:relative;
}

.gallery-overlay:target img {
    -webkit-animation:fadeInScale .5s ease-in-out;
    -moz-animation:fadeInScale .5s ease-in-out;
    -o-animation:fadeInScale .5s ease-in-out;
    -ms-animation:fadeInScale .5s ease-in-out;
    animation:fadeInScale .5s ease-in-out;
}


/*------------------------------------------------------------------
Responsive
-------------------------------------------------------------------*/

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

    .image_container{
        width: 25%;
    }
}


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

    .image_container{
        width: 50%;
    }

}