#lightbocks-mask {
    position: fixed;
    z-index: 2010;
    width: 100%;
    height: 100%;
    min-height: 100vh;
    top:0;
    left:0;
    background-color: black;
    opacity: 0.7;
}

#lightbocks {
    position: fixed;
    z-index: 2020;
    width: 100%;
    top: 0;
    left: 0;
    height: 100%;
    margin: 0 auto;
    overflow-y: scroll;
}

#lightbocks-loader {
    position: absolute;
    z-index: 2030;
    top: 40%;
    left: 45%;
    width: 10%;
}

.lightbocks-ajax-loader {
    width: 100%;
}

#lightbocks-container {
    position: absolute;
    z-index: 2040;
    width: 100%;
    overflow: hidden;
    margin: auto;
    top: 0; left: 0; bottom: 0; right: 0;
}

.diapo {

}

#thumbs-wrapper {
    width: 100%;
    overflow: scroll;
    /*margin: 0 auto;*/
}

#thumbs-box {
    width: auto;
    max-width: 1200px;
    margin: 1em auto 2em auto;
}

.thumbs-box-element {
    float: left;
    width: 24%;
    margin-top: 1em;
    margin-left: 1%;
    cursor: pointer;
    max-width: 300px;
    max-height: 200px;
    min-width: 180px;
    overflow: hidden;
}

#caption {
    text-align: center;
    margin: 1.1em 0;
    font-size: 1.2rem;
    line-height: 2.5rem;
}

.caption-text {

}

#prevImg, #nextImg {
    color: white;
    cursor: pointer;
}

.caption-text, #prevImg, #nextImg {
    color: white;
    background-color: black;
    opacity: 0.8;
    padding: 1em;
}

.credit-photo {
    clear: both;
    float: none;
    width: 100%;
    margin-top: 2em;
    text-align: right;
}

.credit-photo p {
    font-size: 0.9rem;
    padding-right: 1%;
}

/* iPhone 5 & 5S in portrait */
@media only screen
and (min-device-width : 320px)
and (max-device-width : 568px)
and (orientation : portrait) {
    #caption {
        font-size: 1rem;
    }
}
