/* Base Superbox Styles */
#superbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9998;
    width: 100%;
    height: 100%;
}

#superbox-wrapper {
    position: fixed;
    z-index: 9999;
    top: 0;
    display: table;
    width: 100%;
    height: 100%;
}

#superbox-container {
    position: relative;
    display: table-cell;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    vertical-align: middle;
}

#superbox {
    margin: 0 auto;
    padding: 0;
}

#superbox-container .loading {
    margin: 0;
    text-align: center;
}

/* IE7 */
*:first-child+html #superbox-container {
    position: absolute;
    top: 50%;
    display: block;
    height: auto;
}

*:first-child+html #superbox {
    position: relative;
    top: -50%;
    display: block;
}

/* IE6 - Thanks to Thickbox for IE expressions */
* html #superbox-container {
    position: absolute;
    top: 50%;
    display: block;
    height: auto;
}

* html #superbox {
    position: relative;
    top: -50%;
    display: block;
}

* html #superbox-overlay {
    position: absolute;
    height: expression(document.body.scrollHeight > document.body.offsetHeight ? document.body.scrollHeight + 'px' : document.body.offsetHeight + 'px');
}

* html #superbox-wrapper {
    position: absolute;
    margin-top: expression(0 - parseInt(this.offsetHeight / 2) + (document.documentElement && document.documentElement.scrollTop || document.body.scrollTop) + 'px');
}

/* Default Theme */
#superbox-overlay {
    background: #fff;
}

#superbox-container .loading {
    text-align: center;
    font-size: 40px;
    color: #fff;
}

#superbox {
    padding: 10px;
    background: #fff;
}

#superbox-innerbox {
    padding: 10px 0;
}

#superbox.image {
    text-align: center;
}

#superbox .close,
#superbox .nextprev {
    overflow: hidden;
    margin: 0;
    float: right;
    font-size: 14px;
    color: #fff;
    background: #561c20;
    padding: 10px;
    border-radius: 50px;
}

#superbox .close:hover,
#superbox .nextprev:hover {
    cursor: pointer;
    opacity: 0.5;
    transition: 0.4s;
}