header {
    margin-bottom: 1em;
}

#photos {
    position: relative;
    left: 0;
    top: 0;
    width: 1060px;
    min-width: 475px;
    max-width: 1590px;
    height: 900px;
    margin: 0 auto;
}

.thumb {
    transform-origin: 0 0;
    -webkit-transform-origin: 0 0;
    -moz-transform-origin: 0 0;
    -ms-transform-origin: 0 0;
    -o-transform-origin: 0 0;
    display: inline-block;
    position: absolute;
    left: 0;
    top: 0;
}

.thumb:hover img {
    opacity: 0.75;
    animation-duration: 0.3s;
    animation-name: photohover;
}

@keyframes photohover {
    from {
        opacity: 1.0;
    }
    to {
        opacity: 0.75;
    }
}

.thumb img {
    width: 100%;
}

.thumb a, .thumb a:link, .thumb a:visited {
    display: inline;
    border-width: 0;
    width: 0;
    height: 0;
    margin: 0;
    padding: 0;
}

.lb a, .lb a:link, .lb a:visited {
    text-decoration: none;
}

main {
    position: relative;
    width: 100%;
    height: 100%;
}

.lb {
    height: 100%;
    width: 100%;
    text-align: center;
    padding-bottom: 1em;
    white-space: nowrap;
    overflow-x: hidden;
}

.lb-img img {
    margin: auto 0;
}

.lb-img {
    display: inline-block;
    width: 700px;
    margin: 0 2em;
}

#X {
    z-index: 1;
    font-size: 1.5em;
    position: absolute;
    right: 1em;
    top: 0;
    width: 4em;
    height: 4em;
}

#X a {
    display: inline-block;
    line-height: 4em;
    width: 100%;
    height: 100%;
}

#prev, #next {
    display: block;
    position: absolute;
    width: 50%;
    height: 100%;
    top: 0;
}

#prev {
    left: 0;
}

#next {
    right: 0;
}

#prev a, #next a {
    display: block;
    height: 100%;
    width: 100%;
}

#caption {
    margin-top: 1em;
}