/**** Modal ****/
.voipsupply-lightbox {
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    line-height: 100%;
    background-color: rgba(0,0,0,0.8);
    text-align: center;
}
.voipsupply-lightbox.active {
    display: block;
}

/**** Images Container ****/
.voipsupply-lightbox .lightbox-inner {
    display: inline-block;
    vertical-align: middle;
    box-shadow: 0px 0px 32px rgba(0,0,0,1);
    margin-top: 3em;
    padding: 1em;
    width: auto;
    height: auto;
    min-width: 48px;
    min-height: 48px;
    max-width: 75%;
    max-height: 75%;
    background-color: #f3f3f3;
    border: #dddddd solid 2px;
}

/**** Captions ****/
.voipsupply-lightbox .lightbox-caption {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 2.5em;
    line-height: 2.5em;
    background-color: #ffffff;
    border-bottom: #000000 solid 1px;
    box-shadow: 0px 2px 18px rgba(0,0,0,1);
    font-size: 1.5em;
    font-weight: bold;
    color: #444444;
    text-align: center;
}

/**** Loading Icon ****/
.voipsupply-lightbox .lightbox-inner.loading {
    background-image: url(../img/loader.gif);
    background-repeat: no-repeat;
    background-position: 50% 50%;
}
.voipsupply-lightbox .lightbox-inner.loading * {
    display: none;
}

/**** Images ****/
.voipsupply-lightbox .lightbox-image {
    display: none;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: auto;
}
.voipsupply-lightbox .lightbox-image.active {
    display: inline-block;
    vertical-align: middle;
}

/**** Controls ****/
/* Controls position is set programmatically; do not set manually */
.voipsupply-lightbox .lightbox-controls {
    display: none;
    position: absolute;
    cursor: hand;
    cursor: pointer;
    color: #ffffff;
}
.voipsupply-lightbox .lightbox-inner:hover .lightbox-controls {
    
}
.voipsupply-lightbox .lightbox-controls .ui-control-close {
    position: absolute;
    display: inline-block;
    outline: none;
    top: -28px;
    right: -28px;
    width: 28px;
    height: 28px;
    background-color: #000000;
    background-color: rgba(0,0,0,0.75);
    background-image: url(../img/sprites/icon-ui-close.png);
    background-repeat: no-repeat;
    background-position: 50% 50%;
    border: #444444 solid 1px;
    border-radius: 14px !important;
    text-decoration: none !important;
}
.voipsupply-lightbox .lightbox-controls .ui-control-left,
.voipsupply-lightbox .lightbox-controls .ui-control-right {
    position: absolute;
    display: inline-block;
    outline: none;
    top: 30%;
    width: 32px;
    height: 32px;
    background-color: #000000;
    background-color: rgba(0,0,0,0.75);
    background-repeat: no-repeat;
    background-position: 50% 50%;
    border: #000000 solid 1px;
    text-decoration: none !important;
}
.voipsupply-lightbox .lightbox-controls .ui-control-left {
    left: 0;
    background-image: url(../img/sprites/icon-ui-left.png);
}
.voipsupply-lightbox .lightbox-controls .ui-control-right {
    right: 0;
    background-image: url(../img/sprites/icon-ui-right.png);
}
.voipsupply-lightbox .lightbox-controls .ui-pager {
    position: absolute;
    display: inline-block;
    bottom: 0;
    right: 0;
    line-height: normal;
    padding: 0.5em;
    background-color: #000000;
    background-color: rgba(0,0,0,0.75);
    border: #000000 solid 1px;
    font-size: 1.05em;
    font-weight: bold;
}

/**** WordPress Compatibility ****/
body.admin-bar .voipsupply-lightbox,
body.admin-bar .voipsupply-lightbox .lightbox-caption {
    top: 28px;
}

/**** Responsiveness ****/
@media (max-width: 767px) {
    .voipsupply-lightbox .lightbox-inner {
        margin-top: 0;
    }
    .voipsupply-lightbox .lightbox-caption {
        display: none;
    }
}