.representative-listings {
	border-radius: 20px;
	background: #F5F5F5;
	box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.25);
	padding: 3rem 2rem;
	width: max-content;
	margin: 0 auto;
}
.representative-listings ul {
	padding: 0;
	margin: 0;
	list-style: none;
	display: flex;
	flex-direction: column;
	flex-wrap: wrap;
	justify-content: center;
	gap: 2rem;
}
.representative-listings ul li {
	display: none;
	flex: 0 1 auto;
	flex-wrap: wrap;
	flex: 1 1 100%;
}
.reps--wrapper {
	display: flex;
	flex-wrap: wrap;
	flex-direction: column;
	align-items: center;
	gap: 0.5rem;
	flex: 1 1 auto;
}
.reps--name {
	font-weight: 600;
}
.reps--pronouns {
	font-size: calc(var(--font-size__base) - 2px);
	line-height: 1.4;
	font-style:italic;
}
.reps--university {
	font-style: italic;
	font-size: 14px;
	text-align: center;
}

.representative-listings ul li:nth-of-type(1),
.representative-listings ul li:nth-of-type(2) {
	display: flex;
}
.representative-listings ul li:nth-of-type(1) .reps--wrapper {
	padding-bottom: 2rem;
}
.representative-listings ul li:nth-of-type(1):after {
	flex: 0 1 auto;
	content: '';
	width: 100%;
	height: 1px;
	border-bottom: 1px solid #000;
}
.representative-listings ul li .reps--image {
	width: 100%;
	max-width: 160px;
	border-radius: 50%;
    overflow: hidden;
    border: 0.35rem solid #D9D9D9;
}
.representative-header {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	max-width: 700px;
	margin-bottom: 3rem;
}
.representative-header h2 {
	margin: 0;
}
.representative-description p:last-of-type{ 
	margin: 0;
}
.representative-header .button {
	width: max-content;
}
@media screen and (min-width: 900px) {
	.representative-listings ul {
		flex-direction: row;
		flex-wrap: nowrap;
	}
	.representative-listings ul li {
		flex-wrap: nowrap;
	}
	.representative-listings ul li:nth-of-type(1) {
		flex: 1 0 calc(50% + 2rem);
	}
	.representative-listings ul li:nth-of-type(2) {
		flex: 1 0 calc(50% - 0rem);
	}
	.representative-listings ul li:nth-of-type(1):after {
		flex: 0 1 auto;
		content: '';
		width: 1px;
		max-width: 1px;
		height: 100%;
		border-right: 1px solid #000;
		border-bottom-width: 0px;
	}
	.representative-listings ul li:nth-of-type(1) .reps--wrapper {
		padding-right: 2rem;
		padding-bottom: 0;
	}
	.representative-listings {
		padding: 3rem 6rem;
	}
}

/* Apply the divider to all li items by default */
.representative-listings ul li:after {
    flex: 0 1 auto;
    content: '';
    width: 100%;
    height: 1px;
    border-bottom: 1px solid #000;
}

/* Remove the divider for the last item */
.representative-listings ul li:last-of-type:after {
    content: none;
}

@media screen and (min-width: 900px) {
    /* Adjust the divider for horizontal layout */
    .representative-listings ul li:after {
        width: 1px;
        max-width: 1px;
        height: 100%;
        border-right: 1px solid #000;
        border-bottom-width: 0;
    }

    /* Remove the vertical divider for the last item in horizontal layout */
    .representative-listings ul li:last-of-type:after {
        content: none;
    }

    /* Initially apply padding-right to the .reps--wrapper in the first li */
    .representative-listings ul li .reps--wrapper {
        padding-right: 2rem;
        padding-bottom: 0;
    }

    /* Remove padding-right for the .reps--wrapper in the last li */
    .representative-listings ul li:last-of-type .reps--wrapper {
        padding-right: 0;
    }
}