/* Mobile CSS */
@media all and (max-width: 1800px)  {
	/* CTA Fix */
	.tdlCTAWrapper:has(.tdlCallToActionContainer[data-cta-size="full"]) {
	  &:has([data-cta-background="arrows"]) {
	  	.wpb_text_column {
		  padding: 0 200px;
		  br { display: none;}
		}
	  }
  	}
}

@media all and (max-width: 1500px)  {
	/* Menu Adjustments */
	.menu-main-container {

	  #menu-main {
		gap: 40px;

		a { font-size: 14px;}

		.sub-menu {
		  min-width: 250px;

		  li {
			a { line-height: 2; padding: 0 10px; font-size: .7em;}
		  }
		}
	  }

	}

}

@media all and (max-width: 1275px)  {
	/* Menu Adjustments */
	.menu-main-container {

	  position: relative;
	  top: 8px;

	  #menu-main {
		gap: 30px;

		a { font-size: 14px; font-weight: 400;}

		.sub-menu {
		  min-width: 250px;

		  li {
			a { line-height: 2; padding: 0 10px; font-size: .7em;}
		  }
		}
	  }

	}

	/* Logo */
	.logo { height: auto; width: 250px;}
	.logo img { height: auto; width: 100%;}

	/* Top Menu Bar */
	.headerTop {
	  top: var(--small-vc-padding);
	  right: var(--default-vc-padding);

	  li a {
		padding: 4px 20px;
		font-size: .8em;
	  }
	}


}

@media all and (max-width: 1250px)  {
	/* Fix Nested Rows */

}

@media all and (max-width: 1200px)  {
	/* CTA Fix */
	.tdlCTAWrapper:has(.tdlCallToActionContainer[data-cta-size="full"]) {
	  &:has([data-cta-background="arrows"]) {
		  background: none;
		  .wpb_text_column {
			  padding: 0;
			}
	  }
	}

}

@media all and (max-width: 1100px)  {
	.tdlCTAWrapper:has(.tdlCallToActionContainer[data-cta-size="full"]) [data-cta-background="email"] {
		padding-bottom: 100px;
		background-size: 80%;
	}
}

@media all and (max-width: 1050px)  {
	/* Switch to mobile menu */
}

@media all and (max-width: 1000px)  {
	/* Stack Regular Content */
	.vc_row:not(.tdlButtonBlock) { flex-direction: column;}

	/* Change Blog Layout to 2 Columns */
	.tdl-post-container {

	  &.columns {
		grid-template-columns: repeat(2, 1fr);

		.tdl-blog-post {
		  &:last-of-type { display: none;}
		}
	  }
  	}

	/* Stack Split Block */
	.tdl_split_block_container {

	  &.background_left {
		flex-direction: column;

		.content_wrapper { width: var(--content-width); padding-right: 4%; padding-left: 4%; padding-top: 60px; padding-bottom: 60px;}
	  }

	  &.background_right {
		flex-direction: column;

		.content_wrapper { width: var(--content-width); padding-right: 4%; padding-left: 4%; padding-top: 60px; padding-bottom: 60px;}
	  }
  	}
}

@media all and (max-width: 900px)  {
	/* Stack Footer	 */
	#footer {
	  .footer_column_wrapper {
		grid-template-columns: repeat(1, 1fr);
		margin-bottom: 0px;
		margin-top: 60px;

		.footer_column:first-of-type {
		  figure { text-align: center;}
		  img { padding-bottom: 0 !important;}
		}

		h3 { text-align: center;}
		ul {
			li { text-align: center;}
		}
	  }
	}

	/* Change Blog Layout to 2 Columns */
	.tdl-post-container {

	  &.columns {
		grid-template-columns: repeat(1, 1fr);

		.tdl-blog-post {
		  &:last-of-type { display: flex;}
		}
	  }
	}

	/* Stack TDL Button Block */
	.vc_row.tdlButtonBlock { flex-direction: column;}
}

@media all and (max-width: 800px)  {
	/* Stack Blog Posts */
	.page-id-37 {
		.tdl-post-container {

		  &.list, &.alt-list {
		   	.tdl-blog-post {
				flex-direction: column;
		  	}
		  }
	    }
	}

	/* Stack Split Logo */
	.tdl-split-logo {
	  .wrapper {
		flex-direction: column;
	  }
  	}
}

@media all and (max-width: 700px)  {
	/* Fix Header */
	header {
		width: 92%;
		padding: 2% 4%
	}

	.headerTop { right: 4%; top: 0;}

	/* Resize Gallery Images */
	#tdl_masonry_grid {
	  grid-auto-rows: minmax(90px, auto);
  }

}

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

	/* Stack Misc Blocks */
	/* Meetings & Agendas */
	.tdl-meetings-agendas {
	  a {
		/* flex-direction: column; */
	  }
	}

	/* Patient Transport */
	.tdl-split-logo {
	  margin-bottom: var(--default-vc-padding) ;

	  .wrapper {
		flex-direction: column;
		gap: 100px;
		min-height: auto;

		.image-wrapper{
		  flex: 0 0 33%;
		  align-content: center;

		  img { width: 100%;}
		}
		.content-wrapper {
		  flex: 1;
		  align-content: center;

		  .content {}
		}
	  }

	}

	/* Icon Block */
	.tdl-icon-block {
	  &:not(.no-background):nth-of-type(even) { background: var(--yellow);}

	  .wrapper {
		flex-direction: column;
		gap: 0;

		.content-wrapper {
			h3 { text-align: center;}
		}
	  }
  	}

	#wpadminbar { top: -12px !important;}
}

@media all and (max-width: 550px)  {
	/* Stack Header */
	body { margin-top: 50px !important;}
	header { padding-top: 50px;}

	.headerTop {
	  top: 0;
	  right: auto;
	  left: 0;
	  width: 100vw;

	  ul {
		display: inline-block;
		width: 100%;
		margin: 0;
		padding: 0;
	  }

	  li a {
		padding: 0;
		font-size: 1em;
		display: inline-block;
		width: 100%;
		line-height: 50px;
		text-align: center;
	  }

	}

	.logged-in .headerTop { top: 34px;}
	.logged-in .logo { top: 34px;}

}

@media all and (max-width: 400px)  {
	.logo { height: auto; width: 150px;}
	.logged-in #tdl_mm_button { top: 34px;}
	#tdl_mm_container {
		& .sub-menu {
			& li {
				font-size: .8em;
			}
		}
	}
}