﻿.photo-display, .album-selector {
    color: rgb(234, 234, 234);
}

.photo-display h1, .album-selector h1 {
    font-weight: bold;
    color: rgb(230, 158, 1);
}

.photo-display, .album-selector p {
    line-height: 1.3;
}

.photo-display button, .album-selector button {
    float: none;
    margin: 0;
    overflow: hidden;
    padding: 0;
    text-indent: 100%;
    white-space: nowrap;
}

.photo-display {
    background-color: rgb(101, 101, 97);
    padding-top: 35px;
    overflow: hidden;
    z-index: 100;
    height: 100%;
    text-align: center;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
}

.photo-display > * {
    display: inline-block;
    text-align: left;
}

.photo-display > ul {
    -webkit-overflow-scrolling: touch;
    height: 100%;
    margin-top: -12px;
    margin-left: -12px;
    overflow: auto;
    width: 340px;
}

.photo-display > ul > li {
    display: inline-block;
    margin: 12px;
    cursor: pointer;
}

.photo-display > ul > li > img {
    border: 2px solid transparent;
    height: 75px;
    width: 75px;
}

.photo-display > ul > li.selected > img {
    border-color: rgb(242, 167, 1);
}

.photo-display > article {
    margin-left: 25px;
    position: relative;
    vertical-align: top;
    padding-right: 110px;
}

.photo-display > article > button {
    position: absolute;
    top: 140px;
    width: 45px;
    height: 42px;
}

.photo-display > article > button[disabled] {
    visibility: hidden;
}

#images-previous-photo {
    background: url(../images/previous-photo.png);
    left: 0;
}

#images-next-photo {
    background: url(../images/next-photo.png);
    right: 0;
}

.photo-display > article > figure {
    position: relative;
    left: 60px;
    margin-right: 10px;
    text-align: center;
    width: 500px;
}

.photo-display > article > figure > img {
    margin-bottom: 20px;
    max-width: 500px;
    max-height: 330px;
}

.photo-display > article > figure > figcaption {
    text-align: left;
}

.photo-display > article > figure > figcaption > h1 {
    font-size: larger;
    margin-bottom: 15px;
}

#images-close-button {
    background: url(../images/close.png);
    height: 17px;
    margin-left: -80px;
    position: absolute;
    top: 10px;
    width: 17px;
}

.album-selector {
    background-image: url(../images/album-selector-background.png);
    bottom: 80px;
    height: 140px;
    position: fixed;
    width: 100%;
    text-align: center;
    z-index: 100;
    overflow: hidden;
    -webkit-transition: height 100ms linear, padding 100ms linear;
    -moz-transition: height 100ms linear, padding 100ms linear;
    -ms-transition: height 100ms linear, padding 100ms linear;
    -o-transition: height 100ms linear, padding 100ms linear;
    transition: height 100ms linear, padding 100ms linear;
}

.album-selector.hidden {
    display: block !important;
    height: 0;
    padding: 0;
}

.album-selector > * {
    text-align: left;
}

.album-selector > button {
    position: absolute;
    width: 10px;
    height: 18px;
    margin-top: -9px;
    top: 50%;
}

#images-album-scroll-left {
    background: url(../images/album-scroll-left.png);
    left: 15px;
}

#images-album-scroll-right {
    background: url(../images/album-scroll-right.png);
    right: 15px;
}

.album-selector > ul {
    display: inline-block;
    font-size: 0; /* to get rid of inline-block induced spaces */
    overflow: hidden;
}

.album-selector > ul > li {
    display: inline-block;
    padding: 10px 10px 10px 40px;
    cursor: pointer;
    -webkit-transition: margin-left 100ms linear, padding 100ms linear;
    -moz-transition: margin-left 100ms linear, padding 100ms linear;
    -ms-transition: margin-left 100ms linear, padding 100ms linear;
    -o-transition: margin-left 100ms linear, padding 100ms linear;
    transition: margin-left 100ms linear, padding 100ms linear;
}

.album-selector > ul > li > figure {
    display: table-row;
    font-size: 16px; /* Reset from above. NB: initial doesn't work in Firefox. */
}

.album-selector > ul > li > figure > img,
.album-selector > ul > li > figure > figcaption {
    display: table-cell;
}

.album-selector > ul > li > figure > img {
    max-width: 180px;
    max-height: 120px;
}

.album-selector > ul > li > figure > figcaption {
    padding: 10px;
    vertical-align: top;
}

.album-selector > ul > li > figure > figcaption > h1 {
    margin-bottom: 10px;
}
