/*
 Theme Name: JTM Divi Child
 Author: FDG Web
 Template: Divi
 Version: 1.0.8
*/
 
/* =Theme customization starts here
------------------------------------------------------- */

#all-projects {
	position: relative;
	
	&:before {
		content: '';
		position: absolute;
		background-image: repeating-linear-gradient(135deg, #ddd, #ddd 1px, #ffffff 1.5px, #ffffff 6.5px);
		height: 280px;
		width: 500px;
		top: 0;
		left: 0;
		transform: translate3d(0, 0, 0);
	}
}

.projects-filter-bar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	
	& > label,
	.project-search-label,
	.project-filter-label,
	.project-type-label {
		text-transform: uppercase;
		font-weight: 600;
		font-size: 12px;
		letter-spacing: 0.04em;
		padding: 0 10px 0 0;
		user-select: none;
	}
	
	.project-filter-item {
		display: flex;
		align-items: center;
		
		&.project-search-toggle {
			width: 32px;
			height: 32px;
			
			button.et_pb_menu__icon {
				margin: 0;
				transform: scaleX(-1);
				font-size: 20px;
				width: 32px;
				height: 32px;
				display: flex;
				justify-content: center;
			}
		}
		
		&.project-filter-item.project-type,
		&.project-filter-item.project-status {
			opacity: 1;
			transform: translateX(0px);
			transition: 1s all;
			
			&.hide {
				opacity: 0;
				transform: translateX(-10px);
				z-index: -1;
			}
		}
		
		&.project-filter-item.project-search {
			position: absolute;
			left: 12%;
			display: flex;
			width: 700px;
			opacity: 0;
			transform: translateX(10px);
			transition: 1s all;
			
			&.active {
				opacity: 1;
				transform: translateX(0);
				z-index: 2;
			}
			
			#project-search-input {
				padding: 10px 14px;
				min-width: 320px;
			}
		}
	}
	
	.project-filter-status-option {
		padding: 5px 20px 5px 0;
		font-size: 13px;
		user-select: none;
		
		input[type="checkbox"] {
			margin: 4px 2px 0 0;
			vertical-align: top;
			accent-color: #dc1931;
		}
	}
	
	#project-type-wrap {
		position: relative;
		user-select: none;
		
		&:after {
			content: '';
			position: absolute;
			top: 50%;
			right: 10px;
			margin-top: -8px;
			width: 8px;
			height: 8px;
			pointer-events: none;
			transform: rotate(45deg);
			box-shadow: 2px 2px 0 #000;
		}
	}
	
	#project-type-input {
		padding: 10px 34px 10px 14px;
		appearance: none;
		min-width: 320px;
		user-select: none;
	}
}

#all-projects-list {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-start;
	margin: 0 -15px;
	padding: 20px 0 60px;
	
	@media (min-width: 576px) {
		& {
			padding: 60px 0;
		}
	}
	
	.project-item {
		display: flex;
		width: 100%;
		flex-direction: column;
		padding: 0 15px;
		color: #000;
		margin-bottom:20px;
		
		@media (min-width: 576px) {
			& {
				width: 50%;
			}
		}
		
		@media (min-width: 768px) {
			& {
				width: 33.333%;
			}
		}
		
		&:hover {
			.project-img {
				img {
					transform: scale(1.02);
					filter: saturate(0.5);
				}
			}
		}
		
		&.hide {
			display: none;
		}
		
		.project-img-wrap {
			position: relative;
			
			.project-img {
				position: relative;
				margin: 0 0 20px;
				aspect-ratio: 1 / 1.1;
				background: #EEE;
				overflow: hidden;
				
				img {
					aspect-ratio: 1 / 1.1;
					object-fit: cover;
					display: block;
					transition: 2s all;
				}
			}
			
			.project-img-overlay {
				position: absolute;
				bottom: -10px;
				right: -10px;
				width: 100px;
				height: 100px;
				background-image: repeating-linear-gradient(135deg, #000000, #000000 0.6px, #00000000 0.8px, #00000000 2.7px);
				display: flex;
				align-items: center;
				justify-content: center;
				
				.et_pb_menu__search-button {
					transform: scaleX(-1);
					font-size: 20px;
					color: #FFF;
				}
			}
		}
		
		h2 {
			font-weight: 600;
			padding: 0 0 5px;
		}
		
		.project-subtitle {
			font-weight: 500;
			font-size: 14px;
			padding: 0 0 10px;
		}
		
		.project-client,
		.project-address,
		.project-size,
		.project-status,
		.project-rooms {
			font-size: 12px;
			
			label {
				font-weight: 600;
			}
		}
		
		.project-item-view {
			text-transform: uppercase;
			font-size: 12px;
			letter-spacing: 0.05em;
			font-weight: 600;
			padding: 10px 0;
			
			&:before {
				content: '';
				position: relative;
				width: 8px;
				height: 8px;
				display: inline-block;
				transform: rotate(45deg);
				box-shadow: 2px -2px #dc1931;
				margin: 7px 14px 0 -5px;
				vertical-align: top;
			}
		}
	}
}

#all-members {
	&:before {
		content: '';
		position: absolute;
		background-image: repeating-linear-gradient(135deg, #ddd, #ddd 1px, #ffffff 1.5px, #ffffff 6.5px);
		height: 280px;
		width: 500px;
		top: 0;
		left: 0;
		transform: translate3d(0, 0, 0);
	}
	
	.member-tabs {
		
		
		.member-tab {
			background-color: #FFF;
			font-weight: 600;
			text-transform: uppercase;
			color: #000;
			font-size: 14px;
			letter-spacing: .08em;
			border: 1px solid #CCC;
			transition: background-color, border-color, color 300ms ease;
			transition-delay: 0ms;
			padding: 9px 15px 8px;
			margin: 0 7px 10px 0;
			line-height: 1.7em;
			cursor: pointer;
			
			@media (min-width: 576px) {
				& {
					padding: 9px 35px 8px;
				}
			}
			
			&:hover,
			&:focus,
			&:active {
				background-color: rgba(220, 21, 49, 0);
				color: #000000;
				border-color: #000000;
			}
			
			&.active {
				background-color: var(--gcid-primary-color) !important;
				color: #ffffff !important;
				border: 1px solid var(--gcid-primary-color) !important;
			}
		}
	}
}

#all-members-list {
	margin: 0 -15px;
	padding: 20px 0 60px;
	
	@media (min-width: 576px) {
		& {
			padding: 60px 0;
		}
	}
	
	.team-heading {
		font-weight: 800;
		font-size: 36px;
		letter-spacing: -0.04em;
		padding: 0 15px 20px;
	}
	
	.team-group {
		display: flex;
		flex-wrap: wrap;
		justify-content: flex-start;
		padding: 0 0 100px;
	}
	
	.member-item {
		display: flex;
		display: none;
		width: 100%;
		flex-direction: column;
		padding: 0 15px 30px;
		color: #000;
		cursor: pointer;
		
		@media (min-width: 576px) {
			& {
				width: 50%;
			}
		}
		
		@media (min-width: 768px) {
			& {
				width: 33.333%;
			}
		}
		
		@media (min-width: 992px) {
			& {
				width: 25%;
			}
		}
		
		@media (min-width: 1260px) {
			& {
				width: 20%;
			}
		}
		
		&.active {
			display: flex;
		}
		
		.member-img {
			position: relative;
			margin: 0 0 15px;
			aspect-ratio: 1 / 1.3;
			background-size: cover;
			background-position: center center;
			display: block;
			overflow: hidden;
			
			.hover-img {
				position: absolute;
				top: 0;
				left: 0;
				width: 100%;
				height: 100%;
				background-size: cover;
				background-position: center center;
				opacity: 0;
				transition: 1s all;
			}
			
			&:hover {
				.hover-img {
					opacity: 1;
					transform: scale(1.1);
				}
			}
		}
		
		.member-name {
			font-weight: 600;
			padding: 0;
			font-size: 20px;
		}
		
		.member-position {
			font-weight: 400;
			font-size: 14px;
			padding: 0 0 10px;
		}
		
		.member-accreditation {
			display: none;
			font-size: 12px;
		}
		
		.member-email {
			display: none;
			font-size: 12px;
		}
		
		.member-bio {
			display: none;
		}
	}
}

.no-match {
	display: none;
	
	&.active {
		display: block;
	}
}

.team-modal {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 100001;
	display: none;
	
	&.show {
		display: flex;
	}
	
	&.fade {
		.team-modal-inner {
			opacity: 1;
			transform: translateY(0px) rotateX(0deg) translateZ(0px);
		}
		
		.team-modal-shad {
			backdrop-filter: grayscale(0.5) blur(2px);
			background: rgba(0,0,0,0.4);
		}
	}
	
	.team-modal-shad {
		position: absolute;
		background: rgba(0,0,0,0);
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;
		backdrop-filter: grayscale(0) blur(0px);
		transition: 0.5s all;
	}
	
	.team-modal-inner {
		position: relative;
		background: #FFF;
		border-radius: 10px;
		width: 90%;
		max-width: 1200px;
		height: auto;
		max-height: 80%;
		margin: 5% 0 0;
		overflow: hidden;
		z-index: 5;
		opacity: 0;
		transform: translateY(40px);
		transition: 0.5s all;
		box-shadow: 0 10px 60px #22000040;
		
		.team-modal-content {
			height: 100%;
			display: flex;
			flex-direction: column;
			align-items: center;
			padding: 30px;
			overflow-y: scroll;
			
			@media (min-width: 576px) {
				& {
					padding: 40px;
					flex-direction: row;
					align-items: flex-start;
				}
			}
			
			@media (min-width: 768px) {
				& {
					padding: 60px;
					flex-direction: row;
					align-items: flex-start;
				}
			}
			
			.member-image {
				width: 50%;
				padding: 0 0 20px;
				
				@media (min-width: 576px) {
					& {
						width: 30%;
						padding: 0;
					}
				}
			}
			
			.member-info {
				width: 100%;
				
				@media (min-width: 576px) {
					& {
						width: 70%;
						padding: 0 0 0 40px;
					}
				}
				
				@media (min-width: 768px) {
					& {
						width: 70%;
						padding: 0 0 0 60px;
					}
				}
				
				.member-name {
					font-weight: 600;
					padding: 0;
					font-size: 32px;
					line-height: 1.4em;
					letter-spacing:-0.02em
				}
				
				.member-position {
					font-weight: 400;
					font-size: 14px;
					padding: 0 0 10px;
				}
				
				.member-bio {
					font-size: 14px;
					padding: 20px 0 30px;
					line-height: 26px;
				}
				
				.member-email {
					background-color: #FFF;
					font-weight: 600;
					text-transform: uppercase;
					color: #000;
					font-size: 14px;
					letter-spacing: .08em;
					border: 1px solid #CCC;
					transition: background-color, border-color, color 300ms ease;
					transition-delay: 0ms;
					padding: 9px 15px 8px;
					margin: 0 7px 10px 0;
					line-height: 1.7em;
					cursor: pointer;
					background-color: var(--gcid-primary-color) !important;
					color: #ffffff !important;
					border: 1px solid var(--gcid-primary-color) !important;
					display: inline-block;
					
					@media (min-width: 576px) {
						& {
							padding: 9px 35px 8px;
						}
					}
					
					&:before {
						content: "\e010";
						font-family: "ETmodules";
						font-size: 20px;
						display: inline-block;
						margin: 0 12px 0 0;
						vertical-align: top;
					}
					
					&:hover,
					&:focus,
					&:active {
						background-color: rgba(220, 21, 49, 0) !important;
						color: #000000 !important;
						border-color: #000000 !important;
					}
				}
			}
			
			.team-modal-close {
				position: absolute;
				top: 25px;
				right: 25px;
				width: 40px;
				height: 40px;
				font-size: 0;
				background: transparent;
				border: 0;
				z-index: 10;
				cursor: pointer;
				
				&:before {
					content: '';
					background: rgb(0, 0, 0);
					width: 30px;
					height: 2px;
					position: absolute;
					transform: rotate(45deg);
					top: 18px;
					left: 5px;
					transition: 0.5s all;
				}
				
				&:after {
					content: '';
					background: rgb(0, 0, 0);
					width: 30px;
					height: 2px;
					position: absolute;
					transform: rotate(-45deg);
					top: 18px;
					left: 5px;
					transition: 0.5s all;
				}
				
				&:hover,
				&:active,
				&:focus {
					&:after,
					&:before {
						background: #000;
					}
				}
			}
		}
	}
}