/* ==================== PEOPLE ==================== */

/* ---------- People: parallax distances (0px = off; mobile = below 992px) ---------- */

.people-hero {
    --parallax-desktop: 300px;
    --parallax-mobile: 0px;
}

/* ---------- People: shared photo framing ---------- */

.people-photo-frame {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 22px;
    background-color: #d9dcd9;
}

.people-photo {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: scale 0.35s ease;
}

.people-card-arrow {
    position: absolute;
    right: 12px;
    bottom: 12px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    color: #ffffff;
    font-size: 1rem;
}

/* ---------- People: hero + section menu ---------- */

.people-hero .parallax-photo {
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)),
        url("../../images/people/people-hero-picnic.jpg");
    background-position: center 70%;
}

.people-hero .parallax-layer::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("../../images/people/people-hero-overlay.png");
    background-repeat: no-repeat;
    background-size: clamp(260px, 32vw, 435px) auto;
    background-position: right bottom;
}

.people-hero {
    display: flex;
    align-items: flex-end;
    min-height: clamp(300px, 46vw, 780px);
    padding: 3rem 0 3.9rem;
    background-color: var(--ras-green-dark);
    color: #ffffff;
    text-align: center;
}

.people-hero-heading {
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
    margin-bottom: 0.2rem;

    /* All heading should be the same size, but RAS pushed it too far with the word length, so this one is slightly smaller */
    font-size: 3rem;
}

.people-hero-subheading {
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
    margin-bottom: 1.5rem;
}

.people-menu-list {
    display: flex;
    justify-content: space-between;
    gap: 0.25rem;
    margin: 0;
    padding: 0.4rem 0.6rem;
    border-radius: 14px;
    background-color: #ffffff;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.15);
}

.people-menu-button {
    padding: 0.5rem 0.9rem;
    border: 0;
    border-radius: 999px;
    background-color: transparent;
    font-family: var(--ras-font-ui);
    font-size: 0.95rem;
    color: #111111;
    white-space: nowrap;
    transition: background-color 0.2s ease;
}

@media (hover: hover) {
    .people-menu-button:hover {
        background-color: #b8e36f;
    }
}

.people-menu-button:focus-visible {
    outline: 3px solid var(--ras-green-dark);
    outline-offset: 2px;
}

.people-menu-select {
    max-width: 360px;
    margin: 0 auto;
    padding: 0.7rem 2.5rem 0.7rem 1.1rem;
    border: 0;
    border-radius: 14px;
    /* font-family: var(--ras-font-ui); */
    font-size: 1rem;
    color: #111111;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.15);
    cursor: pointer;
}

.people-menu-select:focus {
    outline: 3px solid var(--ras-green-lime);
    outline-offset: 2px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.15);
}

/* ---------- People: overview (intro, gallery, closing line) ---------- */

.people-overview {
    padding: 2.75rem 0 2.75rem;
    background-image: linear-gradient(105deg, #a6e35c 0%, #4b885d 45%, #1f5552 75%, #0c2a4a 100%);
    color: #ffffff;
    text-align: center;
}

.people-overview-text {
    font-weight: 600;
    /* font-size: 1.05rem; */
    /* line-height: 1.4; */
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.25);
    margin-bottom: 0;
}

.people-gallery-wrap {
    margin: 2.25rem 0;
    padding: 0 0.45rem;
}

.people-gallery-wrap .photo-gallery {
    --photo-gallery-columns: 5;
}

.people-gallery-wrap .photo-gallery.splide .splide__track .splide__list.photo-gallery-list {
    gap: 0.45rem;
}

.people-gallery-wrap .photo-gallery-button {
    border-radius: 0;
}

.people-gallery-wrap .photo-gallery-button img {
    aspect-ratio: 266 / 226;
}

@media (max-width: 991.98px) {
    .people-gallery-wrap .photo-gallery.splide .splide__track .splide__list.photo-gallery-list {
        gap: 0;
    }
}

/* ---------- People: Board of Advisors / Coaches ---------- */

.people-profiles {
    overflow-x: clip;
    padding: 0 0 4rem;
    background-color: #ffffff;
}

.people-profiles-panel {
    position: relative;
    margin-top: 2rem;
    padding: 2.5rem 1.5rem 3rem;
    border-radius: 18px;
    background-color: #ffffff;
    box-shadow: 0 10px 40px rgba(60, 90, 40, 0.12);
    text-align: center;
}

/* ---------- People: light-green intro boxes (ISEC, Coaches, Advisors) ---------- */

.people-intro-box {
    position: relative;
    padding: 2.25rem clamp(1.5rem, 7vw, 5.5rem) 2.5rem;
    background-color: #e0f6c4;
}

.people-intro-box-heading {
    font-weight: 700;
    font-size: 1.5rem;
    color: #2b5941;
    margin-bottom: 1rem;
}

.people-intro-box-heading::after {
    content: "";
    display: block;
    width: 280px;
    max-width: 100%;
    height: 4px;
    margin-top: 0.9rem;
    background-color: #5f8a5f;
}

.people-intro-box-text {
    color: #444444;
    margin-bottom: 0;
}

.people-intro-box-ornament-left {
    width: 120px;
    left: -56px;
    bottom: -56px;
}

.people-intro-box-ornament-right {
    width: 120px;
    right: -50px;
    bottom: -70px;
    transform: rotate(15deg);
}

@media (max-width: 767.98px) {
    .people-intro-box-heading {
        font-size: 1.3rem;
    }
}

@media (max-width: 575.98px) {
    .people-intro-box-ornament-left,
    .people-intro-box-ornament-right {
        width: 72px;
        bottom: -36px;
    }

    .people-intro-box-ornament-left {
        left: -20px;
    }

    .people-intro-box-ornament-right {
        right: -20px;
    }
}

.people-profile-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem 0.9rem;
    margin: 0;
}

.people-profile-card {
    display: block;
    width: 200px;
    padding: 0;
    border: 0;
    background: none;
    color: #222222;
    text-align: center;
}

.people-profile-photo-frame {
    aspect-ratio: 199 / 270;
    margin-bottom: 0.85rem;
    -webkit-mask-image: -webkit-radial-gradient(white, black);
}

.people-profile-card:focus-visible .people-photo {
    scale: 1.05;
}

@media (hover: hover) {
    .people-profile-card:hover .people-photo {
        scale: 1.05;
    }
}

.people-profile-card:focus-visible {
    outline: 3px solid var(--ras-green-lime);
    outline-offset: 4px;
    border-radius: 22px;
}

.people-profile-name {
    display: block;
    font-weight: 700;
}

.people-profile-role {
    display: block;
}

/* ---------- People: Return to top links ---------- */

.people-back-to-top-wrap {
    margin: 1.5rem 0 0;
    text-align: center;
}

.people-department + .people-back-to-top-wrap {
    margin-top: 2.5rem;
}

.people-back-to-top {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-family: var(--ras-font-ui);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--ras-green-dark);
    text-decoration: none;
}

.people-back-to-top:hover {
    color: var(--ras-green-dark);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.people-back-to-top:focus-visible {
    outline: 3px solid var(--ras-green-lime);
    outline-offset: 3px;
    border-radius: 4px;
}

/* ---------- People: profile pop-up ---------- */

.people-profile-modal {
    --profile-screen-edge-gap: 0.5rem;
    --bs-modal-margin: 3.75rem;
}

.people-profile-modal .modal-dialog {
    max-width: min(1130px, calc(100% - var(--profile-screen-edge-gap) * 2));
    margin-left: auto;
    margin-right: auto;
}

.people-profile-modal .modal-content {
    border: 0;
    border-radius: 16px;
}

.people-profile-detail {
    display: flex;
    gap: 2.5rem;
    min-height: 520px;
    padding: 4rem 4.25rem 4rem 3.4rem;
}

.people-profile-detail-photo-frame {
    flex-shrink: 0;
    width: 243px;
    height: 330px;
}

.people-profile-detail-name {
    font-weight: 700;
    font-size: 1.75rem;
    color: #111111;
    margin-bottom: 0.25rem;
}

.people-profile-detail-role {
    font-weight: 700;
    margin-bottom: 0;
}

.people-profile-detail-affiliation {
    margin-bottom: 0;
}

.people-profile-detail-divider {
    width: 40px;
    height: 4px;
    margin: 1.25rem 0;
    background-color: #4d7f3f;
}

.people-profile-detail-bio {
    text-align: justify;
    margin-bottom: 0;
}

/* make popup readable on smaller screens */
@media (max-width: 671.98px) {
    .people-profile-detail {
        flex-direction: column;
        align-items: center;
        gap: 1.25rem;
        min-height: 0;
        padding: 2rem 1.25rem;
    }

    .people-profile-detail-photo-frame {
        width: 150px;
        height: 204px;
    }

    .people-profile-detail-text {
        width: 100%;
        text-align: center;
    }

    .people-profile-detail-name {
        font-size: 1.4rem;
    }

    .people-profile-detail-divider {
        margin-left: auto;
        margin-right: auto;
    }

    .people-profile-detail-bio {
        text-align: left;
    }
}

/* ---------- People: committee banner + departments ---------- */

.people-committee {
    overflow-x: clip;
    padding-bottom: 4rem;
    background-color: #ffffff;
}

.people-committee-banner {
    margin-bottom: 3rem;
    padding: 2.5rem 0;
    background-image: var(--ras-banner-gradient);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
    color: #ffffff;
    text-align: center;
}
@media (max-width: 767.98px) {
    .people-committee-banner {
        padding: 2.25rem 0;
    }
}
@media (max-width: 575.98px) {
    .people-committee-banner {
        padding: 2rem 0;
    }
}

.people-committee-heading {
    font-weight: 700;
    font-size: 1.9rem;
    line-height: 1.2;
    margin-bottom: 0;
}
@media (max-width: 767.98px) {
    .people-committee-heading {
        font-size: 1.5rem;
    }
}
@media (max-width: 575.98px) {
    .people-committee-heading {
        font-size: 1.2rem;
    }
}

.people-committee-heading-line {
    display: block;
    font-family: var(--ras-font-body);
    font-weight: 400;
}

.people-department {
    padding: 2.25rem 1.6rem 3rem;
    border-radius: 18px;
    background-color: #ffffff;
    box-shadow: 0 10px 40px rgba(60, 90, 40, 0.12);

    margin: 3rem 0 -1rem;
}

.people-department-heading {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-bottom: 1.4rem;
    border-bottom: 1px solid #a6a6a6;
    margin-bottom: 2rem;
    font-weight: 700;
    font-size: 1.75rem;
    color: #111111;
}
@media (max-width: 767.98px) {
    .people-department-heading {
        font-size: 1.5rem;
    }
}
@media (max-width: 575.98px) {
    .people-department-heading {
        font-size: 1.2rem;
    }
}

.people-department-number {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #1c4831;
    color: #ffffff;
    font-size: 1.35rem;
}

.people-member-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2.5rem 0.9rem;
    margin: 0;
}

/* ---------- People: committee flip cards ---------- */

.people-member-card {
    display: block;
    width: 158px;
    padding: 0;
    border: 0;
    background: none;
    perspective: 1000px;
    text-align: left;
}

.people-member-card:focus-visible {
    outline: 3px solid var(--ras-green-lime);
    outline-offset: 4px;
    border-radius: 22px;
}

.people-member-card-inner {
    position: relative;
    display: block;
    aspect-ratio: 158 / 209;
    transform-style: preserve-3d;
    transition: transform 0.6s ease;
}

/* same size as .people-profile-card on mobile */
@media (max-width: 991.98px) {
    .people-member-card {
        width: 200px;
    }

    .people-member-card-inner {
        aspect-ratio: 199 / 270;
    }
}

.people-member-card.is-flipped .people-member-card-inner {
    transform: rotateY(180deg);
}

.people-member-face {
    position: absolute;
    inset: 0;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transition: visibility 0s linear 0.3s;
}

.people-member-front {
    transform: rotateY(0deg);
}

.people-member-back {
    visibility: hidden;
    transform: rotateY(180deg);
}

.people-member-card.is-flipped .people-member-front {
    visibility: hidden;
}

.people-member-card.is-flipped .people-member-back {
    visibility: visible;
}

.people-member-front::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 55%);
}

.people-member-back .people-photo {
    filter: blur(3px) brightness(0.45);
}

.people-member-caption {
    position: absolute;
    left: 14px;
    right: 50px;
    bottom: 12px;
    z-index: 1;
    color: #ffffff;
}

.people-member-name {
    display: block;
    font-family: var(--ras-font-heading);
    font-weight: 600;
    font-size: 0.8rem;
    line-height: 1.2;
}

.people-member-role {
    display: block;
    font-size: 0.62rem;
    line-height: 1.3;
    opacity: 0.85;
}

.people-member-card .people-card-arrow {
    width: 30px;
    height: 30px;
    font-size: 0.8rem;
}

.people-member-back .people-card-arrow .bi {
    display: inline-block;
    transition: transform 0.35s ease 0.3s;
}

.people-member-card.is-flipped .people-member-back .people-card-arrow .bi {
    transform: rotate(180deg);
}

.people-member-greeting {
    position: absolute;
    top: 14px;
    left: 12px;
    right: 12px;
    z-index: 1;
    font-weight: 300;
    font-size: 0.72rem;
    line-height: 1.35;
    color: #ffffff;
}

.people-member-greeting span {
    display: block;
}

.people-member-greeting b {
    font-weight: 800;
}

.people-member-greeting-gap {
    margin-top: 0.75rem;
}

@media (hover: hover) {
    .people-member-card:hover .people-member-front .people-photo {
        scale: 1.05;
    }
}

@media (prefers-reduced-motion: reduce) {
    .people-member-card-inner,
    .people-member-face,
    .people-photo,
    .people-member-back .people-card-arrow .bi {
        transition: none;
    }
}
