/* MASONRY GALLERY STYLES */

.photopress-gallery-masonry .gallery-item {
    position: relative;
    padding: 0px;
}

.photopress-gallery-masonry .gallery-item dd {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, .7);
    min-height: 30px;
    border: 0px;
    color: #ffffff;

}

.photopress-gallery-masonry .gallery-item:hover dd {
    display: none;
}

.photopress-gallery-masonry .gallery-item {

    margin: 0 0 10px 0;
}

.photopress-gallery-masonry .gallery-item img {
    display: block;
    max-width: 100%;
    height: auto;
}


.mfp-container {
    width: 1195px;
    min-height: 634px;
    height: 95vh;
    position: relative;
    margin: 40px auto;
    background: #fff;
    padding: 36px 0 40px;
}

.mfp-image-holder .mfp-content {
    width: 99%;
    height: 90%;
}

.mfp-content h2.posttitle {
    margin: -10px 0 5px;
    background-color: #fff;
}

.mfp-gallery .mfp-image-holder .mfp-figure {
    margin: 0;
    padding: 0;
    background: #fff;
    min-height: 555px;
    height: 100%;
}

.mfp-figure figure {
    margin: 0 20px 0 0;
    padding: 0 15px 0 0;
    width: 775px;
    display: block;
    float: left;
    height: 100%;
    overflow: auto;
}

img.mfp-img {
    padding: 0;
    margin: 0 auto;
    background: #fff;
    max-width: 780px !important;
    width: auto !important;
    max-height: 100% !important;
}

.mfp-bottom-bar {
    margin-top: 0;
    position: relative;
    top: 100%;
    left: 0;
    width: 100%;
    cursor: auto;
}

figcaption {
    width: 338px;
    display: block;
    float: right;
    max-height: 100%;
}

.mfp-title {
    color: #000;
    line-height: 1.4em;
}

figcaption h3 {
    margin-bottom: 10px !important;
    padding: 0;
}

.mfp-title p,
.photocredit {
    line-height: 1.4em;
    margin-top: 0;
    font-size: 14px;
    letter-spacing: 0.2px;
}

.mfp-title a {
    text-decoration: underline;
}

.mfp-arrow {
    top: 50% !important;
    bottom: 0;
}

.mfp-figure:after {
    box-shadow: none;
    background: #fff;
}

.mfp-counter {
    position: absolute;
    top: 105% !important;
    right: 50% !important;
    color: #000;
}

button.mfp-arrow-left::after {
    font-family: "Font Awesome 6 Free";
    content: "\f060";
    font-weight: 900;
}

button.mfp-arrow-right::after {
    font-family: "Font Awesome 6 Free";
    content: "\f061";
    font-weight: 900;
}

.mfp-arrow:before,
.mfp-arrow:after,
.mfp-arrow .mfp-b,
.mfp-arrow .mfp-a {
    font-weight: 100;
    font-size: 20px;
    border: 0;
}

.mfp-close {
    visibility: hidden;
}

.mfp-image-holder .mfp-close,
.mfp-iframe-holder .mfp-close {
    visibility: visible;
    display: block;
    top: -55px;
    right: 20px;
    position: absolute;
    padding: 0;
}

.mfp-image-holder .mfp-close::before {
    font-family: "Font Awesome 6 Free";
    content: "\f00d";
    font-weight: 900;
    color: #000;
}

div#popup-gallery,
div.popup-gallery {
    text-align: center;
    margin-bottom: 40px;
}

div.popup-gallery a {
    width: 32%;
    margin-right: 5px;
}

div.image-wrap {
    width: 100%;
    margin-bottom: 4px;
    display: inline-block;
}

div.image-wrap img {
    width: 100%;
}

.a.lightbox-link {
    -webkit-transition: all 0.25s ease-in-out 0s;
    -moz-transition: all 0.25s ease-in-out 0s;
    -ms-transition: all 0.25s ease-in-out 0s;
    -o-transition: all 0.25s ease-in-out 0s;
    transition: all 0.25s ease-in-out 0s;
}

.a.lightbox-link:hover {
    -webkit-opacity: 0.8;
    -khtml-opacity: 0.8;
    -moz-opacity: 0.8;
    -ms-opacity: 0.8;
    -o-opacity: 0.8;
    opacity: 0.8;
    filter: alpha(opacity=80);
}

.image-wrap figcaption {
    display: none;
}

.mfp-bg figcaption {
    display: block;
    position: absolute;
}

.lb-title {
    margin: 0.5em 0 0 0;
}

.lb-description {
    margin-left: 0;
    width: 100%;
}

.touchcarousel.minimal-light .arrow-icon {
    width: 25px !important;
}

div.mfp-wrap.mfp-gallery.mfp-auto-cursor.mfp-with-zoom.mfp-img-mobile.mfp-ready {
    overflow-x: auto !important;
}

#touchcarousel-1 .tc-meta a {
    display: inline-block !important;
}

@media only screen and (max-width: 1050px) {
    img.mfp-img {
        height: auto !important;
        max-width: 90% !important;
        max-height: 100% !important;
        width: 100% !important;
        margin: 0 auto;
    }

    .mfp-figure figure {
        margin: 0;
        padding: 0;
        width: 100%;
        display: block;
        float: left;
        height: 100%;
        overflow: auto;
        height: auto;
    }

    figcaption {
        width: 100%;
        font-size: 13px;
        float: none;
        display: inline-block;
        box-sizing: border-box;
        vertical-align: top;
        padding: 20px;
    }

    .mfp-container {
        width: 100%;
        min-height: 0;
        height: 100vh;
        margin: 0;
        padding: 50px 20px 20px 20px;
    }

    .mfp-image-holder .mfp-content {
        width: 99%;
        height: auto;
    }

    .mfp-title {
        text-align: left;
        line-height: 18px;
        color: #f3f3f3;
        word-wrap: break-word;
        padding-right: 0;
        overflow: scroll;
        max-height: 300px;
        color: #000;
    }

    .mfp-title p, .photocredit {
        color: #000;
    }

    .mfp-image-holder .mfp-close {
        top: -40px;
    }

    .mfp-arrow-right {
        right: -10px;
    }

    .mfp-arrow-left {
        left: -10px;
    }

}