/* Latest Projects — larger Magnific Popup lightbox + prev/next */

.mfp-bg {
    opacity: 0.9;
    background: #000;
}

.mfp-wrap.latest-projects-lightbox .mfp-content,
.mfp-wrap .mfp-content {
    max-width: 96vw;
}

.mfp-figure {
    line-height: 0;
}

.mfp-img {
    max-height: 88vh !important;
    padding: 0 !important;
}

.mfp-figure:after {
    top: 0;
    bottom: 40px;
}

.mfp-title {
    font-size: 16px;
    line-height: 1.4;
    padding: 10px 0 0;
}

.mfp-counter {
    font-size: 14px;
    top: 0;
    right: 0;
}

/* Bigger prev / next arrows */
.mfp-arrow {
    width: 80px !important;
    height: 80px !important;
    margin-top: -40px !important;
    opacity: 0.95;
}

.mfp-arrow:before,
.mfp-arrow:after,
.mfp-arrow .mfp-b,
.mfp-arrow .mfp-a {
    margin-top: 0 !important;
    margin-left: 0 !important;
    border: none !important;
    width: 80px !important;
    height: 80px !important;
    top: 0 !important;
    left: 0 !important;
}

.mfp-arrow:before,
.mfp-arrow .mfp-b {
    display: none !important;
}

.mfp-arrow:after,
.mfp-arrow .mfp-a {
    content: "" !important;
    display: block !important;
    position: absolute;
    top: 0;
    left: 0;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.35) inset;
}

.mfp-arrow-left:after,
.mfp-arrow-left .mfp-a {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='15 18 9 12 15 6'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 42px 42px;
}

.mfp-arrow-right:after,
.mfp-arrow-right .mfp-a {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='9 18 15 12 9 6'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 42px 42px;
}

.mfp-arrow:hover:after,
.mfp-arrow:hover .mfp-a {
    background-color: rgba(255, 255, 255, 0.32);
}

.mfp-close {
    width: 50px !important;
    height: 50px !important;
    font-size: 36px !important;
    opacity: 0.95 !important;
    right: 10px !important;
    top: 10px !important;
}

@media (max-width: 767px) {
    .mfp-arrow {
        width: 56px !important;
        height: 56px !important;
        margin-top: -28px !important;
    }

    .mfp-arrow:after,
    .mfp-arrow .mfp-a {
        width: 56px !important;
        height: 56px !important;
        background-size: 30px 30px;
    }
}
