/*------------------------------------------------------------------
books
 -------------------------------------------------------------------*/
.mainwrapper{
    background-size: cover;
    background-repeat: no-repeat;
    background-image: url(../images/wall.gif);
    background-position: 50% 50%;
    height: auto;
    max-width: 100%;
    overflow: hidden;
    position: relative;
    min-height: 850px;
}

#berlinwrapper {
    margin: 0 auto;
    overflow: hidden;
    padding-top: 5%;
    text-align: center;
}


#berlinwrapper h1 {
    font-size: 3em;
    text-align: center;
    text-shadow: 1px 1px 1px #000;
    margin: 0.67em 0;
}


#berlinwrapper p {
    margin: 0 auto 20px;
    width: 800px;
}

/*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;
    }
}

#gallery_holder {
    overflow:hidden;
    margin-bottom:70px;
}

.gallery {
    width:700px;
    margin:0 auto;
    margin-bottom:50px;
}

.gallery li {
    float:left;
    margin:5px;
    position:relative;
}

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

.gallery li > a {
    width:120px;
    height:150px;
    position:relative;
    padding:5px;
    background:rgb(97, 121, 128);
    -moz-border-radius:0;
    -webkit-border-radius:0;
}

.gallery li > a span {
    position:absolute;
    color:#fff;
    font-size:24px;
    top:5px;
    left:5px;
    text-align:center;
    width:120px;
    height:150px;
    line-height:50px;
    opacity:0;
    filter:alpha(opacity=0);
    -ms-filter:progid:DXImageTransform.Microsoft.Alpha(opacity=0);
    background:#444;
    -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:600px;
    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:260px;
}

.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:43px;
    background:#000;
    margin-left:-25px;
    opacity:0;
    z-index:1001;
    left:5;
    height: 23px;
    overflow:hidden;
    text-align:center;
    width:90px;
    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.download {
    font-size:15px;
    line-height:26px;
    color:#fff;
    position:absolute;
    top:43px;
    background:#000;
    margin-left:350px;
    opacity:0;
    z-index:1001;
    left:5;
    height: 23px;
    overflow:hidden;
    text-align:center;
    width:90px;
    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.download,.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;
}