.blackout-gallery {
    background-color: #0a0a0a;
    position: relative;
    cursor: pointer;
    color: #FFFFFF;
    z-index: 10;
    font-size: 14px;
    font-size: 1rem;
    padding: 16px;
    display: inline-block;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    width: auto;
    max-width: 100%;
    *zoom: 1;
    *display: inline;
}

.blackout-gallery button {
    cursor: pointer;
}

.blackout-gallery.fullscreen {
    cursor: auto;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    z-index: 100000;
}

.blackout-gallery > .image-data-wrap {
    display: none;
}

.blackout-gallery > .main-display > .ad {
    display: none;
    width: 300px;
}

.blackout-gallery.fullscreen .main-display > .ad {
    display: block;
    vertical-align: middle;
    position: relative;
}

.blackout-gallery.fullscreen .main-display > .ad.mr {
    margin-top: -125px;
}

.blackout-gallery.fullscreen .main-display > .ad.hp {
    
}

.blackout-gallery.fullscreen .main-display .ad > .title {
    position: absolute;
    bottom: 100%;
    width: 100%;
    text-align: left;
    font-weight: bold;
    color: #777777;
}

.blackout-gallery > .main-display {
    position: relative;
}

.blackout-gallery > .main-display .display-image img {
    max-width: 100%;
    min-width: 60px;
    min-height: 60px;
    margin: 0;
}

.blackout-gallery.fullscreen > .main-display {
    position: absolute;
    left: 0;
    right: 320px;
    top: 100px;
    bottom: 100px;
}

.blackout-gallery > .main-display .display-image img {
    vertical-align: bottom;
}

.blackout-gallery button {
    background-color: #d99100;
    font-size: 120%;
    border-radius: 3px;
    border: none;
    color: #FFFFFF;
}

.blackout-gallery.fullscreen > .main-display > .display-image {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
}

.blackout-gallery > .main-display > .display-image > .image {
    text-align: center;
}

.blackout-gallery.fullscreen > .main-display > .display-image > .image {
    height: 100%;
    width: 100%;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center center;
    -ms-behavior: url('/js/htc/backgroundsize.min.htc');
}

.blackout-gallery.fullscreen > .main-display > .display-image > .caption-row {
    height: 100px;
    overflow: auto;
    overflow-x: hidden;
    overflow-y: auto;
}

.blackout-gallery.fullscreen > .main-display > .display-image > .caption-row > .caption {
    padding: 10px 10px 10px 80px;
    overflow: hidden;
}

.blackout-gallery.fullscreen > .main-display > .display-image > .caption-row > .caption p {
    padding: 0;
    margin: 5px 0 0 0;
}

.blackout-gallery.fullscreen > .main-display > .display-image > .caption-row > .caption p:first-child {
    margin-top: 0;
}

.blackout-gallery.fullscreen .caption a {
    color: #DDD;
}

.blackout-gallery.fullscreen > .main-display > .ad {
    position: absolute;
    top: 0;
    left: 100%;
    margin: 0 0 0 10px;
    width: 300px;
    overflow: visible;
}

.blackout-gallery:hover button.slideshow, .blackout-gallery button.slideshow:hover {
    background-color: #EEEEEE;
    color: #333333;
}

.blackout-gallery:active button.slideshow, .blackout-gallery button.slideshow:active {
    background-color: #DDDDDD;
    box-shadow: none;
}

.blackout-gallery button.slideshow {
    font-weight: bold;
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;
}

.blackout-gallery > .header {
    position: relative;
    text-align: left;
    height:100px;
    overflow: hidden;
}


.blackout-gallery > .header .empty-vcenter-block {
    display: inline-block;
    height: 100%;
    width: 0;
    vertical-align: middle;
    *display: inline;
    *zoom: 1;
}

.blackout-gallery > .header .title {
    display: inline-block;
    text-align: left;
    vertical-align: middle;
    margin: 0 10px 0 80px;
    font-size: 26px;
    font-size: 1.8571428571428571428571428571429rem;
    *display: inline;
    *zoom: 1;
}

.blackout-gallery > .header .title > .number {
    color: #d99100;
}

.blackout-gallery.fullscreen > .header button.close {
    display: inline-block;
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 100;
    background-color: #333333;
    border: 1px solid #444444;
    box-shadow: none;
    color: #888888;
    font-weight: bold;
    font-size: 130%;
    line-height: 100%;
    float: right;
}

.blackout-gallery > .header > .action.buttons {
    position: absolute;
    right: 400px;
    bottom: 0;
}

.blackout-gallery > .header > .action.buttons > button.previous {
    margin-right: 10px;
}

.blackout-gallery > .header > .action.buttons > button.next {
    margin-left: 10px;
}

.blackout-gallery .hide-in-default, .blackout-gallery.table > .header.t-row {
    display: none;
}

.blackout-gallery.fullscreen .hide-in-default {
    display: block;
}

.blackout-gallery.fullscreen .hide-in-fullscreen {
    display: none;
}

@media only screen and (min-width: 0in) and (max-width: 8in) {

    .blackout-gallery > .header .title {
        font-size: 18px;
        margin-left: 0;
    }

    .blackout-gallery.fullscreen > .main-display {
        right: 0;
    }

    .blackout-gallery.fullscreen > .main-display > .display-image > .caption-row > .caption {
        padding-left: 0;
    }
    
    .blackout-gallery.fullscreen > .main-display > .display-image > .caption-row > .caption p {
        padding: 0;
        margin: 5px 0 0 0;
    }

    .blackout-gallery.fullscreen > .main-display > .display-image > .caption-row > .caption p:first-child {
        margin-top: 0;
    }

    .blackout-gallery > .header > .action.buttons {
        right: 0px;
    }

    .blackout-gallery.fullscreen > .main-display > .ad {
        display: none;
    }

}