/* ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////*/
/* Team Member Cards */
/* ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////*/ 

.team-cards { width: 100%; display: flex; flex-wrap: wrap; }

.team-cards__card { display: flex; flex: 50%; margin-bottom: 100px; }

.team-cards__image { margin: 0 20px 0 0; }
.team-cards__image .preview_img { width: 270px; height: auto; }

.team-cards__about { padding: 10px 20px 0 0; }
.team-cards__name { font-weight: bold; margin-bottom: 0; }
.team-cards__job { font-size: 0.825rem; line-height: 1rem; margin-bottom: 14px; } 




.team-block {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    margin: -20px; /* Negative margin to offset the padding on team members */
}

.team-member {
    display: flex;
    flex-direction: column;
    width: 200px;
    height: 200px;
    margin: 20px;
    box-sizing: border-box;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: -3px 3px 3px 0px rgba(0,0,0,0.15);
    transition: transform 0.3s ease;
    position: relative;
    z-index: 310;
}

.team-member p {
    font-family: 'bariol_bold', sans-serif;
    text-align: center;
    margin-bottom: 0;
}

.team-member p small {
    font-family: 'bariol_regular', sans-serif;
    font-size: 1rem;
    margin-bottom: 0;
}

.team-member:hover {
    transform: translateY(-5px);
}

.team-member-image,
.placeholder-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    position: absolute; 
    z-index: 315;
}

.placeholder-image {
    height: 200px;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    font-style: italic;
}


.team-member-caption,
.editor-styles-wrapper .team-member-caption {
    color: var(--tm-text-color);
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    top: 0;
    background-color: rgba(255, 255, 255, .9);
    position: absolute;
    z-index: 320;
}

.team-member-caption {
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 10px;
    text-align: center;
}
.team-member:hover .team-member-caption {
    opacity: 1;
}

.team-block-empty {
    width: 100%;
    padding: 40px;
    text-align: center;
    background-color: #f9f9f9;
    border: 2px dashed #ddd;
    color: #888;
    font-style: italic;
}

.placeholder-image i { font-size: 10rem; }

/*//////////////////////////////////////////////////////////////////// 
//  Editor Styles
////////////////////////////////////////////////////////////////////*/

.acf-fields .acf-field-6687ced526a5b { background-color: #edeae4; }

/*//////////////////////////////////////////////////////////////////// 
//  Media Queries
////////////////////////////////////////////////////////////////////*/

@media (max-width: 1194px) {

    .team-member {
        width: 200px;
    }

    .team-block {
        margin: 0;
        justify-content: center;
    }
}

@media (max-width: 900px) {

    .team-block {
        justify-content: center;
        row-gap: 20px;
        column-gap: 20px;
    }

    .team-member {
        width: 160px;
        height: 160px;
        margin: 0;
    }

    .team-member:last-child {
        margin: 0;
    }

    #team .wp-block-image {
        width: 90%;
        margin: 0 auto;
    }

}

/* @media (max-width: 600px) {
    .team-member {
        width: calc(100% - 40px);
    }
} */