/* =========================================
   DTES HOPE - OUR TEAM PAGE
   ========================================= */


/* -----------------------------------------
   OUTER GRID CELL
   Add class: team-member-cell
   to the Group that contains each card
   ----------------------------------------- */

.team-member-cell {
    display: flex !important;
    align-items: stretch !important;
    height: 100% !important;
    width: 100% !important;
}


/* -----------------------------------------
   ENTIRE TEAM MEMBER CARD
   Add class: team-member-card
   to the Columns block for each executive
   ----------------------------------------- */

.team-member-cell > .team-member-card,
.team-member-card {
    display: grid !important;
    grid-template-columns: 36% 64%;

    align-items: stretch !important;
    align-self: stretch !important;

    flex: 1 1 auto !important;

    width: 100% !important;
    height: 100% !important;

    margin: 0 !important;
    padding: 0 !important;

    overflow: hidden !important;
}


/* -----------------------------------------
   PHOTO COLUMN
   Add class: team-member-photo
   to the Column containing the Image block
   ----------------------------------------- */

.team-member-photo {
    position: relative !important;

    align-self: stretch !important;

    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;

    margin: 0 !important;
    padding: 0 !important;
    gap: 0 !important;

    overflow: hidden !important;
    line-height: 0 !important;
}


/* Remove WordPress/Twenty Twenty-Four
   spacing from wrappers inside photo column */

.team-member-photo > *,
.team-member-photo figure,
.team-member-photo .wp-block-image,
.team-member-photo a {
    margin: 0 !important;
    padding: 0 !important;
}


/* Make WordPress Image block fill
   the entire photo column */

.team-member-photo .wp-block-image,
.team-member-photo figure {
    position: absolute !important;

    inset: 0 !important;

    width: 100% !important;
    height: 100% !important;

    max-width: none !important;
    max-height: none !important;

    aspect-ratio: auto !important;
}


/* Actual portrait image */

.team-member-photo img {
    position: absolute !important;

    inset: 0 !important;

    width: 100% !important;
    height: 100% !important;

    max-width: none !important;
    max-height: none !important;

    margin: 0 !important;
    padding: 0 !important;

    object-fit: cover !important;

    /* Adjust this if faces need to move
       higher/lower within the crop */
    object-position: 50% 35% !important;

    aspect-ratio: auto !important;

    display: block !important;
}