/* Additive styles: galleries, history, contact, maps and daily reflection. */
/* Replace the theme's generic dome with the mosque's own entrance tower. */
.support-section .support-dome {
    display: none;
}

.support-section .support-inner::after {
    content: "";
    position: absolute;
    width: 520px;
    height: 430px;
    right: -20px;
    bottom: -105px;
    z-index: 0;
    pointer-events: none;
    /*background: url("masjid-ayesha-minaret.svg") center/contain no-repeat;*/
    opacity: .58;
}

@supports ((mask-image:url("masjid-ayesha-minaret.svg")) or (-webkit-mask-image:url("masjid-ayesha-minaret.svg"))) {
   /* .support-section .support-inner::after {
        background: var(--ayesha-accent,#b99b55);
        -webkit-mask: url("masjid-ayesha-minaret.svg") center/contain no-repeat;
        mask: url("masjid-ayesha-minaret.svg") center/contain no-repeat;
    }*/
}

@media (max-width:760px) {
    .support-section .support-inner::after {
        width: 300px;
        height: 248px;
        right: -50px;
        bottom: -116px;
        opacity: .34;
    }
}

.mayes-gallery [hidden],
.mayes-map-wrap [hidden],
.mayes-verse [hidden],
.mayes-lightbox [hidden] {
    display: none!important;
}

.mayes-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 30px;
}

.mayes-section-head>div:first-child {
    min-width: 0;
}

.mayes-section-head .ayesha-section-title {
    margin-bottom: 14px;
}

.mayes-section-intro {
    max-width: 620px;
    margin: 0;
    color: #5d7067;
    font-size: 16px;
    line-height: 1.8;
}

.mayes-gallery .mayes-gallery-track {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 24px;
}

.mayes-gallery[data-count="1"] .mayes-gallery-track {
    grid-template-columns: minmax(0,1fr);
}

.mayes-gallery[data-count="2"] .mayes-gallery-track {
    grid-template-columns: repeat(2,minmax(0,1fr));
}

.mayes-gallery .mayes-gallery-item {
    display: flex;
    flex-direction: column;
    min-width: 0;
    margin: 0;
}

.mayes-gallery--editorial:not([data-count="1"]):not([data-count="2"]) .mayes-gallery-item:first-child {
    grid-column: span 2;
    grid-row: span 2;
}

.mayes-gallery .mayes-gallery-image {
    position: relative;
    display: block;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    aspect-ratio: 4/3;
    border-radius: 3px;
    background: #e9e5d9;
    text-decoration: none;
}

.mayes-gallery--editorial:not([data-count="1"]):not([data-count="2"]) .mayes-gallery-item:first-child .mayes-gallery-image {
    aspect-ratio: auto;
    min-height: 330px;
}

.mayes-gallery .mayes-gallery-image img {
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    object-fit: cover;
    transition: transform 800ms cubic-bezier(.2,.65,.25,1),filter 500ms ease;
}

.mayes-gallery .mayes-gallery-image:hover img {
    transform: scale(1.045);
    filter: brightness(.94);
}

.mayes-gallery .mayes-gallery-image:focus-visible {
    outline: 2px solid var(--ayesha-accent,#b38b48);
    outline-offset: 5px;
}

.mayes-gallery-expand {
    position: absolute;
    right: 14px;
    bottom: 14px;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border: 1px solid #ffffff80;
    border-radius: 50%;
    background: #103e349e;
    color: #fff;
    font-size: 20px;
    transition: background 180ms ease;
}

.mayes-gallery-image:hover .mayes-gallery-expand {
    background: #103e34;
}

.mayes-gallery .mayes-gallery-item figcaption {
    margin: 11px 0 0;
    color: #5d7067;
    font-size: 12px;
    line-height: 1.65;
    letter-spacing: .015em;
}

.mayes-gallery-controls {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.mayes-gallery-controls button {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid #cfcbbb;
    border-radius: 50%;
    background: transparent;
    color: #153e33;
    font-size: 20px;
}

.mayes-gallery-controls button:hover {
    background: #ece8dc;
}

.mayes-gallery-controls button:disabled {
    opacity: .35;
    cursor: default;
}

.mayes-gallery--carousel .mayes-gallery-track {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    overscroll-behavior-x: contain;
    padding: 2px 2px 18px;
    scrollbar-width: thin;
    scrollbar-color: #b7bbaa #efebdf;
}

.mayes-gallery--carousel .mayes-gallery-item {
    flex: 0 0 66%;
    scroll-snap-align: start;
}

.mayes-gallery.mayes-motion .mayes-gallery-item {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 650ms ease var(--mayes-delay,0ms),transform 650ms cubic-bezier(.2,.65,.25,1) var(--mayes-delay,0ms);
}

.mayes-gallery.mayes-motion .mayes-gallery-item.is-visible {
    opacity: 1;
    transform: none;
}

.mayes-lightbox {
    position: fixed;
    inset: 0;
    width: min(1200px,94vw);
    max-width: 94vw;
    max-height: 94svh;
    margin: auto;
    padding: 18px 22px 24px;
    border: 1px solid #b38b4855;
    border-radius: 8px;
    background: #092a22;
    color: #f5f1e7;
    box-shadow: 0 30px 100px #0008;
    overflow: auto;
}

.mayes-lightbox::backdrop {
    background: #001d18e6;
    backdrop-filter: blur(8px);
}

.mayes-lightbox-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    margin-bottom: 12px;
}

.mayes-lightbox-counter {
    font-size: 12px;
    letter-spacing: .15em;
}

.mayes-lightbox button {
    display: grid;
    place-items: center;
    min-width: 44px;
    min-height: 44px;
    padding: 8px 12px;
    border: 1px solid #f5f1e74d;
    border-radius: 3px;
    background: transparent;
    color: #f5f1e7;
    font: inherit;
    cursor: pointer;
}

.mayes-lightbox button:hover {
    background: #f5f1e714;
}

.mayes-lightbox button:focus-visible {
    outline: 2px solid #d0ad6a;
    outline-offset: 3px;
}

.mayes-lightbox-body {
    display: grid;
    grid-template-columns: 44px minmax(0,1fr) 44px;
    align-items: center;
    gap: 16px;
}

.mayes-lightbox figure {
    min-width: 0;
    margin: 0;
}

.mayes-lightbox img {
    display: block;
    width: 100%;
    height: min(72svh,760px);
    object-fit: contain;
}

.mayes-lightbox figcaption {
    max-width: 760px;
    margin: 16px auto 0;
    text-align: center;
    color: #d4ded5;
    font-size: 14px;
    line-height: 1.65;
}

/* Featured history and a format that can wrap existing history text. */
.ayesha-section--history .ayesha-section-grid,
.ayesha-section--history .ayesha-section-grid.wp-block-columns {
    grid-template-columns: minmax(0,1.15fr) minmax(0,.85fr);
    align-items: center;
}

.ayesha-section--history .ayesha-section-image img {
    aspect-ratio: 4/5;
}

.ayesha-section--history .ayesha-section-title {
    font-size: clamp(38px,4.7vw,62px);
}

.mayes-history-milestones {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 32px;
    margin-top: 48px;
}

.mayes-history-milestone {
    min-width: 0;
    margin: 0;
    padding-top: 22px;
    border-top: 1px solid #cdbb93;
}

.mayes-history-year,
.ayesha-section .mayes-history-year {
    margin: 0 0 12px;
    color: var(--ink,#153e33);
    font-family: var(--serif,"Cormorant Garamond",Georgia,serif);
    font-size: clamp(38px,4.5vw,58px);
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: -.04em;
}

.mayes-history-milestone h3,
.ayesha-section .mayes-history-milestone h3 {
    margin: 0 0 10px;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.5;
    font-weight: 600;
    letter-spacing: 0;
}

.mayes-history-milestone p:not(.mayes-history-year) {
    margin: 0;
    color: #5d7067;
    font-size: 14px;
    line-height: 1.8;
}

.ayesha-history-feature,
.is-style-ayesha-history-feature {
    margin-block: 40px;
    padding: clamp(24px,4vw,52px);
    border-top: 2px solid var(--ayesha-accent,#b38b48);
    background: #eef0e7;
    color: var(--ink,#153e33);
}

.ayesha-history-feature>p,
.is-style-ayesha-history-feature>p {
    font-size: 17px;
    line-height: 1.9;
}

.ayesha-history-feature>p:first-child,
.is-style-ayesha-history-feature>p:first-child {
    margin-top: 0;
}

.ayesha-history-feature>:last-child,
.is-style-ayesha-history-feature>:last-child {
    margin-bottom: 0;
}

/* Contact section and form. */
.mayes-contact-grid {
    display: grid;
    grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr);
    gap: clamp(36px,6vw,90px);
    align-items: start;
}

.mayes-contact-section .ayesha-section-title {
    font-size: clamp(36px,4vw,50px);
}

.mayes-contact-details {
    margin: 24px 0 30px;
    font-size: 15px;
    line-height: 1.8;
}

.mayes-contact-details p {
    margin: 0 0 12px;
}

.mayes-contact-details .mayes-location-name {
    font-weight: 600;
}

.mayes-contact-details a {
    display: block;
    width: fit-content;
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid #d8c49c;
    margin: 8px 0;
}

.mayes-contact-form-wrap {
    min-width: 0;
    color: #153e33;
}

.mayes-contact-form-wrap .ayesha-section-title {
    margin-bottom: 28px;
}

.mayes-contact-form {
    margin: 0;
}

.mayes-form-row {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 20px;
}

.mayes-contact-form label {
    display: block;
    margin: 0 0 22px;
    color: #153e33;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.65;
    letter-spacing: .025em;
}

.mayes-contact-form label>span[aria-hidden] {
    color: #8a6833;
}

.mayes-contact-form input:not([type=checkbox]):not([type=hidden]),
.mayes-contact-form textarea,
.mayes-contact-form select {
    display: block;
    width: 100%;
    max-width: 100%;
    min-height: 46px;
    box-sizing: border-box;
    margin: 6px 0 0;
    padding: 11px 0;
    border: 0;
    border-bottom: 1px solid #bfc8ba;
    border-radius: 0;
    background: transparent;
    color: #153e33;
    font-family: inherit;
    font-size: 16px;
    line-height: 1.6;
    letter-spacing: 0;
    box-shadow: none;
    transition: border-color 180ms ease;
}

.mayes-contact-form input:not([type=checkbox]):not([type=hidden]) {
    font-family: inherit;
    font-size: 16px;
}

.mayes-contact-form textarea,
.mayes-contact-form select {
    font-family: inherit;
    font-size: 16px;
    line-height: 1.6;
}

.mayes-contact-form textarea {
    resize: vertical;
    min-height: 130px;
}

.mayes-contact-form input:focus,
.mayes-contact-form textarea:focus,
.mayes-contact-form select:focus {
    outline: none;
    border-bottom-color: #95702e;
    box-shadow: 0 1px 0 #95702e;
}

.mayes-contact-form input:focus-visible,
.mayes-contact-form textarea:focus-visible,
.mayes-contact-form select:focus-visible {
    outline: 2px solid #b38b48;
    outline-offset: 4px;
}

.mayes-contact-form .mayes-consent {
    display: flex;
    gap: 11px;
    align-items: flex-start;
    margin: 8px 0 24px;
    color: #61746a;
    font-size: 12px;
    line-height: 1.8;
    letter-spacing: 0;
}

.mayes-contact-form .mayes-consent input {
    flex: 0 0 17px;
    width: 17px;
    height: 17px;
    margin: 3px 0 0;
    accent-color: #153e33;
}

.mayes-consent a {
    color: #153e33;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.mayes-honeypot {
    position: absolute!important;
    left: -10000px!important;
    width: 1px!important;
    height: 1px!important;
    overflow: hidden!important;
}

.mayes-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    min-height: 46px;
    padding: 13px 22px;
    border: 1px solid #153e33;
    border-radius: 0;
    background: #153e33;
    color: #faf8f2;
    font-family: inherit;
    font-size: 13px;
    line-height: 1.5;
    letter-spacing: .02em;
    text-decoration: none;
    cursor: pointer;
    transition: background 180ms ease;
}

.mayes-button:hover {
    background: #245447;
}

.mayes-button>span {
    color: #d0ad6a;
    font-size: 18px;
}

.mayes-button:focus-visible {
    outline: 2px solid #b38b48;
    outline-offset: 4px;
}

.mayes-button:disabled {
    opacity: .6;
    cursor: wait;
}

.mayes-button--light {
    background: #faf8f2;
    color: #153e33;
    border-color: #c6c3b3;
}

.mayes-button--light:hover {
    background: #eeeade;
}

.mayes-button--light>span {
    color: #8b6930;
}

.mayes-form-bottom {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 18px;
}

.mayes-contact-form .mayes-form-status {
    flex: 1 1 230px;
    min-width: 0;
    margin: 10px 0 0;
    color: #61746a;
    font-size: 13px;
    line-height: 1.7;
}

.mayes-contact-form .mayes-form-status.is-error {
    color: #8b3830;
}

.mayes-contact-form .mayes-form-status.is-success {
    color: #1c5b39;
}

/* A styled map that loads tiles only when requested. */
.mayes-map-wrap {
    position: relative;
    min-width: 0;
    margin: 24px 0 0;
    border: 1px solid #dadfd2;
    background: #e8ecdf;
    color: #153e33;
    overflow: hidden;
}

.mayes-map-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 330px;
    padding: 28px;
    text-align: center;
    background-color: #e9ecdf;
    background-image: linear-gradient(35deg,transparent 44%,#f8f6ed 45%,#f8f6ed 50%,transparent 51%),linear-gradient(115deg,transparent 44%,#f7f6ed 45%,#f7f6ed 49%,transparent 50%),linear-gradient(#c8d1be30 1px,transparent 1px),linear-gradient(90deg,#c8d1be30 1px,transparent 1px);
    background-size: 180px 160px,250px 240px,34px 34px,34px 34px;
}

.mayes-map-placeholder>p {
    margin: 0;
    font-size: 13px;
    line-height: 1.65;
}

.mayes-map-placeholder>.mayes-map-place {
    margin-top: 0;
    font-size: 17px;
    font-weight: 500;
}

.mayes-map-placeholder .mayes-button {
    margin-top: 8px;
}

.mayes-map-placeholder>small {
    max-width: 280px;
    color: #5d7067;
    font-size: 10px;
    line-height: 1.6;
}

.mayes-map-canvas {
    height: 360px;
    width: 100%;
    z-index: 0;
    background: #e9ecdf;
}

.mayes-map--ivory .leaflet-tile-pane {
    filter: grayscale(.5) sepia(.18) saturate(.8);
}

.mayes-map-wrap .leaflet-control-attribution {
    font-size: 10px;
    color: #153e33;
    background: #faf8f2ee;
}

.mayes-map-wrap .leaflet-control-attribution a {
    color: #153e33;
    text-decoration: underline;
}

.mayes-map-wrap .leaflet-popup-content {
    font-family: inherit;
    font-size: 13px;
    color: #153e33;
}

.mayes-map-wrap .leaflet-popup-content p {
    margin: 6px 0 0;
    white-space: pre-line;
}

.mayes-map-wrap .leaflet-control-zoom a {
    color: #153e33;
}

.mayes-pin-icon {
    border: 0;
    background: none;
    filter: drop-shadow(0 5px 4px #173e362e);
}

.mayes-pin-icon svg {
    display: block;
    width: 36px;
    height: 47px;
}

.mayes-map-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    padding: 13px 16px;
    background: #f3f2e9;
    border-top: 1px solid #dadfd2;
    font-size: 11px;
    line-height: 1.5;
}

.mayes-map-footer a {
    color: #153e33;
    text-decoration: none;
    border-bottom: 1px solid #b38b48;
}

/* Daily Qur’an reflection, including a correct RTL reading area. */
.mayes-verse {
    border: 0;
    padding: 0;
}

.mayes-verse-panel {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: clamp(28px,5vw,64px);
    background: #103e34;
    color: #f5f1e7;
    text-align: center;
}

.mayes-verse-panel::before,
.mayes-verse-panel::after {
    content: "";
    position: absolute;
    z-index: -1;
    width: 400px;
    height: 400px;
    border: 1px solid #d0ad6a16;
    border-radius: 50%;
    pointer-events: none;
}

.mayes-verse-panel::before {
    left: -220px;
    top: -170px;
}

.mayes-verse-panel::after {
    right: -230px;
    bottom: -220px;
}

.mayes-verse .ayesha-kicker {
    justify-content: center;
    color: #d0ad6a;
    margin-bottom: 20px;
}

.mayes-verse .ayesha-section-title {
    color: #f5f1e7;
    font-size: clamp(34px,4vw,48px);
    margin-bottom: 34px;
}

.mayes-verse .mayes-verse-arabic {
    max-width: 900px;
    margin: 0 auto 28px;
    color: #f5f1e7;
    font-family: "Amiri Quran","Noto Naskh Arabic","Traditional Arabic",serif;
    font-size: clamp(27px,3.3vw,40px);
    font-weight: 400;
    line-height: 2;
    letter-spacing: 0;
    word-break: normal;
    overflow-wrap: break-word;
}

.mayes-verse .mayes-verse-translation {
    max-width: 760px;
    margin: 0 auto 26px;
    color: #ececdd;
    font-family: var(--serif,"Cormorant Garamond",Georgia,serif);
    font-size: clamp(23px,2.5vw,30px);
    font-weight: 400;
    line-height: 1.5;
    text-wrap: pretty;
}

.mayes-verse .mayes-verse-reference {
    margin: 0 0 16px;
    color: #d0ad6a;
    font-size: 12px;
    line-height: 1.7;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.mayes-verse .mayes-verse-credit {
    margin: 0;
    color: #d2dcd2;
    font-size: 10px;
    line-height: 1.8;
}

.mayes-verse .mayes-verse-credit a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.mayes-verse .mayes-verse-stale,
.mayes-verse .mayes-verse-unavailable {
    margin: 20px 0 0;
    color: #d2dcd2;
    font-size: 13px;
    line-height: 1.8;
}

.mayes-verse-unavailable a {
    color: inherit;
    text-decoration: underline;
}

.mayes-editor-note {
    padding: 15px 18px;
    border: 1px dashed #c4b995;
    background: #f3f0e5;
    color: #617065;
    font-size: 13px;
    line-height: 1.7;
}

@media (max-width:900px) {
    .mayes-gallery .mayes-gallery-track {
        gap: 18px;
    }

    .mayes-contact-grid {
        gap: 34px;
    }

    .mayes-form-row {
        grid-template-columns: minmax(0,1fr);
        gap: 0;
    }
}

@media (max-width:760px) {
    .mayes-contact-grid,
    .mayes-history-milestones {
        grid-template-columns: minmax(0,1fr);
        gap: 30px;
    }

    .ayesha-section--history .ayesha-section-grid,
    .ayesha-section--history .ayesha-section-grid.wp-block-columns {
        grid-template-columns: minmax(0,1fr);
    }

    .mayes-history-milestones {
        margin-top: 30px;
    }

    .mayes-history-milestone {
        display: grid;
        grid-template-columns: 90px minmax(0,1fr);
        gap: 0 18px;
        padding-top: 20px;
    }

    .mayes-history-milestone .mayes-history-year {
        grid-row: span 2;
        font-size: 38px;
    }

    .mayes-history-milestone h3 {
        align-self: end;
        margin-bottom: 7px;
    }

    .mayes-contact-form-wrap .ayesha-section-title {
        font-size: 36px;
    }

    .mayes-map-placeholder {
        min-height: 300px;
        padding: 24px;
    }

    .mayes-map-canvas {
        height: 320px;
    }

    .mayes-verse .ayesha-section-title {
        margin-bottom: 26px;
    }

    .mayes-verse .mayes-verse-arabic {
        font-size: 29px;
        line-height: 1.95;
    }
}

@media (max-width:640px) {
    .mayes-section-head {
        align-items: flex-start;
        gap: 16px;
    }

    .mayes-gallery .mayes-gallery-track,
    .mayes-gallery[data-count="2"] .mayes-gallery-track {
        grid-template-columns: repeat(2,minmax(0,1fr));
        gap: 18px 12px;
    }

    .mayes-gallery[data-count="1"] .mayes-gallery-track {
        grid-template-columns: minmax(0,1fr);
    }

    .mayes-gallery--editorial:not([data-count="1"]):not([data-count="2"]) .mayes-gallery-item:first-child {
        grid-column: 1/-1;
        grid-row: auto;
    }

    .mayes-gallery--editorial:not([data-count="1"]):not([data-count="2"]) .mayes-gallery-item:first-child .mayes-gallery-image {
        aspect-ratio: 4/3;
        min-height: 0;
    }

    .mayes-gallery--carousel .mayes-gallery-track {
        display: flex;
        gap: 16px;
    }

    .mayes-gallery--carousel .mayes-gallery-item {
        flex-basis: 88%;
    }

    .mayes-gallery-controls {
        gap: 6px;
    }

    .mayes-gallery-controls button {
        width: 38px;
        height: 38px;
    }

    .mayes-gallery-expand {
        width: 30px;
        height: 30px;
        right: 9px;
        bottom: 9px;
        font-size: 17px;
    }

    .mayes-gallery .mayes-gallery-item figcaption {
        font-size: 11px;
        margin-top: 8px;
    }

    .mayes-lightbox {
        padding: 10px 10px 18px;
        max-width: 96vw;
        width: 96vw;
    }

    .mayes-lightbox-body {
        grid-template-columns: 34px minmax(0,1fr) 34px;
        gap: 5px;
    }

    .mayes-lightbox-body button {
        min-width: 34px;
        padding: 4px;
    }

    .mayes-lightbox img {
        height: 65svh;
    }

    .mayes-lightbox figcaption {
        font-size: 12px;
    }
}

@media (prefers-reduced-motion:reduce) {
    .mayes-gallery .mayes-gallery-image img,
    .mayes-gallery.mayes-motion .mayes-gallery-item,
    .mayes-button {
        transition: none;
    }

    .mayes-gallery.mayes-motion .mayes-gallery-item {
        opacity: 1;
        transform: none;
    }

    .mayes-gallery--carousel .mayes-gallery-track {
        scroll-behavior: auto;
    }
}

/* Editorial parent-page directory: visible without JavaScript. */
.mayes-parent-page .page-heading {
    margin-bottom: 32px;
    max-width: 900px;
}

.mayes-parent-intro {
    margin-bottom: 50px;
}

.mayes-child-pages {
    width: 100%;
    min-width: 0;
    margin: 40px 0;
    color: var(--ink,#153e33);
}

.mayes-parent-page .page-heading+.mayes-child-pages {
    margin-top: 0;
}

.mayes-child-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
    margin: 0 0 26px;
    padding-bottom: 26px;
    border-bottom: 1px solid #dce1d8;
}

.mayes-child-pages .ayesha-kicker {
    margin-bottom: 14px;
}

.mayes-child-pages .ayesha-section-title {
    margin: 0;
    font-size: clamp(32px,3.7vw,44px);
    line-height: 1.1;
}

.mayes-child-heading .mayes-child-count {
    flex-shrink: 0;
    margin: 0 0 4px;
    color: #63766e;
    font-size: 12px;
    line-height: 1.6;
    letter-spacing: .04em;
}

.mayes-child-pages .mayes-child-grid {
    display: grid;
    grid-template-columns: repeat(var(--mayes-child-columns,3),minmax(0,1fr));
    gap: 22px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.mayes-child-pages .mayes-child-item {
    display: flex;
    min-width: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.mayes-child-pages .mayes-child-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 0;
    overflow: hidden;
    border: 1px solid #d9dfd4;
    border-radius: 3px;
    background: #f7f6ef;
    color: #153e33;
    text-decoration: none;
    transition: transform 220ms ease,border-color 220ms ease,box-shadow 220ms ease;
}

.mayes-child-pages .mayes-child-card:hover {
    transform: translateY(-4px);
    border-color: #b38b48;
    box-shadow: 0 14px 32px #153e330b;
}

.mayes-child-pages .mayes-child-card:focus-visible {
    outline: 2px solid var(--ayesha-accent,#b38b48);
    outline-offset: 5px;
}

.mayes-child-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-height: 260px;
    padding: 26px;
}

.mayes-child-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 28px;
    color: #826124;
    font-size: 11px;
    line-height: 1.5;
    letter-spacing: .15em;
}

.mayes-child-topline svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 220ms ease;
}

.mayes-child-card:hover .mayes-child-topline svg {
    transform: translate(2px,-2px);
}

.mayes-child-pages .mayes-child-card h3 {
    margin: 0;
    color: #153e33;
    font-family: var(--serif,"Cormorant Garamond",Georgia,serif);
    font-size: clamp(27px,2.7vw,34px);
    font-weight: 400;
    line-height: 1.14;
    letter-spacing: -.025em;
    overflow-wrap: break-word;
    text-wrap: balance;
}

.mayes-child-pages .mayes-child-card p {
    margin: 16px 0 0;
    color: #63766e;
    font-size: 14px;
    line-height: 1.8;
    overflow-wrap: anywhere;
}

.mayes-child-readmore {
    align-self: flex-start;
    margin-top: auto;
    padding-top: 28px;
    color: #153e33;
    font-size: 11px;
    line-height: 1.6;
    letter-spacing: .06em;
}

.mayes-child-readmore::after {
    content: "";
    display: block;
    width: 24px;
    height: 1px;
    margin-top: 5px;
    background: var(--ayesha-accent,#b38b48);
    transition: width 220ms ease;
}

.mayes-child-card:hover .mayes-child-readmore::after {
    width: 100%;
}

.mayes-child-image {
    position: relative;
    display: grid;
    place-items: center;
    overflow: hidden;
    aspect-ratio: 16/10;
    background: #e8ecdf;
}

.mayes-child-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 600ms ease;
}

.mayes-child-card:hover .mayes-child-image img {
    transform: scale(1.035);
}

.mayes-child-image-number {
    color: #bdc6b3;
    font-family: var(--serif,Georgia,serif);
    font-size: 80px;
    font-weight: 400;
    line-height: 1;
}

.mayes-child-empty {
    padding: 26px 0;
    color: #63766e;
    font-size: 15px;
    line-height: 1.8;
}

.mayes-child-pagination {
    margin-top: 36px;
}

.mayes-child-pagination ul {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.mayes-child-pagination li {
    margin: 0;
    padding: 0;
    list-style: none;
}

.mayes-child-pagination .page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    min-height: 42px;
    margin: 0;
    padding: 8px 14px;
    border: 1px solid #d9dfd4;
    color: #153e33;
    font-family: inherit;
    font-size: 13px;
    text-decoration: none;
}

.mayes-child-pagination .page-numbers.current {
    background: #153e33;
    border-color: #153e33;
    color: #faf8f2;
}

.mayes-child-pagination a:hover {
    border-color: #b38b48;
    background: #eeeade;
}

@media (max-width:1000px) {
    .mayes-child-pages[data-columns="3"] .mayes-child-grid {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }
}

@media (max-width:640px) {
    .mayes-child-pages[data-columns] .mayes-child-grid {
        grid-template-columns: minmax(0,1fr);
        gap: 16px;
    }

    .mayes-child-heading {
        gap: 16px;
        padding-bottom: 22px;
        margin-bottom: 22px;
    }

    .mayes-child-heading .mayes-child-count {
        font-size: 11px;
    }

    .mayes-child-card-body {
        padding: 24px;
        min-height: 225px;
    }

    .mayes-child-topline {
        margin-bottom: 22px;
    }

    .mayes-child-pages .mayes-child-card h3 {
        font-size: 31px;
    }

    .mayes-child-pages .mayes-child-card p {
        font-size: 14px;
    }

    .mayes-parent-intro {
        margin-bottom: 36px;
    }
}

@media (prefers-reduced-motion:reduce) {
    .mayes-child-pages .mayes-child-card,
    .mayes-child-topline svg,
    .mayes-child-readmore::after,
    .mayes-child-image img {
        transition: none;
    }

    .mayes-child-pages .mayes-child-card:hover,
    .mayes-child-card:hover .mayes-child-topline svg,
    .mayes-child-card:hover .mayes-child-image img {
        transform: none;
    }
}

/* One-off donations. Everything stays within this component. */
.ayesha-section.mayes-donation {
    display: grid;
    grid-template-columns: minmax(0,1.08fr) minmax(0,1fr);
    align-items: stretch;
    gap: 0;
    padding: 0;
    border: 1px solid #d9dfd4;
    background: #fbfaf5;
    box-shadow: 0 18px 60px -38px rgba(18,59,47,.24);
    overflow: hidden;
}

.mayes-donation [hidden] {
    display: none!important;
}

.mayes-donation-story {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    min-height: 610px;
    padding: clamp(32px,4.5vw,58px);
    overflow: hidden;
    background: #103e32;
    color: #faf6e9;
}

.mayes-donation-story>:not(.mayes-donation-minaret) {
    position: relative;
    z-index: 1;
}

.mayes-donation .mayes-donation-eyebrow {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 0 0 34px;
    color: #e6d9b8;
    font-size: 10px;
    line-height: 1.7;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.mayes-donation-eyebrow::before {
    content: "";
    width: 27px;
    height: 1px;
    flex-shrink: 0;
    background: #bd9a55;
}

.mayes-donation .mayes-donation-story h2 {
    max-width: 14ch;
    margin: 0 0 27px;
    color: #faf6e9;
    font-family: var(--serif,"Cormorant Garamond",Georgia,serif);
    font-size: clamp(46px,5.1vw,66px);
    font-weight: 400;
    line-height: 1.04;
    letter-spacing: -.035em;
    overflow-wrap: break-word;
    text-wrap: balance;
}

.mayes-donation .mayes-donation-intro {
    max-width: 34ch;
    margin: 0;
    color: #dce5da;
    font-size: 15px;
    line-height: 1.9;
    overflow-wrap: anywhere;
}

.mayes-donation-purpose {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 19px;
    margin: 29px 0 34px;
    padding-top: 20px;
    border-top: 1px solid rgba(230,217,184,.25);
    color: #e9dfc5;
    font-family: var(--serif,Georgia,serif);
    font-size: 20px;
    line-height: 1.4;
}

.mayes-donation .mayes-donation-thanks {
    margin: auto 0 0;
    padding-top: 32px;
    color: #d8e1d6;
    font-size: 11px;
    line-height: 1.7;
    letter-spacing: .02em;
}

.mayes-donation .mayes-donation-minaret {
    position: absolute;
    z-index: 0;
    right: -40px;
    bottom: -8px;
    width: 390px;
    height: auto;
    margin: 0;
    opacity: .24;
    pointer-events: none;
}

.mayes-donation-card {
    min-width: 0;
    padding: clamp(30px,3.8vw,48px);
    color: #153e33;
}

.mayes-donation .mayes-donation-card-kicker {
    margin: 0 0 10px;
    color: #68766c;
    font-size: 10px;
    line-height: 1.7;
    text-transform: uppercase;
    letter-spacing: .14em;
}

.mayes-donation .mayes-donation-card h3 {
    margin: 0;
    color: #153e33;
    font-family: var(--serif,"Cormorant Garamond",Georgia,serif);
    font-size: clamp(35px,3.6vw,46px);
    font-weight: 400;
    line-height: 1.12;
    letter-spacing: -.03em;
}

.mayes-donation .mayes-donation-frequency {
    display: flex;
    gap: 9px;
    align-items: center;
    margin: 12px 0 28px;
    color: #68766c;
    font-size: 12px;
    line-height: 1.7;
}

.mayes-donation-form {
    display: block;
    margin: 0;
    padding: 0;
    border: 0;
    text-align: left;
}

.mayes-donation .mayes-donation-presets {
    display: block;
    min-width: 0;
    margin: 0 0 22px;
    padding: 0;
    border: 0;
}

.mayes-donation-presets legend,
.mayes-donation-amount-label {
    display: block;
    float: none;
    width: auto;
    margin: 0 0 10px;
    padding: 0;
    border: 0;
    color: #153e33;
    font-family: inherit;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.6;
    letter-spacing: 0;
}

.mayes-donation-options {
    display: grid;
    grid-template-columns: repeat(4,minmax(0,1fr));
    gap: 9px;
}

.mayes-donation-form .mayes-donation-preset {
    display: block;
    width: 100%;
    min-width: 0;
    min-height: 52px;
    margin: 0;
    padding: 10px 4px;
    appearance: none;
    border: 1px solid #d9dfd4;
    border-radius: 2px;
    background: transparent;
    color: #153e33;
    font-family: inherit;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.5;
    text-align: center;
    text-transform: none;
    letter-spacing: 0;
    overflow-wrap: anywhere;
    cursor: pointer;
    transition: background 180ms ease,border-color 180ms ease,color 180ms ease;
}

.mayes-donation-form .mayes-donation-preset:hover {
    border-color: #a67c3b;
    background: #f1eedf;
}

.mayes-donation-form .mayes-donation-preset[aria-pressed="true"] {
    border-color: #153e33;
    background: #153e33;
    color: #fffaf0;
}

.mayes-donation-amount-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    min-height: 64px;
    padding: 0 18px;
    border: 1px solid #b5bfae;
    border-radius: 2px;
    background: #fffdf8;
    transition: border-color 180ms ease,box-shadow 180ms ease;
}

.mayes-donation-amount-wrap:focus-within {
    border-color: #a0783c;
    box-shadow: 0 0 0 3px rgba(160,120,60,.13);
}

.mayes-donation-amount-wrap>span {
    flex-shrink: 0;
    color: #798371;
    font-size: 25px;
    line-height: 1;
}

.mayes-donation .mayes-donation-form input[name="amount"] {
    display: block;
    width: 100%;
    min-width: 0;
    height: auto;
    min-height: 62px;
    margin: 0;
    padding: 10px 0;
    border: 0;
    border-radius: 0;
    outline: 0;
    background: transparent;
    box-shadow: none;
    color: #153e33;
    font-family: inherit;
    font-size: 25px;
    font-weight: 400;
    line-height: 1.4;
    appearance: textfield;
    -moz-appearance: textfield;
}

.mayes-donation-form input[name="amount"]::-webkit-inner-spin-button,
.mayes-donation-form input[name="amount"]::-webkit-outer-spin-button {
    margin: 0;
    -webkit-appearance: none;
}

.mayes-donation-amount-wrap:has(input[aria-invalid="true"]) {
    border-color: #9b3f30;
}

.mayes-donation .mayes-donation-hint {
    margin: 9px 0 0;
    color: #68766c;
    font-size: 11px;
    line-height: 1.7;
}

.mayes-donation .mayes-donation-error {
    margin: 10px 0 0;
    color: #8b392d;
    font-size: 12px;
    line-height: 1.6;
}

.mayes-donation-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    margin: 23px 0 20px;
    padding: 18px 0 0;
    border-top: 1px solid #dfe2d7;
    color: #68766c;
    font-size: 12px;
    line-height: 1.6;
}

.mayes-donation-total output {
    color: #153e33;
    font-size: 20px;
    font-weight: 500;
    line-height: 1.5;
    font-variant-numeric: tabular-nums;
}

.mayes-donation-form .mayes-donation-submit {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    width: 100%;
    min-height: 57px;
    margin: 20px 0 0;
    padding: 16px 20px;
    appearance: none;
    border: 1px solid #153e33;
    border-radius: 2px;
    background: #153e33;
    color: #fffaf0;
    font-family: inherit;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.6;
    letter-spacing: .015em;
    text-align: left;
    text-decoration: none;
    text-transform: none;
    cursor: pointer;
    transition: background 180ms ease,border-color 180ms ease;
}

.mayes-donation-submit svg {
    flex-shrink: 0;
    color: #dfc38c;
    transition: transform 180ms ease;
}

.mayes-donation-form .mayes-donation-submit:hover {
    background: #205440;
    border-color: #205440;
}

.mayes-donation-submit:hover svg {
    transform: translate(2px,-2px);
}

.mayes-donation-form button:focus-visible {
    outline: 2px solid #a0783c;
    outline-offset: 4px;
}

.mayes-donation .mayes-donation-checkout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin: 12px 0 0;
    color: #68766c;
    font-size: 11px;
    line-height: 1.7;
    text-align: center;
}

.mayes-donation-checkout svg {
    flex-shrink: 0;
}

.mayes-donation .mayes-donation-footer {
    margin: 26px 0 0;
    padding-top: 19px;
    border-top: 1px solid #dfe2d7;
    color: #68766c;
    font-family: var(--serif,Georgia,serif);
    font-size: 18px;
    line-height: 1.5;
    text-align: center;
}

@media (max-width:760px) {
    .ayesha-section.mayes-donation {
        grid-template-columns: minmax(0,1fr);
    }

    .mayes-donation-story {
        min-height: 440px;
        padding: 35px 30px;
    }

    .mayes-donation .mayes-donation-eyebrow {
        margin-bottom: 25px;
    }

    .mayes-donation .mayes-donation-story h2 {
        max-width: 13ch;
        font-size: 52px;
    }

    .mayes-donation .mayes-donation-intro {
        max-width: 42ch;
        font-size: 14px;
    }

    .mayes-donation-purpose {
        margin-top: 23px;
        margin-bottom: 0;
        font-size: 19px;
    }

    .mayes-donation .mayes-donation-thanks {
        padding-top: 28px;
    }

    .mayes-donation-card {
        padding: 32px 30px;
    }
}

@media (max-width:380px) {
    .mayes-donation-story,
    .mayes-donation-card {
        padding: 28px 23px;
    }

    .mayes-donation .mayes-donation-story h2 {
        font-size: 44px;
    }

    .mayes-donation-options {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }

    .mayes-donation .mayes-donation-checkout {
        font-size: 10px;
    }
}

@media (prefers-reduced-motion:reduce) {
    .mayes-donation-form .mayes-donation-preset,
    .mayes-donation-amount-wrap,
    .mayes-donation-form .mayes-donation-submit,
    .mayes-donation-submit svg {
        transition: none;
    }

    .mayes-donation-submit:hover svg {
        transform: none;
    }
}
