/*------------------------------------------------------------------
    CSS Reset
-------------------------------------------------------------------*/
html, body, div, span, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
abbr, address, cite, code,
del, dfn, em, img, ins, kbd, q, samp,
small, strong, sub, sup, var,
b, i,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, figcaption, figure,
footer, header, hgroup, menu, nav, section, summary,
time, mark, audio, video {
    margin:0;
    padding:0;
    border:0;
    outline:0;
    font-size:100%;
    vertical-align:baseline;
    background:transparent;
}

body {
    line-height:1;
}

article,aside,details,figcaption,figure,
footer,header,hgroup,menu,nav,section {
	display:block;
}

nav ul {
    list-style:none;
}

blockquote, q {
    quotes:none;
}

blockquote:before, blockquote:after,
q:before, q:after {
    content:'';
    content:none;
}

a {
    margin:0;
    padding:0;
    font-size:100%;
    vertical-align:baseline;
    background:transparent;
    text-decoration: none;
}

ins {
    background-color:#ff9;
    color:#000;
    text-decoration:none;
}

mark {
    background-color:#ff9;
    color:#000;
    font-style:italic;
    font-weight:bold;
}

del {
    text-decoration: line-through;
}

abbr[title], dfn[title] {
    border-bottom:1px dotted;
    cursor:help;
}

table {
    border-collapse:collapse;
    border-spacing:0;
}

input, select {
    vertical-align:middle;
}

html {
  box-sizing: border-box;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
    padding-left: 15px;
    padding-right: 15px;
    background: #352d25;
    color: #fff;
    padding-bottom: 800px;
    background: url(../img/bg1.jpg) 50% -480px no-repeat;
    font: 14px/1.5 'PT Sans Caption';
}
body.page-login {
    background-position: 50% -1100px;
}
body.page-gallery,
body.page-video {
  background-attachment: fixed;
  padding-bottom: 100px;
  background-position: 50% -1100px;
}

.container {
    margin-left: auto;
    margin-right: auto;
    max-width: 1080px;
}

header {
    margin-top: 50px;
    padding: 30px 50px;
    background: rgba(0,0,0,0.6);
    font-size: 24px;
    text-align: center;
}

.back {
    margin-top: 20px;
    padding: 10px 20px;
    background: rgba(0,0,0,0.6);
    font-size: 14px;
    display: inline-block;
    color: #fff;
    transition: all 0.3s;
}
.back:hover {
    background: rgba(0,0,0,0.4);
    color: #ccc;
}

.login-wrapper {
    padding: 0 15px;
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.login-box {
    width: 400px;
    max-width: 400px;
    color: #404040;
    padding: 50px;
    border-radius: 4px;
    background: #fff;
    box-shadow: 0 0 50px rgba(0,0,0,0.3)
}
[type="text"] {
    border: 1px solid #c0c0c0;
    padding: 8px 10px;
    width: 100%;
    border-radius: 2px;
    margin-bottom: 10px;
    text-align: center;
}
button {
    width: 100%;
    padding: 8px 10px;
    border: none;
    display: block;
    border-radius: 2px;
    background: #1fa2b5;
    color: #fff;
    text-transform: uppercase;
    font-size: 14px;
    cursor: pointer;
}
button:hover {
    background: #1891a3;
}
.polaroids {
    margin-top: 50px;
    font-size: 0;
    text-align: center;
}
.polaroids figure {
    margin: 0 30px 50px;
    padding: 15px;
    display: inline-block;
    vertical-align: middle;
    text-align: center;
    background: #fff;
    color: #404040;
    font-size: 16px;
    transform: rotate(-3deg);
    transition: transform .15s linear;
    box-shadow: 0 3px 6px rgba(0,0,0,.25);
}
.polaroids img {
    max-width: 100%;
}
figure.photos {
    margin-top: 20px;
    transform: rotate(2deg);
}

.polaroid:hover figure {
    transform: scale(1.05);
}

.gallery { margin: 20px 0; font-size: 0; background: rgba(0,0,0,0.8); }
.gallery li { width: 20%; padding: 10px; display: inline-block; vertical-align: top; font-size: 13px; cursor: pointer; }
.gallery li figure { border: 1px solid #f0f0f0; overflow: hidden; position: relative; }
.gallery li img { vertical-align: top; transition: all 0.3s ease; }
.gallery li:hover img { transform: scale(1.1);}
.gallery li:hover figure:after { position: absolute; left: 0; right: 0; top: 0; bottom: 0; background: rgba(0,0,0,0.2); content: ''; }

.page-video li { width: 33%; }

footer {
    position: fixed;
    bottom: 20px;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 14px;
}

footer .inner {
    padding: 10px 30px;
    display: inline-block;
    margin: auto;
    background: rgba(0,0,0,0.6);
}

@media screen and (max-width: 767px) {
    body {
        padding-bottom: 50px !important;
    }
    .login-box {
        width: 100%;
        padding: 50px 20px;
    }
    .gallery li {
        width: 100%;
    }
    .gallery li img {
        width: 100%;
    }
    footer {
        position: static;
    }
}
