html,
body {
    height: 100%;
}

.wrap {
    min-height: 100%;
    height: auto;
    margin: 0 auto -60px;
    padding: 0 0 60px;
    background: url("../img/sys/background.jpg");
}

.wrap > .container.no-container-padding {
    padding: 0 15px 20px;
}

.wrap > .container {
    padding: 50px 15px 20px;
    background-color: rgba(255, 255, 255, 0.9);
}

.footer {
    border-top: 2px solid #337ab7;
    height: 60px;
    background-color: #ffffff;
    padding-top: 20px;
}

.page-header {
    margin-top: 0;
}

.not-set {
    color: #c55;
    font-style: italic;
}

/* add sorting icons to gridview sort links */
a.asc:after, a.desc:after {
    position: relative;
    top: 1px;
    display: inline-block;
    font-family: 'Glyphicons Halflings';
    font-style: normal;
    font-weight: normal;
    line-height: 1;
    padding-left: 5px;
}

a.asc:after {
    content: /*"\e113"*/ "\e151";
}

a.desc:after {
    content: /*"\e114"*/ "\e152";
}

.sort-numerical a.asc:after {
    content: "\e153";
}

.sort-numerical a.desc:after {
    content: "\e154";
}

.sort-ordinal a.asc:after {
    content: "\e155";
}

.sort-ordinal a.desc:after {
    content: "\e156";
}

.grid-view th {
    white-space: nowrap;
}

.hint-block {
    display: block;
    margin-top: 5px;
    color: #999;
}

.error-summary {
    color: #a94442;
    background: #fdf7f7;
    border-left: 3px solid #eed3d7;
    padding: 10px 20px;
    margin: 0 0 15px 0;
}

/* align the logout "link" (button in form) of the navbar */
.nav li > form > button.logout {
    padding: 15px;
    border: none;
}

@media (max-width: 767px) {
    .nav li > form > button.logout {
        display: block;
        text-align: left;
        width: 100%;
        padding: 10px 15px;
    }
}

/* main layout */
.main-layout_header {
    height: 300px;
    margin: 0 -15px 0 -15px;
    background-color: #ffffff;
}

.main-layout_header .row {
    margin: 0;
}

.main-layout_header .row > div {
    padding: 0;
}

.main-layout_header img.header-logo {
    max-height: 250px;
}

.main-layout_header .header-name {
    height: 51px;
    background: #337ab7;
    color: yellow;
    font-size: 30px;
    line-height: 50px;
}

/* Photo gallery */
#photo_gallery div[data-key], #photo_gallery_items div[data-key] {
    display: inline-block;
    margin: 0 15px 15px 15px;
}

.photo-album-card {
    display: inline-block;
}

.photo-album-card a, .photo-album-card a:hover {
    position: relative;
    color: white;
    text-decoration: none;
    font-size: 16px;
}

.photo-album-card img, .photo-item-card img {
    max-height: 150px;
    width: auto;
}

.photo-album-card .album-name {
    position: absolute;
    background: rgba(0, 0, 0, 0.5);
    bottom: 4px;
    right: 4px;
    left: 4px;
    padding: 3px 10px;
}

.photo-album-card .shadow-block {
    position: absolute;
    top: 4px;
    left: 4px;
    right: 4px;
    bottom: 4px;
    z-index: 2;
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.5) inset;
}

.photo-item-card {
    position: relative;
}

.photo-item-card .download-orig-image-button {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 25px;
    height: 25px;
    background: url("../img/download_icon.png") no-repeat;
    background-size: 25px 25px;
}

/* videogallery */
#video_gallery div[data-key], #video_gallery_items div[data-key] {
    display: inline-block;
    margin: 0 15px 15px 15px;
}

.video-album-card {
    display: inline-block;
}

.video-album-card a, .video-album-card a:hover {
    position: relative;
    color: white;
    text-decoration: none;
    font-size: 16px;
}

.video-album-card img, .video-item-card img {
    max-height: 150px;
    width: auto;
}

.video-album-card .album-name {
    position: absolute;
    background: rgba(0, 0, 0, 0.5);
    bottom: 4px;
    right: 4px;
    left: 4px;
    padding: 3px 10px;
}

.video-album-card .shadow-block {
    position: absolute;
    top: 4px;
    left: 4px;
    right: 4px;
    bottom: 4px;
    z-index: 2;
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.5) inset;
}

.video-item-card {
    position: relative;
}

.video-item-card img.play-button {
    position: absolute;
    width: 40px;
    height: 40px;
    bottom: -10px;
    left: -10px;
}

.panel {
    border-radius: 0;
}

.panel-heading {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

.no-padding {
    padding: 0;
}

.post-calendar .datepicker {
    margin: auto;
}

.calendar-wrap {
    padding-bottom: 15px;
    margin-bottom: 25px;

    border-top: 1px solid;
    border-right: 1px solid;
    border-bottom: 1px solid ;
    border-left: 3px solid;
    border-color: #337ab7;
}

.calendar-wrap .calendar-name {
    padding: 10px 10px;
    font-weight: 600;
    text-align: center;
    background: #337ab7;
    color: white;
}

.calendar-wrap .calendar-name .glyphicon {
    font-size: 16px;
}


