/* Apply Team hero image */
.hero.team-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url('/images/team-backdrop.jpg') no-repeat center center/cover;
}

/* ===== Team Grid ===== */
.team-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    margin: 40px auto 60px;
    max-width: 900px;
}

/* ===== Team Card ===== */
.team-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.07);
    border-radius: 14px;
    padding: 22px 22px 26px;
    display: flex;
    flex-direction: column;
}

/* ===== Photo placeholder ===== */
.team-photo {
    width: 100%;
    aspect-ratio: 3 / 4;
    background-color: #e5e7eb;
    border-radius: 8px;
    margin-bottom: 18px;
    overflow: hidden;
}

.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

/* For smaller/landscape images — show at natural size, no crop */
.team-photo--fit {
    aspect-ratio: unset;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background-color: #f1f5f9;
}

.team-photo--fit img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 200px;
    object-fit: contain;
    border-radius: 4px;
}

/* ===== Name ===== */
.team-name {
    margin: 0 0 4px;
    font-size: 1.15rem;
    font-weight: 700;
    color: #2d6a4f;
}

/* ===== Title / Role ===== */
.team-title {
    margin: 0 0 14px;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #64748b;
}

/* ===== Bio ===== */
.team-bio {
    margin: 0;
    font-size: 11pt;
    line-height: 1.8;
    color: #2f5f8f;
}

/* ===== Mobile: 1 column ===== */
@media (max-width: 768px) {
    .team-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}
