@media all and (max-width: 1700px)  {
	/* Fix banner accordion background */
	.tdlAccordionBannerItem:nth-of-type(2) { background-position: -50px center !important;}
	.tdlAccordionBannerItem:nth-of-type(3) { background-position: -100px center !important;}
	.tdlAccordionBannerItem:nth-of-type(4) { background-position: -150px center !important;}
	.tdlAccordionBannerItem:nth-of-type(5) { background-position: -200px center !important;}
	.tdlAccordionBannerItem:nth-of-type(6) { background-position: -250px center !important;}

}

@media all and (max-width: 1400px)  {

	:root{

		--headcontentwidth: 92%;
		--mobileMargin: 0 4%;
	}



.tdlAccordionBannerItem .description{font-size: 16px;}
.tdlAccordionBannerItem  h2 { font-size: 1.5em;}


}


@media all and (max-width: 1250px)  {


	:root{
		--contentwidth: 92%;
		--gutter: 50px;
	}
	.wpb-content-wrapper { overflow: hidden !important;}
	#wrapper { width: 100%;}
	.vc_row{ width: 100% !important; margin-left: auto !important; margin-right: auto !important;}
	.vc_col-sm-12 { width: 100% !important;}
	.vc_row .vc_col-sm-12 { width: 100% !important;}
	footer { width: var(--contentwidth);}
	header { width: var(--contentwidth);}
	#sub_footer footer { width: var(--contentwidth) !important; display: block;}
	.single-team_member article { width: var(--contentwidth);}

	/* Single Case Study */
	.single-study {
	  .tdlContentWrapper { width: calc(100% - var(--default-vc-padding)); padding: 0 calc(var(--default-vc-padding) / 2) !important;}
	}

	/* Single Post */
	.single-post {
	  article { width: calc(100% - var(--default-vc-padding)); padding: 0 calc(var(--default-vc-padding) / 2) !important;}
	  .post-wrapper { width: calc(100% - var(--default-vc-padding)); padding: var(--small-vc-padding) calc(var(--default-vc-padding) / 2) !important;}
	}

	.archive.category {
		article { width: calc(100% - var(--default-vc-padding)); padding: 0 calc(var(--default-vc-padding) / 2) !important;}
	}

	.single-affiliates {
		article { width: calc(100% - var(--default-vc-padding)); padding: 0 calc(var(--default-vc-padding) / 2) !important;}
	}

	.tdl-blog-post {
		width: 100% !important;
	}


	/* Banner */
	.tdlAccordionBannerContainer #slideContent { flex-direction: column; height: auto; min-height: 500px;}
	.tdlAccordionBannerItem { width: 100%; height: 60px;}
	.tdlAccordionBannerItem.active { height: auto; background-position: -100px -100px !important;}
	.tdlAccordionBannerItem .selectedContent .contentWrapper { padding: 20px 4%; flex: 0 0 calc(50% - 8%)}
	.tdlAccordionBannerItem .tabContent h2 { transform: rotate(0deg);}
	.tdlAccordionBannerItem .selectedContent .imageWrapper { height: auto; width: var(--contentwidth); margin: 0 auto;}
	.tdlAccordionBannerItem .selectedContent .imageWrapper img { display: block;}

	.tdlAccordionBannerItem:nth-of-type(2) { background-position: 0px center !important;}
	.tdlAccordionBannerItem.active:nth-of-type(2) { background-position: -100px -100px !important;}
	.tdlAccordionBannerItem:nth-of-type(3) { background-position: 0px center !important;}
	.tdlAccordionBannerItem.active:nth-of-type(3) { background-position: -100px -100px !important;}
	.tdlAccordionBannerItem:nth-of-type(4) { background-position: 0px center !important;}
	.tdlAccordionBannerItem.active:nth-of-type(4) { background-position: -100px -100px !important;}
	.tdlAccordionBannerItem:nth-of-type(5) { background-position: 0px center !important;}
	.tdlAccordionBannerItem.active:nth-of-type(5) { background-position: -100px -100px !important;}
	.tdlAccordionBannerItem:nth-of-type(6) { background-position: 0px center !important;}
	.tdlAccordionBannerItem.active:nth-of-type(6) { background-position: -100px -100px !important;}

	/* Testimonials */
	.tdl-testimonial-container.accordion #slideContent{ flex-direction: column; height: auto;}
	.tdl-testimonial-container.accordion .testimonialTDL { width: 100%;}
	.tdl-testimonial-container.accordion .testimonialTDL.active { padding: 50px 0;}
	.tdl-testimonial-container.accordion .testimonialTDL .tabContent { height: 60px;}
	.tdl-testimonial-container.accordion .testimonialTDL .tabContent h3 { transform: rotate(0deg);}

	/* .tdl-testimonial-container.accordion .testimonialTDL:nth-of-type(2) { background-position: 200px center !important;}
	.tdl-testimonial-container.accordion .testimonialTDL.active:nth-of-type(2) { background-position: 0px center !important;}
	.tdl-testimonial-container.accordion .testimonialTDL:nth-of-type(3) { background-position: 300px center !important;}
	.tdl-testimonial-container.accordion .testimonialTDL.active:nth-of-type(3) { background-position: 0px center !important;}
	.tdl-testimonial-container.accordion .testimonialTDL:nth-of-type(4) { background-position: 400px center !important;}
	.tdl-testimonial-container.accordion .testimonialTDL.active:nth-of-type(4) { background-position: 0px center !important;}
	.tdl-testimonial-container.accordion .testimonialTDL:nth-of-type(5) { background-position: 500px center !important;}
	.tdl-testimonial-container.accordion .testimonialTDL.active:nth-of-type(5) { background-position: 0px center !important;}
	.tdl-testimonial-container.accordion .testimonialTDL:nth-of-type(6) { background-position: 600px center !important;}
	.tdl-testimonial-container.accordion .testimonialTDL.active:nth-of-type(6) { background-position: 0px center !important;} */


}

@media all and (max-width: 1130px)  {
	/* Stack Contact Page */
	.page-id-49 .wpb_column { width: 100% !important;}
	.nf-form-content { max-width: 100% !important;}
	#columnContact .wpb_column.vc_col-sm-2 { width: 10% !important;}
	#columnContact .wpb_column.vc_col-sm-10 { width: 90% !important;}
}

@media all and (max-width: 900px)  {
	.teamMemberTDLBlock { display: grid; grid-template-columns: repeat(2,1fr);}
	#tdlButtonRow .vc_col-sm-3 { width: 50% !important; margin-bottom: var(--default-vc-padding);}
	.tdl-icon-button.breakLine a h3 { white-space: normal !important;}
}

@media all and (max-width: 825px)  {
	#tdlButtonRow .vc_col-sm-3 { width: 100% !important; margin-bottom: var(--default-vc-padding);}
}

@media all and (max-width: 800px)  {
	/* Stack Footer */
	footer { flex-direction: column;}
	footer .menu-main-container li, footer .menu-footer-container li { width: 100%; text-align: center;}
	.footer_column:last-of-type { align-items: center;}
	#credit, #copy { text-align: center;}

	/* Stack accordion banner content */
	.tdlAccordionBannerItem .selectedContent { flex-direction: column;}
	.tdlAccordionBannerItem .selectedContent .imageWrapper { height: 200px; flex: auto; margin-top: 35px;}
	.tdlAccordionBannerItem .selectedContent .imageWrapper img { object-position: top;}
	.tdlAccordionBannerItem:nth-of-type(2) { background-position: center -100px !important;}
	.tdlAccordionBannerItem:nth-of-type(3) { background-position: center -200px !important;}
	.tdlAccordionBannerItem:nth-of-type(4) { background-position: center -300px !important;}
	.tdlAccordionBannerItem:nth-of-type(5) { background-position: center -400px !important;}
	.tdlAccordionBannerItem:nth-of-type(6) { background-position: center -500px !important;}

	/* Adjust Testimonials Accordion */
	.tdlTestimonialWrapper .tdl-testimonial-container.accordion .testimonialTDL.active .selectedContent:after { top: -20px;  left: 20px; width: 100px; height: 100px;}
	.tdl-testimonial-container.accordion .testimonialTDL .selectedContent { padding: 0px 100px 0px 150px}

	/* Remove Inset Content Padding */
	.insetContent { padding: 0;}

	/* Remove CTA inset */
	.tdlCallToActionContainer[data-cta-size="inset"] { width: 100%;}

	/* Stack Single Team Members */
	.single-team_member .tdl-team-member { flex-direction: column-reverse;}

	.recent-post-container {
		.post-wrapper {
			.post p { display: none !important;}
		}
	}

}

@media all and (max-width: 768px)  {
	#columnContact .wpb_column.vc_col-sm-2 { width: 10% !important; left: -10px;}
	#columnContact .wpb_column.vc_col-sm-10 { width: 90% !important; left: 10px;}
	#columnContact .vc_row { display: flex !important;}
	.tdlButton { display: block; text-align: center;}

	.tdl-testimonial-container.list.image-alternating .testimonialTDL:nth-of-type(odd) { display: flex; flex-direction: column;}
	.tdl-testimonial-container.list.image-alternating .testimonialTDL:nth-of-type(even) { display: flex; flex-direction: column;}
	.tdl-testimonial-container.list.image-alternating .testimonialTDL .testimonial_image { margin-bottom: 35px;}
	.tdl-testimonial-container.list.image-alternating .testimonialTDL:nth-of-type(2n) .testimonial_image { margin-left: 0;}
	.tdl-testimonial-container.list.image-alternating .testimonialTDL:nth-of-type(2n+1) .testimonial_image { margin-right: 0;}

	.page-id-47 .rowTeamMember .vc_col-sm-9 .vc_inner { display: flex !important; flex-direction: row !important;}
	.page-id-47 .rowTeamMember .vc_col-sm-9 .vc_inner .vc_col-sm-2 { flex: 1;}

}


@media all and (max-width: 600px)  {
	/* Fix Header */
	#header { padding: 35px 0 80px 0;}
	#topBarWrapper { bottom: -79px;}
	.logged-in #wpadminbar { top: -81px !important; width: 100vw !important; left: -21px !important;}

	.page-id-45 h1 { font-size: 2em;}

	.teamMemberTDLBlock { display: grid; grid-template-columns: repeat(1,1fr);}

	/* Adjust Testimonials Accordion */
	.tdlTestimonialWrapper .tdl-testimonial-container.accordion .testimonialTDL.active .selectedContent:after { top: 20px;  left: 20px; width: 75px; height: 100px;}
	.tdl-testimonial-container.accordion .testimonialTDL .selectedContent { padding: 20px 50px 0px 50px}

	.tdlStudyBlock {
 		.tdlStudyWrapper.default .case-study { flex-direction: column;}
	}

	.tdl-post-container {
 		.tdl-blog-post .content-wrapper {
			flex-direction: column !important;
		 	.image-wrapper {
				width: 100% !important; display: flex; justify-content: center;
			 	img { width: 50% !important;}
			 }
		 }
	}

	.tdlAffiliateBlock {
		.tdlAffiliateWrapper {
			.affiliate-partner { flex-direction: column !important;}
		}
	}

	.single-affiliates {
		.tdl-affiliate { flex-direction: column;}
		h1 { font-size: 2em;}
	}
}


@media all and (max-width: 500px)  {
	/* Remove Footer Menu Columns */
	footer ul { columns: 1;}
	h1{font-size: 1.75em;}

	.page-id-45 h1 { font-size: 1.5em;}
	.page-id-347 h1 { font-size: 1.5em;}


}

@media all and (max-width: 400px)  {
	#columnContact a { font-size: .8em !important;}
	.logo { width: 200px;}
	.tagline { font-size: .68em;}
	h2 { font-size: 1.75em;}
}

@media all and (max-width: 350px)  {
	.page-id-45 h1 { font-size: 1.25em;}
	.page-id-47 .rowTeamMember .vc_col-sm-9 .vc_inner { flex-wrap: wrap; flex-direction: column-reverse !important; position: relative; top: -30px;}
	.page-id-47 .rowTeamMember .vc_col-sm-9 .vc_inner .vc_col-sm-2 { position: relative; top: -53px;}

}

