/*
 Theme Name:   Ave Forensic
 Theme URI:    https://generatepress.com
 Description:  Ave Forensic Child Theme
 Author:       Blackbox Web Design
 Author URI:   https://www.blackboxdesign.co.uk
 Template:     generatepress
 Version:      0.1
*/


/* All Devices */

/* Typography*/

h1,h2,h3,h4 {
	color:#602889;
}

.af_dark_bg h1, .af_dark_bg h2, .af_dark_bg h3 {
	color:#fff;
}

#af_home_hero h1, .af_inner_banner h1 {
	margin-bottom:0;
	position:relative;
	/*top:16px;*/
	color:#fff;
	font-size:64px;
}

/*.af_inner_banner h1 {
	top:16px;
}*/

h2.bighead {
	font-size:4em;
	line-height:1.2em;
}

.af_testimonial_item {
	font-size:14px;
	text-align:center;
}

.af_testimonial_item .af_testimonial_author {
	font-weight:700;
	font-size:12px;
}

.af_testimonial_author, .af_testimonial_content {
	padding: 0 40px;
}

/* Navigation  */

.main-navigation .main-nav ul li a {
	text-transform: uppercase;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.04em;
}

/* Top Bar */

#af_top_bar {
	padding:10px;
	background-color:var(--accent);
}

#af_top_bar p {
	margin-bottom:0;
	color:#fff;
}

/* Headers & Banners */

#af_home_hero {
	min-height:60vh;
	background-position:center;
	display:flex;
	align-items:center;
}

.af_inner_banner {
	min-height:35vh;
	background-position:center;
	display:flex;
	align-items:center;
}

.af_midpage_banner {
	min-height:45vh;
	display:flex;
	align-items:center;
	color:#fff;
}

.af_midpage_banner .gb-inside-container {
	width:80%;
}


.af_midpage_banner.af_bottom_heading h2 {
	margin-bottom:0;
	position:relative;
	/*top:16px;*/
}
/* Team Members */

#experts_grid > .gb-inside-container, #experts_grid > .gb-inside-container .wp-block-group__inner-container {
	max-width:1500px;
}



.af_team_member_summary_wrapper, .af_team_member_detail_wrapper {
	display:flex;
	flex-wrap:nowrap;
	gap:2em;
	text-align:center;
}

.af_team_member_detail_wrapper .team_member_detail {
	text-align:left;
	margin-bottom:20px;
}

.af_team_member_summary_wrapper .team_member_item, .af_team_member_detail_wrapper .team_member_item {
	flex-basis: calc( (100% - 4em) /  3 );
}

.team_member_item .team_member_image img {
	width:100%;
	max-width:300px;
	margin-left:auto;
	margin-right:auto;
	border:1px solid #e1e1e1;
}

.team_member_item h3 {
	font-size:18px;
}

.team_member_detail {
	font-size:14px;
}

.team_member_detail ul {
	margin-left:1em;
}

.af_team_member_detail_wrapper .team_member_item {
	padding: 20px;
    border: 1px solid #e1e1e1;
	box-shadow: 0 0 16px #ddd;
	background-color:#fff;
}

.team_member_cv {
	margin-bottom: 40px;
}

.team_member_cv a {
	display:inline-block;
	padding:8px 40px;
	background-color:#203864;
	color:#fff;
	border-radius: 30px;
	font-weight:700;
	font-size:14px;
	transition: 0.4s all;
	text-decoration:none;
}

.team_member_cv a:hover {
	background-color:#8780ac;
}

.af_team_member_detail_wrapper .team_member_cv.hidden {
	visibility:hidden;
}

.team_member_item.staff {
	display:flex;
	gap:2em;
	flex-wrap:wrap;
	padding:20px;
	border:1px solid #e1e1e1;
	margin-bottom:30px;
	background-color:#fff;
} 

.team_member_item.staff .team_member_image {
	flex-basis:20%;
}

.team_member_item.staff .team_member_content {
	flex-basis: calc( 80% - 2em ) ;
}

.team_member_item.staff h3 {
	margin-bottom:0;
	margin-right:5px;
}

.team_member_item.staff h3, .team_member_item.staff p.position {
	display:inline-block;
}

.team_member_item.staff p.position {
    font-size: 18px;
    font-weight: 700;
    color: #602889;
	}

.team_member_item.staff ul {
	margin-left:2em;
	font-size:14px;
}

.team_member_item.staff ul li {
	margin-bottom:8px;
}

p.small_bottom_margin {
	margin-bottom:8px;
}

/* Testimonials */

.af_testimonial_content {
	margin-bottom:20px;
}

/* Services & Sectors */

.af_services_wrapper, .af_sectors_wrapper {
	display:flex;
	flex-wrap:wrap;
	gap:2em;
}

.af_services_wrapper .af_services_item, .af_sectors_wrapper .af_sectors_item {
	flex-basis: calc( (100% - 4em) / 3);
	margin-bottom:30px;
    padding: 20px;
    border: 1px solid #e1e1e1;
	background-color:#fff;
	box-shadow:0 0 16px #ddd;
}

.af_services_item h3, .af_sectors_item h3 {
	font-size:18px;
}

.af_sectors_item ul {
	margin-left:1em;
}

.af_services_detail {
	text-align:center;
}


/* Lity Popup */

.lity {
	background-color:rgba(32,56,100,0.95)!important;
}

.lity-wrap {
	overflow:auto;
}

.lity-content {
	background-color:#fff!important;
	width:82%!important;
	/*height:auto;*/
	max-width:1200px;
	margin-left:auto;
	margin-right:auto;
	padding:30px;
	/*overflow-y: scroll;*/
}

.lity-content div {
	overflow-y:scroll;
}

/*.lity-container {

	background-color:#fff;
}*/

.lity-content ul {
	margin-left:2em;

}

.lity-content:after {
	box-shadow:none!important;
}

.lity-close {	
			top:60px!important;
		}


/* 404 */


/* Footer */

.af_footer_widget p, af_footer_widget a {
	font-size:12px;
	text-align:center;
}

/* General Content */

.af_container_padding {
	padding: 40px 0;
}

.af_divider {
	height:4px;
	border-top:4px solid #8780ac;
	width:100%;
	margin:40px auto 60px auto;
}

.af_divider.left {
	margin:20px auto 30px 0;
}

.gb-container.af_trans_bg {
	background-size:100%;
}

.gb-container.af_trans_bg.top {
	background-position:top;
}

/* Responsive Desktop - Everything ABOVE 1024 */
@media only screen
	and (min-width: 1024px) {
		
		h2.bighead {
			line-height:1em;
		}
		
	.af_split_cols .wp-block-column.text {
		padding-left:20px;
		border-left:4px solid #8780ac;
}
		
	/*	.af_split_cols .wp-block-column.title {
			text-align:right;
		} */	
		
		.af_team_member_summary_wrapper .team_member_item, .af_team_member_detail_wrapper .team_member_item {
			/*width: calc( (100% - 4em)/3 );*/
			width: calc( (100% - 6em) /  4);
}
				
}

/* Responsive - Everything BELOW 1024 */
@media only screen
	and (max-width: 1023px) {
		
	.af_team_member_summary_wrapper, .af_team_member_detail_wrapper, .af_services_wrapper, .af_sectors_wrapper {
			flex-direction:column;
		}
		
		#af_home_hero {
			min-height:35vh;
		}
		
		.af_inner_banner {
			align-items:center;
		}
		
		#af_home_hero h1, .af_inner_banner h1 {
			font-size:2.75em;
		} 
		
		h2.bighead {
			font-size:2.75em;
		}
		
		.af_midpage_banner, #af_home_hero {
			align-items:center;
		}
		
		.af_midpage_banner.af_bottom_heading h2 {
			top:0;
		}
		
		.af_team_member_summary_wrapper .team_member_item, .af_team_member_detail_wrapper .team_member_item {
			width: 100%;
}
		
		.af_services_detail h3, .af_services_detail p {
			height:auto!important;
		}
		
	.lity-content {
			margin-top:100px;
		margin-bottom:100px;
		}
		
		.lity-content div {
			
		}
		
		
	
}

/* Responsive Tablet - Between 768 and 1023 */
@media only screen
	and (min-width: 768px)
	and (max-width: 1023px) {
		
}


/* Responsive Mobile - Everything BELOW 768 */
@media only screen
	and (max-width: 767px) {
		
		.af_testimonial_wrapper {
			pointer-events:none;
		}
		
		.slick-dots {
		pointer-events:initial;
	}
		
		.lity-content h3 {
			font-size:20px;
		}
		
		.lity-content ul {
			margin-left:1em;
		}
		
		.team_member_item.staff {
			flex-direction:column;
		}
		


}
