
/* REFACTORED INVESTIGATOR HERO SECTION CSS */

#inv-hero {
	background: #0a56a7;
	max-width: 1400px;
	width: 100%;
	margin: 0 auto;
}

#inv-hero * {
	box-sizing: border-box;
}

.inv-grid > .post-entry {
	display: grid;
	grid-template-columns: 1fr 2fr;
}

#inv-filter-section,
#inv-image-section {
	padding: 1em;
}

#inv-filter-section {
	color: #fff;
}

#inv-filter-section a,
#inv-filter-section p {
	color: #fff;
	text-align: center;
	text-decoration: none;
	font-weight: 400;
}

#inv-filter-section h1,
#inv-filter-section h1.post-title {
	margin: 0;
	color: #fff;
}

#inv-filter-section h2 {
	color: #fff;
	margin: .25em 0 2em 0;
	font-weight: 500;
	font-size: 1.25em;
}

#inv-filter-section label {
	display: block;
	position: relative;
	margin: 1em 0;
}

#inv-filter-section input,
#inv-filter-section select {
	background: #fff;
	color: #363533;
	font-size: 1em;
	padding: .75em 1em;
	border: none;
	border-radius: 20px;
	width: 100%;
}

#inv-filter-section select {
	-webkit-appearance:none;
	-moz-appearance:none;
	appearance:none;
	cursor: pointer;
}

#inv-filter-section .select-wrapper {
	position: relative;
}

#inv-filter-section .select-wrapper::after {
	content: "▼";
	color: #0a56a7;
	font-size: 1.25em;
	pointer-events: none;
	position: absolute;
	right: 1em;
	top: 50%;
	transform: translateY(-50%);
}

#inv-filter-section input::placeholder,
#inv-filter-section select {
	color: #363533;
	opacity: 1;
}

#inv-filter-section button {
	background: transparent;
	border: none;
	color: #0a56a7;
	outline: none;
	position: absolute !important;
	right: 1em;
	top: 50%;
	transform: translateY(-50%);
}

#inv-filter-section button:hover {
	cursor: pointer;
	transform: translateY(-50%) scale(120%);
}

#inv-filter-section button i,
#inv-filter-section a i {
	font-style: normal; /* TODO: remove in prod? */
}

#inv-image-section {
	background-size: cover;
	background-position: right 45%;
	background-image: url('/wp-content/themes/responsive-child/images/upmc-investigators-hero.jpg');
	background-repeat: no-repeat;
	min-height: 500px;
	position: relative;
}

#inv-image-section p {
	background: #fff;
	color: #0a56a7;
	display: inline-block;
	font-size: 1.5em;
	padding: .75em;
	position: absolute;
	bottom: 10%;
	right: 10%;
	font-weight: 400;
}

.sr-only {
	opacity: 0;
	display: block;
	height: 0px;
	width: 0px;
}

@media (max-width: 650px) {
	.inv-grid {
		display: block;
	}

	#inv-image-section {
		display: none;
	}
}

#inv-hero .inv-col-2 {
		display: none !important;
}

/* END REFACTORED INVESTIGATOR HERO SECTION CSS */

/* START REFACTORED INVESTIGATOR CARDS SECTION CSS */

#investigator-cards {
	max-width: 1400px;
	margin: 0 auto;
}

#investigator-cards * {
	box-sizing: border-box;
}

.investigator-card {
	display: grid;
	grid-template-columns: 1fr 3fr;
	background: #f0f0f0;
	min-height: 300px;
	margin: 0 auto 1em auto;
}

.investigator-card:nth-child(even) {
	background: #fff;
}

.investigator-card .inv-image {
	background-position: top;
	background-repeat: no-repeat;
	background-color: #DBD9D6;
	background-size: cover;
}

.investigator-card .inv-image img {
	display: none;
}

.inv-info {
	position: relative;
	border-left: 0px;
	padding: 1em;
	border: 1px solid #DBD9D6;
	border-left: none;
}

.inv-supplemental-buttons,
.inv-interests-keywords {
	display: none;
}

.inv-info h3 {
	color: #333;
	margin: 0;
	font-size: 2em;
	font-weight: bold;
}

.inv-info h4 {
	color: #333;
	margin: .25em 0 1em 0;
	font-size: 1.25em;
	font-weight: bold;
}

.inv-info h5 {
	color: #333;
	margin: 1em 0 0 0;
	font-size: 1.25em;
	font-weight: bold;
}

.inv-info p {
	margin: .5em 0 1em 0;
}

.inv-summary-container.truncated {
	max-height: 150px;
	overflow-y: hidden;
	position: relative;
	margin-bottom: 1em;
}

.inv-summary-container.truncated::after {
	content: "";
	height: 100%;
	position: absolute;
	bottom: 0;
	top: 0;
	left: 0;
	right: 0;
	-webkit-box-shadow: inset 0px -35px 14px -4px rgba(240,240,240,.9);
	-moz-box-shadow: inset 0px -35px 14px -4px rgba(240,240,240,.9);
	box-shadow: inset 0px -35px 14px -4px rgba(240,240,240,.9);
	}

.investigator-card:nth-child(even) .inv-summary-container.truncated::after {
	-webkit-box-shadow: inset 0px -35px 14px -4px rgba(255,255,255,.9);
	-moz-box-shadow: inset 0px -35px 14px -4px rgba(255,255,255,.9);
	box-shadow: inset 0px -35px 14px -4px rgba(255,255,255,.9);
}

.inv-contact-info > span {
	display: inline-block;
	margin-right: 1em;
	margin-bottom: 1em;
	vertical-align: top;
}


.investigator-card .inv-contact-info a {
	font-weight: bold;
	text-decoration: none;
	color: #333;
	transition: 300ms;
}

.investigator-card .inv-contact-info a:hover {
	border-bottom: 0px !important;
	text-decoration: underline;
	color: #0092B4;
}

.inv-contact-info .inv-office-address {
	display: none;
	margin-left: 30px;
	margin-right: 0;
	font-weight: bold;
}

.inv-contact-info .inv-office-address > i {
	margin-left: -30px;
	margin-right: 7px;
}

.investigator-card .inv-button-link {
	border-radius: 20px;
	display: inline-block;
	padding: .5em 1em;
	background: #0a56a7;
	font-weight: bold;
	color: #fff;
	text-decoration: none;
	margin: 0 .5em .5em 0;
}

.investigator-card .inv-button-link:hover {
 background: #0e4c8f;
 color: #fff;
}


@media (max-width: 1000px) {
	.investigator-card {
		grid-template-columns: 1fr 3fr;
	}
}

@media (max-width: 650px) {
	.investigator-card {
		display: block;
		min-height: none;
		max-width: 350px;
	}

	.investigator-card .inv-image img {
		display: block;
		height: auto;
		width: 100%;
		object-fit: cover;
	}
	
	.inv-info {
		border-left: 1px solid #DBD9D6;
		border-top: none;
	}

	.inv-info .inv-info-content {
		position: static;
		transform: none;
		
	}

	.inv-contact-info > span {
		display: block;
		margin: 0 0 .5em 0;
	}

	.inv-info h4 {
		margin: .25em 0 1.5em 0;
	}

	.inv-info h5 {
		margin: 1.5em 0 0 0;
	}

}

/* END REFACTORED INVESTIGATOR CARDS SECTION CSS */
