/*
 * Styles for People Places, Things plugin
 * for archive, single pages & Tailor blocks
 *
 * @since 1.0.0
 */

/* List cards */
.washu-ppi-list-card {
	padding: 1em;
	border: 1px solid #c8c8c8;
	clear: both;
}
@media screen and (min-width: 37em) {
	.washu-ppi-list-card {
		padding: 1.25em;
	}
}
.washu-ppi-results {
	opacity: 1;
	transition: opacity 0.1s;
	min-height: 1px; /* Fix for flexbox bug in IE11 */
}
.washu-ppi-results.is-loading {
	opacity: 0.3;
}
.washu-ppi-single.archive {
	min-height: 1px; /* Fix for flexbox bug in IE11 */
}
.washu-ppi-results.archive .washu-ppi-list-card,
.washu-ppi-single.archive .washu-ppi-list-card {
	margin-bottom: 1.5em;
}
.washu-ppi-list-card:after {
	display: table;
	content: '';
	clear: both;
}

.washu-ppi-featured-image {
	float: none;
	margin-right: 0;
	margin-bottom: 1rem;
	max-width: 100%;
}
.washu-ppi-featured-image img {
	display: block;
}
/* ^# */
@media screen and (max-width: 591px) {
	.type-people .washu-ppi-featured-image {
		max-width: 150px;
	}
}

.no-photo .washu-ppi-content {
	float: none;
	width: 100%;
}
.washu-ppi-content {
	float: none;
	width: 100%;
	box-sizing: border-box;
	flex-shrink: 0;
}

.washu-ppi-content .entry-title {
	margin-top: 0;
}

.washu-ppi-content p:last-child {
	margin-bottom: 0;
}

.washu-ppi-grid-card .washu-ppi-content .washu-ppi-name.entry-title {
	margin-bottom: 1rem;
}
.washu-ppi-content .washu-ppi-name:last-child {
	margin-bottom: 0;
}

.washu-ppi-name a:hover .dashicons-external,
.washu-ppi-name .entry-title-link,
a.washu-ppi-card-link{
	text-decoration: none;
}

.washu-ppi-name .dashicons-external {
	margin-left: 0.4em;
}

.washu-ppi-grid-card .washu-ppi-description {
	padding: 0 1em;
}

.washu-ppi-grid .washu-ppi-content > .washu-ppi-contact-list {
	padding: 0 1em;
}

.washu-ppi-contact-list {
	list-style-type: none;
	margin: 0 0 1rem;
	padding: 0;
	max-width: 25rem;
}
.washu-ppi-contact-list:last-child {
	margin-bottom: 0;
}

.washu-ppi-contact-list li {
	border-bottom: 1px solid #eee;
	line-height: 2;
	position: relative;
	padding-left: 1.875rem;
	font-size: 1rem;
	margin: 0;
}

.washu-ppi-contact-list li:last-child {
	border-bottom: none;
}

.washu-ppi-contact-list li:before {
	content: '';
	position: absolute;
	top: 0.56rem;
	left: 0;
	width: 1rem;
	height: 1rem;
	background-size: 100%;
	background-repeat: no-repeat;
	background-position: center;
	opacity: 0.76;
}

.fallback .washu-ppi-contact-list li:before {
	opacity: 1;
}

li.washu-ppi-location:before {
	background-image: url('../images/location.svg');
}

.no-svg li.washu-ppi-location:before {
	background-image: url('../images/location.png');
}

li.washu-ppi-address:before {
	background-image: url('../images/letter-mail.svg');
}

.no-svg li.washu-ppi-address:before {
	background-image: url('../images/letter-mail.png');
}

.washu-ppi-phone:before {
	background-image: url('../images/phone.svg');
}

.no-svg .washu-ppi-phone:before {
	background-image: url('../images/phone.png');
}

.washu-ppi-fax:before {
	background-image: url('../images/fax.svg');
}

.no-svg .washu-ppi-fax:before {
	background-image: url('../images/fax.png');
}

.washu-ppi-email:before {
	background-image: url('../images/email.svg');
}

.no-svg .washu-ppi-email:before {
	background-image: url('../images/email.png');
}

.washu-ppi-exturl:before {
	background-image: url('../images/global.svg');
}

.no-svg .washu-ppi-exturl:before {
	background-image: url('../images/global.png');
}

.washu-ppi-email a {
	display: block;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.washu-ppi-exturl a {
	display: block;
}

.washu-ppi-location span,
.washu-ppi-address span {
	display: inline-block;
	line-height: 1.25;
	padding-top: 0.4em;
}

.washu-ppi-contact-list .washu-ppi-address img,
.washu-ppi-contact-list .washu-ppi-location img {
	vertical-align: top;
}

.washu-ppi-content .button-primary {
	margin: 0 0 1rem;
}
.washu-ppi-content .button-primary:last-child {
	margin-bottom: 0;
}

.washu-ppi-social-list {
	margin: 0 0 1rem;
	padding: 0;
	line-height: 1;
}
.washu-ppi-social-list:last-child {
	margin-bottom: 0;
}

.washu-ppi-grid-card .washu-ppi-social-list {
	padding: 0 1em;
}

.washu-ppi-social-list li {
	position: relative;
	display: inline-block;
	width: 1.9em;
	height: 1.9em;
	margin: 0 4px 0 0;
}
.washu-ppi-social-list li:last-child {
	margin-right: 0;
}

.fallback .washu-ppi-social-list li {
	width: 24px;
	height: 24px;
}

.washu-ppi-social-list a {
	display: inline-block;
	width: 1.9em;
	height: 1.9em;
	background-size: 100%;
	background-position: top left;
}
.washu-ppi-social-list a:hover {
	background-position: bottom left;
}

.fallback .washu-ppi-social-list a {
	width: 24px;
	height: 24px;
	background-position: top left;
}

.washu-ppi-social-list .social-text {
	height: 1px;
	width: 1px;
	position: absolute;
	overflow: hidden;
	top: -10px;
	clip: rect(1px, 1px, 1px, 1px);
}

.washu-ppi-social-list .facebook a {
	background-image: url("../images/facebook.svg");
}
.no-svg .washu-ppi-social-list .facebook a {
	background-image: url("../images/facebook.png");
}
.fallback .washu-ppi-social-list .facebook a,
.no-svg .fallback .washu-ppi-social-list .facebook a {
	background-image: url("../images/facebook-fallback.png");
}

.washu-ppi-social-list .twitter a {
	background-image: url("../images/twitter.svg");
}
.no-svg .washu-ppi-social-list .twitter a {
	background-image: url("../images/twitter.png");
}
.fallback .washu-ppi-social-list .twitter a,
.no-svg .fallback .washu-ppi-social-list .twitter a {
	background-image: url("../images/twitter-fallback.png");
}

.washu-ppi-social-list .instagram a {
	background-image: url("../images/instagram.svg");
}
.no-svg .washu-ppi-social-list .instagram a {
	background-image: url("../images/instagram.png");
}
.fallback .washu-ppi-social-list .instagram a,
.no-svg .fallback .washu-ppi-social-list .instagram a {
	background-image: url("../images/instagram-fallback.png");
}

.washu-ppi-social-list .linkedin a {
	background-image: url("../images/linkedin.svg");
}
.no-svg .washu-ppi-social-list .linkedin a {
	background-image: url("../images/linkedin.png");
}
.fallback .washu-ppi-social-list .linkedin a,
.no-svg .fallback .washu-ppi-social-list .linkedin a {
	background-image: url("../images/linkedin-fallback.png");
}

/* List filter buttons */
/* Many of these styles were out-right stolen from chauvenet theme .button-outline */
.washu-ppi-filter-bar {
	padding: 0;
	margin: 0 0 1.25em 0;
	list-style: none;
}
.washu-ppi-filter-bar:after {
	display: table;
	content: '';
	clear: both;
}
.washu-ppi-filter-bar ul {
	list-style: none;
}
.washu-ppi-alpha-bar span,
.washu-ppi-filter-bar li {
	float: left;
	margin: 0 0.25em 0.25em 0;
	position: relative;
	font-size: 1em;
	font-weight: 400;
	text-decoration: none;
	text-align: center;
	list-style: none;
}

.washu-ppi-filter-bar li a {
	display: block;
	color: #d01c29;
	padding: 0.25rem 1rem 0.15rem;
	border-bottom: 2px solid transparent;
	font-weight: 600;
	font-size: 16px;
	font-size: 1rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	text-decoration: none;
}
.washu-ppi-alpha-bar li:last-child,
.washu-ppi-alpha-bar li:last-child span {
	margin-right: 0;
}
.washu-ppi-alpha-bar span {
	font-weight: 600;
	font-size: 16px;
	font-size: 1rem;
	padding: 0.25rem 0.35rem 0.15rem;
	margin: 0;
	border-bottom: 2px solid transparent;
}
.washu-ppi-alpha-bar li a {
	padding: 0.25rem 0.35rem 0.15rem;
}
.washu-ppi-filter-bar li a:hover {
	text-decoration: none;
	border-bottom: 2px solid #a51417;
	color: #a51417;
}
.washu-ppi-filter-bar li a:hover .dashicons {
	color: #a51417;
}
.washu-ppi-filter-bar li.current-cat a:hover .dashicons {
	color: #fff;
}
.washu-ppi-filter-bar > .cat-with-children a {
	padding-right: .65em;
}
.washu-ppi-filter-bar > .current-cat-ancestor > a,
.washu-ppi-filter-bar > .current-cat > a,
.washu-ppi-filter-bar > .current-cat-ancestor > a:hover,
.washu-ppi-filter-bar > .current-cat > a:hover {
	background-color: #3d3d3d;
	border-bottom: 2px solid #3d3d3d;
	color: #fff;
}
.washu-ppi-filter-bar > .current-cat > a .dashicons,
.washu-ppi-filter-bar > .current-cat-ancestor > a .dashicons,
.washu-ppi-filter-bar > .current-cat-ancestor > a:hover .dashicons {
	color: #fff;
}

.cat-with-children .dashicons {
	margin: 0.15em 0 0 0.3em;
	transition: transform 0.2s ease-in-out;
	color: #a51417;
}

.washu-ppi-filter-bar .dashicons {
	font-size: 18px;
	width: 18px;
	height: 18px;
}

.children-visible > a .dashicons {
	transform: rotate(-180deg);
}

.washu-ppi-filter-bar .children {
	display: none;
	position: absolute;
	padding: 0.45em 0;
	margin: 4px 0 0 0;
	width: 12em;
	background-color: #fff;
	box-shadow: 0px 1px 8px rgba(98,100,100,0.2);
	z-index: 10;
}

.washu-ppi-filter-bar .children-visible > .children {
	display: block;
}

.washu-ppi-filter-bar .children .children {
	position: relative;
	padding: 0;
	margin: 0;
	width: auto;
	background-color: #fff;
	border-radius: 0;
	box-shadow: none;
}

.washu-ppi-filter-bar .children li {
	width: 100%;
	margin: 0;
	border-radius: 0;
	text-align: left;
	float: none;
}
.washu-ppi-filter-bar .children a {
	width: 100%;
	margin: 0;
	background-color: #fff;
	border-radius: 0;
	font-size: 1rem;
	font-weight: normal;
	text-transform: none;
	letter-spacing: 0;
}
.washu-ppi-filter-bar .children li a:hover,
.washu-ppi-filter-bar .children li a:hover:focus,
.washu-ppi-filter-bar .children li a:active,
.washu-ppi-filter-bar .children .current-cat > a,
.washu-ppi-filter-bar .children .current-cat-ancestor:not(.low-level-all-filter) > a {
	text-decoration: none;
	background-color: #f7f7f7;
	border-bottom: none;
	color: #3d3d3d;
}

.washu-ppi-filter-bar .children li:last-child {
	border-bottom: none;
}

.washu-ppi-filter-bar .children-visible .children-visible {
	border-bottom: none;
}

.washu-ppi-filter-bar .children a {
	border: none;
	border-radius: 0;
	padding: 0.5em 1.2em;
}
.washu-ppi-filter-bar .children .children a {
	border: none;
	border-radius: 0;
	padding: 0.5em 1.2em 0.5em 2.5em;
	background: #fff;
}
.washu-ppi-filter-bar .children .children .children a {
	padding: 0.5em 1.2em 0.5em 3.7em;
}
.washu-ppi-filter-bar .children .children a:hover {
	background: #f7f7f7;
}

/* Grid layout style */
.washu-ppi-wrap,
.ppi-shortcode {
	min-height: 1px; /* Fix for flexbox bug in IE11 */
}

.washu-ppi-grid-container {
	padding: 0;
	margin-bottom: 1rem;
	font-size: 1em;
	color: inherit;
}

.washu-ppi-grid {
	display: -ms-flexbox;
	display: flex;
	-ms-flex-wrap: wrap;
	flex-wrap: wrap;
}

.washu-ppi-grid-item {
	min-height: 1px;
	width: 100%;
	display: -ms-flexbox;
	display: flex;
	-ms-flex-direction: column;
	flex-direction: column;
	margin-bottom: 1.5em;
}

.washu-ppi-grid-item article {
	border: 1px solid #c8c8c8;
	background-color: #fff;
	overflow: hidden;
	height: 100%;
	display: -ms-flexbox;
	display: flex;
	-ms-flex-direction: column;
	flex-direction: column;
	flex: 1;
	margin: 0;
	padding: 0;
	line-height: 1.45;
	font-family: "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.washu-ppi-grid-item article .ppi-image,
.washu-ppi-grid-item article .washu-ppi-featured-image {
	line-height: 0;
	height: auto;
	width: 100%;
	overflow: hidden;
}

.washu-ppi-grid-item article.hentry {
	margin-bottom: 0;
	padding-bottom: 1em;
}

.page-template-page-full .ppi-grid-2 .people-grid-image,
.page-template-page-full .ppi-grid-3 .people-grid-image {
	max-width: 150px;
	margin: 1em 1em 0 1em;
}

.single-items .content-area.col-md-8 {
	margin: 0 auto;
	float: none;
}


@media screen and (min-width: 37em) {
	.ppi-grid-2 .washu-ppi-grid-item {
		width: 50%;
	}
}

@media screen and (min-width: 37em) {
	.ppi-grid-4 .washu-ppi-grid-item {
		width: 50%;
	}
}

@media screen and (min-width: 61.5em) {
	.ppi-grid-4 .washu-ppi-grid-item {
		width: 25%;
	}
}

@media screen and (max-width: 49.9375em) {
	.people-grid-image {
		max-width: 150px;
		margin: 1em 1em 0 1em;
	}

	a + .washu-ppi-description,
	.washu-ppi-social-list {
		padding: 0;
	}
}

@media screen and (max-width: 61.4375em) {
	[data-ppi-post-type='people'] .ppi-grid-4 .washu-ppi-grid-item .ppi-image img {
		max-width: 150px;
		margin: 1em 1em 0 1em;
	}
}

.washu-ppi-grid-item .washu-ppi-name {
	font-size: 1.25rem;
	padding: 1em 1em 0 1em;
}

.washu-ppi-description {
	font-weight: 300;
	font-size: 19.2px;
	font-size: 1.2rem;
	line-height: 1.2;
	margin: .4rem 0 1rem;
}
.washu-ppi-description:last-child {
	margin-bottom: 0;
}
@media screen and (min-width: 61.5em) {
	.washu-ppi-list-card .washu-ppi-description {
		font-size: 21.6px;
		font-size: 1.35rem;
	}
}

.washu-ppi-grid-item .washu-ppi-featured-image {
	margin-bottom: 0;
}

.washu-ppi-grid-item .summary {
	margin-bottom: 1rem;
}
.washu-ppi-grid-item .summary:last-child {
	margin-bottom: 0;
	padding: 0 1em 1em 1em;
}

.washu-ppi-grid-item .summary p {
	margin-bottom: 0;
}

@media (min-width: 984px) {
	.washu-ppi-grid-item .washu-ppi-featured-image {
		width: 100%;
	}

	.washu-ppi-list-card .washu-ppi-featured-image {
		float: left;
		margin-right: 1.8rem;
		margin-bottom: 0;
		width: 45%;
		max-width: 460px;
	}

	.washu-ppi-list-card .washu-ppi-featured-image + .washu-ppi-content {
		float: left;
		width: calc(55% - 1.8rem);
	}

	/* Add specific styles for Tailor individual element when displayed in column */
	.tailor-column .washu-ppi-list-card:not(.type-people) .washu-ppi-featured-image {
		float: none;
		margin: 0 0 1rem;
	}

	.tailor-column .washu-ppi-list-card:not(.type-people) .washu-ppi-featured-image {
		width: auto;
	}

	.tailor-column .washu-ppi-list-card .washu-ppi-content {
		float: none;
		width: 100%;
	}
}

@media (min-width: 800px) {
	.ppi-grid-2 .washu-ppi-grid-item {
		width: 50%;
	}

	.ppi-grid-3 .washu-ppi-grid-item {
		width: 33.3333333333%;
	}

	.ppi-grid-4 .washu-ppi-grid-item {
		width: 25%;
	}

	.washu-ppi-body-copy {
		margin-right: 3rem;
		margin-left: 3rem;
	}
}

@media screen and (min-width: 592px) {
	.washu-ppi-grid-item .summary {
		font-size: 1rem;
		line-height: 1.25;
	}

	.washu-ppi-grid {
		margin: -1em;
	}

	.washu-ppi-grid-item {
		width: 50%;
		padding: 1em;
		margin-bottom: 0;
	}

	.washu-ppi-list-card .washu-ppi-featured-image {
		float: left;
		margin-right: 1.8rem;
		margin-bottom: 0;
		max-width: 45%;
	}

	.washu-ppi-list-card.type-people .washu-ppi-featured-image {
		max-width: 200px;
	}

	/* Add specific styles for Tailor individual element when displayed in column */
	.tailor-column .washu-ppi-list-card .washu-ppi-featured-image {
		float: none;
		margin: 0 0 1rem;
	}

	.tailor-column .washu-ppi-list-card:not(.type-people) .washu-ppi-featured-image {
		max-width: 100%;
	}

	.tailor-column .washu-ppi-list-card .washu-ppi-content {
		float: none;
		width: 100%;
	}

	.paging-navigation {
		margin-top: 2rem;
	}
}

/* Super hacky way to get blocks to show properly in IE11 */
@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
	.washu-ppi-grid-item article {
		-ms-flex: 1 0 auto;
		flex: 1 0 auto;
		align-items: normal;
	}
}
/* Super hacky way to target IE9 only: */
/* many thanks to https://jeffclayton.wordpress.com/2014/07/14/targeting-internet-explorer-9-with-css/ */
@media screen and (min-width:0) and (min-resolution:.001dpcm) {
	.washu-ppi-grid-item {
	  float: left;
	  display: inline-block;
	}
}
