/**
 * ----------------------------------------------------------------------------
 * Frontend CSS
 * ----------------------------------------------------------------------------
 */

 body:not(.wp-admin) .team-member-hover {
 	position: relative;
 	background: #4a4a4a;
 	overflow: hidden;
 	margin-bottom: 2.5rem
 }

 body:not(.wp-admin) .team-member-content {
 	position: absolute;
 	bottom: 0;
 	opacity: 0;
 	left: 0;
 	width: 100%;
 	height: 100%;
 	transition: all 450ms;
 	padding: 10%;
 	color: #fff;

 	/*transform: translateY(100%);*/
 }

 .entry-content  .team-member-content,
 .entry-content  .team-member-content p {
 	color: #fff;
 	font-size: 16px;
    line-height: 1.6;
 }

 body:not(.wp-admin) .team-member-hover:hover .team-member-content{
 	opacity: 1;
 	/*transform: translateY(0);*/
 }

  body:not(.wp-admin) .team-member-hover:hover .team-member-image{
 	opacity: .2;
 }

 .team-member-image {
 	height: 400px;
 	background-repeat: no-repeat;
 	background-size: cover;
 	background-position: center;
 	transition: all 450ms;

 }

.team-member-image img{
	display: none;
}

.team-member-wrapper h3 {
	margin-bottom: 5px !important;
    font-size: 24px !important;
    padding-top: 0 !important;
    width: 85% !important;
}

.team-member-wrapper h5{
	letter-spacing: 0px;
    font-size: 1rem !important;
    color: #6c6c6d !important;
    font-weight: 400;
    width: 85% !important;
}

.team-member-data {
	position: relative;
}

.team-member-data .social-link.email-link {
	position: absolute;
	right: 0;
	top: 0;
}

.team-member-data .social-link.email-link i {
	color: #f37121;
    border: 1px solid;
    padding: 8px;
    border-radius: 50%;
    font-size: 14px;
}

/************************************************
*  Phone Grid
************************************************/

@media screen and (max-width: 767px) {


}

.wp-block-team-member-popup-block .team-member-hover {
	position: relative;
}

.white-popup {
	position: relative;
	background: #f5f5f5;
	padding: 45px;
	width: auto;
	max-width: 500px;
	margin: 20px auto;
	border-radius: .625rem;
}

.wp-block-team-member-popup-block .team-member-hover:hover .open-popup-link {
	opacity: 1;
	visibility: visible;

	transition: all 450ms;
}

.wp-block-team-member-popup-block .open-popup-link {
	position: absolute;
	top: 50%;  /* position the top  edge of the element at the middle of the parent */
    left: 50%; /* position the left edge of the element at the middle of the parent */

    transform: translate(-50%, -50%);
	display: flex;
	opacity: 0;
	visibility: hidden;

	transition: all 450ms;

    background-color: #4a4a4a;
    border-radius: .625rem;
    font-size: .625rem;
    color: #fff;
    font-weight: 700;
    letter-spacing: .5px;
	padding: .875rem 1.5rem;
    text-transform: uppercase;
    text-align: center;
	z-index: 2;
	line-height: normal;
}

.wp-block-team-member-popup-block .open-popup-link.mobile-only {
	position: relative;
	opacity: 1;
	visibility: visible;
	display: inline-block;
    left: 0;
    transform: none;
	margin-bottom: 45px;
}

.wp-block-team-member-popup-block .team-member-wrapper h5 {
		margin-bottom: 15px;
	}

@media screen and (min-width: 640px) {
	.wp-block-team-member-popup-block .open-popup-link.mobile-only {
		display: none;
	}
	
}

.wp-block-team-member-popup-block .open-popup-link:hover {
	background-color: #f37121;
	transition: all 450ms;
}

.mfp-close-btn-in .mfp-close {
    color: #f37121;
}
