/*
 * Shared Magnific Popup theme.
 *
 * Portfolio detail pages are AJAX fragments. On interior pages they inherit
 * the dark page theme, but on the homepage the fragment opens over a light
 * default popup surface and its text can become invisible. These rules give
 * every AJAX popup the same emerald/gold treatment.
 */

.mfp-content {
    background: #031712 !important;
    color: #f4eee1 !important;
}

.mfp-content .bg-white,
.mfp-content .bg-gray,
.mfp-content .blog-description,
.mfp-content .post-details {
    background: transparent !important;
    color: #f4eee1 !important;
}

.mfp-content h1,
.mfp-content h2,
.mfp-content h3,
.mfp-content h4,
.mfp-content h5,
.mfp-content h6 {
    color: #f4eee1 !important;
    font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif !important;
    font-weight: 500 !important;
}

.mfp-content p,
.mfp-content li,
.mfp-content .text-medium,
.mfp-content .text-small {
    color: rgba(244, 238, 225, 0.82) !important;
    font-family: "Montserrat", Arial, sans-serif !important;
}

.mfp-content a {
    color: #e6cf99 !important;
}

.mfp-content strong {
    color: #f4eee1 !important;
}

.mfp-content .opacity-medium,
.mfp-content .opacity-full,
.mfp-content .opacity-full-dark {
    background: rgba(2, 18, 14, 0.72) !important;
}

.mfp-content .mfp-close,
.mfp-content button.mfp-close {
    background: transparent !important;
    color: #e6cf99 !important;
    opacity: 1 !important;
}

.mfp-content .separator-line-thick,
.mfp-content .brando-sep-1,
.mfp-content .bg-fast-yellow {
    background: #c8a96a !important;
}

@media (max-width: 767px) {
    /* Keep the fragment's text close to the top of the modal on phones
       instead of letting the full-height slider push it below the fold. */
    .mfp-content .full-screen {
        min-height: 42vh !important;
    }

    .mfp-content h1 {
        font-size: clamp(32px, 8vw, 44px) !important;
        line-height: 1.05 !important;
    }
}
