/**
* Contains responsive styling
*
* @author Pix & Hue
*/

/* ------------------------------- Max-Width: 1300px ------------------------------- */
@media only screen and (max-width: 1300px) {

	/* Global CSS */
	.keyleigh-container, 
	.keyleigh-full-width {
		width: 1100px;
	}
	.keyleigh-default-width {
		width: 725px;
	}

	/* Single Post */
	#commentform input {
		width: 32.3%;
	}
	.keyleigh-related-post-img {
		height: 315px;
	}

	/* Gutenberg */
	.keyleigh_fullwidth_narrow .alignwide {
   		width: 1100px;
    	margin-left: -16.7%;
    }	
}	

/* ------------------------------- Max-Width: 1250px ------------------------------- */
@media only screen and (max-width: 1250px) {

	/* ---- Elementor Styles ----- */
	.keyleigh_grid_container {
		grid-column-gap: 40px;
		grid-row-gap: 60px;
	}

	/* Blog Page */
	#keyleigh-content.keyleigh_grid_container {
		margin: 0 0 120px 0;
	}
	.keyleigh-container.keyleigh-blog-container {
		width: 85%;
	}
	.keyleigh-grid-item .keyleigh-post-media {
		height: 385px;
	}
	.keyleigh-archive-box {
		margin-bottom: 95px;
	}
}

/* ------------------------------- Max-Width: 1150px ------------------------------- */
@media only screen and (max-width: 1150px) {

	/* Global CSS */
	.keyleigh-container, 
	.keyleigh-full-width {
		width: 975px;
	}
	.keyleigh-default-width {
		width: 625px;
	}
	#keyleigh-content {
		padding: 0 50px 0 0;
	}

	/* Single Post */
	#commentform input {
		width: 32.1%;
	}
	.keyleigh-full-width #commentform input {
		width: 32.6%;
	}
	.keyleigh-related-post-img {
		height: 275px;
	}
	.keyleigh-item-related-caption {
		padding: 0 10px 0;
	}

	/* Gutenberg */
	.keyleigh_fullwidth_narrow .alignwide {
   		width: 975px;
    	margin-left: -9%;
    }
    /* Blog Page */
	.keyleigh-grid-item .keyleigh-post-media {
		height: 360px;
	}	

	/* Mailerlite */
	.keyleigh-mc4wp-footer-container .ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody .ml-form-formContent {
		display: block;
		width: auto !important;
	}
	.keyleigh-mc4wp-footer-container .ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody .ml-form-fieldRow,
	.keyleigh-mc4wp-footer-container .ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody .ml-form-fieldRow:last-of-type {
		margin: 0 auto 15px !important;
		display: block;
		width: 85% !important;
	}
}

/* ------------------------------- Max-Width: 1024px ------------------------------- */
@media only screen and (max-width: 1024px) {

	/* Global CSS */
	.keyleigh-container, 
	.keyleigh-full-width,
	.keyleigh-default-width {
		width: 825px;
	}
	#keyleigh-sidebar {
		margin: 0 auto 100px auto;
		float: none;
		width: 425px;
	}
	#keyleigh-content {
		padding: 0;
	}

	/* ---- Header Styles ----- */
	.keyleigh-header-nav-menu.elementor-widget-navigation-menu {
		position: absolute;
		left: 0;
	}
	.keyleigh-header-nav-menu.elementor-widget-navigation-menu ul.hfe-nav-menu {
		min-width: 250px;
		z-index: 999;
	}
	.keyleigh-header-nav-menu nav.hfe-dropdown {
		top: 50px !important;
		z-index: 999 !important;
	}
	.keyleigh-header-nav-menu .hfe-nav-menu-icon {
		padding: 0 !important;
	}

	/* ---- Elementor Styles ----- */
	.keyleigh_grid_container {
		grid-column-gap: 20px;
	}
	.keyleigh-grid-item h2 {
		font-size: 40px;
	}
	.keyleigh-cat a, 
	.keyleigh-post-date a {
		font-size: 13px;
	}
	.keyleigh-grid-item .keyleigh-post-media {
		margin: 0 0 27px 0;
	}
	.keyleigh-elementor-fw-container,
	.keyleigh-offering-item {
		width: 100% !important;
	}

	/* Blog + Archive Pages */
	.keyleigh-container.keyleigh-blog-container {
		width: 90%;
	}
	#keyleigh-content.keyleigh_grid_container {
		margin: 0 0 110px 0;
	}
	.keyleigh-grid-item .keyleigh-post-media {
		height: 340px;
	}
	.keyleigh-pagination {
		margin: -50px 0 100px;
	}
	.keyleigh-pagination a {
		font-size: 13px;
	}
	.keyleigh-archive-box {
		padding: 85px 50px;
		margin-bottom: 85px;
	}
	.keyleigh-archive-box h1,
	.keyleigh-content-none-wrapper h1 {
		font-size: 52px;
	}
	.error404 .keyleigh-archive-box h1 {
		font-size: 85px;
	}

	/* Footer */
	.keyleigh-mc4wp-footer-container .mc4wp-form-fields p {
		width: 80%;
		margin: 0 auto 20px;
	}
	.keyleigh-mc4wp-footer-container .mc4wp-form-fields p:last-of-type {
		width: auto;
		margin: 0;
	}
	.keyleigh-mc4wp-footer-container .formkit-form .formkit-field {
		margin:  0 0 15px 0 !important;
	}

	/* Single Post */
	.keyleigh-single-post {
		margin-bottom: 100px;
	}
	.keyleigh-default-width .keyleigh-single-post {
		margin-bottom: 85px;
	}
	#commentform input,
	.keyleigh-full-width #commentform input {
		width: 32.4%;
	}
	.keyleigh-related-post-img {
		height: 290px;
	}
	.keyleigh-full-width .keyleigh-item-related {
		width: 33.3%;
	}
	.keyleigh-full-width .keyleigh-item-related:nth-of-type(3) {
		margin-right: 0;
	}
	.keyleigh-full-width .keyleigh-item-related:last-of-type {
		display: none;
	}
	.single-post .keyleigh-cat a, 
	.single-post .keyleigh-post-date a {
		font-size: 13.5px;
	}
	#keyleigh-content .keyleigh-post-header h1 {
		font-size: 50px;
	}
	#comments #reply-title,
	#keyleigh-content .keyleigh-comment-list-title,
	#keyleigh-content .keyleigh-related-posts h3 {
		font-size: 39px;
	}
	#keyleigh-content .keyleigh-author-content h5, 
	#keyleigh-content .keyleigh-author-content h5 a {
		font-size: 39px;
	}
	.keyleigh-author-content {
		padding-left: 25px;
	}
	#keyleigh-content .keyleigh-item-related-caption h4 a {
		font-size:  32px;
	}

	/* Gutenberg */
	.keyleigh_fullwidth_narrow .alignwide {
    	width: 100%;
    	margin-left: 0;
	}
	.keyleigh_fullwidth_narrow .keyleigh-post-entry-wrapper,
	.keyleigh_fullwidth_narrow .keyleigh-page-content-wrapper {
		width: 100%;
	}
	.keyleigh_fullwidth_narrow h1.keyleigh-single-page-title {
		text-align: left;
	}

	/* MISC WordPress Styles */
	#keyleigh-content h1.keyleigh-single-page-title {
		font-size: 48px;
	}
	.keyleigh-single-page .keyleigh-full-width {
		margin: 0 0 85px 0;
	}
	.keyleigh-single-page .keyleigh-default-width {
		margin: 0 0 60px 0;
	}
	.keyleigh-single-page .keyleigh_fullwidth_narrow h1 {
		text-align: left;
	}

	/* Sidebar */
	.keyleigh-about-img {
		height: 450px;
	}
	#keyleigh-searchform input[type="text"] {
		width: 340px;
	}
	.keyleigh-custom-image-list-item {
		height: 225px;
	}
	.keyleigh-map-widget img {
		width: 500px;
		max-width: 500px !important;
	}
	.keyleigh-side-image {
		width: 150px;
	}
	.keyleigh-side-item-text {
		width: 260px;
	}
}

/* ------------------------------- Max-Width: 900px ------------------------------- */
@media only screen and (max-width: 900px) {

	/* Global CSS */
	.keyleigh-container, 
	.keyleigh-full-width,
	.keyleigh-default-width {
		width: 700px;
	}

	/* Single Post */
	#commentform input,
	.keyleigh-full-width #commentform input {
		width: 32.2%;
	}
	.keyleigh-related-post-img {
		height: 270px;
	}

	/* Blog Page */
	.keyleigh-grid-item .keyleigh-post-media {
		height: 280px;
	}
}

/* ------------------------------- Min-Width: 767px ------------------------------- */
@media only screen and (min-width: 767px) {
	.keyleigh-hero-contact-section {
		background-color: transparent !important;
	}
}	

/* ------------------------------- Max-Width: 767px ------------------------------- */
@media only screen and (max-width: 767px) {

	/* Global CSS */
	.keyleigh-container, 
	.keyleigh-full-width,
	.keyleigh-default-width {
		width: 575px;
	}
	label {
		font-size: 15px;
	}

	/* Elementor Header */
	.keyleigh-header-nav-menu nav.hfe-dropdown {
		top: 35px !important;
	} 

	/* Elementor Styles */
	.keyleigh-center-mobile-text {
		position: relative !important;
		margin-left: auto;
		margin-right: auto;
	}
	.keyleigh-testimonials-wrapper {
		display: block !important;
	}
	.keyleigh-full-height-container.keyleigh-about-collage-container {
		position: relative !important;
	}
	.keyleigh-mobile-spacer {
		position: relative !important;
	}
	.keyleigh_grid_container {
		grid-template-columns: repeat(1, minmax(0, 1fr));
		grid-column-gap: 0px;
		grid-row-gap: 57px;
	}
	.keyleigh-grid-item .keyleigh-post-media {
		margin: 0 0 25px 0;
	}
	.keyleigh-contact-form .wpcf7-form p {
		margin: 0 0 40px 0;
	}
	.keyleigh-contact-form input {
		padding: 6px 0;
	}
	.elementor-lightbox .swiper-container [class^="eicon"],
	.elementor-lightbox .dialog-lightbox-close-button, 
	.elementor-lightbox .elementor-swiper-button {
		color: #FFFFFF !important;
	}
	.elementor-lightbox .swiper .elementor-swiper-button svg {
		fill: #FFFFFF !important;
	}
	.elementor-image-gallery .gallery-item {
		width: 50% !important;
		padding: 0 5px 10px !important;
	}
	.keyleigh-grid-item h2 {
		font-size: 38px;
	}
	.keyleigh-offerings-gallery .gallery-columns-3 .gallery-item {
		padding: 0 !important;
	}

	/* Blog + Archive Pages */
	.keyleigh-container.keyleigh-blog-container {
		width: 85%;
	}
	.keyleigh-grid-item .keyleigh-post-media {
		height: 450px;
	}
	#keyleigh-content.keyleigh_grid_container {
		margin: 0 0 77px 0;
	}
	.keyleigh-pagination {
		margin: -25px 0 80px;
	}
	.keyleigh-pagination a {
		font-size: 13px;
	}
	.keyleigh-archive-box {
		padding: 60px 30px;
		margin-bottom: 55px;
	}
	.keyleigh-archive-box h1,
	.keyleigh-content-none-wrapper h1 {
		font-size: 42px;
	}
	.keyleigh-content-none-wrapper {
		width: 100%;
		margin-bottom: 75px;
	}
	.keyleigh-content-none-wrapper p {
		margin-bottom: 25px;
	}
	.keyleigh-content-none-wrapper #keyleigh-searchform button {
		padding: 0 15px;
	}

	/* Footer */
	.keyleigh-footer-instagram-container .zoom-instagram-widget__items {
		grid-template-columns: repeat(2,1fr) !important;
	}
	.keyleigh-footer-instagram-container .zoom-instagram-widget__item:nth-of-type(5) {
		display: none;
	}
	.keyleigh-mc4wp-footer-container .mc4wp-form-fields p,
	.keyleigh-mc4wp-footer-container .mc4wp-form-fields p:last-of-type {
		width: 90%;
	}
	.keyleigh-footer-instagram-container .hfe-nav-menu {
		display: block;
	}
	.keyleigh-footer-instagram-container .hfe-menu-item {
		display: block !important;
		text-align: center;
		margin: 0 auto 18px auto;
	}

	/* Single Post */
	.keyleigh-single-post,
	.keyleigh-default-width .keyleigh-single-post {
		margin-bottom: 75px;
	}
	.keyleigh-post-entry {
		padding-bottom:  30px;
	}
	.keyleigh-post-tags {
		margin:  35px 0 10px 0;
	}
	.single-post .keyleigh-post-media {
		margin-bottom: 35px;
	}
	.keyleigh-post-header {
		margin-bottom: 20px;
	}
	.keyleigh-post-date {
		margin: 11px 0 25px 0;
	}
	#keyleigh-content .keyleigh-post-header h1 {
		font-size: 42px;
	}
	.keyleigh-cat a, 
	.keyleigh-post-date a {
		font-size:  13px;
	}
	.single-post .keyleigh-cat a, 
	.single-post .keyleigh-post-date a {
		font-size: 13px;
	}
	#commentform input,
	.keyleigh-full-width #commentform input {
		width: 100%;
	}
	.keyleigh-item-related,
	.keyleigh-full-width .keyleigh-item-related  {
		width: 50%;
	}
	.keyleigh-item-related:nth-of-type(2),
	.keyleigh-full-width .keyleigh-item-related:nth-of-type(2) {
		margin-right: 0;
	}
	.keyleigh-related-post-img {
		height: 275px;
	}
	.keyleigh-comment-author-avatar img {
		display: none;
	}
	.keyleigh-comment-text {
		margin-left: 0px;
	}
	.keyleigh-post-author-box {
		padding:  55px 0;
	}
	#comments {
		margin: 65px 0 0 0;
	}
	.keyleigh-related-posts {
		margin: 55px 0 0 0;
	}
	.keyleigh-page-wrapper ul.keyleigh-comments ul.children {
		padding: 0;
	}
	.keyleigh-list-of-comments {
		margin: 55px 0 0 0;
	}
	#keyleigh-content .keyleigh-comment-author, 
	#keyleigh-content .keyleigh-comment-author a  {
		font-size: 29px;
	}
	.keyleigh-comment-text p {
		font-size: 95%;
	}
	#comments #reply-title,
	#keyleigh-content .keyleigh-comment-list-title,
	#keyleigh-content .keyleigh-related-posts h3 {
		font-size: 37px;
	}
	#keyleigh-content .keyleigh-author-content h5, 
	#keyleigh-content .keyleigh-author-content h5 a {
		font-size: 37px;
	}
	.keyleigh-comment-approval em {
		display: block;
		margin: 0 0 5px 0;
	}
	#keyleigh-content .keyleigh-related-posts h3,
	#keyleigh-content .keyleigh-comment-list-title {
		margin: 0 0 19px 0;
	}
	.keyleigh-post-tags-title,
	.keyleigh-post-tags a {
		font-size: 12.5px;
	}

	/* -- Sidebar -- */
	#keyleigh-sidebar {
		margin-bottom:  80px;
	}

	/* -- Gutenberg -- */
	.wp-block-latest-posts.columns-2 li,
	.wp-block-latest-posts.columns-3 li,
	.wp-block-latest-posts.columns-4 li {
		width: 100%;
		margin-right: 0;
	}

	/* MISC WordPress Styles */
	#keyleigh-content h1.keyleigh-single-page-title {
		font-size: 42px;
	}
	.keyleigh-single-page .keyleigh-full-width {
		margin: 0 0 70px 0;
	}
	.keyleigh-single-page .keyleigh-default-width {
		margin: 0 0 50px 0;
	}
	.keyleigh-single-page #comments {
		margin:  50px 0 30px 0;
	}
}	

/* ------------------------------- Max-Width: 650px ------------------------------- */
@media only screen and (max-width: 650px) {

	/* Global CSS */
	.keyleigh-container, 
	.keyleigh-full-width,
	.keyleigh-default-width {
		width: 425px;
	}

	/* Blog Page */
	.keyleigh-grid-item .keyleigh-post-media {
		height: 400px;
	}

	/* Single Post */
	.keyleigh-related-post-img {
		height: 250px;
		margin-bottom: 20px;
	}
	.keyleigh-item-related-caption {
		padding: 0 10px 0;
	}

	/* Gutenberg */
	.keyleigh_fullwidth_narrow #keyleigh-content,
	.page-template-page-narrowfullwidth #keyleigh-content {
		overflow: visible;
	}
	.keyleigh-post-content ul.wp-block-latest-posts, 
	.keyleigh-page-content ul.wp-block-latest-posts {
		padding: 20px;
	}
	.keyleigh-post-content ul.wp-block-latest-posts > li, 
	.keyleigh-page-content ul.wp-block-latest-posts > li {
		padding-bottom: 15px;
		margin-bottom: 15px;
	}
	.wp-block-latest-posts .wp-block-latest-posts__featured-image.alignleft,
	.wp-block-latest-posts .wp-block-latest-posts__featured-image.alignright {
		margin: 0 0 10px 0;
		display: block;
		width: 100%;
	}
	.wp-block-latest-posts.wp-block-latest-posts__list.alignright {
		text-align: left;
		margin-left: 0;
	}
	.keyleigh-post-content ul.wp-block-latest-posts.is-grid > li, 
	.keyleigh-page-content ul.wp-block-latest-posts.is-grid > li {
		padding-top: 0;
		margin-bottom:  20px;
	}
}	

/* ------------------------------- Max-Width: 500px ------------------------------- */
@media only screen and (max-width: 500px) {

	/* Global CSS */
	.keyleigh-container, 
	.keyleigh-full-width,
	.keyleigh-default-width {
		width: 325px;
	}
	#keyleigh-sidebar {
		width: 325px;
	}
	input, textarea, select {
		width: 90%;
	}

	/* Blog + Archive Pages */
	.keyleigh-grid-item .keyleigh-post-media {
		height: 350px;
	}
	.keyleigh-no-results-wrapper #keyleigh-searchform input[type="text"] {
		width: 220px;
	}

	/* Single Post */
	.keyleigh-post-entry {
		padding-bottom:  20px;
	}
	.keyleigh-post-author-box {
		display: block;
		overflow: hidden;
		padding: 50px 0 45px;
	}
	.keyleigh-author-img {
		float: none;
		display: block;
		margin-bottom: 30px;
	}
	.keyleigh-author-content {
		display: block;
		padding: 0;
	}
	#comments #respond {
		padding: 30px 20px 40px;
	}
	.keyleigh-item-related-box {
		display: block;
	}
	.keyleigh-item-related,
	.keyleigh-full-width .keyleigh-item-related {
		width: 100%;
		margin: 0 0 45px 0;
	}
	.keyleigh-comment-date {
		display: block;
		float: none;
		margin: 0 0 11px 0;
	}
	#keyleigh-content .keyleigh-comment-author, 
	#keyleigh-content .keyleigh-comment-author a {
		margin-bottom: 5px;
	}
	.keyleigh-comment-text p {
		margin-bottom: 20px;
	}	
	ul.children .keyleigh-comment-date {
		margin-top:  9px;
	}
	#keyleigh-content-container ul.keyleigh-comments ul.children {
		padding: 0;
	}
	#keyleigh-content-container ul.keyleigh-comments ul.children .keyleigh_thecomment {
		padding:  30px 0 35px;
	}
	.keyleigh-comment-parent {
		vertical-align: 0;
	}
	.keyleigh-related-posts {
		margin: 55px 25px 0;
	}

	/* Sidebar */
	.keyleigh-about-img {
		height: 400px;
	}
	#keyleigh-searchform input[type="text"] {
		width: 240px;
	}
	.keyleigh-side-image {
		width: 125px;
	}
	.keyleigh-side-item-text {
		width: 185px;
	}
	.keyleigh-custom-image-list-item {
		height: 162.4px;
	}
	.keyleigh-map-widget img {
		width: 400px;
		max-width: 400px !important;
	}


	/* MISC HTML */
	.keyleigh-single-page {
		margin: 0 0 75px 0;
	}
	.keyleigh-full-width .keyleigh-single-page {
		margin: 0 0 90px 0;
	}
	.error404 #keyleigh-content #keyleigh-searchform, 
	.search-no-results #keyleigh-content #keyleigh-searchform {
		width: 315px;
	}
	.error404 #keyleigh-content #keyleigh-searchform input[type="text"],
	.search-no-results #keyleigh-content #keyleigh-searchform input[type="text"] {	
		width: 230px;
	}
}	