/** BLOCK: TEAM - CSS **/
.team .team-container {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr 1fr;
	grid-gap: 1.5rem;
}

.team h1 {
	text-align: center;
	margin-bottom: 2.5rem;
	font-family: 'Sailec';
	font-size: 2.375rem;
}

.team .team-container .team-block .team-info .team-name {
	font-family: var(--font-medium);
}

.team .team-container .team-block .team-info .team-role {
	font-family: var(--font-regular);
}

/** TEAM OVERLAY **/
.team .team-container .team-block {
	height: 250px;
	position: relative;
	cursor: pointer;
	padding: 0 1.5rem;
	color: var(--tertiary-color);

	background-position: top center;
	background-size: 110%;
	background-repeat: no-repeat;
}

.team .team-container .team-block:hover{
	background-size: 120%;
}

.team .team-container .team-block .team-info {
	position: absolute;
	bottom: 1.5rem;
	color: #FFFFFF;
}

.team .team-overlay {
	position: fixed;
	visibility: hidden;
	opacity: 0;
	background: rgba(0,0,0,0.8);
	left: 0;
	right: 0;
	z-index: 5;
	transition: 350ms;
	width: 100%;
	height: 100%;
	top: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}

.team .team-overlay.open {
	visibility: visible;
	opacity: 1;
}

.team-overlay .team-content {
	background: #FFFFFF;
	width: 50%;
	height: 45%;
	position: relative;
	display: flex;
}

.team-content .thumbnail {
	height: 100%;
	width: 35%;
	background-position: center !important;
	background-repeat: no-repeat !important;
	background-size: cover !important;
}

.team-content .text {
	width: 80%;
	padding: 2rem;
	font-size: 1rem;
	color: #64686A;
}

.team-content .title {
	margin-bottom: 1rem;
	display: block;
	font-size: 2.375rem;
	color: var(--tertiary-color);
}

.close-team-block{
	position: absolute;
	top: -15px;
	right: -15px;
	height: 30px;
	width: 30px;
	background-color: #fff;
	cursor: pointer;
	line-height: 30px;
	text-align: center;
	border-radius: 50%;
	box-shadow: -5px 5px 14px -1px rgba(0,0,0,0.75);
}

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

	.team .team-container {
		grid-template-rows: 1fr 1fr;
		grid-template-columns: 1fr 1fr;
	}

}

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

	.team .team-container {
		grid-template-columns: 1fr;
	}

	.team-overlay .team-content{
		width: calc(100% - 30px);
		height: auto;
		display: block;
	}

	.team-content .thumbnail{
		width: 100%;
		height: 300px;
		background-position: top center !important;
	}

	.team-content .text{
		width: 100%;
	}
}