.founder-hero {
    position: relative;
    overflow: hidden;
    padding: 2.1rem 0 1.85rem;
    background:
        linear-gradient(120deg, rgba(5, 63, 44, .98) 0%, rgba(8, 114, 70, .93) 56%, rgba(243, 165, 28, .9) 100%),
        url("https://old.ethiolanguagebox.com/wp-content/uploads/2021/11/ELB-Final-25-DEC-22.png") center right 6% / min(42vw, 520px) no-repeat;
    color: #ffffff;
}

.founder-hero::after {
    content: "";
    position: absolute;
    inset: auto -18% -38% 38%;
    height: 360px;
    background: rgba(255, 255, 255, .12);
    transform: rotate(-7deg);
}

.founder-hero .container {
    position: relative;
    z-index: 1;
}

.founder-hero h1 {
    max-width: 760px;
    font-size: clamp(2.25rem, 3.8vw, 3.45rem);
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1;
    white-space: nowrap;
}

.founder-name {
    display: block;
    white-space: nowrap !important;
}

.founder-hero-copy {
    max-width: 720px;
    color: rgba(255, 255, 255, .92);
    font-size: clamp(.96rem, 1.05vw, 1.06rem);
    line-height: 1.55;
}

.founder-portrait-card {
    display: grid;
    justify-items: center;
    max-width: 300px;
    margin: 0 0 0 auto;
    padding: 0;
}

.founder-portrait-card img {
    width: min(100%, 250px);
    aspect-ratio: 4 / 5;
    height: auto;
    padding: .32rem 0;
    border-top: 2px solid rgba(255, 255, 255, .95);
    border-right: 0;
    border-bottom: 2px solid rgba(255, 255, 255, .95);
    border-left: 0;
    border-radius: 8px;
    background: #ffffff;
    object-fit: cover;
    object-position: center center;
    box-shadow: 0 22px 52px rgba(5, 63, 44, .34);
}

.founder-portrait-card figcaption {
    display: grid;
    justify-items: center;
    gap: .12rem;
    width: 100%;
    max-width: 300px;
    margin-top: .65rem;
    padding: .62rem .78rem;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(255, 255, 255, .96), rgba(255, 250, 236, .94));
    color: var(--elb-muted);
    font-size: .8rem;
    line-height: 1.28;
    text-align: center;
    box-shadow: 0 18px 44px rgba(5, 63, 44, .22);
}

.founder-portrait-card strong {
    color: var(--elb-green-dark);
    font-size: .98rem;
}

.founder-credentials {
    margin-top: -.08rem;
    color: var(--elb-green);
    font-size: .72rem;
    font-weight: 800;
    line-height: 1.25;
}

.founder-credential-line {
    white-space: nowrap;
    font-size: .72rem;
}

.founder-copy {
    color: var(--elb-muted);
    font-size: 1.06rem;
    line-height: 1.9;
}

.founder-intro p,
.founder-intro .impact-card p {
    text-align: justify;
    text-align-last: left;
    text-justify: inter-word;
}

.founder-copy p:last-child {
    margin-bottom: 0;
}

.founder-page main p,
.founder-page header p,
.founder-page .founder-hero-copy {
    text-align: justify;
    text-align-last: left;
    text-justify: inter-word;
}

.impact-card,
.media-card,
.founder-band,
.market-card {
    border: 1px solid var(--elb-line);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 16px 42px rgba(24, 62, 46, .08);
}

.impact-card {
    height: 100%;
    padding: 1.5rem;
}

.impact-card h3,
.media-card h3 {
    color: var(--elb-green-dark);
    font-size: 1.08rem;
    font-weight: 900;
    line-height: 1.35;
}

.impact-card p {
    margin-bottom: 0;
    color: var(--elb-muted);
    line-height: 1.7;
}

.founder-band {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 2rem;
}

.founder-band p {
    max-width: 760px;
    color: var(--elb-muted);
    font-size: 1.08rem;
    line-height: 1.8;
}

.media-card {
    height: 100%;
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease;
}

.media-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 58px rgba(24, 62, 46, .14);
}

.media-card img {
    width: 100%;
    background: var(--elb-bg);
    object-fit: cover;
}

.book-card img {
    height: auto;
    padding: 0;
    background: #ffffff;
    object-fit: contain;
    object-position: center center;
}

.book-card--trigger {
    cursor: pointer;
}

.book-card--trigger:focus-visible {
    outline: 4px solid rgba(8, 114, 70, .42);
    outline-offset: 4px;
}

.press-card img {
    object-position: center center;
}

.print-media-section {
    background:
        linear-gradient(180deg, #ffffff 0%, #f8fbf9 100%);
}

.print-media-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.35rem;
    align-items: stretch;
}

.press-card {
    position: relative;
}

.press-card-featured {
    grid-column: span 2;
    grid-row: span 2;
}

.press-image-wrap {
    display: grid;
    min-height: 480px;
    padding: .6rem;
    place-items: center;
    background:
        linear-gradient(135deg, rgba(8, 114, 70, .08), rgba(243, 165, 28, .09)),
        #ffffff;
}

.press-card-featured .press-image-wrap {
    min-height: 780px;
}

.press-image-wrap img {
    width: 100%;
    height: 100%;
    max-height: 680px;
    object-fit: contain;
    object-position: center center;
    filter: drop-shadow(0 18px 26px rgba(5, 63, 44, .16));
}

.press-card-featured .press-image-wrap img {
    max-height: 900px;
}

.recognition-card img,
.gallery-card img {
    aspect-ratio: 4 / 3;
}

.gallery-card img {
    object-position: center center;
}

.gallery-card-featured img {
    height: 360px;
    padding: .85rem;
    background: #ffffff;
    object-fit: contain;
    aspect-ratio: auto;
}

.gallery-card-compact img {
    height: 265px;
    object-fit: cover;
    aspect-ratio: auto;
}

.gallery-card-featured .media-card-body {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .75rem 1rem;
}

.gallery-card-featured .media-card-body h3 {
    max-width: 720px;
    margin-bottom: 0;
}

.media-card-body {
    padding: 1.2rem;
}

.media-card-body h3 {
    margin-bottom: .35rem;
}

.media-card-body span {
    color: var(--elb-orange);
    font-size: .78rem;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.market-card {
    display: grid;
    height: 100%;
    gap: .35rem;
    padding: 1.35rem;
    color: var(--elb-green-dark);
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.market-card:hover {
    transform: translateY(-3px);
    border-color: rgba(8, 114, 70, .42);
    color: var(--elb-green-dark);
    box-shadow: 0 22px 50px rgba(24, 62, 46, .12);
}

.market-card i {
    color: var(--elb-orange);
    font-size: 2rem;
}

.market-card span {
    font-size: 1.05rem;
    font-weight: 900;
}

.market-card small {
    color: var(--elb-muted);
    font-weight: 700;
}

.founder-video-section {
    background:
        linear-gradient(180deg, #ffffff 0%, #f8fbf9 100%);
}

.embed-card {
    display: flex;
    flex-direction: column;
}

.embed-frame {
    position: relative;
    display: grid;
    min-height: 360px;
    place-items: center;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(5, 63, 44, .08), rgba(243, 165, 28, .08)),
        #ffffff;
}

.embed-frame iframe,
.embed-frame video {
    display: block;
    width: 100%;
    border: 0;
}

.embed-frame iframe {
    min-height: 360px;
}

.facebook-post-frame {
    min-height: 560px;
    padding: 1rem;
    align-items: start;
}

.facebook-xfbml {
    width: min(100%, 500px);
    min-height: 560px;
    margin-inline: auto;
}

.facebook-xfbml > span,
.facebook-xfbml iframe {
    width: min(100%, 500px);
    border-radius: 8px;
    background: #ffffff;
}

.facebook-xfbml iframe {
    display: block;
    min-height: 560px;
    margin-inline: auto;
}

.facebook-post-fallback {
    display: grid;
    position: absolute;
    z-index: 1;
    inset: 1rem;
    width: min(calc(100% - 2rem), 500px);
    min-height: 0;
    margin: 0 auto;
    padding: 2rem;
    place-content: center;
    gap: .8rem;
    border: 1px solid var(--elb-line);
    border-radius: 12px;
    background: #ffffff;
    color: var(--elb-green-dark);
    text-align: center;
}

.facebook-post-fallback > i {
    color: #1877f2;
    font-size: 2.8rem;
}

.facebook-post-fallback strong { font-size: 1.1rem; }
.facebook-post-fallback span { color: var(--elb-muted); line-height: 1.55; }
.facebook-post-fallback a,
.facebook-post-open-link { color: #0b63ce; font-weight: 800; text-decoration: none; }
.facebook-post-fallback a:hover,
.facebook-post-open-link:hover { text-decoration: underline; }
.facebook-post-open-link { display: inline-flex; align-items: center; gap: .35rem; margin-top: .85rem; }

.facebook-post-frame.facebook-embed-loaded .facebook-post-fallback { display: none; }

.embed-frame-video {
    aspect-ratio: 16 / 9;
    min-height: 0;
}

.embed-frame-video video {
    height: 100%;
    object-fit: contain;
    background: #071c16;
}

.social-post-card .media-card-body {
    border-top: 1px solid var(--elb-line);
}

.founder-social-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--elb-line);
}

@media (max-width: 991.98px) {
    /* Keep the founder page locked to the phone viewport.  The language rail
       remains scrollable by touch, but it must not make the document itself
       slide sideways. */
    html:has(.founder-page) {
        overflow-x: clip;
    }

    .founder-page {
        width: 100%;
        max-width: 100%;
        overflow-x: clip;
    }

    /* A continuously moving header is distracting on a small screen and can
       look like the whole window is moving.  Keep its first set of links
       still; the rail can still be swiped to reach the remaining languages. */
    .founder-page .quick-learning-motion {
        animation: none;
        transform: none;
    }

    .founder-page .quick-learning-track[aria-hidden="true"] {
        display: none;
    }

    .founder-hero {
        padding: 2.25rem 0;
        background:
            linear-gradient(180deg, rgba(5, 63, 44, .98), rgba(8, 114, 70, .94)),
            url("https://old.ethiolanguagebox.com/wp-content/uploads/2021/11/ELB-Final-25-DEC-22.png") bottom right -90px / 380px no-repeat;
    }

    .founder-band {
        align-items: flex-start;
        flex-direction: column;
    }

    .print-media-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .press-card-featured {
        grid-column: span 2;
    }

    .press-card-featured .press-image-wrap,
    .press-image-wrap {
        min-height: 560px;
    }

    .facebook-post-frame {
        min-height: 500px;
    }

    .founder-social-pagination {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 991.98px) {
    .founder-portrait-card {
        justify-items: center;
        max-width: 280px;
        margin-inline: auto;
    }
}

@media (max-width: 575.98px) {
    .founder-hero {
        padding: 2rem 0;
    }

    .founder-hero h1 {
        font-size: clamp(1.95rem, 10.5vw, 2.75rem);
    }

    .founder-portrait-card figcaption,
    .media-card-body,
    .impact-card,
    .founder-band {
        padding: 1.1rem;
    }

    .founder-portrait-card img {
        width: min(100%, 220px);
        height: auto;
    }

    .press-card img,
    .recognition-card img,
    .gallery-card img {
        aspect-ratio: 4 / 3;
    }

    .gallery-card-featured img,
    .gallery-card-compact img {
        height: auto;
    }


    .print-media-grid {
        grid-template-columns: 1fr;
    }

    .press-card-featured {
        grid-column: auto;
        grid-row: auto;
    }

    .press-card-featured .press-image-wrap,
    .press-image-wrap {
        min-height: min(680px, calc(100vw - 24px));
    }

    .embed-frame,
    .embed-frame iframe {
        min-height: 300px;
    }

    .facebook-post-frame {
        min-height: 420px;
        padding: .75rem;
    }

    .facebook-post-frame iframe {
        min-height: 420px;
    }
}
