  .duny-employees {
    display: grid;
    gap: 1em;
    justify-content: center;
    justify-items: center;
    margin: 1em 0;
    padding: 0;
}

.duny-employees-block--align-left .duny-employees {
    justify-items: start;
}

.duny-employees.columns-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.duny-employees.columns-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.duny-employees.columns-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.duny-employees.columns-1 {
    grid-template-columns: 1fr;
}

.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);
    min-width: 0;
    height: 100%;
    width: min(100%, 30rem);
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .duny-employees.columns-4 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .duny-employees.columns-3,
    .duny-employees.columns-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .duny-employees.columns-1 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 992px) {
    .duny-employees.columns-4,
    .duny-employees.columns-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
	.duny-employees.columns-2 .employee-grid {
		box-shadow: none;
	}

}

@media (max-width: 768px) {
    .duny-employees.columns-4,
    .duny-employees.columns-3,
    .duny-employees.columns-2,
    .duny-employees.columns-1 {
        grid-template-columns: 1fr;
    }

    .duny-employees.columns-4 .employee-grid,
    .duny-employees.columns-3 .employee-grid,
    .duny-employees.columns-2 .employee-grid,
    .duny-employees.columns-1 .employee-grid {
        width: 100%;
		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;
    background: #f5f3ee;
    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;
    object-position: center top;
}

.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;
    min-width: 0;
}

.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 !important;
    margin-top: 1em !important;
    text-transform: uppercase;
    font-size: 0.9em;
	text-align: center;
}

a.employee-view-bio-link {
    margin-top: auto !important;
}

a.employee-edit-link {
    margin-top: 1em !important;
}

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

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

a.employee-view-bio-link:hover {
    background: #000;
    text-decoration: none !important;
}


/* 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;
    background: #f5f3ee;
    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; /* Keep the full image visible */
    object-position: center top;
}

.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 {
    flex: 0 0 clamp(280px, 32%, 430px);
    max-width: 430px;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
    min-height: 100%;
}

.employee-thumbnail-single {
    position: absolute;
    inset: 0;
    overflow: hidden;
    background: #f5f3ee;
}

.employee-thumbnail-single img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center center;
}

.employee-content-card-single {
    flex: 1 1 0;
    min-width: 0;
    padding: 2em;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    text-align: left;
}

.employee-content-card-single:only-child {
    width: 100%;
    max-width: none;
    flex-basis: 100%;
}

.employee-content-card-single .employee-short-bio {
    line-height: 1.35;
}

.employee-content-card-single a.employee-view-bio-link,
.employee-content-card-single a.employee-edit-link {
    margin-top: 1em !important;
}

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

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

    .duny-column-single,
    .employee-content-card-single {
        flex-basis: auto;
    }

    .employee-thumbnail-single {
        position: relative;
        inset: auto;
        aspect-ratio: 4 / 3;
    }
}

.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;
}
