.employee__grid {
    max-width: 1080;
    margin: auto;
}

.employee-card .employee * {
    margin-bottom: 0;
}

.employee .employee-image a {
    display: block;
}

.employee .employee-image img {
	aspect-ratio: 1 / 1;
    object-fit: cover;
    width: 100%;
    transform: scale(1.005);
    transition: var(--transition-3);
}

.employee .employee-image a:hover img {
    display: block;
    transform: scale(1.1);
}

.employee-card .employee h3 a {
    text-decoration: none;
	color: var(--ast-global-color-2);
}

.employee-card .employee h3 a:hover {
	color: var(--ast-global-color-3);
}

.employee {
    display: grid;
    grid-template-columns: minmax(175px, 1fr) 1fr 1fr;
    column-gap: 20px;
}

.employee .employee-image {
    grid-column: 1 / 2;
    grid-row: 1 / 6;
}

.employee h3 {
    grid-column: 2 / 4;
    grid-row: 1 / 2;
    font-size: 20px;
}

.employee-job-title,
.card-link .employee-job-title {
    grid-column: 2 / 4;
    grid-row: 2 / 3;
    font-size: 14px;
}

.card-popup-bio .employee-job-title {
    grid-row: 2 / 5;
    font-size: 16px;
}

.card-popup-vcard .employee-job-title  {
    grid-row: 2 / 4;
    font-size: 16px;
}

.banker-location {
	font-size: 14px;
    grid-column: 2 / 4;
    grid-row: 3 / 4;
}

.banker-phone {
    display: flex;
    align-items: center;
}

.banker-phone::before {
    content: "";
    display: inline-flex;
    min-width: 20px;
    width: 20px;
    height: 20px;
    background-repeat: no-repeat;
    background-position: center;
    margin-right: 10px;
}

.banker-office-phone::before {
    background-image: url(/wp-content/uploads/2023/12/office-phone-icon.svg);
}

.banker-mobile-phone::before {
    background-image: url(/wp-content/uploads/2023/12/mobile-phone-icon.svg);
}

body.featured .banker-office-phone::before,
body.featured .banker-mobile-phone::before {
    filter: invert(35%) sepia(0%) saturate(34%) hue-rotate(139deg) brightness(95%) contrast(90%);
}

.banker-phone a {
    padding-top: 4px;
}

.employee-phone-col-1 {
    grid-column: 2 / 3;
    grid-row: 4 / 5;
}

.employee-phone-col-2 {
    grid-column: 3 / 4;
    grid-row: 4 / 5;
}

.bio-btns {
    grid-column: 2 / 4;
    grid-row: 5 / 6;
    display: flex;
    gap: 10px;
    align-items: flex-end;
    margin-top: 3%;
}

.card-link .bio-btns {
    margin-top: 5px;
}


.employee-card .employee .bio-btns {
    min-height: 29px;
}

.employee-card .employee .bio-btns .employee-card-btn {
    width: calc(100% / 2 - 5px);
    min-width: 160px;
    min-height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
	text-align: center;
    font-size: 1.1rem;
    padding-top: 2px;
    text-transform: none;
    border: 2px solid var(--ast-global-color-2);
    background-color: var(--ast-global-color-2);
    color: var(--ast-global-color-5);
    text-decoration: none;
}

.employee-card .employee .bio-btns .employee-card-btn:hover {
    border: 2px solid var(--ast-global-color-2);
    background-color: transparent;
    color: var(--ast-global-color-2);
}

.cert-logos {
	display: flex;
	flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: flex-start;
	margin: 30px 0;
}

.cert-logos .cert-logo {
	display: block;
	width: 100%;
	max-width: calc((100% - 30px) / 4);
}

/********* Testimonails Carousel ***************/

.single-banker .testimonials-row,
.single-banker .apply-with-banker-btn.additional {
    margin-top: 90px;
}

.single-banker .banker-testimonials-headline {
    margin-bottom: 20px;
}

.single-banker .testimonials {
    position: relative;
}

.single-banker .testimonials .slick-list {
    width: calc(100% + 10px) !important;
    margin-left: -5px;
}

.single-banker .testimonials  .slick-track {
    display: flex;
    align-items: stretch !important;
    margin-left: 0 !important;
}

.single-banker .testimonials .slick-slide > div {
    position: relative;
    padding: 5px !important;
}

.single-banker .testimonials .testimonial {
    position: relative;
    background-color: var(--ast-global-color-0);
    padding: 28px 20px 0px 35px;
    aspect-ratio: 5 / 3;
    overflow-y: auto;
    z-index: 1;
}

.single-banker .testimonials .slick-slide > div::before {
    position: absolute;
    font-family: "Source Sans Pro", sans-serif;
    color: var(--ast-global-color-3);
    content: "“";
    width: 30px;
    height: 30px;
    left: 0;
    top: 0;
    font-size: 3rem;
    line-height: 1;
    background-color: var(--ast-global-color-8);
    display: flex;
    justify-content: center;
    z-index: 2;
}

.single-banker .testimonials .testimonial::-webkit-scrollbar {
    width: 10px;             
  }
  
.single-banker .testimonials .testimonial::-webkit-scrollbar-track {
    background: var(--ast-global-color-0);        
}
  
.single-banker .testimonials .testimonial::-webkit-scrollbar-thumb {
    background-color: var(--ast-global-color-8);  
    border-radius: 20px;      
    border: 2px solid var(--ast-global-color-0);  
    transition: var(--transition-3);
}
  
.single-banker .testimonials .testimonial::-webkit-scrollbar-thumb:hover {
    background-color: var(--ast-global-color-3);  
}

.single-banker .testimonials button.slick-prev,
.single-banker .testimonials button.slick-next {
    position: absolute;
    bottom: 0;
    height: 30px;
    width: 30px;
    line-height: 0;
    font-size: 2rem;
    padding: 0 0 2px;
	border-radius: 0;
	color: var(--ast-global-color-3);
	background-color: var(--ast-global-color-8);
}

.single-banker .testimonials button.slick-prev {
    left: 0;
}

.single-banker .testimonials button.slick-next {
    right: 0;
}

.single-banker .testimonials .slick-dots li::before {
    content: none;
}

.single-banker .testimonials .slick-dots {
    display: flex;
	flex-wrap: wrap;
    column-gap: 10px;
    justify-content: center;
    padding: 0;
    margin: 0 40px;
}

.single-banker .testimonials .slick-dots li {
    margin-bottom: 0;
}

.single-banker .testimonials .slick-dots button {
    height: 10px;
    width: 30px;
    line-height: 0;
    padding: 0;
    color: transparent;  
	border-radius: 0;
	border: 2px solid var(--ast-global-color-8);
	background-color: transparent; 
}

.single-banker .testimonials .slick-dots .slick-active button {
    background-color: var(--ast-global-color-8);
    border-color: var(--ast-global-color-8); 
}

.single-banker .testimonials .testimonial-author {
    text-align: end;
}

@media (max-width: 780px) { 
    .single-banker .testimonials .testimonial {
        aspect-ratio: 3 / 1;
    }
	
	.single-banker .testimonials-row,
	.single-banker .apply-with-banker-btn.additional {
		margin-top: 70px;
	}
	
	.single-banker .testimonials .slick-dots {
		column-gap: 7px;
	}
}

@media (max-width: 601px) { 
    .employee {
        display: grid;
        grid-template-columns: 1fr 1fr;
        column-gap: 10px;
    }

    .post-type-archive-banker .facetwp-template .banker-card {
        max-width: 420px;
    }

    .employee-card .employee > * {
        margin-bottom: 10px;
    }

    .employee-card .employee .employee-image {
        grid-column: 1 / 3;
        grid-row: 1 / 2;
        margin-bottom: 20px;
    }

    .employee-card .employee-image a {
        max-width: 260px;
        margin: auto;
        clip-path: polygon(100% 0, 100% 90%, 50% 100%, 0 90%, 0 0);
    }

    .employee-card .employee h3 {
        grid-column: 1 / 3;
        grid-row: 2 / 3;
        text-align: center;
        margin-bottom: 10px;
    }

    .employee-card .employee-job-title {
        grid-column: 1 / 3;
        grid-row: 3 / 4;
        text-align: center;
        margin-bottom: 10px;
    }

    .banker-location {
        grid-column: 1 / 3;
        grid-row: 4 / 5;
        justify-content: center;
        margin-bottom: 10px;
    }
	
	.banker-phone-row {
		justify-content: center;
		gap: 5px;
	}

    .banker-phone,
	.banker-email {
        justify-content: center;
    }

    .employee-card .employee-phone-col-1 {
        grid-column: 1 / 2;
        grid-row: 5 / 6;
    }

    .employee-card .employee-phone-col-2 {
        grid-column: 2 / 3;
        grid-row: 5 / 6;
    }

    .employee-card .banker-mobile-phone.col-12 {
        grid-column: 1 / 3;
        grid-row: 5 / 6;
    }

    .employee-card .bio-btns {
        grid-column: 1 / 3;
        grid-row: 6 / 7;
        justify-content: center;
        margin-top: 20px;
    }

    .single-banker .testimonials .testimonial {
        aspect-ratio: 5 / 2;
    }
}

@media (max-width: 430px) { 
    .employee {
        display: block;
    }
	
	.employee-card .employee .bio-btns .employee-card-btn {
		font-size: 1rem;
	}
	
	.cert-logos .cert-logo {
		display: block;
		width: 100%;
		max-width: calc((100% - 10px) / 2);
	}

    .single-banker .testimonials .testimonial {
        aspect-ratio: 5 / 3;
    }

    .single-banker .testimonials .slick-dots button {
        width: 14px;
		height: 8px;
    }
	
	.single-banker .testimonials .slick-dots {
		column-gap: 5px;
		margin: 0;
	}
}
	
@media (max-width: 375px) { 
    .employee-card .employee .bio-btns {
		flex-direction: column;
		align-items: center;
	}

    .single-banker .testimonials .testimonial {
        aspect-ratio: 4 / 3;
    }
}	

@media (max-width: 360px) { 
    .single-banker .testimonials .testimonial {
        aspect-ratio: 1 / 1;
    }
}

/******* Popup ********/

.employee-lightbox-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    column-gap: 30px;
    padding: 20px;
    max-width: 991px;
}

.employee-lightbox-content .image {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
}

.employee-lightbox-content .image img {
    height: 100%;
    object-fit: cover;
}

.employee-lightbox-content .header p {
    font-weight: 600;
}

.employee-lightbox-content .header {
    grid-column: 2 / 4;
    grid-row: 1 / 2;
}

.employee-lightbox-content .body {
    grid-column: 2 / 4;
    grid-row: 2 / 3;
    max-height: 500px;
    overflow-y: overlay;
}

.banker-apply-col {
	display: none;
}

.banker-apply-col.visible {
	display: block;
}

@media (max-width: 768px) { 
    .employee-lightbox-content {
        grid-template-columns: minmax(100px, 1fr) 3fr;
        gap: 20px;
        max-width: 640px;
        padding: 10px;
    }

    .employee-lightbox-content .image {
        grid-column: 1 / 2;
        grid-row: 1 / 2;

    }

    .employee-lightbox-content .header {
        grid-column: 2 / 5;
        grid-row: 1 / 2;
    }

    .employee-lightbox-content .body {
        grid-column: 1 / 5;
        grid-row: 2 / 3;
    }
}

@media (max-width: 567px) { 
    .employee-lightbox-content {
        grid-template-columns: minmax(100px, 1fr) 2fr;
        max-width: 480px;
    }

    .employee-lightbox-content .image {
        grid-column: 1 / 2;
        grid-row: 1 / 2;
    }

    .employee-lightbox-content .header {
        grid-column: 2 / 4;
        grid-row: 1 / 2;
    }

    .employee-lightbox-content .body {
        grid-column: 1 / 4;
        grid-row: 2 / 3;
    }

    .employee-lightbox-content .header,
    .employee-lightbox-content .body {
        font-size: 14px;
    }
}

@media (max-width: 428px) { 
    .employee-lightbox-content {
        max-width: 320px;
        gap: 10px;
        padding: 0;
    }   

    .employee-lightbox-content .header h2 {
        font-size: 20px;
        margin-bottom: 10px;
    }

    .employee-lightbox-content .body {
        font-size: 12px;
    }
}

@media (max-width: 414px) { 
    .employee-lightbox-content {
        max-width: 280px;
    }   
}