html, body {height: 100%;}
#wrap {min-height: 100%;}
#main {overflow:auto; padding-bottom: 150px;}  /* must be same height as the footer */
#footer {
    position: relative;
    margin-top: -75px; /* negative value of footer height */
    height: 75px;
    clear:both;
    border-top: 2px solid #ddd;
    padding: 10px 20px 10px 20px;
    font-size: 14px;
}
/*Opera Fix*/
body:before {
    content:"";
    height:100%;
    float:left;
    width:0;
    margin-top:-32767px;
}
h1, h2, h3 {
    margin-top: 0px;
}
div.thumbnail {
    display: inline-table;
    height: 210px;
    width: 230px;
    vertical-align: bottom;
    position: relative;
}
.thumbnail .img-container {
    display: table-cell;
    width: 220px;
    height: 165px;
    vertical-align: middle;
    text-align: center;
}
.thumbnail img {
    max-height: 165px;
    max-width: 220px;
    overflow: hidden;
}
.thumbnail .caption {
    color: #777;
    position: absolute;
    bottom: 0px;
}
.thumbnail .caption.truncate {
    width: 220px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.thumbnail a:hover {
    text-decoration: none;
}
.thumbnail .play-button {
    display: none;
}
.thumbnail.movie .play-button {
    display: block;
    position: absolute;
    top: 43%;
    right: 0;
    left: 0;
    margin: -64px auto 0;
    width: 128px;
    height: 128px;
    background: url(/js/lib/blueimp-gallery/img/video-play.png) center no-repeat;
    opacity: .6;
    cursor: pointer;
}
.thumbnail.movie .play-button:hover {
    opacity: 1;
}
.subalbum {
    display: inline-block;
    margin: 20px 40px 20px 0px;
    width: 100px;
}
.subalbum .caption {
    text-align: center;
}
.blueimp-gallery > .caption {
    position: absolute;
    top: 15px;
    left: 15px;
    margin: 0 40px 0 0;
    color: #fff;
    text-shadow: 0 0 2px #000;
    opacity: .8;
    display: none;
}
.blueimp-gallery-controls > .caption {
    display: block;
    font-size: 18px;
}
.blueimp-gallery > .caption .title {
    position: relative;
    margin: auto;
    font-size: 22px
}
.blueimp-gallery > .caption .date,
.blueimp-gallery > .caption .camera
{
    font-size: 14px;
    opacity: .6;
}
.blueimp-gallery > .caption p {
    margin: 0px;
}
ol.double-spaced li {
    margin-bottom: 20px;
}
#loader {
    position: fixed;
    left: 0px;
    top: 0px;
    width: 100%;
    height: 100%;
    z-index: 9999;
    background: url('/js/lib/blueimp-gallery/img/loading.gif') 50% 50% / 64px no-repeat rgb(0,0,0);
}

/*
#overlay {
    z-index: 1000;
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: #000;
}
#loading {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 64px;
    height: 64px;
    margin: -32px 0 0 -32px;
}
*/

/*
 * Cropped gallery thumbnails.
 */
.cropped-thumbnail {
    /* Small size for smartphone portrait (2 per row), overridden by media queries below. */
    width: 140px;
    height: 140px;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    overflow: hidden;
    float: left;
    margin: 2px;

    position: relative;
    vertical-align: middle;
    text-align: center;
}
.cropped-thumbnail img {
    min-height: 100%;
    min-width: 100%;
    /* IE 8 */
    -ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";
    /* IE 5-7 */
    filter: alpha(opacity=0);
    /* modern browsers */
    opacity: 0;
}
/* iPhone 5s landscape */
@media (min-width: 321px) {
    /*
    .cropped-thumbnail {
        width: 130px;
        height: 130px;
    }
    */
}
@media (min-width: 768px) {
    /*
    .cropped-thumbnail {
        width: 165px;
        height: 165px;
    }
    */
}
.cropped-thumbnail .play-button {
    display: none;
}
.cropped-thumbnail.movie .play-button {
    display: block;
    position: absolute;
    top: 50%;
    right: 0;
    left: 0;
    margin: -64px auto 0;
    width: 128px;
    height: 128px;
    background: url(/js/lib/blueimp-gallery/img/video-play.png) center no-repeat;
    opacity: .6;
    cursor: pointer;
}
.cropped-thumbnail.movie .play-button:hover {
    opacity: 1;
}
.cropped-thumbnail .img-container {
    position: relative;
    /*
    display: table-cell;
    width: 220px;
    height: 165px;
    */
    vertical-align: middle;
    text-align: center;
}
