/* MILKBOX CSS */
#mbox-overlay {
    background-color: #14171F; /* set the Milkbox overlay color // opacity: see the js options */
    z-index: 50000;
    cursor: pointer;
}

/* Main box */
#mbox-mainbox {

    /* For default width and height, see the js options */
    top: 0;/* overwritten in the js options to properly position the main box when activated in a scrolled window */
    background-color: transparent;/* set the main box background color */
    border: 0 solid transparent;/* set the main box border */
    padding: 0;/* set the main box padding */
}

/* Where the files actually are injected */
#mbox-filebox {
    margin: 0;
    padding: 0;
    border: none;
    overflow: hidden;
    position: relative;
}

#mbox-filebox img,
#mbox-filebox iframe,
#mbox-filebox swf {
    border: none;
}

/*this class is for styling the inner file box*/

/*these styles will be visible after the first is loaded */
.mbox-filebox-decorations {
    border: none;
    padding: 0;
}

/* *** BOTTOM *** */

/* container for controls and caption */
#mbox-bottom {

    /* set text options */
    font-family: 'Lato', Arial, "Helvetica Neue", Helvetica, sans-serif;
    font-weight: normal;
    font-size: 12px;
    color: #656565;
    line-height: 1.4em;
    text-align: left;
    margin: 0 0 0 0;
    min-height: 50px;
}

/* controls/navigation */

/* be careful if you change buttons dimensions */

#mbox-controls {
    width: 100% !important;
    position: absolute;
    top: 0;
    min-height: 100%;
}

#mbox-count {
    display: none !important;
}

#mbox-prev,
#mbox-next {
    position: absolute;
    top: 0;
    height: 100%;
    width: 50%;
}

#mbox-next {
    right: 0;
}

#mbox-filebox:before,
#mbox-filebox:after {
    border-color: rgba(255, 255, 255, 0.6);
    border-style: solid;
    border-width: 3px 3px 0 0;
    content: "";
    height: 1.5em;
    position: absolute;
    right: 40px;
    top: 50%;
    -ms-transform: rotate(45deg) translate(0, -50%);
    -webkit-transform: rotate(45deg) translate(0, -50%);
    transform: rotate(45deg) translate(0, -50%);
    width: 1.5em;
    -webkit-transition: border-color 0.3s;
    transition: border-color 0.3s;
}

#mbox-filebox:before {
    right: auto;
    left: 40px;
    -ms-transform: rotate(-135deg);
    -webkit-transform: rotate(-135deg);
    transform: rotate(-135deg);
}

#mbox-close {
    position: absolute;
    top: 0;
    right: 0;
    height: 40px;
    width: 40px;
    opacity: 0.75;
    z-index: 1000;
}

#mbox-close:after {
    content: "x";
    position: absolute;
    right: 13px;
    top: 0;
    color: #fff;
    line-height: 30px;
    font-size: 30px;
    font-weight: 300;
}

#mbox-close:hover,
#mbox-prev:hover,
#mbox-next:hover,
#mbox-playpause:hover {
    opacity: 1;
}

/* description */
#mbox-caption {
    color: #fff;
    padding: 5px 5%;
    text-transform: uppercase;
    font-size: 13px;
    line-height: 22px;
    font-weight: 300;
    text-shadow: 1px 1px 1px #000;
    position: absolute;
    overflow-x: hidden;  /* make sure the controls at the right remain accessible, even for small images with very large filenames: those would otherwise overlap those controls at right */
    height: auto !important;
    min-height: 40px !important;
    overflow: hidden;
    margin-right: 0 !important;
    width: 90% !important;
    overflow: scroll;
    background-color: rgb(0, 0, 0) !important; /* The Fallback */
    background-color: rgba(0, 0, 0, 0.5) !important;
}

.mbox-loading {
    background: url(default/loader.gif) no-repeat center #14171f;
    padding: 10px;
    background-size: 24px 24px;
}

/* IMAGE: loading gif */
.mbox-reset {
    clear: both;
    height: 0;
    margin: 0;
    padding: 0;
    font-size: 0;
    overflow: hidden;
}