  .duny-employees {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: 1em 0;
    padding: 0; /* Ensure no extra padding */
}

/* Default to 4 columns */
.duny-employees.columns-4 .employee-grid {
    flex: 0 1 calc(25% - 1em); /* 4 columns */
}

.duny-employees.columns-3 .employee-grid {
    flex: 0 1 calc(33.3% - 1em); /* 3 columns */
}

.duny-employees.columns-2 .employee-grid {
    flex: 0 1 calc(50% - 1em); /* 2 columns */
}

.duny-employees.columns-1 .employee-grid {
    flex: 0 1 calc(100% - 1em); /* 1 column */
}

.employee-grid {
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    margin: 0.5em; /* Margin between cards */
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .duny-employees.columns-4 .employee-grid {
        flex: 0 1 calc(33.3% - 1em); /* 3 columns */
    }
    .duny-employees.columns-3 .employee-grid,
    .duny-employees.columns-2 .employee-grid {
        flex: 0 1 calc(50% - 1em); /* 2 columns */
    }
    .duny-employees.columns-1 .employee-grid {
        flex: 0 1 calc(100% - 1em); /* 1 column */
    }
}

@media (max-width: 992px) {
    .duny-employees.columns-4 .employee-grid,
    .duny-employees.columns-3 .employee-grid {
        flex: 0 1 calc(50% - 1em); /* 2 columns */
    }
	.duny-employees.columns-2 .employee-grid {
		box-shadow: none;
	}

}

@media (max-width: 768px) {
    .duny-employees.columns-4 .employee-grid,
    .duny-employees.columns-3 .employee-grid,
    .duny-employees.columns-2 .employee-grid,
    .duny-employees.columns-1 .employee-grid {
        flex: 0 1 calc(100% - 1em); /* 1 column */
		box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    }
}

.employee-thumbnail,
.employee-thumbnail-placeholder {
    height: 450px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    overflow: hidden; /* Ensure content doesn't overflow */
}

.employee-thumbnail-placeholder {
    background: #A6182F;
}

@media (min-width: 900px) {
	
	.duny-employees.columns-2 .employee-grid .employee-thumbnail {
	height: 300px; 
		
	}
	
    .employee-thumbnail,
    .employee-thumbnail-placeholder {
        height: 300px;
    }
}

.employee-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures the image covers the container */
    object-position: top center; /* Positions the image from the top center */
}

.employee-thumbnail-placeholder img {
    width: 80%;
    height: 80%;
    margin: 0 auto;
    object-fit: contain; /* Ensures the entire image is visible within the container */
}

.employee-content-card {
    position: relative;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding: 1em;
	background: #FFF;
}

.employee-content-card h2,
.duny-employee-item-list h2 {
    margin: 0;
	padding-top: 1em; 
    text-transform: uppercase;
    color: #A6182F;
    font-weight: 900;
    font-size: 1.1em;
}

@media (min-width:992px) {
	.duny-employee-item-list h2 {
		  padding-top: 0;
	}
}

.employee-content-card p,
.duny-employee-item-list p {
    margin: 0;
    padding: 0;
    font-size: 0.9em;
}

.employee-job-title {
    padding-bottom: 0.3em;
}

.employee-short-bio {
    padding: 0.5em 0 0.3em 0;
    line-height: 1em;
}

a.employee-view-bio-link,
a.employee-edit-link {
    position: relative;
	display: inline-block;
    width: 125px;
    padding: 0.5em 1.5em;
    color: #FFF;
    margin-top: 1em !important;
    text-transform: uppercase;
    font-size: 0.9em;
	text-align: center;
}

a.employee-view-bio-link {
    background: #A6182F;
}

a.employee-edit-link {
    background: #000;
}

a.employee-view-bio-link:hover {
    background: #000;
}


/* DUNY EMPLOYEE LIST */
.duny-column {
    box-sizing: border-box; 
}


.duny-column:nth-child(1),
.duny-column:nth-child(2) {
	width: 100%;
}


@media (min-width:992px) {
		.duny-column:nth-child(1),
		.duny-column:nth-child(2) {
		width: 50%;
	}
}

.duny-employees-list {
    display: flex; 
    flex-wrap: wrap; 
    gap: 16px;
    margin: .5em;
}

.employee-content-card-list {
	padding: 0em 1em 1em 1em;
}

.duny-employee-item-list {
    display: flex; 
    flex-direction: column;
    width: 100%; 
    box-sizing: border-box;
    margin-bottom: 1em;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

@media (min-width: 763px) {
    .duny-employee-item-list {
        width: calc(50% - 16px); /* Two columns on medium screens and above */
        flex-direction: column; /* Switch to column layout for inner columns */
    }
}

@media (min-width: 992px) {
    .duny-employee-item-list {
        width: calc(50% - 16px); /* Two columns on large screens and above */
        box-shadow: none;
        flex-direction: row; /* Switch to row layout for inner columns */
    }
}

.team-list-info {
	position: relative;
	display: block;
}
 
.employee-thumbnail-list,
.employee-thumbnail-placeholder-list {
    height: 450px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    overflow: hidden; /* Ensure content doesn't overflow */
    width: 100%;
}



.employee-thumbnail-placeholder-list {
    background: #A6182F;
}

@media (min-width: 992px) {
    .employee-thumbnail-list,
    .employee-thumbnail-placeholder-list {
        height: 250px;

    }
}

.duny-employees-list .employee-job-title {
	margin-bottom: .3em;
}


.employee-thumbnail-list img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures the image covers the container */
    object-position: top center; /* Positions the image from the top center */
}

.employee-thumbnail-placeholder-list img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Ensures the entire image is visible within the container */
}



/* TEAM SINGLE */
.duny-employee-item-single {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    flex-wrap: nowrap;
    box-sizing: border-box;
    margin-bottom: 1em;
    background: #FFF;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

.duny-column-single {
   /* width: 50%;
    height: 500px;*/
    overflow: hidden;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Align content to the top */
}

.employee-thumbnail-single img {
    width: 100%;
    height: auto;
    object-fit: cover; /* Ensures image covers the area */
    object-position: top; /* Aligns the image to the top */
}

.employee-content-card-single {
    width: 50%;
    padding: 2em;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
}

@media (max-width: 991px) {
    .duny-employee-item-single {
        flex-direction: column; 
    }

    .duny-column-single, 
    .employee-content-card-single {
        width: 100%;
    }
}

.employee-content-card-single h2 {
    font-size: 1.3em;
    text-transform: none;
    color: #2f2f2f;
    padding: 0;
    margin: 0;
    font-weight: 900;
}

.employee-content-card-single .employee-job-title-single p {
    color: #000;
    font-size: 1.1em;
    font-weight: 100;
    margin: 0 !important;
    padding: 0 0 1em 0 !important;
}

@media (min-width: 992px) {
    .employee-content-card-single h2 {
        font-size: 2.5em;
    }

    .employee-content-card-single .employee-job-title-single p {
        font-size: 1.3em;
    }
}

.duny-employee-item-single .team-list-info p {
    margin: 0;
    padding: 0;
}
