/**
 * mBox
 */
 
 .mBox, #mBox img {
    max-width: 100%;
    height: auto;
}

#mBox {
    display: none;
    position: absolute;
    top: 25px;
    left: 50%;
    transform: translate(-50%, 0);
    z-index: 601;
    text-align: center;
    width: 90%;
}

#mBox:focus-visible {
    outline: none;
}

@media (min-width: 576px) {
    #mBox {
        width: 540px;
    }
}

@media (min-width: 768px) {
    #mBox {
        width: 720px;
    }
}

@media (min-width: 992px) {
    #mBox {
        width: 960px;
    }
}

#mBox .mBox-current figure {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
}

#mBox .mBox-current figure img {
    /*width: 100%;*/
    text-align: center;
    margin: 0;
}

#mBox .mBox-current #mBox_info {
    width: 100%;
    padding-left: 16px;
}

@media (min-width: 768px) {
    #mBox .mBox-current {
        flex-wrap: nowrap;
    }

    #mBox .mBox-current figure {
        flex-wrap: nowrap;
    }

    #mBox .mBox-current figure img {
        /*width: 75%;*/
        text-align: left;
    }

    #mBox .mBox-current #mBox_info {
        min-width: 25%;
        padding-left: 16px;
    }
}

#mBox .mBox-current #mBox_info .mBox-img-title,
#mBox .mBox-current #mBox_info .mBox-img-credit {
    text-align: left;
    color: #fff;
}

#mBox .mBox-current #mBox_info .mBox-img-credit {
    margin-top: 20px;
    font-size: 12px;
    font-style: italic;
}

@media (min-width: 768px) {

    #mBox .mBox-current #mBox_info .mBox-img-credit {
        margin-top: 40px;
    }
}

#mBox .mBox-current #mBox_info .mBox-img-credit label {
    display: block;
    margin-bottom: 10px;
}

@media (min-width: 768px) {
    #mBox .mBox-current #mBox_info .mBox-img-credit label {
        margin-bottom: 20px;
    }
}

#mBox .mBox-current img {
    padding: 3px;
    max-height: 60vh;
    height: auto;
    width: auto;
}

#mBox .mBox-content {
    margin-top: 10px;
    position: relative;
    text-align: center;
    padding: 3px 0px;
    overflow: hidden;
    width: 100%;
    height: 80px;
}

@media (min-width: 768px) {
    #mBox .mBox-content {
        width: 75%;
        height: 120px;
    }
}

#mBox .mBox-content .mBox-images-wrapper {
    width: calc(100% - 120px);
    margin: 0 60px;
    overflow: hidden;
    position: relative;
}

#mBox .mBox-content .mBox-images img {
    width: 100%;
    height: 70px;
    object-fit: contain;
    cursor: pointer;
    border: 1px solid #dedede;
    background-color: #dedede;
}

@media (min-width: 768px) {
    #mBox .mBox-content .mBox-images img {
        height: 100px;
    }
}

@media (max-width: 768px) {
    #mBox .mBox-gallery-title {
        font-size: 22px;
    }
}

#mBox .mBox-gallery-title,
#mBox .mBox-gallery-summary {
    color: #fff;
    text-align: left;
    margin-right: 60px;
}

#mBox .mBox-gallery-summary {
    margin-bottom: 20px;
    font-size: 14px;
}

@media (min-width: 768px) {
    #mBox .mBox-gallery-summary {
        margin-bottom: 30px;
        font-size: 16px;
    }
}

#mBox .mBox-images {
    position: relative;
    display: block;
    width: 100%;
    white-space: nowrap;
    
}

#mBox .mBox-image {
    position: relative;
    display: inline-block;
    padding: 8px 6px;
}

#mBox .mBox-image img {
    position: relative;
    display: inline-block;
    padding: 0px;
}

#mBox .mBox-navigation-count {
    position: absolute;
    bottom: 0;
    text-align: left;
    width: 100%;
    z-index: 603;
    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 {
    font-size: .55em;
}

#mBox .mBox-thumbnail-pagination i {
    color: #bfbfbf;
    margin-right: .5em;
    cursor: pointer;
}

#mBox .mBox-thumbnail-pagination i.active {
    color: #565a5a;
}

#mBox .mBox-navigation {
    display: block;
    position: absolute;
    top: 50%;
    transform: translate(0 ,-50%);
    width: 100%;
    text-align: center;
    padding: 0 .6em;
    color: #FFF;
}

#mBox .mBox-navigation .point {
    cursor: pointer;
    display: inline-block;
    height: 30px;
    width: 30px;
}

#mBox .mBox-next {
    float: right;
    background: url(../images/arrow-white-medium.svg) no-repeat center center;
}

#mBox .mBox-previous {
    float: left;
    background: url(../images/arrow-white-medium.svg) no-repeat center center;
    transform: rotate(180deg);
}

#mBox .mBox-close {
    font-size: 1.6em;
    text-shadow: none;
    color: #FFF;
    line-height: 1;
    opacity: 1;
    cursor: pointer;
    border: 2px solid white;
    border-radius: 50%;
    height: 30px;
    width: 30px;
}

#mBox button.mBox-close {
    font-size: 1.6em;
    position: absolute;
    right: 0;
    top: 0;
    padding: 0;
    background: transparent;
}

#mBox .mBox-close span {
    display: block;
    margin-top: -2px;
}

#mBox .mBox-close:hover, #mBox .mBox-close:focus {
    color: #c5c5c5;
    text-decoration: none;
    opacity: .75;
}

.body-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 600;
    background-color: #000;
    opacity: .95;
}

#mBox .hide {
    display: none!important;
}

#mBox .small {
    font-size: .8em;
}

#mBox p {
    padding: 0;
    margin: 0;
}