.team-container {
    display: flex;
}

.team-member {
    position: relative;
    flex: 1 1 416px;
    height: 500px; 
    max-height: 500px; 
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}


.team-member img {
    position: absolute;  
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;  
    filter: brightness(65%);
}

.member-overlay {
    position: absolute;
    bottom: 16px; 
    left: 16px; 
    width: calc(100% - 34px); 
    background: #057A9980;
    backdrop-filter: blur(2px);
    color: white;
    padding: 16px; 
    text-align: left;
    box-sizing: border-box; 
    height: 112px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}


.member-name {
    font-size: 1.25rem;
    font-weight: bold;
    margin: 0;
}

.member-position {
    font-size: 16px;
    font-size: 1rem;
    margin: 0;
}

/* Unique wrapper for team block pagination */
.acf-team-pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

/* Unique styling for the team pagination buttons */
.acf-team-page-btn {
    background-color: #FFFFFF;
    border: 0px;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease-in-out;
}

/* Styling for the active page button (only for the team block) */
.acf-team-page-btn.active {
    height: 40px !important;
    width: 40px !important;
    padding: 8px 16px !important;
    background-color: #057A99 !important;
    color: #FFFFFF !important;
    font-size: 16px !important;
}

@media screen and (max-width: 1300px) and (min-width: 861px) {
    .team-container {
        display: flex;
    }
}

@media screen and (max-width: 860px) and (min-width: 769px) {
    .team-container {
        display: flex;
    }
    .wp-container-core-post-template-is-layout-1 {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media screen and (max-width: 768px) and (min-width: 601px) {
    .team-container {
        display: flex;
    }
    .wp-container-core-post-template-is-layout-1 {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
    .team-member {
        flex-basis: 100%;
        max-width: 100%;
    }
}

@media screen and (max-width: 600px) {
    .team-container {
        display: flex;
    }
    .wp-container-core-post-template-is-layout-1 {
        grid-template-columns: repeat(1, minmax(0, 1fr)) !important;
    }
    .team-member {
        flex-basis: 100%;
        max-width: 100%;
    }
}