/*Navigation***************************************************************/
#top-nav{
    width: 100%;
    background: #293033;
    overflow: hidden;
}

.top-nav-menu{
    display: block;
    max-width:1080px;
    margin:0 auto;
    padding: 0 30px;
}
.top-nav-menu li{
    display: inline-block;
    height: 46px;
    text-decoration: none;
    float: left;
    margin:5px 30px 0 0;
}

.top-nav-menu a{
    font-family: hagincapsmedium;
    color:#a69d73;
    font-size: 18px;
    line-height: 38px;
}

#wave{
    width: 100%;
    height: 34px;
    z-index: -1;
    margin-top: -14px;
    background: url(../images/wave.png) repeat-x;
}


#gallery-nav{
    max-width: 1080px;
    margin: 100px auto;
    clear: both;
    overflow: hidden;
}

.gallery-nav-menu{
    display: block;
    max-width: 640px;
    list-style-type: none;
    margin: 0 auto;
    overflow: hidden;
}

.gallery-nav-menu li{
    width: 25%; 
    text-decoration: none;
    float: left;
    position: relative;
}

.gallery-nav-menu li a{
    font-family: hagincapsmedium;
    color: #293033;
    font-size: 28px;
}

.gallery-nav-menu li:after{
    content: '...';
    display: block;
    font-size: 60px;
    margin-top: -30px;
    color:#a69d73;
    position: relative;
    z-index: -1;
    opacity: 0;
    transition:all 2s ease;
    -webkit-transition: all 2s ease;
    -moz-transition: all 2s ease;
    -o-transition: all 2s ease;
}

.gallery-nav-menu li:hover:after{
    opacity: 1;
    letter-spacing: 4px;
}

/*Gallery******************************************************************/

#gallery-wrapper{
    max-width: 67.5em; /*1080px*/
    margin: 0 auto 100px;
    padding: 0 30px;
    clear: both;
}

#gallery-list{
    width: 101.481481481481481%;
    margin-left: -0.7407407407407407%;
    overflow: hidden;
}

.item{
    display: block;
    width: 23.51851851851852%;
    margin: 0.7407407407407407%;
    float: left;
    overflow: hidden;
    background-color: black;
    /*box-shadow: 0 0 2px rgba(0, 0, 0, 0.6);*/
}

.item a{
    display: block;
    min-width: 100%;
    position: relative;
    overflow: hidden;
}

.item a img{
    display: block;
    width: 100%;
    -webkit-transition: opacity 0.5s, -webkit-transform 0.5s;
    transition: opacity 0.5s, transform 0.5s;
}

.item:hover img {
    -webkit-transform: scale3d(1.05,1.05,1);
    transform: scale3d(1.05,1.05,1);
    opacity: 0.8;
}

.item h2{
    display: block;
    max-width: 100%;
    font-family: hagincapsmedium;
    color:#a69d73;
    font-size: 26px;
    background: #293033;
    padding: 20px 10px;
    overflow: hidden;
    clear: both;
}

.effect{
    position: absolute;
    top:20px;
    left: 10px;
    max-width: 85%;
}

.effect p{
    display: inline-block;
    float: left;
    text-align: left;
    clear: both;
    font-family: 'Palatino Linotype', Georgia, Serif;
    font-size: 1em;
    color: #293033;
    background: rgba(255, 255, 255, 0.9);
    padding: 10px;
    margin: 0 0 10px;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    border-radius: 3px;

    transition: opacity 0.4s, transform 0.4s;
    -webkit-transition: opacity 0.4s, -webkit-transform 0.4s;
    transform: translate3d(-360px,20px,0);
    -webkit-transform: translate3d(-360px,20px,0);
}

.effect p:first-child {
    -webkit-transition-delay: 0.15s;
    transition-delay: 0.15s;
}

.effect p:nth-of-type(2) {
    -webkit-transition-delay: 0.2s;
    transition-delay: 0.2s;
}

.item:hover .effect p{
    opacity: 1;
    transform: translate3d(0,0,0);
    -webkit-transform: translate3d(0,0,0);
}


/*Google maps**************************************************************/

#maps-wrapper{
    max-width: 100%;
    margin: 30px auto 0;
    position: relative;
   
}

.google-maps-frame{
    width: 100%;
    height: 480px;
    overflow: hidden;
    clear: both;
}

#maps-wrapper small{
    padding: 5px;
    display: block;
    position: absolute;
    top: 37px;
    right: 12px;
    background: white;
    box-shadow: 0px 0px 2px #293033;
    border:solid 1px;
}
#maps-wrapper small a{
    transition: all 0.3s ease-out;
    color:#8aaca3;
    font-size: 16px;
    font-style: italic;
    text-align: center;
}

#maps-wrapper small a:hover   { color: #293033; }
#maps-wrapper small a:active  { color: #293033; }


.separator2{
    background: url("file://localhost/E:/Projekty/WWW/Stolarstwo%20Web%20Project/HTML/images/separator.png") 50% 0px repeat-x transparent;
    clear: both;
    height: 6px;
    margin: 30px 0px 10px;
    width: 100%;
}


/*media screen*/


@media only screen and ( max-width: 1040px ){

    #gallery-list{
        width: 101.6326530612245%;
        margin-left: -0.8163265306122449%;
    }
    
    .item
    {
        width: 31.70068027210884%;
        margin: 0.8163265306122449%;
        
    }

    .item h2 {
        font-size: 18px;
    }

    .effect {
        display: none;
    }
}

@media only screen and ( max-width: 640px ){
    #gallery-list{
        width: 102.7586206896552%;
        margin-left: -1.379310344827586%;
    }
    
    .item{
        width: 47.24137931034483%;
        margin: 1.379310344827586%;
    }
}

@media only screen and ( max-width: 400px ){
    
    #gallery-list
    {
        width: 100%;
        margin: 0;
    }
        .item
        {
            width: 100%;
            margin-left: 0;
            margin-right: 0;
            margin-bottom: 1em;
            float: none;
        }

        .top-nav-menu li{
            display: block;
            height: 44px;
            text-decoration: none;
            float: none;
            margin:0 auto;
}

        .gallery-nav-menu li{
            float: none;
            margin: 0 auto;
            text-align: center;
        }

        .top-nav-menu li:first-child {
            margin-top: 20px;
            margin-bottom: 20px;
        }

        #gallery-nav{
            margin: 50px auto;
        }
}
