/*
 * Project Marketing page content styles.
 * Loaded on the front end AND inside CKEditor (config.contentsCss) so the
 * admin sees exactly what the visitor will see.
 */

.project-marketing-content {
    color: #000;
    font-size: 19px;
    line-height: 1.6;
}

.project-marketing-content img {
    max-width: 100%;
    height: auto;
}

.project-marketing-content p {
    margin: 0 0 18px;
}

.project-marketing-content a {
    color: #71a42b;
}

/* ---------- intro copy (justified, like the mock up) ---------- */
.pm-intro p {
    text-align: justify;
    color: #16293b;
    font-size: 19px;
    line-height: 1.55;
    margin-bottom: 22px;
}

/* ---------- centered section heading ---------- */
.pm-section-title {
    text-align: center;
    color: #16293b;
    font-size: 34px;
    font-weight: 400;
    margin: 45px 0 35px;
}

/* ---------- image collage: one tall image left, two stacked right ---------- */
.pm-gallery {
    margin: 0 0 35px;
}

.pm-gallery:after {
    content: "";
    display: table;
    clear: both;
}

.pm-gallery-main {
    float: left;
    width: 49%;
    margin-right: 2%;
}

.pm-gallery-main img {
    /*height: 837px !important;*/
}

.pm-gallery-side {
    float: left;
    width: 49%;
}

/* width/height come back from the upload dialog as attributes - CSS must win */
.pm-gallery-main img,
.pm-gallery-side img {
    width: 100%;
    height: auto;
    display: block;
}

.pm-gallery-side img {
    margin-bottom: 18px;
}

.pm-gallery-side img:last-child {
    margin-bottom: 0;
}

/* ---------- team member block: photo left, details right ---------- */
.pm-member {
    margin: 0 0 45px;
}

.pm-member:after {
    content: "";
    display: table;
    clear: both;
}

.pm-member-photo {
    float: left;
    width: 220px;
    margin: 0 35px 15px 0;
}

.pm-member-photo img {
    width: 100%;
    height: auto;
    display: block;
}

.pm-member-info {
    overflow: hidden;
}

.pm-name {
    color: #71a42b;
    font-size: 30px;
    font-weight: 400;
    margin: 0 0 6px;
}

.pm-role {
    color: #16293b;
    font-size: 22px;
    font-weight: 400;
    margin: 0 0 18px;
}

.pm-bio {
    text-align: justify;
    color: #000;
    font-size: 15px;
    line-height: 1.65;
    margin-bottom: 15px;
}

.pm-contact {
    color: #71a42b;
    font-size: 21px;
    margin: 18px 0 0;
}

.pm-contact a {
    color: #71a42b;
    text-decoration: none;
    margin-right: 28px;
}

.pm-contact a:hover {
    text-decoration: underline;
}

/* ---------- helpers for free form image placement ---------- */
.pm-img-left {
    float: left;
    margin: 0 30px 20px 0;
    max-width: 50%;
    height: auto;
}

.pm-img-right {
    float: right;
    margin: 0 0 20px 30px;
    max-width: 50%;
    height: auto;
}

.pm-img-full {
    display: block;
    width: 100%;
    height: auto;
    margin: 0 0 25px;
}

    .pm-gallery {
    display: flex;
    gap: 20px;
    align-items: stretch;
    margin: 40px 0;
}

.pm-gallery-main,
.pm-gallery-side {
    flex: 1;
}

.pm-gallery-main {
    display: flex;
}

.pm-gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pm-gallery-side {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.pm-gallery-side img {
    flex: 1;
    width: 100%;
    object-fit: cover;
}

/* ---------- responsive ---------- */
@media (max-width: 767px) {
    .project-marketing-content,
    .pm-intro p {
        font-size: 16px;
    }

    .pm-section-title {
        font-size: 26px;
        margin: 30px 0 25px;
    }

    .pm-member-photo {
        float: none;
        width: 200px;
        margin: 0 auto 20px;
    }

    .pm-name {
        font-size: 24px;
    }

    .pm-role {
        font-size: 19px;
    }

    .pm-contact {
        font-size: 18px;
    }

    .pm-contact a {
        display: block;
        margin: 0 0 6px;
    }

    .pm-gallery-main,
    .pm-gallery-side {
        float: none;
        width: 100%;
        margin: 0 0 18px;
    }

    .pm-img-left,
    .pm-img-right {
        float: none;
        max-width: 100%;
        margin: 0 0 20px;
    }

    .pm-gallery-main img {
        height: auto !important;
    }
}
