#overbox_blanker {
    position: fixed;
    background: rgba(0, 0, 0, 0.8);
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    z-index: 300;
    display: none;
}

#overbox_content {
    position: fixed;
    z-index: 500;
    display: none;
    border: 0;
    box-shadow: 1px 1px 3px #666666;
    min-width: 10px;
    min-height: 10px;
    max-width: 98%;
    max-height: 98%;
    cursor: zoom-in;
}

#zoom_in {
    display: none;
}

input[type=checkbox]:checked~label>img {
    transform: scale(2.0);
    cursor: zoom-out;
}

.overboxgallery {
    width: unset !important;
}

#overbox_left {
    position: fixed;
    left: 10px;
    top: calc(50% - 32px);
    z-index: 502;
    cursor: pointer;
}

#overbox_right {
    position: fixed;
    right: 10px;
    top: calc(50% - 32px);
    z-index: 502;
    cursor: pointer;
}

#overbox_close {
    position: fixed;
    right: 10px;
    top: 10px;
    z-index: 502;
    cursor: pointer;
}

#overbox_previews {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    text-align: center;
    z-index: 501;
    background: rgba(0, 0, 0, .5);
}

#overbox_previews a img {
    max-width: 32px;
    opacity: .6;
}

#overbox_previews:hover a img {
    max-width: 120px;
    opacity: .8;
}

#overbox_previews a.overbox_cur {
    opacity: 1;
}

#overbox_previews a img {
    border: 1px solid transparent;
}

#overbox_previews a.overbox_cur img {
    border: 1px solid #ffffff;
}

#overbox_close,
#overbox_left,
#overbox_right {
    background: rgba(200, 200, 200, .7);
    width: 40px;
    border-radius: 5px;
    padding: 10px;
}

@media screen and (max-width: 500px) {
    #overbox_previews:hover a img {
        max-width: 32px !important;
        opacity: .8;
    }
}

#overbox_previews,
#overbox_previews * {
    -webkit-transition: all .5s ease-in-out;
    -moz-transition: all .5s ease-in-out;
    -o-transition: all .5s ease-in-out;
    -ms-transition: all .5s ease-in-out;
    transition: all .5s ease-in-out;
}