.mission-body {
    color: #4b5563;
    line-height: 1.85;
    margin-bottom: 1.25rem;
}

/* Centered full-width pull quote — used as a visual break between sections */
.pq-center {
    text-align: center;
    font-size: clamp(1.15rem, 2.5vw, 1.5rem);
    font-weight: 700;
    color: #2d6a4f;
    max-width: 760px;
    margin: 0 auto;
    line-height: 1.45;
}

    .pq-center::before {
        content: "\201C";
        display: block;
        font-size: 4rem;
        line-height: 1;
        color: #16a34a;
        opacity: .4;
        margin-bottom: -.5rem;
    }

/* Left-border pull quote — used inline within a text column */
.pq-side {
    border-left: 3px solid #16a34a;
    padding: .6rem 0 .6rem 1.25rem;
    margin: 1.5rem 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #2d6a4f;
    line-height: 1.55;
}

.mission-img {
    width: 100%;
    height: 340px;
    object-fit: cover;
    border-radius: .75rem;
}

@media (max-width: 767px) {
    .mission-img {
        width: 80vw;
        height: 220px;
        display: block;
        margin: 0 auto 1.75rem;
    }
}

/* Scrollable website screenshot preview */
.website-preview-wrap {
    position: relative;
    border-radius: .75rem;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,.12);
    height: 340px; /* explicit height so absolutely-positioned children always have an anchor */
}

.website-preview-scroll {
    height: 340px;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(45,106,79,.35) transparent;
}

    .website-preview-scroll::-webkit-scrollbar {
        width: 5px;
    }

    .website-preview-scroll::-webkit-scrollbar-track {
        background: transparent;
    }

    .website-preview-scroll::-webkit-scrollbar-thumb {
        background-color: rgba(45,106,79,.35);
        border-radius: 4px;
    }

    .website-preview-scroll img {
        width: 100%;
        height: auto;
        display: block;
    }

.website-preview-hint {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,.5));
    color: white;
    text-align: center;
    padding: 2.5rem 1rem .8rem;
    font-size: .85rem;
    font-weight: 600;
    letter-spacing: .03em;
    pointer-events: none;
    transition: opacity .4s ease;
}

    .website-preview-hint.scrolled {
        opacity: 0;
    }

/* Expand button — persistent in top-right corner of the inline preview */
.wp-expand-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 5;
    background: rgba(0,0,0,.45);
    color: white;
    border: none;
    border-radius: 7px;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: .9rem;
    transition: background .2s;
}

    .wp-expand-btn:hover {
        background: rgba(0,0,0,.7);
    }

/* Modal overlay */
.wp-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9900;
    align-items: center;
    justify-content: center;
}

    .wp-modal.open {
        display: flex;
    }

.wp-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.72);
}

.wp-modal-dialog {
    position: relative;
    width: 85vw;
    max-height: 85vh;
    background: white;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 32px 80px rgba(0,0,0,.45);
    display: flex;
    flex-direction: column;
}

.wp-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 10;
    background: rgba(0,0,0,.5);
    color: white;
    border: none;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    transition: background .2s;
}

    .wp-modal-close:hover {
        background: rgba(0,0,0,.75);
    }

.wp-modal-scroll {
    overflow-y: auto;
    flex: 1;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(45,106,79,.35) transparent;
}

    .wp-modal-scroll::-webkit-scrollbar {
        width: 5px;
    }

    .wp-modal-scroll::-webkit-scrollbar-track {
        background: transparent;
    }

    .wp-modal-scroll::-webkit-scrollbar-thumb {
        background-color: rgba(45,106,79,.35);
        border-radius: 4px;
    }

    .wp-modal-scroll img {
        width: 100%;
        height: auto;
        display: block;
    }

@media (max-width: 767px) {
    .wp-modal-dialog {
        width: 95vw;
        max-height: 90vh;
    }
}

@media (max-width: 767px) {
    .website-preview-wrap {
        width: 80vw;
        height: 220px; /* matches the mobile preview crop height */
        margin: 0 auto 1.75rem;
    }

    .website-preview-scroll {
        height: 260px;
    }
}

/* For images that should keep their natural aspect ratio (e.g. square logos/photos) */
.mission-img-natural {
    width: 100%;
    height: auto;
    border-radius: .75rem;
}

@media (max-width: 767px) {
    .mission-img-natural {
        width: 80vw;
        display: block;
        margin: 0 auto 1.75rem;
    }
}
