/*
 * El Salvador — Memoria Viva
 * Shared site footer
 * Approved layout sourced from Historical Churches.
 */

footer.mv-site-footer {
    box-sizing: border-box;
    width: 100%;
    padding: 17px 25px;
    color: #243c35;
    background: #f7f3e9;
    border-top: 1px solid #c8b99b;
    font-family: Arial, sans-serif;
    font-size: 13px;
    line-height: 1.55;
}

footer.mv-site-footer a {
    color: inherit;
}

footer.mv-site-footer .photo-credit {
    font-size: 11px;
}

footer.mv-site-footer a[href^="mailto:"]:hover {
    text-decoration-thickness: 2px;
}

/* Original approved Churches layout */


/* Footer: left project name, centered contact, right photo credit */
footer {
    position:relative;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
}

/* Hide the old JavaScript-controlled contact placeholder */
footer #contact {
    display:none !important;
}

footer #mv-footer-email {
    position:absolute;
    left:50%;
    transform:translateX(-50%);
    color:inherit;
    text-decoration:underline;
    text-underline-offset:3px;
    white-space:nowrap;
    font-size:inherit;
}

footer #banner-photo-credit {
    margin-left:auto;
    text-align:right;
}

/* Smaller screens: prevent footer overlap */
@media(max-width:700px) {
    footer {
        flex-direction:column;
        align-items:center;
        justify-content:center;
        text-align:center;
        gap:7px;
    }

    footer #mv-footer-email {
        position:static;
        transform:none;
        max-width:100%;
        white-space:normal;
        overflow-wrap:anywhere;
    }

    footer #banner-photo-credit {
        margin-left:0;
        text-align:center;
    }
}


