.slw_testimonial, .slw-testimonial-list, .post-type-slw_testimonial {
	--color-lightest: #ffffff;
	--color-dark: #111111;
	--color-darker: #000000;
}

.slw-testimonial-list {}

article.slw_testimonial {}

.slw-testimonial-list article.slw-testimonial + .slw-testimonial { margin-top: 60px; }

.archive.post-type-slw_testimonial .slw-site-content { padding-top: 20px; padding-bottom: 40px; }

.archive.post-type-slw_testimonial article + article { margin-top: 100px; }
@media (max-width: 600px) {
	.archive.post-type-slw_testimonial article + article { margin-top: 60px; }
}

/* header */
article.slw_testimonial.layout-large .entry-header { max-width: 800px; margin: 20px auto; }
article.slw_testimonial .entry-header-inner {}
article.slw_testimonial .entry-title { color: #111111; }
article.slw_testimonial .entry-title a {}

/* dark background */
article.slw_testimonial.dark-bg .slw-testimonial-inner > .entry-header,
article.slw_testimonial.dark-bg .slw-testimonial-inner > .entry-header .entry-title,
article.slw_testimonial.dark-bg .slw-testimonial-inner > .slw-testimonial-author-meta-container { color: var(--color-light); }

/* photo */
article.slw_testimonial .featured-media { margin: 20px auto; text-align: center; }
article.slw_testimonial .featured-media-inner { line-height: 0; }
article.slw_testimonial .featured-media img {
	height: auto;
	width: auto;
	max-width: 200px;
	max-height: 200px;
	border-radius: 200px;
	border: 7px solid white;
	box-shadow: 0 1px 3px rgba(0,0,0,.12), 0 1px 2px rgba(0,0,0,.24);
	overflow: hidden;
	margin-left: auto;
	margin-right: auto;
}


/* testimonial text */
article.slw_testimonial .entry-content { max-width: 800px; margin: 30px auto 30px; }

article.slw_testimonial .entry-content .slw-testimonial-text {
	border-radius: 5px 5px 5px 5px;
	overflow: hidden;
	padding: 60px;
	position: relative;
	overflow: visible!important;
	background-color: #f3f3f3;
	border-color: #f3f3f3;
	margin: 0 auto;
}
article.slw_testimonial.dark-bg .entry-content .slw-testimonial-text,
article.slw_testimonial.grey-bg .entry-content .slw-testimonial-text,
article.slw_testimonial.gray-bg .entry-content .slw-testimonial-text {
	background-color: var(--color-lightest);
	border-color: var(--color-lightest);
}

article.slw_testimonial .entry-content .slw-testimonial-text:before,
article.slw_testimonial.author-position-under_text .entry-content .slw-testimonial-text:before,
article.slw_testimonial.layout-large .entry-content .slw-testimonial-text:before,
article.slw_testimonial.layout-large.author-position-under_text .entry-content .slw-testimonial-text:before {
	content: '';
	display: block;
	position: absolute;
	left: calc(50% - 16px);

	top: auto;
	bottom: -16px;

	border: 16px solid transparent;
	border-bottom: 0;
	border-top-color: inherit;
}

article.slw_testimonial .featured-media ~ .entry-content .slw-testimonial-text:before,
article.slw_testimonial .slw-testimonial-author-meta-container ~ .entry-content .slw-testimonial-text:before,
article.slw_testimonial.layout-large .featured-media ~ .entry-content .slw-testimonial-text:before,
article.slw_testimonial.layout-large .slw-testimonial-author-meta-container ~ .entry-content .slw-testimonial-text:before {
	content: '';
	display: block;
	position: absolute;
	left: calc(50% - 16px);

	top: -16px;
	bottom: auto;

	border: 16px solid transparent;
	border-top: 0;
	border-bottom-color: inherit;
}

/* author */
article.slw_testimonial .slw-testimonial-author-meta-container { text-align: center; margin: 20px auto; }
article.slw_testimonial .slw-testimonial-meta { margin-bottom: 0 !important; }
article.slw_testimonial .slw-testimonial-author {}

article.slw_testimonial .slw-testimonial-meta:not(.slw-testimonial-author),
article.slw_testimonial .slw-testimonial-category-terms-container { font-size: smaller; line-height: 1.1; }
article.slw_testimonial .slw-testimonial-author + .slw-testimonial-meta { margin-top: 0.5em; }

article.slw_testimonial .slw-testimonial-category-terms-container { opacity: 0.6; }
article.slw_testimonial .slw-testimonial-category-terms-container:not(:empty):before { content: '('; }
article.slw_testimonial .slw-testimonial-category-terms-container:not(:empty):after { content: ')'; }
article.slw_testimonial .slw-testimonial-category-term + .slw-testimonial-category-term:before { content: ', '; }

article.slw_testimonial .slw-testimonial-title,
article.slw_testimonial .slw-testimonial-company { display: inline; }
article.slw_testimonial .slw-testimonial-title + .slw-testimonial-company:before { content: ', '; }

/* medium layout */
@media (min-width: 981px) {

	/* image size in medium layout = 170px. This determines the grid-template-row height of the second row which is (image height + 20px) */
	article.slw_testimonial.layout-medium .featured-media img { max-width: 170px; max-height: 170px; }

	article.slw_testimonial.layout-medium .slw-testimonial-inner {
		display: grid;
		grid-template-columns: 1fr 2fr;
		grid-template-rows: auto 190px auto;
		grid-template-areas:
			"title title "
			"photo text"
			"author text";
	}

	article.slw_testimonial.layout-medium .entry-header { grid-area: title; margin-bottom: 20px; }
	article.slw_testimonial.layout-medium .featured-media { grid-area: photo; width: 200px; margin-right: 0; justify-self: end; }
	article.slw_testimonial.layout-medium .slw-testimonial-author-meta-container { grid-area: author; width: 200px; margin-right: 0; justify-self: end; align-self: start; }
	article.slw_testimonial.layout-medium .entry-content { grid-area: text; justify-self: start; /* max-width: 600px; */ margin-top: 20px; margin-left: 40px; }


	article.slw_testimonial.layout-medium .entry-content .slw-testimonial-text:before {
		border: 16px solid transparent;
		border-left: 0;
		border-right-color: inherit;
		left: -16px;
		top: 56px;
		top: calc(85px - 16px);
	}

}


/* small layout */
article.slw_testimonial.layout-small .slw-testimonial-author + .slw-testimonial-meta { margin-top: 0; }
article.slw_testimonial.layout-small .entry-content { max-width: 640px; }

/* compact layout */
.slw-testimonial.layout-compact .slw-testimonial-inner {
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	align-items: flex-start;
}

.slw-testimonial.layout-compact .entry-header { /* order: 1; */ }
.slw-testimonial.layout-compact .entry-content { max-width: 640px; /* order: 2; */ }
.slw-testimonial.layout-compact .featured-media { /* order: 3; */ }
.slw-testimonial.layout-compact .slw-testimonial-author-meta-container { /* order: 4; */ }
.slw-testimonial.layout-compact .slw-testimonial-inner > .slw-testimonial-author-meta-container { width: 150px; }

.slw-testimonial.layout-compact .slw-testimonial-inner > * { margin: 3px 0; }
.slw-testimonial.layout-compact .slw-testimonial-inner > * + .entry-content { margin-top: 20px; }
.slw-testimonial.layout-compact .slw-testimonial-inner > .entry-content + * { margin-top: 20px; }

.slw-testimonial.layout-compact .entry-title {}
.slw-testimonial.layout-compact .featured-media img { max-width: 150px; max-height: 150px; }

.slw-testimonial.layout-compact .entry-content .slw-testimonial-text { padding: 20px; border-radius: 3px; }


.slw-testimonial.layout-compact .entry-content .slw-testimonial-text:before,
.slw-testimonial.layout-compact.author-position-under_text .entry-content .slw-testimonial-text:before {
	left: 59px;
	left: calc((150px / 2) - 16px);

	top: auto;
	bottom: -16px;

	border: 16px solid transparent;
	border-bottom: 0;
	border-top-color: inherit;
}

.slw-testimonial.layout-compact .featured-media ~ .entry-content .slw-testimonial-text:before,
.slw-testimonial.layout-compact .slw-testimonial-author-meta-container ~ .entry-content .slw-testimonial-text:before {
	left: 59px;
	left: calc((150px / 2) - 16px);

	top: -16px;
	bottom: auto;

	border: 16px solid transparent;
	border-top: 0;
	border-bottom-color: inherit;
}

article.slw-testimonial.layout-compact .slw-testimonial-meta { display: inline; }
article.slw-testimonial.layout-compact .slw-testimonial-meta + .slw-testimonial-meta:before { content: ', '; display: inline; }

article.slw-testimonial.layout-compact .entry-content .slw-testimonial-author-meta-container { text-align: left; margin: 20px auto 0; }
article.slw-testimonial.layout-compact .entry-content .slw-testimonial-meta:first-child:before { content: '–'; }


/* compact-card layout: start; */
article.slw-testimonial.layout-compact-card { background-color: #ececee; padding: 20px; border-radius: 3px; }
article.slw-testimonial.layout-compact-card.dark-bg,
article.slw-testimonial.layout-compact-card.grey-bg,
article.slw-testimonial.layout-compact-card.gray-bg { background-color: #ffffff; }

article.slw-testimonial.layout-compact-card .slw-testimonial-inner {
	display: grid;
	grid-template-columns: 142px auto;
	grid-template-rows: auto auto auto;
	grid-template-areas:
		"photo title"
		"photo text"
		"photo author"
		"photo read_more";
}

article.slw-testimonial.layout-compact-card .entry-header { grid-area: title; text-align: left; }
article.slw-testimonial.layout-compact-card .featured-media { grid-area: photo; margin: initial; text-align: left; }
article.slw-testimonial.layout-compact-card .slw-testimonial-author-meta-container { grid-area: author; text-align: left; margin: initial; }
article.slw-testimonial.layout-compact-card .entry-content { grid-area: text; text-align: left; max-width: initial; }
article.slw-testimonial.layout-compact-card .read-more {
	grid-area: read_more;
	text-align: left;
	text-transform: uppercase;
	letter-spacing: 1px;
	margin-top: 8px;

	color: #000000;
}
article.slw-testimonial.layout-compact-card .read-more a { color: inherit !important; /* \002192*/ }

.slw-testimonial.layout-compact-card .slw-testimonial-inner > * {}
.slw-testimonial.layout-compact-card .slw-testimonial-inner > * + .entry-content { margin-top: 20px; }
.slw-testimonial.layout-compact-card .slw-testimonial-inner > .entry-content + * { margin-top: 20px; }
.slw-testimonial.layout-compact-card .slw-testimonial-author + .slw-testimonial-meta { margin-top: 0; }

.slw-testimonial.layout-compact-card .entry-title {}
.slw-testimonial.layout-compact-card .featured-media img { max-width: 120px; max-height: 120px; border-width: 3px; }

.slw-testimonial.layout-compact-card .entry-content .slw-testimonial-text { padding: 0; }

article.slw-testimonial.layout-compact-card .entry-content .slw-testimonial-text:before { display: none; }

@media (max-width: 960px) {
	article.slw-testimonial.layout-compact-card .slw-testimonial-inner {
		grid-template-columns: 100px auto;
	}

	article.slw-testimonial.layout-compact-card { padding: 14px; }
	article.slw-testimonial.layout-compact-card {}
	.slw-testimonial.layout-compact-card .entry-title {}
	.slw-testimonial.layout-compact-card .featured-media img { max-width: 80px; max-height: 80px; border-width: 0; }
}

@media (max-width: 550px) {
	article.slw-testimonial.layout-compact-card .slw-testimonial-inner {
		grid-template-columns: 80px auto;
	}

	article.slw-testimonial.layout-compact-card { padding: 10px; }
	article.slw-testimonial.layout-compact-card {}
	.slw-testimonial.layout-compact-card .entry-title {}
	.slw-testimonial.layout-compact-card .featured-media img { max-width: 70px; max-height: 70px; border: 0; }
}

/* compact-card layout: end; */



/* alternating cards layout: start; */
.slw-testimonial-list.masonry-bricks {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}
.slw-testimonial-list.masonry-bricks article.slw-testimonial {
	flex: 1 0 auto;
	margin: 10px;
	width: auto;
	max-width: 100%;
	max-width: calc(100% - 20px);
}

/*
@media (min-width: 760px) and (max-width: 800px) {
	.slw-testimonial-list.masonry-bricks article.slw-testimonial {
		max-width: 340px;
	}
}
*/

/*
@media (min-width: 768px){
	.slw-testimonial-list.masonry-bricks .slw-testimonial.layout-compact-card:nth-child(4n+1),
	.slw-testimonial-list.masonry-bricks .slw-testimonial.layout-compact-card:nth-child(4n+4) { width: 59%; }
	.slw-testimonial-list.masonry-bricks .slw-testimonial.layout-compact-card:nth-child(4n+2),
	.slw-testimonial-list.masonry-bricks .slw-testimonial.layout-compact-card:nth-child(4n+3) { width: 39%; }
}
*/
/* alternating cards layout: end; */



/* slider */
article.slw_testimonial.slick-slide { padding-left: 10px; padding-right: 10px; }

/* triple slider */
.slw-testimonial-slider-triple article.slw_testimonial.slick-slide { padding-left: 20px; padding-right: 20px; }

.slw-testimonial-slider-triple article.slw_testimonial .slw-testimonial-inner > * + * { margin-top: 30px; }
.slw-testimonial-slider-triple article.slw_testimonial .slw-testimonial-inner > .entry-header + .entry-content { margin-top: 10px; }
.slw-testimonial-slider-triple article.slw_testimonial .slw-testimonial-author + .slw-testimonial-meta { margin-top: 0; }

.slw-testimonial-slider-triple article.slw-testimonial .slw-content-wrapper {
	padding: 0;
	background-color: transparent !important;
	border-color: transparent;
}
.slw-testimonial-slider-triple article.slw_testimonial .featured-media img {
	max-width: 110px;
	max-height: 110px;
	border-width: 4px;
}
.slw-testimonial-slider-triple article.slw_testimonial .entry-title {
	text-align: left;
}
.slw-testimonial-slider-triple article.slw_testimonial .entry-content .slw-testimonial-text {}

/* smaller devices */
@media (max-width: 980px) {
	article.slw_testimonial .entry-title {}
	article.slw_testimonial .featured-media img {}
	article.slw_testimonial .entry-content .slw-testimonial-text {}
}
@media (max-width: 767px) {
	article.slw_testimonial .entry-title {}
	article.slw_testimonial .featured-media img {}
	article.slw_testimonial .entry-content .slw-testimonial-text { padding: 20px; }
}


article.slw_testimonial .slw-testimonial-inner > :first-child {
	margin-top: 0 !important;
}
article.slw_testimonial .slw-testimonial-inner > :last-child {
	margin-bottom: 0 !important;
}
