/* Zest layout fixes. Loaded before the theme's Additional CSS, so selectors are made
   more specific (html body …) where they need to win over rules there. */

/* -------------------------------------------------------------------------
   Contact page, phones: full-width map, no left indent, email fits on screen.
   Before: map 270px wide, info block indented 70px, email ran 32px off-screen.
   ------------------------------------------------------------------------- */
@media (max-width: 767px) {
    html body .vc_row:has(.contact-info-wrapper) {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }

    html body .contact-map-wrapper {
        width: 100vw;
        margin-left: calc(50% - 50vw);
        height: 75vw;
        padding-bottom: 0;
    }

    html body .contact-info-wrapper {
        padding: 40px 0 10px 0;
    }

    html body .contact-info-block .info-value {
        letter-spacing: 0.04em;
        overflow-wrap: anywhere;
    }
}

/* -------------------------------------------------------------------------
   Weddings page: the footer is champagne there, so the white logo vanished.
   Darken the logo, and make the outline buttons dark text instead of gold-on-champagne.
   ------------------------------------------------------------------------- */
html body.page-id-5332 .mkdf-page-footer .widget_media_image img {
    filter: brightness(0);
    opacity: 0.82;
}

/* Must outrank "body.page-id-5332 .mkdf-content a:not(...)x6" in Additional CSS (specificity 0,8,2),
   hence the extra wrapper classes and [href][class]. */
html body.page-id-5332 .mkdf-content .zest-prefooter-wrapper .zest-prefooter-card .prefooter-buttons a.btn-secondary[href][class] {
    color: var(--wedding-dark) !important;
}

html body.page-id-5332 .mkdf-content .zest-prefooter-wrapper .zest-prefooter-card .prefooter-buttons a.btn-secondary[href][class]:hover {
    color: var(--wedding-white) !important;
}
