/*
 Theme Name: Triangle Associates Theme
 Author: FDG Web
 Template: Divi
 Version: 1.0.1
*/
 
/* =Theme customization starts here
------------------------------------------------------- */

#tab-container-all,
#tab-container-co-presidents,
#tab-container-administration,
#tab-container-education,
#tab-container-public-policy,
#tab-container-contractors {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-start;
}

.tab-content-all,
.tab-content-co-presidents,
.tab-content-administration,
.tab-content-education,
.tab-content-public-policy,
.tab-content-contractors {
	display: none;
}
	
#tab-container-all .tab-content-all,
#tab-container-co-presidents .tab-content-co-presidents,
#tab-container-administration .tab-content-administration,
#tab-container-education .tab-content-education,
#tab-container-public-policy .tab-content-public-policy,
#tab-container-contractors .tab-content-contractors {
	display: flex;
	margin: 0 2.6% 40px !important;
}

#tab-container-all .tab-content-all:nth-child(3n+1),
#tab-container-co-presidents .tab-content-co-presidents:nth-child(3n+1),
#tab-container-administration .tab-content-administration:nth-child(3n+1),
#tab-container-education .tab-content-education:nth-child(3n+1),
#tab-container-public-policy .tab-content-public-policy:nth-child(3n+1),
#tab-container-contractors .tab-content-contractors:nth-child(3n+1) {
	margin-left: 0 !important;
}

#tab-container-all .tab-content-all:nth-child(3n+3),
#tab-container-co-presidents .tab-content-co-presidents:nth-child(3n+3),
#tab-container-administration .tab-content-administration:nth-child(3n+3),
#tab-container-education .tab-content-education:nth-child(3n+3),
#tab-container-public-policy .tab-content-public-policy:nth-child(3n+3),
#tab-container-contractors .tab-content-contractors:nth-child(3n+3) {
	margin-right: 0 !important;
}

@media screen and (max-width: 1200px) {
	#tab-container-all .tab-content-all .et_pb_image_wrap img,
	#tab-container-co-presidents .tab-content-co-presidents .et_pb_image_wrap img,
	#tab-container-administration .tab-content-administration .et_pb_image_wrap img,
	#tab-container-education .tab-content-education .et_pb_image_wrap img,
	#tab-container-public-policy .tab-content-public-policy .et_pb_image_wrap img,
	#tab-container-contractors .tab-content-contractors .et_pb_image_wrap img {
		height: 200px;
	}
}

@media screen and (max-width: 599px) {
	.et_flex_column_8_24 {
		width: calc(50% - var(--row-gutter-horizontal) * 0.66667);
	}
	
	#tab-container-all .tab-content-all:nth-child(2n+1),
	#tab-container-co-presidents .tab-content-co-presidents:nth-child(2n+1),
	#tab-container-administration .tab-content-administration:nth-child(2n+1),
	#tab-container-education .tab-content-education:nth-child(2n+1),
	#tab-container-public-policy .tab-content-public-policy:nth-child(2n+1),
	#tab-container-contractors .tab-content-contractors:nth-child(2n+1) {
		margin: 0 2.6% 40px 0 !important;
	}

	#tab-container-all .tab-content-all:nth-child(2n+2),
	#tab-container-co-presidents .tab-content-co-presidents:nth-child(2n+2),
	#tab-container-administration .tab-content-administration:nth-child(2n+2),
	#tab-container-education .tab-content-education:nth-child(2n+2),
	#tab-container-public-policy .tab-content-public-policy:nth-child(2n+2),
	#tab-container-contractors .tab-content-contractors:nth-child(2n+2) {
		margin: 0 0 40px 2.6% !important;
	}
}

@media screen and (max-width: 400px) {
	.et_flex_column_8_24 {
		width: calc(100% - var(--row-gutter-horizontal) * 0.66667);
	}
	
	#tab-container-all .tab-content-all:nth-child(2n+1),
	#tab-container-co-presidents .tab-content-co-presidents:nth-child(2n+1),
	#tab-container-administration .tab-content-administration:nth-child(2n+1),
	#tab-container-education .tab-content-education:nth-child(2n+1),
	#tab-container-public-policy .tab-content-public-policy:nth-child(2n+1),
	#tab-container-contractors .tab-content-contractors:nth-child(2n+1) {
		margin: 0 0 40px !important;
	}

	#tab-container-all .tab-content-all:nth-child(2n+2),
	#tab-container-co-presidents .tab-content-co-presidents:nth-child(2n+2),
	#tab-container-administration .tab-content-administration:nth-child(2n+2),
	#tab-container-education .tab-content-education:nth-child(2n+2),
	#tab-container-public-policy .tab-content-public-policy:nth-child(2n+2),
	#tab-container-contractors .tab-content-contractors:nth-child(2n+2) {
		margin: 0 0 40px !important;
	}
}