.pjg-staff-archive-page .pjg-staff-archive-hero picture,
.pjg-staff-archive-page .pjg-staff-archive-hero img {
    display: block;
}

.pjg-staff-archive-page .pjg-staff-archive-hero .entry-title::after,
.pjg-staff-archive-title-only .entry-title::after {
    content: "";
    display: block;
    width: 85px;
    height: 3px;
    margin-top: 0.8em;
    background: #253746;
}

.pjg-staff-archive-page .pjg-staff-archive-hero .entry-title::after {
    background: #fff;
}

.pjg-staff-archive {
    width: min(960px, calc(100% - 2rem));
    margin: 0 auto;
    padding: 0 0 clamp(3rem, 7vw, 6rem);
}

.pjg-staff-list {
    --pjg-staff-columns: 3;
    display: grid;
    gap: clamp(2.25rem, 4vw, 3.5rem) clamp(1.5rem, 3vw, 2.25rem);
    grid-template-columns: repeat(var(--pjg-staff-columns), minmax(0, 1fr));
    margin: 0;
}

.pjg-staff-group + .pjg-staff-group {
    position: relative;
    margin-top: clamp(3rem, 7vw, 6rem);
    padding-top: clamp(3.25rem, 6vw, 5rem);
}

.pjg-staff-group + .pjg-staff-group::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: 59px;
    height: 18px;
    background: transparent url("/wp-content/themes/pjg/assets/svg/ornament.svg") center center / contain no-repeat;
    transform: translateX(-50%);
}

.pjg-staff-group__title {
    margin: 0 0 clamp(1.5rem, 3vw, 2.25rem);
    color: #253746;
    font-family: "Roboto-Light", sans-serif;
    font-size: 30px;
    font-weight: normal;
    letter-spacing: -0.02em;
    line-height: 36px;
    text-transform: none;
}

.pjg-staff-member-card {
    min-width: 0;
}

.pjg-staff-member-card__image {
    aspect-ratio: 4 / 5;
    background: #f2f1ed;
    margin-bottom: 1.15rem;
}

.pjg-staff-member-card__image a,
.pjg-staff-member-card__image img {
    display: block;
    height: 100%;
}

.pjg-staff-member-card__image a {
    transition: transform 220ms ease;
}

.pjg-staff-member-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pjg-staff-member-card__image a:hover,
.pjg-staff-member-card__image a:focus {
    transform: scale(1.03);
}

.pjg-staff-member-card__body {
    min-width: 0;
}

.pjg-staff-member-card__name {
    margin: 0;
    color: #253746;
    font-family: "Roboto-Light", sans-serif;
    font-size: 24px;
    font-weight: normal;
    letter-spacing: -0.02em;
    line-height: 30px;
    text-transform: none;
}

.pjg-staff-profile__breadcrumb a {
    color: inherit;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.18em;
}

.pjg-staff-member-card__role {
    margin: 0.45rem 0 0;
    color: #253746;
    font-family: "AddingtonCF-DemiBold", serif;
    font-size: 16px;
    font-weight: normal;
    letter-spacing: 0.08em;
    line-height: 20px;
    text-transform: uppercase;
}

.pjg-staff-member-card__body > .pjg-staff-member-card__excerpt-content.entry-content {
    margin-top: 1.125rem !important;
    margin-right: 0;
    margin-bottom: 0;
    margin-left: 0;
    max-width: none;
    padding-right: 0;
    padding-left: 0;
}

.pjg-staff-member-card__excerpt-content.entry-content > .pjg-staff-member-card__excerpt {
    display: -webkit-box;
    margin-bottom: 0 !important;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 6;
}

.pjg-staff-member-card__link {
    margin: 0.525rem 0 0;
}

.pjg-staff-member-card__bio-link,
.pjg-staff-member-card__bio-link:visited {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 0;
    background: transparent;
    color: #253746;
    font-family: "Roboto-Light", sans-serif;
    font-size: 18px;
    font-weight: normal;
    line-height: 1.4;
    text-decoration: none;
    text-transform: none;
}

.pjg-staff-member-card__bio-link:hover,
.pjg-staff-member-card__bio-link:focus {
    color: #b5bd00;
    text-decoration: none;
}

.pjg-staff-member-card__bio-chevron {
    display: inline-block;
    font-size: 0.85em;
    line-height: 1;
}

.pjg-staff-profile__bio > :first-child {
    margin-top: 0;
}

.pjg-staff-profile__bio > :last-child {
    margin-bottom: 0;
}

.pjg-staff-single {
    width: min(1080px, calc(100% - 2rem));
    margin: 0 auto;
    padding: clamp(2.5rem, 6vw, 5rem) 0;
}

.pjg-staff-profile__breadcrumb {
    margin-bottom: 2rem;
    font-weight: 600;
}

.pjg-staff-profile__breadcrumb a::before {
    content: "\2190 ";
}

.pjg-staff-profile__layout {
    display: grid;
    grid-template-columns: minmax(260px, 420px) minmax(0, 1fr);
    gap: clamp(2rem, 5vw, 4.5rem);
    align-items: start;
}

.pjg-staff-profile__image {
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: #f2f1ed;
}

.pjg-staff-profile__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pjg-staff-profile__header {
    margin-bottom: 1.5rem;
}

.pjg-staff-profile__name {
    margin: 0;
    font-size: clamp(2.25rem, 4vw, 4.5rem);
    line-height: 1.05;
}

.pjg-staff-profile__title {
    margin: 0.7rem 0 0;
    color: #4f4f4f;
    font-size: clamp(1.1rem, 1rem + 0.45vw, 1.45rem);
    font-weight: 600;
    line-height: 1.4;
}

.pjg-staff-profile__bio {
    line-height: 1.72;
}

.pjg-staff-empty {
    margin: 2rem 0;
}

.pjg-staff-template {
    padding: 28px 16px 56px;
    background: transparent;
}

.pjg-staff-template__inner {
    box-sizing: border-box;
    width: 100%;
    margin: 0 auto;
}

.pjg-staff-template__article {
    margin: 0;
}

.pjg-staff-template__header {
    width: 100%;
    margin: 0 0 32px;
    text-align: left;
}

.pjg-staff-template .entry-header {
    text-align: left;
}

.pjg-staff-template__title {
    margin: 0;
    width: 100%;
    color: #253746;
    text-align: left;
}

.pjg-staff-template .entry-header .entry-title {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    text-align: left;
}

.pjg-staff-template__meta {
    margin: 0 0 5px;
    color: #253746;
    font-family: "Roboto-Light", sans-serif;
    font-size: 18px;
    line-height: 1.4;
}

.pjg-staff-template__meta a,
.pjg-staff-template__meta a:visited {
    color: inherit;
    text-decoration: none;
}

.pjg-staff-template__meta a:hover,
.pjg-staff-template__meta a:focus {
    color: #b5bd00;
    text-decoration: none;
}

.pjg-staff-template__back-link a,
.pjg-staff-template__back-link a:visited {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.pjg-staff-template__back-chevron {
    display: inline-block;
    font-size: 0.85em;
    line-height: 1;
}

.pjg-staff-template__body {
    box-sizing: border-box;
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
}

.pjg-staff-template__media-rail {
    min-width: 0;
}

.pjg-staff-template__media {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
}

.pjg-staff-template__media img {
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid rgba(37, 55, 70, 0.18);
}

.pjg-staff-template__media > .wp-element-caption {
    position: static;
    display: block;
    width: 100%;
    margin-top: 8px;
}

.pjg-staff-template__content-blocks {
    max-width: none !important;
    margin: 0;
    padding: 0 0 25px !important;
    min-width: 0;
}

.pjg-staff-template__bio > :first-child {
    margin-top: 0;
}

.pjg-staff-template__bio > :last-child {
    margin-bottom: 0;
}

@media (max-width: 900px) {
    .pjg-staff-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pjg-staff-profile__layout {
        grid-template-columns: 1fr;
    }

    .pjg-staff-profile__image {
        max-width: 460px;
    }
}

@media (min-width: 768px) {
    .pjg-staff-member-card__name {
        font-size: 28px;
        line-height: 34px;
    }

    .pjg-staff-member-card__role {
        font-size: 20px;
        line-height: 24px;
    }

    .pjg-staff-group__title {
        font-size: 36px;
        line-height: 42px;
    }

    .pjg-staff-group + .pjg-staff-group::before {
        width: 74px;
        height: 24px;
    }

    .site-main.pjg-staff-template .entry-header {
        margin-bottom: 50px;
    }

    .site-main.pjg-staff-template .entry-content {
        margin-bottom: 0;
    }

    .pjg-staff-template__title {
        width: 100%;
    }
}

@media (min-width: 960px) {
    .pjg-staff-template__body {
        grid-template-columns: minmax(0, 37%) minmax(0, 63%);
        gap: clamp(32px, 5vw, 64px);
        align-items: start;
    }

    .pjg-staff-template__media-rail {
        position: sticky;
        top: var(--pjg-staff-sticky-top, 120px);
        align-self: start;
    }
}

@media (min-width: 1416px) {
    .pjg-staff-archive-page .pjg-staff-archive-hero .entry-title::after,
    .pjg-staff-archive-title-only .entry-title::after {
        width: 100px;
        height: 5px;
    }
}

@media (max-width: 640px) {
    .pjg-staff-list {
        grid-template-columns: 1fr;
    }
}
