/**
 * mBox
 */
 
 .mBox, #mBox img {
    cursor: pointer;
    max-width: 100%;
    height: auto;
}
 #mBox {
    display: none;
    align-items: center;
    justify-content: center;
    width: 800px;
    max-width: 100%;
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    z-index: 101;
    padding: 30px 30px 20px;
    text-align: center;
    flex-wrap: wrap;
    margin: auto;
    height: 100%;
    max-height: 100%;
    min-height: 100%;
}
#mBox .mBox-current-image-no { 
    font-size: 16px;
    color: #fff;
    display: block;
    text-align: left;
    font-weight: 600;
    line-height: 20px;
    position: absolute;
    left: 30px;
    top: 8px;
}
#mBox button.mBox-close {
    color: #FFF;
    opacity: 1;
    cursor: pointer;
    font-size: 24px;
    border: 0;
    padding: 0;
    background: transparent;
    line-height: 20px;
    width: 24px;
    height: 20px;
    text-align: right;
    position: absolute;
    right: 30px;
    top: 8px;
}
#mBox button.mBox-close span{
    line-height: 0;
}
#mBox .mBox-close:hover, #mBox .mBox-close:focus {
    color: #c5c5c5;
    text-decoration: none;
    opacity: .75;
}
#mBox .mBox-current {
    position: relative;
    background-color: #FFF;
    border-radius: 4px;
    flex: 1 1 auto;
    width: 100%;
    height: calc(100% - 90px);
}
figure.image {
    position: relative;
    display: block;
    max-width: 100%;
    height: 100%;
}
figure.image::before {
    content: '';
    position: relative;
    display: block;
    padding-bottom: 100%;
}
#mBox .mBox-current img {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}
#mBox .mBox-navigation {
    display: block !important;
    position: absolute;
    top: 50%;
    transform: translate(0 ,-50%);
    width: 100%;
    text-align: center;
    color: #FFF;
}
#mBox .mBox-previous {
    float: left;
    margin-left: -25px;
    font-size: 22px;
}
#mBox .mBox-next {
    float: right;
    margin-right: -25px;
    font-size: 22px;
}
#mBox .mBox-content {
    position: relative;
    text-align: center;
    padding: 10px 0;
    overflow: hidden;
    margin: 0 auto;
    width: 100%;
    flex: 0 0 auto;
    height: 90px;
}
#mBox .mBox-images {
    position: relative;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    overflow-x: auto;
    width: 100%;
    flex: 0 0 auto;
}
#mBox .mBox-image {
    position: relative;
    display: inline-block;
    vertical-align: middle;
    background-color: #fff;
    border-radius: 3px;
    margin: 0 5px;
    width: 80px;
    height: 80px;
}
#mBox .mBox-image::before {
    content: '';
    display: inline-block;
    padding-bottom: 100%;
    position: relative;
}
#mBox .mBox-image img {
    border-radius: 3px;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 3px;
}
#mBox .mBox-thumbnail-pagination {
    font-size: .55em;
}
#mBox p {
    padding: 0;
    margin: 0;
}
.body-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100;
    background-color: #000;
    opacity: .6;
    cursor: pointer;
}
.mbox-hide{
    overflow: hidden;
}
@media (max-width: 767px) {
    #mBox .mBox-previous{
        margin-left: -60px;
    }
    #mBox .mBox-next{
        margin-right: -60px;
    }
    #mBox {
        max-width: calc(100% - 40px);
        left: 20px;
        right: 20px;
        top: 40px;
        bottom: 20px;
        padding: 0;
        max-height: calc(100% - 60px);
        min-height: calc(100% - 60px);
    }
     #mBox .mBox-current-image-no { 
        left: 0;
        top: -20px;
    }
    #mBox button.mBox-close {
        right: 0;
        top: -20px;
    }
}
@media only screen and (max-width: 991px) and (orientation : landscape) { 
    #mBox {
        width: 500px;
        max-width:100%;
    }
}

#mBox .small {font-size: .8em;}
.circle_show { font-size: 16px; }
.image img { width: 100% }

#mBox .mBox-navigation-count {
    position: absolute;
    bottom: 0;
    text-align: left;
    width: 100%;
    z-index: 103;
    color: #FFF;
    margin-bottom: 0;
    padding: 3px;
    border-bottom-left-radius: 3px;
    border-bottom-right-radius: 3px;
}
#mBox .mBox-navigation-txt {
    font-style: italic;
    background-color: #00000040;
    padding: .4em .8em;
    border-bottom-left-radius: 3px;
    border-bottom-right-radius: 3px;
}
#mBox .mBox-current-image-title {
    float: right;
}
#mBox .mBox-thumbnail-pagination i {
    color: #bfbfbf;
    margin-right: .5em;
    cursor: pointer;
}
#mBox .mBox-thumbnail-pagination i.active {
    color: #565a5a;
}
#mBox .mBox-navigation .fas {
    cursor: pointer;
    display: inline-block;
    font-size: 1.8em;
    text-shadow: 0px 0 6px rgba(0, 0, 0, 0.45);
}