/* =============================================================================
// CS-ELEMENTS.CSS
// -----------------------------------------------------------------------------
// Styles for custom Cornerstone elements
// 1. RT TEAM GRID
// 2. RT MANAGEMENT TEAM
// 3. MEDIA COUPLE
// ===========================================================================*/

/*
 * RT TEAM GRID
 */

/* Column number dependent */
.rt-team-grid.cols-4 .team-row .member {
    width: 25%;
    height: 0;
    padding-bottom: 25%;
}
.rt-team-grid.cols-4 .team-row .member:hover {
    width: 40%;
}
.rt-team-grid.cols-4 .team-row:hover .member {
    padding-bottom: 33.33%;
}

.rt-team-grid.cols-5 .team-row .member {
    width: 20%;
    height: 0;
    padding-bottom: 20%;
}
.rt-team-grid.cols-5 .team-row .member:hover {
    width: 40%;
}
.rt-team-grid.cols-5 .team-row:hover .member {
    padding-bottom: 30%;
}

.rt-team-grid.cols-6 .team-row .member {
    width: 16.66%;
    height: 0;
    padding-bottom: 16.66%;
}
.rt-team-grid.cols-6 .team-row .member:hover {
    width: 33.33%;
}
.rt-team-grid.cols-6 .team-row:hover .member {
    padding-bottom: 25%;
}

/* General styles */
.rt-team-grid .team-row {
	display: -webkit-box;
    display: -webkit-flex;
    display: -moz-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: stretch;
    -ms-flex-align: stretch;
    -webkit-align-items: stretch;
    -moz-align-items: stretch;
    align-items: stretch;
}
.rt-team-grid .team-row .member {
    position: relative;
    overflow: hidden;
	background-size: cover;
	background-position: 50%;
	-webkit-transition: width 1s, padding-bottom 1s;
	-moz-transition: width 1s, padding-bottom 1s;
	-o-transition: width 1s, padding-bottom 1s;
	transition: width 1s, padding-bottom 1s;
}

.rt-team-grid .team-row .member .overlay {
    position: absolute;
    top: 100%;
    width: 100%;
    padding: 0.5em 1em;
    background-color: #fff;
    background-color: rgba(255,255,255,0.7);
    color: rgb(30,62,112);
    text-align: center;
	-webkit-transition: top 0.5s;
	-moz-transition: top 0.5s;
	-o-transition: top 0.5s;
    transition: top 0.5s;
}

.rt-team-grid .team-row .member:hover .overlay {
    top: 70%;
}
.rt-team-grid.cols-6 .team-row .member:hover .overlay {
	top: 60%;
}

.rt-team-grid .team-row .member .overlay h2 {
	font-size: 175%;
	font-weight: 600;
	margin: 0;
}

.rt-team-grid .team-row .member .overlay h3 {
	font-size: 125%;
	margin: 0;
}

/* RESPONSIVE TEAM GRID */
@media (min-width: 768px) and (max-width: 1199px) {
	.rt-team-grid .team-row .member:hover .overlay {
		top: 65%;
	}
	.rt-team-grid.cols-5 .team-row:hover .member {
		padding-bottom: 35%;
	}
	
	.rt-team-grid.cols-6 .team-row {
		-webkit-flex-wrap: wrap;
		-ms-flex-wrap: wrap;
		flex-wrap: wrap;
	}
	.rt-team-grid.cols-6 .team-row .member {
		width: 33.33%;
		padding-bottom: 33.33%;
	}
	.rt-team-grid.cols-6 .team-row:nth-child(even) .member:nth-child(1) {
		-webkit-order: 7;
		-ms-flex-order: 7;
		order: 7;
	}
	.rt-team-grid.cols-6 .team-row:hover .member {
		padding-bottom: 33.33%;
	}
}

@media (min-width: 481px) and (max-width: 767px) {
	.rt-team-grid.cols-4 .team-row,
	.rt-team-grid.cols-5 .team-row,
	.rt-team-grid.cols-6 .team-row {
    	display: block;
	}
	.rt-team-grid.cols-4 .team-row .member,
	.rt-team-grid.cols-5 .team-row .member,
	.rt-team-grid.cols-6 .team-row .member {
		width: 50%;
		padding-bottom: 50%;
		float: left;
	}
	.rt-team-grid.cols-4 .team-row:hover .member,
	.rt-team-grid.cols-5 .team-row:hover .member,
	.rt-team-grid.cols-6 .team-row:hover .member {
		padding-bottom: 50%;
	}
	.rt-team-grid.cols-4 .team-row .member:hover,
	.rt-team-grid.cols-5 .team-row .member:hover,
	.rt-team-grid.cols-6 .team-row .member:hover {
		width: 50%;
	}
	
	.rt-team-grid.cols-4 .team-row:nth-child(odd) .member:nth-child(3),
	.rt-team-grid.cols-4 .team-row:nth-child(even) .member:nth-child(1),
	.rt-team-grid.cols-5 .team-row:nth-child(odd) .member:nth-child(3),
	.rt-team-grid.cols-5 .team-row:nth-child(even) .member:nth-child(2),
	.rt-team-grid.cols-6 .team-row .member:nth-child(3) {
		float: right;
	}
}

@media (min-width: 481px) and (max-width: 1199px) {
	.rt-team-grid.cols-6 .team-row .member:hover .overlay {
		top: 70%;
	}
	
	.rt-team-grid .team-row .member .overlay h2 {
		font-size: 125%;
	}
	.rt-team-grid .team-row .member .overlay h3 {
		font-size: 100%;
	}
}

@media (max-width: 480px) {
	.rt-team-grid.cols-4 .team-row,
	.rt-team-grid.cols-5 .team-row,
	.rt-team-grid.cols-6 .team-row {
    	display: block;
	}
	.rt-team-grid.cols-4 .team-row .member,
	.rt-team-grid.cols-5 .team-row .member,
	.rt-team-grid.cols-6 .team-row .member {
		width: 100%;
		padding-bottom: 100%;
		float: left;
	}
	.rt-team-grid.cols-4 .team-row:hover .member,
	.rt-team-grid.cols-5 .team-row:hover .member,
	.rt-team-grid.cols-6 .team-row:hover .member {
		padding-bottom: 100%;
	}
	.rt-team-grid.cols-4 .team-row .member:hover,
	.rt-team-grid.cols-5 .team-row .member:hover,
	.rt-team-grid.cols-6 .team-row .member:hover {
		width: 100%;
	}
	.rt-team-grid.cols-4 .team-row .member:hover .overlay,
	.rt-team-grid.cols-5 .team-row .member:hover .overlay,
	.rt-team-grid.cols-6 .team-row .member:hover .overlay {
		top: 70%;
	}
}


/*
 * The Management Team
 */
.rt-management-team {
	height: auto;
	overflow: hidden;
	margin: 0;
	list-style: none;
}
.rt-management-team-item .photo-wrapper img {
	margin-bottom: 0;
}
.rt-management-team-item .content-wrapper h4 {
	font-size: 150%;
	line-height: 1.3;
	margin-top: 0.5em;
	margin-bottom: 0;
}
.rt-management-team-item .position {
	font-size: 110%;
	line-height: 1.4;
	font-style: italic;
	margin-bottom: 0.66em;
}

.rt-management-team.four-up>.cs-preview-element-wrapper,
.rt-management-team.four-up>.rt-management-team-item {
	width: 22.75%;
	margin-right: 3%;
	margin-top: 1.5%;
	display: block;
	float: left;
	height: auto;
}
.rt-management-team.four-up>.cs-preview-element-wrapper:nth-child(4n),
.rt-management-team.four-up>.rt-management-team-item:nth-child(4n) {
	margin-right: 0;
}
.rt-management-team.four-up>.cs-preview-element-wrapper:nth-child(-n+4),
.rt-management-team.four-up>.rt-management-team-item:nth-child(-n+4) {
	margin-top: 0;
}
.rt-management-team.four-up>.cs-preview-element-wrapper:nth-child(4n+1),
.rt-management-team.four-up>.rt-management-team-item:nth-child(4n+1) {
	clear: both;
}

.rt-management-team.five-up>.cs-preview-element-wrapper,
.rt-management-team.five-up>.rt-management-team-item {
	width: 18%;
	margin-right: 2.5%;
	margin-top: 1.25%;
	display: block;
	float: left;
}
.rt-management-team.five-up>.cs-preview-element-wrapper:nth-child(5n),
.rt-management-team.five-up>.rt-management-team-item:nth-child(5n) {
	margin-right: 0;
}
.rt-management-team.five-up>.cs-preview-element-wrapper:nth-child(-n+5),
.rt-management-team.five-up>.rt-management-team-item:nth-child(-n+5) {
	margin-top: 0;
}
.rt-management-team.five-up>.cs-preview-element-wrapper:nth-child(5n+1),
.rt-management-team.five-up>.rt-management-team-item:nth-child(5n+1) {
	clear: both;
}

/* RESPONSIVE MANAGEMENT TEAM GRID */
@media (min-width: 481px) and (max-width: 767px) {
	.rt-management-team.four-up>.cs-preview-element-wrapper,
	.rt-management-team.four-up>.rt-management-team-item,
	.rt-management-team.four-up>.cs-preview-element-wrapper:nth-child(4n),
	.rt-management-team.four-up>.rt-management-team-item:nth-child(4n),
	.rt-management-team.four-up>.cs-preview-element-wrapper:nth-child(-n+4),
	.rt-management-team.four-up>.rt-management-team-item:nth-child(-n+4) {
    	width: 47.5%;
    	margin-right: 5%;
    	margin-top: 2.5%;
	}
	.rt-management-team.four-up>.cs-preview-element-wrapper:nth-child(2n),
	.rt-management-team.four-up>.rt-management-team-item:nth-child(2n) {
		margin-right: 0;
	}
	.rt-management-team.four-up>.cs-preview-element-wrapper:nth-child(-n+2),
	.rt-management-team.four-up>.rt-management-team-item:nth-child(-n+2) {
		margin-top: 0;
	}
}

@media (max-width: 480px) {
	.rt-management-team.four-up>.cs-preview-element-wrapper,
	.rt-management-team.four-up>.rt-management-team-item,
	.rt-management-team.four-up>.cs-preview-element-wrapper:nth-child(4n),
	.rt-management-team.four-up>.rt-management-team-item:nth-child(4n),
	.rt-management-team.four-up>.cs-preview-element-wrapper:nth-child(-n+4),
	.rt-management-team.four-up>.rt-management-team-item:nth-child(-n+4) {
		width: 100%;
		margin-right: 0;
		margin-top: 2.5%;
	}
	.rt-management-team.four-up>.cs-preview-element-wrapper:first-child,
	.rt-management-team.four-up>.rt-management-team-item:first-child {
		margin-top: 0;
	}
	.rt-management-team-item .photo-wrapper img {
		width: 100%;
	}
}

/*
 * CXX IMAGE
 */

img.push-right,
img.push-left {
	width: calc(100% + 7.5vw) !important;
	max-width: none;
}

img.push-right {
	margin-right: -7.5vw;
}

img.push-left {
	margin-left: -7.5vw;
}

img.push-right.image-push-shadow {
	box-shadow: 10px 0px 30px rgba(0,0,0,0.25);
}

img.push-left.image-push-shadow {
	box-shadow: -10px 0px 30px rgba(0,0,0,0.25);
}

/*
 * MEDIA COUPLE
 */

.media-couple .item {
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    -webkit-align-items: center;
    -moz-align-items: center;
    align-items: center;
	-webkit-flex-direction: row-reverse;
	-ms-flex-direction: row-reverse;
	flex-direction: row-reverse;
    width: 100%;
}

.media-couple .featured-image {
	z-index: 3;
}

.media-couple .featured-image img {
	width: 30vw;
	max-width: none;
	margin-left: -2.5vw;
}

.media-couple .item .content {
	padding: 2em 3em 2em 2em;
	background-color: #fff;
	z-index: 4;
	border-radius: 0 3em;
	box-shadow: 20px 4px 50px rgba(0,0,0,0.25);
}

.media-couple .item+.item {
	margin-top: 3em;
}

.media-couple.mc50_50 .item>div {
	width: 50%;
}

.media-couple.mc60_40 .item>.content {
	width: 60%;
}

.media-couple.mc60_40 .item>.featured-image {
	width:  40%;
}

.media-couple.mc60_40 .item>.featured-image img {
	margin-left: -7.5vw;
}

.media-couple.mc66_33 .item>.couple {
	width: 66.66%;
}

.media-couple.mc66_33 .item>.featured-image {
	width: 33.33%;
}

.media-couple.mc66_33 .item>.featured-image img {
	margin-left: -10vw;
}

.media-couple .item .content {
    padding: 4em 2em;
}

.media-couple .item .content h3 {
	line-height: 1.1;margin: 0;
}

.media-couple .item .content p.emphasis {
    font-size: 125%;
    line-height: 1.4;
    font-style: italic;
    margin-bottom: 0.5em;
}

.media-couple .item .content p.excerpt,
.media-couple .item .content .excerpt p {
    margin-bottom: 0.5em;
}

/* RESPONSIVE SUB-PAGE LINKS */

@media (min-width: 768px) and (max-width: 1200px) {
	.media-couple .item .featured-image {
		width: 33.33%;
		z-index: 6;
	}
	.media-couple .item .content {
		width: 66.66%;
		padding-right: 4em;
	}
}
@media (max-width: 767px) {
	.media-couple .item {
		display: block;
	}
	.media-couple .item>div {
		width: 100%;
		display: block;
	}
	.media-couple .item .featured-image img {
		width: 100%;
		max-width: 100%;
		margin-left: 0;
		border-radius: 0 3em 0 0;
	}
	.media-couple .item .content {
		padding: 2em;
		border-radius: 0 0 0 3em;
		box-shadow: 4px 20px 50px rgba(0,0,0,0.25);
	}
}