/*

Theme Name: Aardvarky Child Theme
Theme URI: https://www.aardvarky.com
Author: Aardvarky
Author URI: https://www.aardvarky.com
Description: Aardvarky child theme based on PRO framework.
Version: 1.0.0
Template: pro

*/

[style*="--aspect-ratio"] > :first-child {
  width: 100%;
}
[style*="--aspect-ratio"] > img {  
  height: auto;
} 
@supports (--custom:property) {
  [style*="--aspect-ratio"] {
    position: relative;
  }
  [style*="--aspect-ratio"]::before {
    content: "";
    display: block;
    padding-bottom: calc( 100% / var(--aspect-ratio) );
  }  
  [style*="--aspect-ratio"] > :first-child {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
  }
}

#logo-container {
	overflow: hidden;
	max-height: calc(100% - 4px);
	align-self: flex-start;
}
#aardvarky-logo {
	height: 100%;
	max-height: none !important;
}
#aardvarky-logo img {
	margin: 0 auto;
	width: auto;
	height: 100%;
}
.x-masthead, .hm1.x-bar, .hm12.x-bar, .hm22.x-bar, .hm23.x-bar {
	z-index: 8000;
}
.main-header-bar {
	flex-wrap: wrap;
    box-sizing: border-box;
}
.main-header-bar.x-bar-outer-spacers:before {
	height: 0 !important;
}
.main-header-bar.x-bar-outer-spacers:after {
    content: '';
    width: 100%;
    border-bottom: 4px solid #336699;
    display: inline-block;
    height: 0 !important;
    visibility: visible;
    margin-top: -1px;
}
/*.varky_enquiry_form_wrapper {
    transition: height .25s ease;
    overflow: hidden;
}
.varky_enquiry_form_wrapper:not(.active) {
    display: none;
}*/
/********* Service Panel Styling **********/
.service-panels-row {
	display: flex !important;
	flex-direction: row;
	flex-wrap: wrap;
	transition: all 0.25s linear 0.25s;
}
.service-panels-row .service-panel > .x-text-headline, .service-panels-grid .service-panel > .x-text-headline {
	text-align: center;
	transition: all 0.25s linear 0.25s;
}
.service-panels-grid .service-panel > .x-text-headline:before {
	color: #ffffff;
	font-size: 1.25em;
}
.service-panels-row .service-panel, .service-panels-grid .service-panel {
	/*display: flex;
	align-items: center;
	justify-content: center;*/
	flex: 0 0 25%;
	/*flex-direction: column;*/
	padding: 1em;
	/*border: solid 1px #000;*/
	transition: all 0.25s linear 0.25s;
	min-height: 320px;
}
.service-panels-row .service-panel:hover > .x-bg > .x-bg-layer-upper-color, .service-panels-grid .service-panel:hover > .x-bg > .x-bg-layer-upper-color {
	background-color: rgba(53,102,153,0.9) !important;
	transition: all 0.25s linear 0.25s;
}
.service-panels-row .service-panel:hover > .x-bg > .x-bg-layer-lower-image, .service-panels-grid .service-panel:hover > .x-bg > .x-bg-layer-lower-image {
	/*opacity: 0;*/
	transition: all 0.25s linear 0.25s;
}
.service-panels-row .service-panel > .x-anchor-button, .service-panels-grid .service-panel > .x-anchor-button {
	margin-top: 1em;
}
.service-panels-row .service-panel > .x-text:not(.x-text-headline), .service-panels-grid .service-panel > .x-text:not(.x-text-headline), .service-panels-row .service-panel > .x-anchor-button, .service-panels-grid .service-panel > .x-anchor-button {
	opacity: 0;
    /*height: 0;
    width: 0;*/
    visibility: hidden;
    overflow: hidden;
	color: #fff;
}
.service-panels-row .service-panel:hover > .x-text:not(.x-text-headline), .service-panels-row .service-panel:hover > .x-anchor-button, .service-panels-grid .service-panel:hover > .x-text:not(.x-text-headline), .service-panels-grid .service-panel:hover > .x-anchor-button {
	opacity: 1;
	display: block;
	visibility: visible;
    height: auto;
    width: auto;
    transition: opacity 0.25s linear 0.25s;
}
.service-panels-row .service-panel > .x-text-headline, .service-panels-grid .service-panel > .x-text-headline {
	opacity: 1;
	position: absolute;
	top: 23%;
	transition: all 0.25s linear 0.25s;
}
.service-panels-row .service-panel:hover > .x-text-headline, .service-panels-grid .service-panel:hover > .x-text-headline {
	opacity: 0;
    height: 0;
    width: 0;
    display: none;
    overflow: hidden;
	transition: all 0.25s linear 0.25s;
}
a.aardvarky-footer-social {
	display: inline-block;
}
.recent_work_portfolio > .x-recent-posts.recent_work_portfolio a[class^="x-recent-post"]:not([class*="1"]):not([class*="2"]):not([class*="3"]) {
	width: 24%;
	margin-right: 1%;
}
.recent_work_portfolio > .x-recent-posts a[class^="x-recent-post"]:not([class*="1"]):not([class*="2"]):not([class*="3"]):nth-child(4n) {
	margin-bottom: 1%;
}
.recent_work_portfolio > .x-recent-posts.recent_work_portfolio horizontal a[class^="x-recent-post"]:not([class*="1"]):not([class*="2"]):not([class*="3"]):nth-child(4n) {
	margin-bottom: 1%;
}
/************* Hompage Cells ***************/
.x-cell.portfolio-cell-item > .x-bg > .x-bg-layer-upper-color {
	transition: all 0.25s linear 0.25s;
}
.x-cell.portfolio-cell-item:hover > .x-bg > .x-bg-layer-upper-color {
	transition: all 0.25s linear 0.25s;
	background-color: rgba(0, 0, 0, 0.3) !important;
}
.x-cell.portfolio-cell-item > .x-text-headline .x-text-content-text {
	padding: 0 0.4em 0.1em;
	transition: all 0.25s linear 0.25s;
	border: none;
}
.x-cell.portfolio-cell-item:hover > .x-text-headline .x-text-content-text {
	transition: all 0.25s linear 0.25s;
	border: #ffffff solid 2px;
	background: rgba(0,0,0,0.5);
}
/************* Contact Us Form Styling **************/
#gform_fields_11 {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
}
#gform_fields_11 li.gfield {
	flex: 1 0 100%;
}
#gform_fields_11 li#field_11_3, #gform_fields_11 li#field_11_5 {
	flex: 1 0 48%;
}
#gform_fields_11 li#field_11_5 {
	display: flex;
	flex-wrap: wrap;
}
#gform_fields_11 li#field_11_5 .gfield_label {
	flex: 0 0 110px;
	margin-right: 1em !important;
}
#gform_fields_11 li#field_11_5 .ginput_container {
	flex: 1 0 140px;
}
body .gform_wrapper .top_label .gfield_label, body .gform_wrapper .left_label .gfield_label, body .gform_wrapper .right_label .gfield_label {
	font-family: 'Oswald', sans-serif !important;
}
.entry-footer {
	background: #ffffff;
}
.entry-footer a {
	font-size: 8px;
	padding: 0.4em 1em 0.4em;
}
.recent_work_portfolio .x-recent-posts .x-portfolio .x-recent-posts-img::before {
	font-family: "icomoon" !important;
	content: '\f068';
}
ul.list-buttons {
	margin-left: 0;
	display: flex;
	flex-wrap: wrap;
	justify-content: space-around;
	align-items: center;
	width: 100%;
}
ul.list-buttons li {
	list-style: none;
	border: solid 1px #ffffff;
	padding: 0.25em 0.5em;
	margin-bottom: 0.5em;
	text-align: center;
	flex: 0 0 117px;
}
ul.list-buttons.small-list li {
	font-size: 0.8em;
}
.x-dropcap {
	font-family: 'Oswald', sans-serif !important;
	margin-top: 0;
}
/********* grandchild submenu collapsed mobile **********/
.e3517-24.x-menu .web-design-dev.menu-item > ul#x-menu-collapsed-list-e3517-24-1 {
	margin-left: 1em;
    font-size: 0.95em;
    box-shadow: 1px 1px 4px rgb(0 0 0 / 50%);
}
@media screen and (min-width: 980px) and (max-width: 1199px) {
	.service-panels-row .service-panel {
		min-height: 38vw;
		padding: 1em;
	}
}
@media only screen and (max-width: 979px) {
	.x-recent-posts a[class^="x-recent-post"]:not([class*="1"]):not([class*="2"]):not([class*="3"]):first-child {
		margin-bottom: 0;
	}
	.x-recent-posts a[class^="x-recent-post"]:not([class*="1"]):not([class*="2"]):not([class*="3"]):nth-child(2n) {
		margin-bottom: 0;
	}
}
@media screen and (min-width: 768px) and (max-width: 979px) {
	.service-panels-row .service-panel {
		display: flex !important;
		align-items: center;
		justify-content: center;
		flex: 0 0 50%;
		min-height: 450px;
		flex-direction: column;
	}
	.x-recent-posts a[class^="x-recent-post"]:not([class*="1"]):not([class*="2"]):not([class*="3"]):first-child {
		margin-bottom: 0;
	}
}
@media screen and (min-width: 481px) and (max-width: 767px) {
	.service-panels-row .service-panel {
		display: flex !important;
		align-items: center;
		justify-content: center;
		flex: 0 0 50%;
		min-height: 300px;
		flex-direction: column;
	}
	.aardvarky-footer-cols {
		flex: 1 0 48% !important;
	}
	.recent_work_portfolio > .x-recent-posts.recent_work_portfolio a[class^="x-recent-post"]:not([class*="1"]):not([class*="2"]):not([class*="3"]) {
	    width: 49%;
	    margin-right: 1%;
	}
	.x-recent-posts a[class^="x-recent-post"]:not([class*="1"]):not([class*="2"]):not([class*="3"]) {
		float: left;
		margin-bottom: 1%;
	}
	.x-recent-posts a[class^="x-recent-post"]:not([class*="1"]):not([class*="2"]):not([class*="3"]):first-child {
		margin-bottom: 1%;
	}
	.x-recent-posts a[class^="x-recent-post"]:not([class*="1"]):not([class*="2"]):not([class*="3"]):nth-child(2n) {
		margin-bottom: 1%;
	}
	.x-recent-posts a[class^="x-recent-post"]:not([class*="1"]):not([class*="2"]):not([class*="3"]) {
		margin-bottom: 1%;
	}
}
@media screen and (max-width: 480px) {
	.service-panels-row .service-panel {
		display: flex !important;
		align-items: center;
		justify-content: center;
		flex: 0 0 100%;
		min-height: 270px;
		flex-direction: column;
	}
	.aardvarky-footer-cols {
		flex: 1 0 96% !important;
	}
	#gform_fields_11 li#field_11_3, #gform_fields_11 li#field_11_5 {
		flex: 1 0 100%;
	}
	.recent_work_portfolio > .x-recent-posts.recent_work_portfolio a[class^="x-recent-post"]:not([class*="1"]):not([class*="2"]):not([class*="3"]) {
	    width: 100%;
	    margin-right: 0;
	}
	.x-recent-posts a[class^="x-recent-post"]:not([class*="1"]):not([class*="2"]):not([class*="3"]) {
		float: left;
		margin-bottom: 2%;
	}
	.x-recent-posts a[class^="x-recent-post"]:not([class*="1"]):not([class*="2"]):not([class*="3"]):first-child {
		margin-bottom: 2%;
	}
	.x-recent-posts a[class^="x-recent-post"]:not([class*="1"]):not([class*="2"]):not([class*="3"]):nth-child(2n) {
		margin-bottom: 2%;
	}
	
}
@media screen and (min-width: 420px) and (max-width: 479px) {
	#slider-1-slide-1-layer-1 {
		font-size: 15px !important;
	}
}
@media only screen and (max-width: 419px) { 
	#slider-1-slide-1-layer-1 {
		font-size: 10px !important;
	}
};
[data-x-icon-b], [data-x-icon-s], [data-x-icon-o] {
    font-family: "icomoon" !important;
}
[data-x-icon], [data-x-icon][class*="cs-fa-"] {
    font-family: "icomoon" !important;
    font-weight: 900;
}
[data-x-icon-b]::before {
    content: attr(data-x-icon-b);
}
[data-x-icon-s]::before {
    content: attr(data-x-icon-s);
}
[data-x-icon-o]::before {
    content: attr(data-x-icon-o);
}