@media screen and (min-height: 769px) {
    .overlaylighbox figcaption { padding: 7px 0 20px; }
    .overlaylighbox .ico_close { padding: 10px 0; }
}

@media screen and (min-height: 321px) and (max-height: 768px) {

    .overlaylighbox figcaption { padding-bottom: 10px; }
    .overlaylighbox .ico_close { padding: 7px 0; }
}

@media screen and (max-height: 320px) {

    .overlaylighbox figcaption { padding: 2px 0 3px; }
    .overlaylighbox .ico_close { padding: 2px 0; }

}

/**
 * 7.3.1 Beitragsmodul Overlay
 *
 * @subsection overlaylighbox
 */
.overlay {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 200;
    display: none;
    background: transparent url(../grafik/bg_overlay.png) repeat scroll 0 0;
}

.overlaylighbox {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    position: absolute;
    left: 50%;
    z-index: 201;
    min-width: 150px;
    min-height: 150px;
    padding: 0 11px;
    background: #fff url(../grafik/ico_preloader.gif) no-repeat scroll center center;
}

.overlaylighbox .ico_close {
    display: block;
    text-align: right;
    cursor: pointer;
}

.overlaylighbox figcaption {
    font-size: 0.8571em; /* 12px */
    line-height: 1.5em; /* 18px */
    color: #333;
}

.overlay.gallery figcaption {
    box-sizing: border-box;
    width: 100%;
    border-right: 70px solid transparent;
    /* nur eine zeile *
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    */
}

.overlaylighbox .manualteaserpicture {
    position: relative;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.overlaylighbox .manualteaserpicture:before {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    padding-bottom:56.25%; /* 16:9 */
    background: rgba(0,0,0,0);
    content: "";
}

.overlay.gallery .gal {
    display:block;
}

.overlay .gal {
    display:none;
}

.overlay .skip {
    position:absolute;
    top: 50%;
    margin:-15px 15px 0;
    cursor:pointer;
    transition: opacity .5s ease-out;
}

.overlay .skip:focus,
.overlay .skip:hover {
    transition: opacity .05s;
}

.overlay .skip .ico:before {
    font-size:30px;
    color: #e8e8e8;
    text-shadow: 0 0 4px #333;
}

.overlay .skip.back {
    left:0;
    right:auto;
}

.overlay .skip.forward {
    left:auto;
    right:0;
}

.overlay .manualteaserpicture img {
    transition: opacity .2s;
}

.overlay .manualteaserpicture img.loading {
    opacity:0;
}

.overlay .counter {
    position:absolute;
    right:11px;
    bottom:23px;
    font:italic 13px/1 'Georgia';
    color:#333;
}