/*
Theme Name:   Bricks Child Theme
Theme URI:    https://bricksbuilder.io/
Description:  Use this child theme to extend Bricks.
Author:       Bricks
Author URI:   https://bricksbuilder.io/
Template:     bricks
Version:      1.1
Text Domain:  bricks

*/

/**********************************************************
=TOC (Table Of Contents)
/**********************************************************

TOC (Table Of Contents)
Reference
Imports/Includes
Debug
Variables
Fonts
Address
Spacing fixes
Forms
Buttons
Header (Desktop)
Header (Mobile)
Menu (Desktop)
Menu (Mobile)
Footer
Components:
- Text with diagonal arrow
- Centered Text Rows
- Inset Rows
- Background Rows
- Split Rows
- Staggered Rows
- Images and videos
- Password protected content
- Addresses
- Accordion
- Table of contents
- Tables
- Plaques
- Tabs
- Fitlers (Tabs)
- Dropdowns
- Icons
- Lightboxes
- Sliders
- Sliders (wide active slide)
- Tiles
- Popups
- Team members
- Palettes
- Quotes
- Inlay
- Results pages
- Stats
- Cards
- Pills
- Lists
- Favicon text
- Chiclets
- Gallery
- Masonry
- Prose
- Promobox
- Blog
Global Styles
Specific Pages

/**********************************************************
=Reference
/**********************************************************

/* Media breakpoints / screen sizes /*
Phone:     ~499px
Smartphone: 500px~
Tablet:     768px~
Desktop:    990px~
Widescreen: 1200px~

/* Structure naming/spacing /*
.brxe-section {
	padding-inline: var(--space-m);
}
.brxe-container {
	margin-inline: auto;
	max-width: 100%;
	width: var(--max-screen-width);
}*/

/**********************************************************
=Debug
/*********************************************************/

@media( min-width:9px ) {
	#est-top {
		--debug__size: 0;
	}
	#est-top.est-debug {
		--debug__size: 1rem;
	}
	* { box-shadow: inset 0 0 var(--debug__size) 0 hsl( calc( 50 * var(--debug__rotation) ) 50 50 ); }
	* { --debug__rotation: 0; }
	* > * { --debug__rotation: 1; }
	* > * > * { --debug__rotation: 2; }
	* > * > * > * { --debug__rotation: 3; }
	* > * > * > * > * { --debug__rotation: 4; }
	* > * > * > * > * > * { --debug__rotation: 5; }
	* > * > * > * > * > * > * { --debug__rotation: 6; }
	* > * > * > * > * > * > * > * { --debug__rotation: 7; }
	* > * > * > * > * > * > * > * > * { --debug__rotation: 8; }
	.est-debug__control {
		cursor: pointer;
		user-select: none;
	}
	#est-top.est-debug .est-debug__control i::before {
		content: "\f361";
	}
}

/* See if these being off breaks anything */
/*.est-scroll-offset--180,
.brxe-heading {
	scroll-margin-top: 180px;
}
.est-display--none {
	display: none !important;
}
.est-card + :where(.brxe-heading,.brxe-text,.brxe-text-basic), :where(.brxe-heading,.brxe-text,.brxe-text-basic) + .est-card:last-child {
	margin-top: var(--space--large);
}
.est-blog__sidebar li img {
	height: 100%;
}*/

/**********************************************************
=Variables
/*********************************************************/

:root {

	/* Colors */
	/* (base colors set up in Core Framework panel in dashboard) */
	--color--heading: var(--black);
	--color--body: var(--grey);
	--color--alt: var(--mint);
	/* original mint: #3BB0A1 */
	/* new mint: #2B8378 */

	/* Font sizes */
	--size--xs:     var(--text-xs);
	--size--small:  var(--text-s);
	--size--normal: var(--text-m);
	--size--p:      var(--text-m);
	--size--h6:     var(--text-xs);
	--size--h5:     var(--text-m);
	--size--h4:     var(--text-l);
	--size--h3:     var(--text-xl);
	--size--h2:     var(--text-2xl);
	--size--h1:     var(--text-3xl);
	--size--input:  var(--size--p);
	--size--image:  min( 350px, 40vw );

	/* Border radiuses */
	--radius--small: var(--radius-xs);
	--radius--normal: var(--radius-m);
	--radius--large: var(--radius-l);
	--radius--image: var(--radius-l);

	/* Weights */
	--weight--normal: 400;
	--weight--medium: 500;
	--weight--bold: 600;

	/* Box shadows */
	--shadow--normal: 0 0.5rem 1.5rem 0 rgb( 0,0,0, 0.08 );
	--shadow--inset: inset 1px 1px 3px 0 var(--grey--light);
	--shadow--glass: inset 0 1px 2px 0 rgba( 255,255,255, 0.6 ), inset 1px 2px 2px 0 rgba( 0,0,0, 0.5 );
	--shadow--popup: 0 0 1rem 0 rgba( 0,0,0, 0.3 );

	/* Spacing */
	--space--xs: var(--space-xs);
	--space--small: var(--space-s);
	--space--normal: var(--space-m);
	--space--large: var(--space-2xl);
	--space--xl: var(--space-3xl);

	/* Row spacing */
	--space--bottom: var(--space--xl);
	--space--top: var(--space--xl);
	--space--inset: var(--space-xl);

}
@media( max-width:767px ) {

	:root {
		
		/* Row spacing */
		--space--inset: var(--space--normal);

	}

}

/**********************************************************
=Fonts
/*********************************************************/

/* To avoid shifting pages, start with commonly-available font scaled to match Poppins */
@font-face {
	font-family: poppins-fallback;
	src: local("Verdana");
	size-adjust: 95%;
	size-adjust: 97%;
}
#est-top,
#est-top :is(h1, h2, h3, h4, h5, h6) {
	font-family: Poppins, poppins-fallback, poppins-fallback-android, sans-serif;
}

/* Trim: standardize line height for all fonts */
* {
	text-box-edge: cap alphabetic;
}

/* Trim: plain text blocks look better when their spacing (from each other) accounts for descenders */
:is(p,.brxe-text,.brxe-text-basic) {
	line-height: 2cap;
	text-box-trim: trim-start;
}
:is(button,.brxe-button,.est-button,.brx-submenu-toggle) {
	line-height: 1cap;
	text-box-trim: trim-both;
}
:is(button,.brxe-button,.est-button,.brx-submenu-toggle) * {
	line-height: inherit;
	text-box-trim: inherit; /* account for .brxe-text (etc) inside of links etc */
}
:is(h1,.est-h1) {
	line-height: 1.6cap;
	text-box-trim: trim-start; /* heading blocks look better when their spacing (from each other) accounts for descenders */
}
:is(h1,.est-h1) * {
	line-height: 1.6cap;
	text-box-trim: trim-start; /* heading blocks look better when their spacing (from each other) accounts for descenders */
}
:is(h2,h3,h4,h5,.est-h2,.est-h3,.est-h4,.est-h5) {
	line-height: 1.6cap;
	/*text-box-trim: trim-start;*/ /* heading blocks look better when their spacing (from each other) accounts for descenders */
	/*text-box-trim: trim-both;*/
	text-box-trim: trim-start;
}
:is(h2,h3,h4,h5,.est-h2,.est-h3,.est-h4,.est-h5) * {
	/*line-height: 1.7cap;*/
	/*text-box-trim: trim-start;*/ /* heading blocks look better when their spacing (from each other) accounts for descenders */
}
:is(h6,.est-h6) {
	line-height: 1.2cap;
	text-box-trim: trim-both; /* H6 headings are used only as supertitles and look best nestled against the primary heading */
}

/* All headings: fix wrapping */
:is(h1,h2,h3,h4,h5,h6) {
	text-wrap-style: balance;
}

/* Font colors */
p,
li, /* debug see if this breaks anything */
.brxe-text-basic {
	color: var(--color--body);
}
:is(h1,h2,h3,h4,h5,.est-h1,.est-h2,.est-h3,.est-h4,.est-h5) {
	color: var(--color--heading);
}
:is(h6,.est-h6) {
	color: var(--color--alt);
}
.brxe-heading .est-h6 {
	color: var(--color--heading);
}
:is(.est-card,.est-tile) :is(h6,.est-h6) {
	color: var(--color--alt);
}

/* Font colors: inverted */
.est-text--on-dark {
	--color--alt: var(--mint--bright);
	--color--heading: var(--white);
	--color--body: var(--grey--light);
}

/* Headings */
:is(h1,.est-h1) {
	font-size: var(--size--h1);
	font-weight: var(--weight--bold);
}
h1 .est-h6 {
	background: white;
	background-clip: none;
	-webkit-text-fill-color: var(--color--heading);
	position: relative;
}
h1:not(:has(.est-h1,.est-h2)),
.brxe-heading .est-h1 {
	background: linear-gradient( to bottom, var(--black), var(--grey) );
	background-clip: text;
	-webkit-text-fill-color: transparent; /* attempt to fix 1px line that sometimes appears around edges of box */
	background-repeat: no-repeat;
	background-size: calc( 100% - 1px ) calc( 100% - 1px ); /* fix render bug that leaves one pix un-masked */
	padding-bottom: 0.1lh; /* attempt to fix descenders being cut off */
	color: transparent;
	/*margin-bottom: calc( -1 * var(--space-m) );*/
	margin-bottom: -0.1lh;
	/*padding-bottom: var(--space-m);*/ /* hack to make background-clip work on hanging letters that overflow container */
	padding-top: 0.15cap; /* hack to make background-clip avoid the dot in i */
}
.est-text--on-dark h1:not(:has(.est-h1,.est-h2)),
.est-text--on-dark .brxe-heading .est-h1 {
	background-image: linear-gradient( to bottom, var(--white), var(--white--dark) );
}
h2 {
	font-size: var(--size--h2);
	font-weight: var(--weight--bold);
}
h3 {
	font-size: var(--size--h3);
	font-weight: var(--weight--bold);
}
h4 {
	font-size: var(--size--h4);
	font-weight: var(--weight--bold);
}
h5 {
	font-size: var(--size--h5);
	font-weight: var(--weight--bold);
}
h6 {
	font-size: var(--size--h6);
	font-weight: var(--weight--bold);
	text-transform: uppercase;
}
.est-h2 {
	font-size: var(--size--h2);
	font-weight: var(--weight--bold);
}
.est-h3 {
	font-size: var(--size--h3);
	font-weight: var(--weight--bold);
}
.est-h4 {
	font-size: var(--size--h4);
	font-weight: var(--weight--bold);
}
.est-h5 {
	font-size: var(--size--h5);
	font-weight: var(--weight--bold);
}
.est-h6 {
	font-size: var(--size--h6);
	font-weight: var(--weight--bold);
	text-transform: uppercase;
}

/* H6 (pill style) */
.brxe-heading .est-h6 {
	border: 1px solid var(--grey--light);
	border-radius: var(--radius--small);
	display: inline-block;
	font-size: var(--size--xs);
	font-weight: var(--weight--normal);
	line-height: 1.3cap;
	max-width: 100%;
	padding: var(--space--xs);
	text-transform: none;
}
:is(.est-card,.est-tile) .est-h6 {
	border: none;
	border-radius: 0;
	font-size: var(--size--h6);
	font-weight: var(--weight--bold);
	padding: 0;
	text-transform: uppercase;
}

/* H6 (spacer to handle side-by-side columns */
.est-h6--spacer {
	visibility: hidden;
}
.est-h6--spacer::before {
	content: ".";
}

/* Headings: highlighted text */
#est-top .brxe-heading strong:not([class*="est"]) {
	color: var(--mint);
	font-weight: inherit;
	text-box: inherit;
}
#est-top .est-text--on-dark .brxe-heading strong:not([class*="est"]) {
	color: var(--mint--bright);
}

/* Headings: supertitles */
.brxe-heading:has(.est-h6) {
	align-items: flex-start;
	display: flex;
	flex-direction: column;
}
.est-text--centered .brxe-heading:has(.est-h6) {
	align-items: center;
}

/* Headings: links with arrows */
a:is(.est-h1,.est-h2,.est-h3,.est-h4,.est-h5,.est-h6):has(i) {
	gap: 0.4ch;
}
a:is(.est-h1,.est-h2,.est-h3,.est-h4,.est-h5,.est-h6):has(i) i {
	color: var(--grey--light);
	font-size: 0.9cap;
	transform: translateX( 0 );
	transition: color 0.2s ease-in-out, transform 0.2s ease-in-out;
}
a:is(.est-h1,.est-h2,.est-h3,.est-h4,.est-h5,.est-h6):has(i):where(:hover,:focus-visible) i {
	color: inherit;
	transform: translateX( 2px );
}

/* Lists */
#est-top li .separator {
	display: none;
}

/* Links */
a,
a *,
.accordion-title-wrapper .brxe-heading,
:where(p,.brxe-text,.brxe-text-basic,li) a { /* debug see if this breaks anything */
	text-decoration-line: underline;
	text-decoration-color: rgb( from currentcolor r g b / 0.0 );
	text-decoration-thickness: 1.5px;
	text-underline-offset: 2px;
}
:where(p,.brxe-text,.brxe-text-basic,.brxe-text li) a {
	text-decoration-color: rgb( from currentcolor r g b / 0.5 );
	transition: color 0.1s linear;
}
a:where(:hover,:focus-visible) *,
a.brxe-text-link:where(:hover,:focus-visible),
.accordion-title-wrapper:where(:hover,:focus-visible) .brxe-heading,
.toc-link:where(:hover,:focus-visible) {
	text-decoration-color: rgb( from currentcolor r g b / 0.4 );
	transition: color 0.1s linear, text-decoration 0.2s ease-in-out;
}
:is(a.brxe-text-link,p a,.brxe-text li a):where(:hover,:focus-visible) {
	color: var(--mint);
}

/* Combined headings have multiple colors */
.brxe-heading:has(.est-h1,.est-h2,.est-h3,.est-h4,.est-h5,.est-h6) {
	text-decoration-color: transparent; /* so container has no underline but each heading uses its own color */
}

/**********************************************************
=Spacing Fixes
/*********************************************************/

/* Account for floating header in anchor targets */
:target {
	scroll-margin-top: 180px;
}

/* Change gutter spacing */
.brxe-section {
	padding-bottom: var(--space--bottom);
	padding-inline: var(--space--inset);
	padding-top: var(--space--top);
}

/* Large headings beside text or buttons */
:where(h1,h2) + .brxe-text,
:where(h1,h2) + .brxe-text-basic,
:where(h1,h2) + .brxe-button,
:where(h1,h2) + .est-buttons {
	margin-top: var(--space--normal);
}

/* Small headings beside text or buttons */
:where(.brxe-heading,h3,h4,h5,h6,.est-h3,.est-h4,.est-h5,.est-h6) + .brxe-text,
:where(.brxe-heading,h3,h4,h5,h6,.est-h3,.est-h4,.est-h5,.est-h6) + .brxe-text-basic,
:where(.brxe-heading,h3,h4,h5,h6,.est-h3,.est-h4,.est-h5,.est-h6) + .brxe-button,
:where(.brxe-heading,h3,h4,h5,h6,.est-h3,.est-h4,.est-h5,.est-h6) + .est-buttons,
:where(.brxe-heading,h3,h4,h5,h6,.est-h3,.est-h4,.est-h5,.est-h6) + .est-icons,
:where(.brxe-heading,h3,h4,h5,h6,.est-h3,.est-h4,.est-h5,.est-h6) + .est-pills,
:where(.est-pills) + :where(h3,h4,h5,h6,.est-h3,.est-h4,.est-h5,.est-h6) {
	margin-top: var(--space--small);
}
:where(h1,h2,h3,h4,h5,.est-h1,.est-h2,.est-h3,.est-h4,.est-h5) + :where(h1,h2,h3,h4,h5,.est-h1,.est-h2,.est-h3,.est-h4,.est-h5) {
	margin-top: var(--space--small);
}
:where(h6,.est-h6) + :where(h1,h2,h3,h4,h5,.est-h1,.est-h2,.est-h3,.est-h4,.est-h5,.brxe-text,.brxe-text-basic),
:where(h1,h2,h3,h4,h5,.est-h1,.est-h2,.est-h3,.est-h4,.est-h5) + :is(h6,.est-h6) {
	margin-top: var(--space--xs);
}

/* Small elements each other */
:where(.brxe-text,.brxe-text-basic,.est-buttons,.brxe-list,.brxe-list) + :where(.brxe-text,.brxe-text-basic,.brxe-button,.est-buttons,.brxe-list) {
	margin-top: var(--space--small);
}
/* Address element */
:where(.brxe-text,.brxe-heading,.brxe-text-basic) + address {
	margin-top: var(--space--small);
}
/* Lists */
:where(.brxe-heading,h3,h4,h5,h6,.est-h3,.est-h4,.est-h5,.est-h6) + .brxe-list {
	margin-top: var(--space--small);
}
.brxe-text ul + p {
	margin-top: var(--space--normal);
}
.brxe-text p + ul {
	margin-top: var(--space--small);
}
.brxe-text li + li {
	margin-top: var(--space--small);
}
/* Tables */
.brxe-text p + table {
	margin-top: var(--space--small);
}
.brxe-text table + p {
	margin-top: var(--space--normal);
}
.brxe-text table + :where(h1,h2,h3,h4,h5,h6) {
	margin-top: var(--space--large);
}
.brxe-text :where(h1,h2,h3,h4,h5,h6) + table {
	margin-top: var(--space--small);
}
.brxe-text:has(ul:first-child:last-child) + .brxe-text:has(p:first-child) {
	margin-top: var(--space--large);
}
/* Buttons */
:where(.brxe-text,.brxe-text-basic) + :where(.est-buttons,.brxe-button),
:where(.est-card) + :where(.est-buttons) {
	margin-top: var(--space--normal);
}
/* Headings denote new sections */
:where(.brxe-text,.brxe-text-basic,img) + .brxe-heading {
	margin-top: var(--space--large);
}
/* Images in text */
:where(.brxe-heading,.brxe-text,.brxe-text-basic) + img,
img + :where(.brxe-heading,.brxe-text,.brxe-text-basic) {
	margin-top: var(--space--normal);
}
/* Videos in text */
:where(.brxe-heading,.brxe-text,.brxe-text-basic) + .brxe-video,
.brxe-video + :where(.brxe-heading,.brxe-text,.brxe-text-basic) {
	margin-top: var(--space--normal);
}
/* Promoboxes */
:where(.brxe-heading,.brxe-text,.brxe-text-basic) + .est-promobox {
	margin-top: var(--space--normal);
}
.est-promobox + :where(.brxe-heading,.brxe-text,.brxe-text-basic),
:where(.brxe-heading,.brxe-text,.brxe-text-basic) + .est-promobox:last-child {
	margin-top: var(--space--large);
}
/* Inlays */
.est-inlay + :where(.brxe-text,.brxe-text-basic,.brxe-button,.est-inlay),
:where(.brxe-text,.brxe-text-basic,.brxe-button,.est-inlay) + .est-inlay {
	margin-top: var(--space--normal);
}
/* Stats */
.brxe-text + .est-stats {
	margin-top: var(--space--normal);
}
.brxe-heading + .est-stat {
	margin-top: var(--space--small);
}
/* Plaques */
.brxe-container:has(> .brxe-heading) + .est-plaques {
	padding-top: var(--space--xs);
}
/* Cards */
.est-card + :where(.brxe-text,.brxe-text-basic,.brxe-button),
:where(.brxe-text,.brxe-text-basic,.brxe-button) + .est-card {
	margin-top: var(--space--normal);
}
/* Quotes */
:is(.est-quote,.est-card--pullquote) + .brxe-heading {
	margin-top: var(--space--normal);
}
/* Plaques */
.brxe-section:has(.est-plaques) {
	margin-block: var(--space--small);
}
/* Blog prose */
.est-blog {
	--space--large: var(--space-xl);
}
/* Tables of contents */
.brxe-text + .brxe-post-toc {
	margin-top: var(--space--normal);
}	
.brxe-post-toc + .brxe-heading {
	margin-top: var(--space--large);
}

/* Spacing: all rows */
:where(#brx-content .brxe-section) {
	padding-bottom: var(--space--bottom);
	padding-top: var(--space--top);
}
.brxe-container {
	column-gap: var(--space--large);
}

/* Spacing: rows w/ no background beside each other */
#est-top .brxe-section:not([class*="est-bg"]):has(+ .brxe-section:not([class*="est-bg"],[class*="est-inset"])),
#est-top .est-bg--grey:has(+ .est-bg--grey) {
	padding-bottom: 0;
}

/* Containers beside each other */
#est-top .brxe-section .brxe-container + .brxe-container,
#est-top .brxe-container + .brxe-slider-nested {
	margin-top: var(--space-m);
}

/**********************************************************
=Forms
/*********************************************************/

/*Form variables
/*********************************************************/

/* Form fields: variables */
:root {
	
	/* Form colors: default */
	--input__background: transparent;
	--input__border: var(--grey--dark);
	--input__color: var(--color--body);

	--input__background--hover: rgb( from var(--mint) r g b / 0.1 );
	--input__border--hover: var(--mint);
	--input__color--hover: var(--color--body);

	/* Form variables */
	--input__radius: 0;
	--input__padding--vertical: var(--space--small);
	--input__padding--horizontal: var(--space--xs);
	--input__height: calc( var(--input__padding--vertical) + var(--size--input) + var(--input__padding--vertical) );

}

/*Form spacing
/*********************************************************/

/* Form spacing: gaps in grid */
#est-top .gform_fields,
#est-top .ginput_complex,
#est-top .gform-grid-col {
	gap: var(--space--normal);
	margin: 0;
	padding: 0;
}

/* Form spacing: hide footer when it doesn't have submit button */
#est-top .gform-body + .gform-footer:not(:has([type="submit"])) {
	display: none;

}
/* Form spacing: gap above footer when it does have submit */
#est-top .gform_footer, /* normal form */
#est-top .gform_page_footer { /* form with pagination */
	margin-top: 0;
	padding-top: 0;
}
#est-top .gform-body + .gform-footer, /* normal form */
#est-top .gform_page_fields + .gform_page_footer { /* form with pagination */
	margin-top: var(--space--normal);
}

/* Form spacing: fix address */
#est-top .address_city {
	flex: 1;
}

/* Form spacing: hide old clear hack */
#est-top .gf_clear {
	display: none;
}

/* Form spacing: gap between error messages */
#est-top .gform_validation_errors {
	margin: 0;
	margin-bottom: var(--space--xs);
}
#est-top .gfield_validation_message,
#est-top .validation_message {
	margin: 0;
	margin-top: var(--space--xs);
}

/* Form spacing: multiple pages */
#est-top .gf_progressbar_wrapper:has( + .gform-body) {
	margin-bottom: var(--space--normal);
}

/* Form spacing: flex so messages can be reordered */
#est-top .gfield {
	align-items: stretch;
	display: flex;
	flex-direction: column;
}

/* Form spacing: submit at right on multi-step */
#est-top .gform_page_footer {
	justify-content: flex-end;
}

/*Form fonts
/*********************************************************/

/* Form fonts */
#est-top .gform_wrapper :where(:not(h1,h2,h3,h4,h5,h6)) {
	color: var(--color--body);
	font-size: var(--size--p);
	font-style: normal;
	font-weight: var(--weight--normal);
	letter-spacing: 0;
	margin: 0;
}

/* Form fonts: headings */
#est-top .gform_wrapper :where(h1,h2,h3,h4,h5,h6) {
	color: var(--color--heading);
}

/*Form labels: all labels
/*********************************************************/

/* Form labels: all labels */
#est-top .gform-field-label {
	cursor: text;
	display: flex;
	font-size: var(--size--xs);
	font-weight: var(--weight--medium);
	gap: var(--space-xs);
	line-height: var(--size--p);
	/*margin-bottom: var(--padding--smaller);*/
	padding: 0 var(--input__padding--horizontal);
}
/*#est-top .gform_wrapper label *,*/
#est-top .gform-field-label * {
	color: inherit;
	font: inherit;
}

/* Form labels: all labels text */
#est-top .gform-field-label__text,
#est-top .gfield_required_text {
	margin: 0;
	padding: 0;
}

/* Form labels: required text */
#est-top .gfield_required_text {
	opacity: 0.5;
}
#est-top .gfield_label .gfield_required {
	color: inherit;
}

/* Form descriptions */
#est-top .gfield_description {
	border: none;
	font-size: var(--size--small);
	letter-spacing: 0;
	margin-top: var(--space-xs);
	order: 999;
	padding: 0;
}

/*Form labels: moving labels
/*********************************************************/

/* Form labels: labels above field */
#est-top .gform-field-label:first-child {
	transition: font 0.2s ease-in-out, color 0.2s ease-in-out, transform 0.2s ease-in-out;
}
/* Form labels: moving labels when covering field */
#est-top .gfield_label {
	--label__color: var(--grey);
}
#est-top .est-text--on-dark .gfield_label {
	--label__color: var(--grey--light);
}
#est-top .gform-field-label:first-child:has(~ .ginput_container input:placeholder-shown), /* can't use + b/c if error message is shown it will be between label and field */
#est-top .gform-field-label:first-child:has(~ .ginput_container .gf_placeholder:where(:checked)),
#est-top .gform-field-label:first-child:has(~ input:placeholder-shown) {
	color: var(--label__color);
	pointer-events: none;
	position: relative;
	transform: translateY( calc( ( 100% + ( var(--input__height) / 2 ) ) - 50% ) );
	z-index: 1;
}
/* Form labels: move label up when field is active or filled in */
#est-top .gform-field-label:first-child:has(~ .ginput_container input:focus-visible),
#est-top .gform-field-label:first-child:has(~ .ginput_container textarea:focus-visible),
#est-top .gform-field-label:first-child:has(~ .ginput_container_select select:focus-visible),
#est-top .gform-field-label:first-child:has(~ input:focus-visible),
#est-top .gform-field-label:first-child {
	color: var(--grey);
	transform: translateY( 0 );
}
/* Form labels: highlight label when field is active */
#est-top .gform-field-label:first-child:has(~ .ginput_container input:focus-visible),
#est-top .gform-field-label:first-child:has(~ .ginput_container select:focus-visible) {
	color: var(--mint);
}

/*Form labels: fields beside moving labels
/*********************************************************/

/* Form labels: make input transparent when empty and covered by label */
#est-top .field_sublabel_above .gfield_label ~ .ginput_container input:placeholder-shown:not(:focus-visible)::placeholder {
	color: transparent;
}
/* Form labels: make select transparent when default selected and covered by label */
#est-top .field_sublabel_above .gfield_label ~ .ginput_container select:has(.gf_placeholder:checked):not(:focus-visible) {
	color: transparent;
}

/*Form labels: odd labels
/*********************************************************/

#est-top .gform_wrapper .gform-field-label:last-child {
	font-size: var(--size--small);
	font-weight: var(--weight--normal);
	margin-bottom: 0;
	margin-top: var(--padding--xs);
}

/* Form labels: checkbox/radio labels */
#est-top .gfield_label:has(~ .ginput_container_radio),
#est-top .gfield_label:has(~ .ginput_container_checkbox) {
	color: var(--grey--light);
	margin-bottom: var(--space--xs);
}

/*Form fields
/*********************************************************/

/* Form fields: all fields */
#est-top input,
#est-top select,
#est-top option,
#est-top textarea,
#est-top .gform_button,
#est-top .gform-button {
	background: var(--input__background);
	border: none;
	border-radius: var(--input__radius);
	box-shadow: inset 0 0 0 1px var(--input__border);
	color: var(--input__color);
	font-size: var(--size--input);
	font-weight: var(--weight--normal);
	height: var(--input__height);
	line-height: 1;
	margin: 0;
	outline: 1px solid transparent;
	padding: 0 var(--input__padding--horizontal);
	transition: background 0.1s linear, box-shadow 0.1s linear, color 0.2s linear;
}

/* Form fields: box-like fields only */
#est-top input,
#est-top select {
	box-shadow: inset 0 -1px 0 0 var(--input__border);
}
#est-top textarea {
	box-shadow:
		inset 0 -1px 0 0 var(--input__border),
		inset 0 0 0 1px rgb( from var(--input__border) r g b / 0.5 );
}
/* Form fields: hover effect on box-like fields */
#est-top :is(input,select,option,textarea):where(:hover) {
	background: var(--input__background--hover);
	box-shadow:
		inset 0 -1px 0 0 var(--input__border--hover),
		inset 0 0 0 1px rgb( from var(--input__border--hover) r g b / 0.25 );
	color: var(--input__color--hover);
}
#est-top :is(input,select,option,textarea):where(:focus-visible) {
	box-shadow: inset 0 0 0 1px var(--input__border--hover);
}
/* Form fields: text inputs */
input:is([type="text"],[type="tel"],[type="email"]) {
	cursor: text;
}

/* Form textareas */
#est-top textarea {
	cursor: text;
	height: auto;
	max-height: 4lh;
	padding-block: var(--space--xs);
}
#est-top .ginput_container_textarea { /* GF adds important styles to <textarea> */
	line-height: 1.4;
}

/* Form buttons (have their own section) */
#est-top .gfield--type-submit[data-field-position="inline"] {
	justify-content: flex-end;
}

/* Form: price field */
#est-top .gfield_label:has(+ .ginput_container_total) {
	color: var(--color--body);
}
#est-top .ginput_total {
	background: transparent;
	box-shadow: none;
	color: var(--mint);
	cursor: not-allowed;
	font-weight: var(--weight--medium);
	height: auto;
	line-height: 1;
	padding-block: 0;
}
#est-top .est-text--on-dark .ginput_total {
	color: var(--mint--bright);
}
#est-top .est-form__price-notice {
	color: var(--grey--light);
	font-size: var(--size--xs);
	margin-top: calc( -1 * var(--space--normal) );
	opacity: 0.75;
	padding-inline: var(--space--xs);
}

/*Form placeholders
/*********************************************************/

/* Form placeholders: normal fields */
#est-top ::placeholder,
#est-top select:has(.gf_placeholder:checked) {
	color: rgb( from var(--input__color) r g b / 0.75 );
	font-size: var(--size--small);
}
#est-top ::placeholder {
	background: transparent;
}

/*Form selects
/*********************************************************/

/* Form selects */
#est-top select {
	line-height: var(--input__height); /* fix bug with select inner height */
}
#est-top .ginput_container_select,
#est-top .ginput_address_state,
#est-top .gform-datepicker-calendar :is(td.year,td.month):not(.nav) {
	cursor: pointer;
	position: relative;
}

/* Form selects: fix height issue due to using first option as fake placeholder with smaller font size */
#est-top .ginput_container_select {
	display: flex;
	height: var(--input__height);
}
#est-top .ginput_container_select select {
	align-self: stretch;
	height: auto;
}

/* Form selects: icon */
#est-top .ginput_container_select::after,
#est-top .ginput_address_state::after,
#est-top .gform-datepicker-calendar :is(td.year,td.month):not(.nav)::after {
	bottom: 0;
	content: "\f3d0";
	display: block;
	font-family: "ionicons";
	font-size: var(--size--input);
	font-size: 1cap;
	font-weight: bold;
	line-height: var(--input__height);
	pointer-events: none;
	position: absolute;
	right: var(--input__padding--horizontal);
	transition: color 0.1s linear;
	vertical-align: middle;
}
#est-top .ginput_container_select:focus-within::after,
#est-top .ginput_address_state:focus-within::after,
#est-top .gform-datepicker-calendar :is(td.year,td.month):not(.nav):focus-within::after {
	color: currentcolor;
}
#est-top select {
	cursor: pointer;
}

/* Form selects: options */
#est-top option {
	background: white; /* option doesn't inherit :root on all browsers, so must manually define */
	color: black !important; /* option also doesn't respect normal specificity in some cases */
}

/*Form choices
/*********************************************************/

/* Form choices: all */
#est-top {
	--checkbox-height: calc( var(--size--input) );
}
#est-top .gchoice {
	display: flex;
	padding-left: var(--space--xs);
}

/* Form choices: label */
#est-top .gchoice .gform-field-label {
	display: inline-flex;
	gap: var
}

/* Form choices: radios */
#est-top .gfield--type-choice {
	margin-top: var(--padding--smaller);
}
#est-top .gchoice + .gchoice {
	margin-top: var(--padding--input);
}
#est-top [type="checkbox"],
#est-top [type="radio"] {
	display: none;
}
#est-top [type="checkbox"] + label,
#est-top [type="radio"] + label {
	cursor: pointer;
	display: inline-block;
	font-size: var(--size--input);
	font-weight: var(--weight--medium);
	margin: 0;
	padding-left: calc( var(--checkbox-height) + var(--space--xs) );
	padding-right: 0;
	position: relative;
	user-select: none;
}
#est-top .gfield_radio input + label::before,
#est-top .gfield_checkbox input + label::before {
	background: var(--input__background);
	border: none;
	border-radius: 50%;
	box-shadow: inset 0 0 0 1px var(--input__border);
	content: "";
	height: var(--checkbox-height);
	left: 0;
	position: absolute;
	top: calc( var(--size--input) / 2 );
	transform: translateY( -50% );
	width: var(--checkbox-height);
}
#est-top .gfield_radio input + label:where(:hover,:focus-visible)::before,
#est-top .gfield_checkbox input + label:where(:hover,:focus-visible)::before {
	background: var(--mint);
	box-shadow: inset 0 0 0 3px var(--input__border);
}
#est-top .gfield_checkbox input:checked + label::before,
#est-top .gfield_radio input:checked + label::before {
	align-items: center;
	color: var(--white);
	content: "\f2bc";
	display: flex;
	font-family: "ionicons";
	justify-content: center;
}
#est-top .gfield_radio input:checked + label::before {
	content: "\f361";
}

/* Form checkboxes */
#est-top .gfield_checkbox input + label::before {
	border-radius: 0;
}

/* Form errors
/*********************************************************/

/* Form errors: general styling */
#est-top .gform_validation_errors,
#est-top .gfield_validation_message,
#est-top .validation_message {
	background: transparent;
	border: none;
	border-radius: 0;
	box-shadow: none;
	color: var(--error);
	font-size: var(--size--xs);
	font-weight: var(--weight--normal);
	letter-spacing: 0;
	line-height: 1.5cap;
	margin: 0;
	outline: none;
	padding: var(--input__padding--horizontal);
	text-box: trim-start cap alphabetic;
	text-transform: none;
}
#est-top .gform_validation_errors *,
#est-top .gfield_validation_message *,
#est-top .validation_message * {
	color: inherit;
	font: inherit;
}

/* Form errors: summmary */
#est-top .gform_validation_errors {
	background: rgb( from currentcolor r g b / 0.2 );
	border: 1px solid currentcolor;
	border-radius: var(--radius--small);
	font-size: var(--size--small);
	font-weight: var(--weight--normal);
	margin-bottom: var(--space--normal);
	padding: var(--space--small);
}
#est-top .gform_validation_errors .gform-icon {
	display: none;
}
#est-top .gform_validation_errors h2 {
	color: var(--color--heading);
	font-weight: var(--weight--bold);
	text-wrap-style: auto;
}
#est-top .gform_validation_errors ol {
	display: flex;
	flex-wrap: wrap;
	font-size: var(--size--xs);
	gap: var(--space--xs);
	line-height: 1.5cap;
	list-style-type: none;
	margin: 0;
	padding: 0;
}
#est-top .gform_validation_errors li,
#est-top .gform_validation_errors a {
	border: none;
	border-radius: 0;
	display: inline-block;
	font-size: inherit;
	line-height: inherit;
	text-decoration: none;
}

/* Forms errors: individual error */
#est-top .gfield_validation_message {
	margin-top: var(--space-xs);
	order: 999;
	padding: 0 var(--input__padding--horizontal);
}

/* Form miscellaneous
/*********************************************************/

/* Form: date picker */
#est-top#est-top .gform-field-label:first-child:has(~ .ginput_container_date),
#est-top#est-top .gform-field-label:first-child:has(~ .ginput_container_textarea) {
	color: var(--label__color);
	transform: none;
}
#est-top#est-top .ginput_container_date ::placeholder {
	color: var(--input__color);
}
#est-top#est-top .ginput_container_date button {
	--button__padding: var(--space--xs);
	aspect-ratio: 1;
	height: auto;
}
#est-top#est-top .ginput_container_date button ::before {
	color: var(--button__color);
	content: "\f3f4";
	font-family: "ionicons" !important; /* override GF */
}
/* Form: date picker popup */
#est-top .gform-datepicker-calendar {
	background: var(--white);
	border-radius: var(--radius--normal);
	box-shadow: var(--shadow--normal);
	padding: var(--space--small);
}
#est-top .gform-datepicker-calendar table {
	display: grid;
	grid-template-columns: repeat( 7, 1fr );
}
#est-top .gform-datepicker-calendar tbody {
	display: contents;
}
#est-top .gform-datepicker-calendar :is(.yearSelector,.monthSelector) {
	align-items: center;
	display: flex;
	border-bottom: var(--space--xs) solid transparent; /* using padding or margin introduces some weird rendering bug making borders 2px instead of 1px */
	gap: var(--space--xs);
	grid-column: 1 / -1;
}
#est-top .gform-datepicker-calendar :is(.yearSelector,.monthSelector) td {
	margin: 0;
	padding: 0;
}
#est-top .gform-datepicker-calendar :is(.yearSelector,.monthSelector) :is(.prev,.next) {
	block-size: auto;
	flex: none;
	height: auto;
	inline-size: auto;
	width: auto;
}
#est-top .gform-datepicker-calendar :is(.yearSelector,.monthSelector) > :is(.year,.month):not(.nav) {
	flex: 1;
	min-width: 0;
}
#est-top .gform-datepicker-calendar tr:not(.yearSelector,.monthSelector) {
	display: grid;
	grid-column: 1 / -1;
	grid-template-columns: subgrid;
}
#est-top .gform-datepicker-calendar tr:not(.yearSelector,.monthSelector) > :is(td,th) {
	min-width: 0;
}
#est-top .gform-datepicker-calendar .prev::before,
#est-top .gform-datepicker-calendar .next::before {
	color: transparent;
	font-size: 0;
}
#est-top .gform-datepicker-calendar .prev.btn span,
#est-top .gform-datepicker-calendar .next.btn span {
	--button__border: var(--grey);
	--button__color: var(--grey);
	aspect-ratio: 1 / 1;
	color: transparent;
	font-size: 0 !important;
	gap: 0 !important; /* override button gap */
	height: var(--input__height);
	justify-content: center;
}
#est-top .gform-datepicker-calendar .prev span::before,
#est-top .gform-datepicker-calendar .next span::before {
	color: var(--button__color);
	content: "\f3cf";
	font-family: "ionicons";
	font-size: var(--button__size);
	outline: none;
	box-shadow: none;
	border: none;
}
#est-top .gform-datepicker-calendar .next span::before {
	content: "\f3d1";
}
#est-top .gform-datepicker-calendar :is(.prev,.next):where(:hover,:focus-visible) span::before {
	color: var(--button__color--hover);
}
#est-top .gform-datepicker-calendar select.nav.select {
	color: var(--grey);
	width: 100%;
}
#est-top .gform-datepicker-calendar .week {
	color: var(--grey--light);
}
#est-top .gform-datepicker-calendar td.day > span {
	--button__color: var(--grey);
}
#est-top#est-top .gform-datepicker-calendar .monthMessage,
#est-top#est-top .gform-datepicker-calendar .monthMessage p {
	font-size: var(--size--xs);
}

/* Pagination bar */
#est-top .gf_progressbar_wrapper {
	display: flex;
	flex-direction: column;
	gap: var(--space-xs);
}
#est-top .gf_progressbar_title {
	font-size: var(--size--small);
}
#est-top .gf_progressbar_title * {
	color: inherit;
	font: inherit;
}
#est-top .gf_progressbar {
	background: var(--grey--dark);
}
#est-top .gf_progressbar_percentage {
	background: var(--mint);
}
/* Hide invisible anchor that gains outline when switching pages */
#est-top .gform_anchor:focus {
	outline: none;
}

/* Loading */
#est-top .gform-loader {
	border-width: 2px;
	flex: none;
	font-size: inherit;
	height: 1cap;
	position: static;
	width: 1cap;
}

/**********************************************************
=Buttons
/*********************************************************/

/* Buttons: wrapper */
#est-top .est-buttons {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	gap: var(--space-s);
}
/* Buttons: all buttons + pills */
:root {
	--button__padding: var(--space-s);
	--button__radius: var(--radius-s);
	--button__size: var(--text-s);
	--button__underline: transparent;
}
#est-top .brxe-button,
#est-top .button, /* GravityForms uses .gform-button (button on its own line), .gform_button (button on same line), .gform_next/prev_button (pagination), etc, but all seem to use .button */
#est-top .gform-datepicker-toggle, /* GravityForms calendar toggle */
#est-top .gform-datepicker-calendar :is(.prev,.next) span, /* calendar arrows */
#est-top .gform-datepicker-calendar td.day > span, /* calendar dates */
#est-top .bricks-pagination li > .page-numbers:not(.dots) { /* page numbers and arrows */
	--icon__offset: 0;
	--icon__offset--hover: 0;
	align-items: center;
	background: var(--button__background);
	border: none;
	border-radius: var(--button__radius);
	box-shadow: inset 0 0 0 1px var(--button__border);
	color: var(--button__color);
	cursor: pointer;
	display: inline-flex;
	flex-shrink: 0;
	font-size: var(--button__size);
	font-weight: var(--weight--medium);
	gap: var(--space-xs);
	letter-spacing: 0;
	line-height: 1.01cap; /* fix line-height rendering bug with certain weights */
	min-height: 0; /* fix GravityForms bug */
	overflow: hidden;
	padding: var(--button__padding);
	text-decoration-color: transparent;
	transition: background 0.2s ease-in-out, box-shadow 0.2s ease-in-out, color 0.2s ease-in-out;
}

/* Buttons: all buttons (hover) */
#est-top .brxe-button:where(:hover,:focus-visible),
#est-top .button:where(:hover,:focus-visible),
#est-top .gform-datepicker-toggle:where(:hover,:focus-visible),
#est-top .gform-datepicker-calendar :is(.prev,.next):where(:hover,:focus-visible) span,
#est-top .gform-datepicker-calendar td.day:where(:hover,:focus-visible) > span,
#est-top .bricks-pagination a.page-numbers:not(.dots):where(:hover,:focus-visible) {
	--icon__offset: var(--icon__offset--hover);
	background: var(--button__background--hover);
	box-shadow: inset 0 0 0 1.5px var(--button__border--hover);
	color: var(--button__color--hover);
	text-decoration-color: var(--button__underline);
}

/* Buttons: icons */
#est-top .brxe-button i {
	transform: translateX( var(--icon__offset) );
	transition: transform 0.2s ease-in-out;
}
#est-top .brxe-button:has(.ion-ios-arrow-round-forward) {
	--icon__offset--hover: 2px;
}
#est-top .brxe-button:has(.ion-ios-arrow-round-back) {
	--icon__offset--hover: 2px;
}

/* Buttons: default colors */
:root {
	--button__background: var(--black);
	--button__border: var(--black);
	--button__color: var(--white);
	--button__background--hover: var(--mint);
	--button__border--hover: var(--mint);
	--button__color--hover: var(--white);
}
/* Buttons: default colors (on dark) */
#est-top .est-text--on-dark {
	--button__background: var(--white);
	--button__border: var(--white);
	--button__color: var(--black);
	--button__background--hover: var(--mint);
	--button__border--hover: var(--mint);
	--button__color--hover: var(--white);
}
/* Buttons: primary colors */
#est-top .brxe-button.bricks-background-primary {
	--button__background: var(--mint);
	--button__border: var(--mint);
	--button__color: var(--black);
	--button__background--hover: var(--mint);
	--button__border--hover: var(--mint);
	--button__color--hover: var(--white);
}
/* Buttons: secondary colors */
#est-top .brxe-button.bricks-background-secondary {
	--button__background: var(--black);
	--button__border: var(--black);
	--button__color: var(--white);
	--button__background--hover: var(--mint);
	--button__border--hover: var(--mint);
	--button__color--hover: var(--white);
}
/* Buttons: secondary colors (on dark) */
#est-top .est-text--on-dark .brxe-button.bricks-background-secondary {
	--button__background: var(--white);
	--button__border: var(--white);
	--button__color: var(--black);
}
/* Buttons: light/transparent colors (on dark) */
#est-top .brxe-button.bricks-background-light {
	--button__background: transparent;
	--button__border: transparent;
	--button__color: var(--black);
	--button__background--hover: transparent;
	--button__border--hover: transparent;
	--button__color--hover: var(--mint);
	--button__underline: rgb( from currentcolor r g b / 0.4 );
	--icon__offset--hover: 2px;
	border-radius: 0;
	padding-left: 0;
	padding-right: var(--icon__offset--hover);
}
/* Buttons: light/transparent colors (on dark) */
#est-top .est-text--on-dark .brxe-button.bricks-background-light {
	--button__color: var(--white);
	--button__color--hover: var(--mint--bright);
}
/* Buttons: outlined colors */
#est-top .brxe-button.outline,
#est-top .est-button--outlined,
#est-top .bricks-pagination .page-numbers:not(.current,.dots) {
	--button__background: transparent;
	--button__color: var(--button__border);
}
#est-top .bricks-pagination .page-numbers.current {
	--button__background: var(--black);
	--button__border: var(--black);
	--button__color: var(--white);
}
/* Buttons: outlined colors (on dark) */
#est-top .est-text--on-dark .brxe-button.outline {
	--button__border: var(--white);
}
/* Buttons: pagination arrows */
#est-top .bricks-pagination ul {
	gap: var(--space--small);
}
#est-top .bricks-pagination li:has(> .prev) {
	margin-right: calc( var(--space--normal) - var(--space--small) );
}
#est-top .bricks-pagination li:has(> .next) {
	margin-left: calc( var(--space--normal) - var(--space--small) );
}
#est-top .bricks-pagination li > .page-numbers:is(.prev,.next) {
	font-size: 0; /* hide the default arrow character */
	position: relative;
}
#est-top .bricks-pagination li > .page-numbers:is(.prev,.next)::before {
	background: currentcolor;
	content: "";
	font-size: var(--button__size); /* 1cap matches the slider arrow, not the zeroed button */
	height: 1cap;
	left: 50%;
	mask-image: url("/wp-content/themes/bricks-child/images/est-icon--arrow.svg");
	mask-position: center;
	mask-repeat: no-repeat;
	mask-size: contain;
	position: absolute;
	top: 50%;
	transform: translate( -50%, -50% );
	width: 1cap;
}
#est-top .bricks-pagination li > .page-numbers.prev::before {
	transform: translate( -50%, -50% ) rotate( 180deg ); /* same arrow, pointed back */
}

/**********************************************************
=Header (Desktop)
/*********************************************************/

/* Header: make toolbar fixed so header transform doesn't look weird */
#wpadminbar {
	position: fixed;
}

/* Header: wrapper */
.est-header__wrapper {
	--header__radius: var(--radius--large);
	--header__gap: var(--space--small);
	--header__top: var(--space--normal);
	--header__padding: var(--space--normal);
	--header__height: calc(
		var(--header__padding) +
		var(--button__padding) +
		1.01cap +
		var(--button__padding) +
		var(--header__padding)
	);
	background: transparent;
	padding-bottom: 0;
	padding-top: var(--space-m);
}

/* Header: main container */
.est-header {
	align-items: center;
	flex-direction: row;
	gap: var(--header__gap);
	justify-content: space-between;
	padding: var(--header__padding);
	position: relative;
}

/* Header: background with shadow */
.est-header::before {
	background: var(--white);
	border-radius: var(--header__radius);
	box-shadow: var(--shadow--normal);
	content: "";
	display: block;
	inset: 0;
	position: absolute;
}

/* Header: position background above open mobile menu */
.est-header::before {
	transition: border-radius 0.2s ease-in-out, transform 0.2s ease-in-out;
	z-index: 9999;
}
/* Header: position main-level links above background */
#est-top .est-header__logo,
#est-top .est-header__toggle,
#est-top .est-header__contact,
#est-top .est-menu > li > .brx-submenu-toggle,
#est-top .est-menu > li > a {
	position: relative;
	transition: transform 0.2s ease-in-out;
	z-index: 10000;
}

/* Header: move background up and change radius on scroll (applying to container would break mobile menu) */
.scrolling .est-header::before {
	border-top-left-radius: 0;
	border-top-right-radius: 0;
	transform: translateY( calc( -1 * var(--header__top) ) );
}
/* Header: move main level links up on scroll */
.scrolling .est-header__logo,
.scrolling .est-header__toggle,
.scrolling .est-header__contact {
	transform: translateY( calc( -1 * var(--header__top) ) );
}
@media( min-width:768px ) {
	.scrolling .est-menu > li > .brx-submenu-toggle,
	.scrolling .est-menu > li > a {
		transform: translateY( calc( -1 * var(--header__top) ) );
	}
}

/* Header: hide hamburger button */
@media( min-width:767px ) {
	.est-header__toggle {
		display: none;
	}
}

/* Header: logo */
.est-header__logo {
	align-items: center;
	display: flex;
	flex-shrink: 1;
	height: 30px;
	width: 150px;
}
.est-header__logo img {
	border-radius: 0;
	height: auto;
	max-height: 100%;
	max-width: 100%;
	transform: scale( 0.95 );
	transition: opacity 0.2s ease-in-out, transform 0.2s ease-in-out;
	width: auto;
}
.est-header__logo--mobile img {
	max-height: calc( 100% + var(--header__padding) );
}
.est-header__logo:where(:hover,:focus-visible) img {
	opacity: 0.75;
	transform: scale( 1 );
}
@media( max-width:991px ) {
	.est-header__logo {
		display: none;
	}
}

/* Header: content on right */
.est-header__right {
	align-items: center;
	color: var(--black);
	flex-direction: row;
	flex: none;
	font-size: var(--size--xs);
	font-weight: var(--weight--medium);
	gap: var(--header__gap);
	justify-content: flex-end;
	width: auto;
}

/* Adjust sizing of header elements on smaller screens */
@media( min-width:900px ) and ( max-width:999px ) {
	.est-header__wrapper {
		--header__gap: var(--space--xs);
	}
}
@media( min-width:829.1px ) and ( max-width:899px ) {
	.est-header__wrapper {
		--header__gap: 4px;
	}
	.est-header .brx-submenu-toggle {
		gap: 4px;
		padding-inline: 4px;
	}
}
@media( min-width:767.1px) and ( max-width:829px ) {
	.est-header__wrapper {
		--header__gap: 3px;
	}
	.est-header {
		padding-inline: var(--space--small);
	}
	.est-header .brx-submenu-toggle {
		gap: 4px;
		padding-inline: 4px;
	}
	.est-header .brx-submenu-toggle button {
		height: 0.7em;
		width: 0.7em;
	}
}

/**********************************************************
=Header (Mobile)
/*********************************************************/

/* Swap logos on mobile */
@media( max-width:991px ) {
	.est-header__logo--mobile {
		display: flex;
		width: 80px;
	}
}
@media( min-width:992px ) {
	.est-header__logo--mobile {
		display: none;
	}
}

/**********************************************************
=Menu (Desktop)
/*********************************************************/

/* Menu (desktop): ul wrapper of main-level links */
.est-menu {
	flex-wrap: nowrap;
	gap: var(--header__gap);
}

/* Menu: main-level links */
.est-dropdown__activator > .brx-submenu-toggle,
.est-dropdown__activator.brx-submenu-toggle {
	white-space: nowrap;
}
/* For some reason the links that aren't dropdowns want to have weird lineheight */
.est-dropdown__activator.brx-submenu-toggle {
	display: block;
}
/* Our Work is a text link, so its hover would otherwise turn mint */
a.est-menu__work:where(:hover,:focus-visible) {
	color: var(--dropdown__color);
}

/* Force images and videos hidden in closed dropdowns; otherwise, lazy load will grab them at initial page load */
.brxe-dropdown:not(.open) :is(img,video) {
	display: none;
}

/* Menu (desktop): megamenu overlay */
.est-dropdown__positioning {
	background: transparent;
	pointer-events: none; /* so clicking overlay can close menu */
}

/* Menu (desktop): megamenu wrapper */
.est-dropdown__spacing {
	background: transparent;
	background-clip: content-box;
	padding-bottom: 0;
	padding-top: 0;
	pointer-events: none; /* so clicking overlay can close menu */
}

/* Make content blur when menu open */
#brx-header:has(.est-dropdown__activator.open)::before {
	background: rgb( 0,0,0, 0.1 );
	backdrop-filter: blur( 10px );
	content: "";
	height: 100vh;
	left: 0;
	position: absolute;
	right: 0;
	top: 0;
	z-index: -1;
}

/* Menu (desktop): megamenu container */
.est-megamenu__container {
	background: transparent;
	background-clip: content-box;
	pointer-events: none; /* so clicking overlay can close menu */
}

/* Menu (desktop): grid positioning for each dropdown */
.est-menu__serve     :where(.est-dropdown),
.est-menu__solutions :where(.est-dropdown),
.est-menu__about     :where(.est-dropdown),
.est-menu__insights  :where(.est-dropdown),
.est-menu__contact   :where(.est-dropdown) {
	align-items: start;
	display: grid;
	grid-template-columns: auto 1fr 1fr;
	grid-template-rows: min-content 1fr;
	justify-items: start;
}
.est-menu__contact :where(.est-dropdown) {
	grid-template-columns: auto 1fr;
	grid-template-rows: min-content 1fr;
}
.est-menu__serve .est-dropdown > :nth-child(1),
.est-menu__solutions .est-dropdown > :nth-child(1),
.est-menu__about .est-dropdown > :nth-child(1),
.est-menu__insights .est-dropdown > :nth-child(1),
.est-menu__contact .est-dropdown > :nth-child(1) {
	grid-column: 1;
	grid-row: 1;
	justify-self: start;
}
.est-menu__solutions .est-dropdown > :nth-child(1) {
	grid-column: 1;
	grid-row: 1;
}
.est-menu__serve .est-dropdown > :nth-child(2),
.est-menu__solutions .est-dropdown > :nth-child(2),
.est-menu__about .est-dropdown > :nth-child(2),
.est-menu__insights .est-dropdown > :nth-child(2),
.est-menu__contact .est-dropdown > :nth-child(2) {
	grid-column: 1;
	grid-row: 2;
}
.est-menu__serve .est-dropdown > :nth-child(3),
.est-menu__solutions .est-dropdown > :nth-child(3),
.est-menu__about .est-dropdown > :nth-child(3),
.est-menu__insights .est-dropdown > :nth-child(3),
.est-menu__contact .est-dropdown > :nth-child(3) {
	grid-column: 2;
	grid-row: 1 / -1;
}
.est-menu__serve .est-dropdown > :nth-child(4),
.est-menu__solutions .est-dropdown > :nth-child(4),
.est-menu__about .est-dropdown > :nth-child(4),
.est-menu__insights .est-dropdown > :nth-child(4) {
	grid-column: 3;
	grid-row: 1 / -1;
}
.est-dropdown .est-tile {
	--tile__top: 100px;
	max-width: 300px;
}

/* Menu (desktop): megamenu main part with rounded edges */
.est-dropdown {
	--dropdown__pill-height: calc( var(--space--xs) + var(--size--xs) + var(--space--xs) );
	--dropdown__header-remaining-height: calc( var(--header__height) - var(--dropdown__pill-height) );
	--dropdown__height-to-bottom-of-header: calc( var(--dropdown__header-remaining-height) / 2 );
	background: var(--white);
	border-radius: var(--radius--large);
	box-shadow: var(--shadow--normal);
	flex-direction: row;
	margin-left: auto;
	margin-right: 0;
	margin-top: calc( var(--dropdown__height-to-bottom-of-header) + var(--header__top) );
	padding: var(--space--normal);
	pointer-events: initial;
	position: relative;
	width: auto;
}
@media( min-width:768px ) {
.scrolling .est-dropdown {
	margin-top: var(--dropdown__height-to-bottom-of-header);
}
}
.est-dropdown > * {
	width: auto;
}
.est-dropdown {
	column-gap: var(--space--normal);
	row-gap: var(--space--small);
}
.est-dropdown > .brxe-block {
	gap: var(--space--normal);
}
.est-dropdown > .brxe-block {
	flex-direction: column;
}
@media( min-width:768px ) {
	.est-dropdown::before { /* cover the gap so clicking/hovering over it doesn't close the dropdown */
		bottom: 100%;
		content: "";
		height: var(--space--normal);
		left: 0;
		position: absolute;
		width: 100%;
	}
}

/* Menu (desktop): tiles within content */
.est-dropdown .est-tile {
	--pane__padding: calc( var(--space--normal) * 0.7 );
	--tile__top: 150px;
	flex: 0;
	flex-basis: 300px;
}
.est-dropdown .est-tile .est-h5 {
	margin-top: var(--space--xs);
}

/* Menu (desktop): pills */
.est-dropdown .est-pills {
	flex-direction: column;
	flex-wrap: nowrap;
}

/* Menu (desktop): footer */
@media( min-width:768px ) {
	.est-menu__footer {
		display: none;
		order: 999;
	}
}

/**********************************************************
=Menu (Mobile)
/*********************************************************/

/* Mobile menu: main level links */
@media( max-width:767px ) {

	/* Mobile menu: structure */
	#brx-header {
		container-type: inline-size; /* so we can set paddings that ignore scrollbar */
	}
	.est-menu {
		gap: 0;
		justify-content: flex-start;
		padding: 0;
		padding-top: calc( 100px + var(--header__top) );
	}
	.scrolling .est-menu {
		padding-top: 100px;
	}
	.est-menu::after {
		content: "";
		flex: none;
		height: var(--space--large);
	}

	/* Each main level link */
	.est-menu > li {
		font-size: var(--size--h3);
		padding-left: var(--space--inset);
		width: calc( var(--space--inset) + ( 100cqw - var(--space--inset) - var(--space--inset) ) ); /* so that right edge aligns with right edge of header, regardless of scrollbar */
	}
	.est-menu > li > .brx-submenu-toggle {
		background: var( --link__background, var(--white) );
		border: none;
		border-radius: 0;
		box-shadow: none;
		font-weight: var(--weight--bold);
		padding: var(--space--normal) var(--space--small);
		position: relative;
		overflow: visible;
	}
	.est-menu > li > .brx-submenu-toggle,
	.est-menu > li > .brx-submenu-toggle span {
		font-size: inherit;
	}

	/* Closed caret points right. The svg is drawn pointing down */
	.est-menu > li > .brx-submenu-toggle svg {
		transform: rotate( -90deg );
	}
	/* Hovering a closed title turns the caret down */
	.est-menu > li:not(.open) > .brx-submenu-toggle:where(:hover,:focus-visible) svg {
		transform: rotate( 0deg );
	}
	/* Open caret stays down, and hovering that title spins it up */
	.est-menu > li.open > .brx-submenu-toggle svg {
		transform: rotate( 0deg );
	}
	.est-menu > li.open > .brx-submenu-toggle:where(:hover,:focus-visible) svg {
		transform: rotate( 180deg );
	}

	/* Grey line between rows. The next row's top border is the line under this row. */
	.est-menu > li > :first-child {
		border-top: 1px solid var(--grey--light);
	}
	.est-menu > li:first-child > :first-child {
		border-top: 1px solid transparent;
	}
	.est-menu > li:last-child > :first-child {
		border-bottom: 1px solid transparent;
	}
	.est-menu > li > :first-child:where(:hover,:focus-visible),
	.est-menu > li.open > :first-child {
		background: var(--mint--lighter);
		border-top: 1px solid var(--mint--light);
	}
	/* The line under an open title belongs to that title, so the next row keeps its grey top */
	.est-menu > li.open > :first-child {
		border-bottom: 1px solid var(--mint--light);
	}
	.est-menu > li:where(:hover,:focus-visible):not(.open) + li > :first-child {
		border-top: 1px solid var(--mint--light);
	}
	.est-menu > li:first-child > :first-child:where(:hover,:focus-visible),
	.est-menu > li.open:first-child > :first-child {
		border-top: 1px solid var(--mint--light);
	}
	.est-menu > li:last-child > :first-child:where(:hover,:focus-visible),
	.est-menu > li.open:last-child > :first-child {
		border-bottom: 1px solid var(--mint--light);
	}
	/* Contact sits above the footer, so the line under it has to live on the title */
	.est-menu > li.est-menu__contact > .brx-submenu-toggle:where(:hover,:focus-visible) {
		border-bottom: 1px solid var(--mint--light);
	}
	/* Open panel stays plain; the green line is only under the title */
	.est-menu > li.open > .est-dropdown__positioning {
		border-bottom: none;
	}

	/* Mobile menu: dropdown */
	.est-dropdown__positioning {
		overflow: visible; /* so card shadows aren't cut off */
	}
	.est-dropdown__spacing {
		padding: 0;
	}
	.est-dropdown {
		border-radius: 0;
		box-shadow: none;
		display: flex;
		flex-direction: column;
		margin: 0;
		padding: var(--space--normal) var(--space--small);
		width: 100%;
	}
	
	/* Mobile menu: section links within dropdown */
	.est-megamenu__heading {
		font-weight: var(--weight--medium);
		justify-content: flex-end; /* links are row-reverse */
		width: 100%;
	}

	/* Mobile menu: tiles */
	.est-menu .est-tile {
		display: none;
	}

	/* Mobile menu: Cards */
	.est-menu .brxe-block:has(> .est-card) {
		gap: var(--space--normal);
	}
	.est-menu .est-card {
		align-items: flex-start;
		border-radius: 0;
		box-shadow: none;
		display: flex;
		flex-direction: column;
		gap: var(--space--small);
		box-shadow: none;
		padding: 0;
	}
	.est-menu .est-card .est-megamenu__heading {
		padding-inline: 0;
	}

	/* Mobile menu: Pills */
	.est-menu .est-pills {
		display: grid;
		gap: var(--space--small);
		grid-template-columns: 1fr 1fr 1fr;
		grid-template-columns: 1fr;
	}
	.est-menu .est-pills * {
		max-width: 100%;
		overflow: hidden;
	}
	.est-menu .est-pills span {
		font-size: var(--size--small);
		padding: var(--space--small);
		display: block;
		max-width: 100%;
		overflow: hidden;
		text-overflow: ellipsis;
	}

	/* Menu (mobile): footer */
	.est-menu li:has(> .est-menu__footer) {
		display: flex;
		flex: 1;
		flex-direction: column;
	}
	#est-top .est-menu__footer {
		background: transparent;
		border: none;
		display: flex;
		flex-direction: row;
		justify-content: space-between;
		margin-top: auto;
		padding-top: var(--space--normal);
	}
	#est-top .est-menu__footer:where(:hover,:focus-visible) {
		background: transparent;
		border: none;
	}
	.est-menu__footer * {
		font-size: var(--size--h4);
		width: auto;
	}

	/* Menu (mobile): socials */
	.est-menu__socials {
		align-items: center;
		display: flex;
		flex-direction: row;
		flex-wrap: nowrap;
		font-size: var(--size--h3);
		gap: var(--space--normal);
		line-height: 1;
	}
	.est-menu__socials a,
	.est-menu__social {
		align-items: center;
		display: flex;
		font-size: inherit;
		justify-content: center;
		justify-items: center;
		position: relative;
	}
	.est-menu__social:where(:hover,:focus-visible) {
		color: var(--mint);
	}
	.est-menu__socials a::before {
		content: "";
		inset: -0.5rem;
		position: absolute;
	}

}

/**********************************************************
=Footer
/*********************************************************/

/* Footer: wrapper */
.est-footer {
	padding-bottom: var(--space--normal);
}

/* Footer: all sections */
.est-footer .brxe-container + .brxe-container {
	border-top: 1px solid var(--grey--light);
	padding-top: var(--space--normal);
}

/* Footer: top wrapper */
.est-footer__top {
	align-items: flex-end;
	flex-direction: row;
	justify-content: space-between;
	flex-wrap: nowrap;
}
.est-footer__top .brxe-block {
	flex-shrink: 1;
	width: auto;
}
@media( max-width:599px ) {
	.est-footer__top {
		align-items: center;
		flex-direction: column;
		gap: var(--space--normal);
	}
	.est-footer__top h2 {
		justify-content: center;
		text-align: center;
		width: 100%;
	}
}

/* Footer top: socials */
.est-footer__socials {
	align-items: center;
	color: var(--grey);
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	font-size: var(--size--h3);
	gap: var(--space-s);
	height: var(--input__height); /* match size of form label so lines up with newsletter */
	line-height: 1;
	margin-top: var(--size--p);
}
.est-footer__socials * {
	align-items: center;
	display: flex;
	font-size: inherit;
	height: var(--size--h3);
	justify-content: center;
	justify-items: center;
	position: relative;
	width: var(--size--h3);
}
.est-footer__socials a:where(:hover,:focus-visible) {
	color: var(--mint);
}
.est-footer__socials a::before {
	content: "";
	inset: -0.5rem;
	position: absolute;
}
@media( max-width:599px ) {
	.est-footer__socials {
		align-items: center;
		height: auto;
		justify-content: center;
		margin-top: var(--space--xs);
		width: 100%;
	}
}

/* Footer top: newsletter */
.est-footer__newsletter {
	max-width: 100%;
	width: 350px;
}
#est-top .est-footer__newsletter .gform_fields {
	gap: 0;
	grid-template-columns: 1fr auto;
	grid-template-rows: 1fr;
}
#est-top .est-footer__newsletter input {
	border-radius: var(--button__radius) 0 0 var(--button__radius);
	box-shadow: inset 0 0 0 1px var(--input__border);
}
#est-top .est-footer__newsletter input:where(:hover,:focus-visible) {
	box-shadow: inset 0 0 0 1px var(--input__border--hover);
}
#est-top .est-footer__newsletter button {
	border-bottom-left-radius: 0;
	border-top-left-radius: 0;
}
#est-top .est-footer__newsletter .gfield {
	grid-column: auto;
	grid-row: 1;
}
@media( max-width:599px ) {
	.est-footer__newsletter {
		align-items: center;
	}
	.est-footer__newsletter :is(.brxe-shortcode,.gform_wrapper,form) {
		margin-inline: auto;
	}
}

/* Footer: middle wrapper */
.est-footer__middle {
	display: grid;
	gap: var(--space--large);
	grid-template-columns: 1fr 1fr 1fr minmax( 180px, 300px );
}
@media( max-width:599px ) {
	.est-footer__middle {
		gap: var(--space--normal);
	}
}

/* Footer middle: columns */
.est-footer--questions,
.est-footer__logos {
	min-width: 0;
}
.est-footer--serve {
	grid-row: 3 / span 2;
}
.est-footer--questions {
	grid-column: 4;
	grid-row: 1 / span 4;
}
.est-footer__logos {
	align-self: end;
	grid-column: 4;
	grid-row: 3 / span 2;
}
@media( max-width:900px ) {
	.est-footer__middle {
		grid-template-columns: 1fr 1fr 1fr;
	}
	.est-footer--questions {
		grid-column: 1 / span 2;
		grid-row: 5;
	}
	.est-footer__logos {
		align-self: center;
		grid-column: 3;
		grid-row: 5;
	}
}
@media( max-width:580px ) {
	.est-footer__middle {
		grid-template-columns: 1fr;
	}
	.est-footer__middle > * {
		grid-column: auto;
		grid-row: auto;
	}
}

/* Footer middle: link lists */
.est-footer h2 {
	display: flex;
}
.est-footer nav {
	align-items: start;
	flex-direction: column;
}
.est-footer ul {
	align-items: start;
	display: flex;
	flex-direction: column;
	gap: var(--space--xs);
	margin-top: var(--space--small);
}
.est-footer li {
	font-size: var(--size--small);
	line-height: 1.8cap;
}
@media( max-width:580px ) {
	.est-footer__middle > * {
		align-items: center;
		text-align: center;
	}
	.est-footer__middle li,
	.est-footer__middle .est-h6 {
		margin-inline: auto;
	}
	.est-footer__middle nav {
		align-items: center;
	}
	.est-footer__middle :is(h2,.est-h4) {
		justify-content: center;
		text-align: center;
	}
}

/* Footer middle: logos */
.est-footer__logos {
	container-type: inline-size;
	display: grid;
	gap: var(--space--small);
	grid-template-columns: repeat( 4, minmax( 0, 1fr ) );
}
.est-footer__logos img {
	border-radius: 0;
	filter: grayscale( 1 );
	height: 50px;
	min-width: 0;
	object-fit: contain;
	object-position: center;
	width: 100%;
}
@container( max-width:210px ) {
	.est-footer__logos img {
		grid-column: span 2;
	}
}

/* Footer: socket */
.est-footer__socket {
	flex-direction: row;
	font-size: var(--size--xs);
	justify-content: space-between;
}
@media( max-width:767px ) {
	.est-footer__socket {
		align-items: center;
		flex-direction: column;
		flex-wrap: nowrap;
		gap: var(--space--small);
		justify-content: center;
	}
}

/* Footer: socket contents */
.est-footer__socket :is(div,ul,li) {
	align-items: center;
	display: flex;
	margin: 0;
	padding: 0;
}
.est-footer__socket .brxe-block {
	width: auto;
}
.est-footer__socket .brx-nav-nested-items {
	flex-direction: row;
}
.est-footer__socket a {
	color: var(--black);
	font-size: var(--size--xs);
}
/* Bricks mobile nav pins these links to the top of the screen at 767px */
@media( max-width:767px ) {
	.est-footer__socket .brxe-block {
		width: 100%;
	}
	.est-footer__socket * {
		align-items: center;
		justify-content: center;
		text-align: center;
	}
	.est-footer__socket .brx-nav-nested-items {
		background: transparent;
		inset: auto;
		opacity: 1;
		overflow: visible;
		position: static;
		visibility: visible;
	}
}

/**********************************************************
=Components
/*********************************************************/

/* Each component has its own section below */

/**********************************************************
=Text with diagonal arrow
/*********************************************************/

.est-text--arrowed {
	align-self: stretch;
	display: flex;
	gap: var(--space--small);
	justify-content: space-between;
}
.est-text--arrowed::after {
	background: var(--color--heading);
	content: "";
	height: 1lh;
	overflow: hidden;
	mask-position: center;
	mask-repeat: no-repeat;
	mask-size: contain;
	transform: rotate( -45deg );
	transition: transform 0.2s ease-in-out;
	width: 1lh;
	mask-image: url("/wp-content/themes/bricks-child/images/est-icon--arrow.svg");
}
a.est-card:where(:hover,:focus-visible) .est-text--arrowed::after {
	transform: rotate( -45deg ) scale( 1.2 );
}

/**********************************************************
=Centered text rows
/*********************************************************/

/* Centered text rows */
:root {
	--centered__width: 730px;
}
#est-top .est-text--centered {
	align-items: center;
}
#est-top .est-text--centered :where(.brxe-heading,.brxe-text,.brxe-text-basic,.brxe-button,.gform_wrapper) {
	align-self: center;
	margin-inline: auto;
	max-width: min( var(--centered__width), 100% );
}
#est-top .est-text--centered :where(.brxe-heading,.brxe-text,.brxe-text-basic,h1,h2,h3,h4,h5,h6) {
	text-align: center;
}

/* Insets within centered rows */
#est-top .est-text--centered .est-inset {
	width: calc( var(--inset__padding--horizontal) + var(--centered__width) + var(--inset__padding--horizontal) );
}

/**********************************************************
=Inset row
/*********************************************************/

/* Inset: row */
.est-inset {
	--inset__padding--horizontal: var(--space--large);
	--inset__padding--vertical: var(--space--large);
	padding-bottom: 0;
}
.brxe-section.est-inset:not(:first-child) {
	padding-top: 0;
}
.est-inset:has(+ [class*="est-bg"]) {
	padding-bottom: var(--space--bottom);
}
@media( max-width:767px ) {
	.est-inset {
		--inset__padding--horizontal: var(--space--normal);
	}
}

/* Inset: container with black background */
.est-inset > .brxe-container {
	background: var(--black);
	border-radius: var(--radius-l);
	overflow: hidden;
	padding: var(--inset__padding--vertical) var(--inset__padding--horizontal);
	position: relative;
	z-index: 1;
}
.est-inset > .brxe-container::after {
	/*background: linear-gradient( to top right, rgba(0,0,0, 0.9), rgba( 0,0,0, 0.1) );*/
	background: linear-gradient( to top right, rgba( from var(--black) r g b / 1 ), rgba( from var(--black) r g b / 0.2 ) );
	/* background: linear-gradient( 50deg, rgba(0,0,0, 0.9), rgba( 0,0,0, 0.1) ); */
	/* backdrop-filter: saturate(200%); */
	/* background: linear-gradient( to top right, rgba(0,0,0, 0.9), rgba( 0,0,0, 0.5) 50%, rgba( 0,0,0, 0 ) ); */
	/* background: linear-gradient( to top right, rgba(0,0,0, 0.9), rgba( 0,0,0, 0.3) max(600px, 75%), rgba( 0,0,0, 0 ) );	 */
	content: "";
	inset: 0;
	position: absolute;
	z-index: -1;
}
/* Inset: let the date picker stick out when there's a form and no background image */
.est-inset:has(form):not(:has(.est-inset__image)) > .brxe-container {
	overflow: visible;
}
.est-inset:has(form):not(:has(.est-inset__image)) > .brxe-container::after {
	display: none;
}

/* Inset: background image */
.est-inset__image,
.est-inset__video {
	border-radius: 0;
	height: 100%;
	inset: 0;
	object-fit: cover;
	object-position: center;
	position: absolute;
	width: 100%;
	z-index: -1;
}

/* Inset row with video */
/*.est-inset:has(video) > .brxe-container {
	overflow: hidden;
	position: relative;
}*/
/*.est-inset:has(video) .bricks-background-video-wrapper::after,*/
/*.est-inset > .brxe-container::after {
	background: linear-gradient( to top right, rgba(0,0,0, 0.9), rgba( 0,0,0, 0.3) );
	content: "";
	inset: 0;
	position: absolute;
}*/
/*.est-video__poster {
	border-radius: 0;
	filter: blur(2px);
	height: 100%;
	inset: 0;
	object-fit: cover;
	object-position: center;
	position: absolute;
	width: 100%;
}*/

/* Nested containers within inset */
.est-inset .brxe-heading + .brxe-container {
	margin-top: var(--space--normal);
}

/* Inset within inset */
.est-inset .est-inset {
	background: var(--black--dark);
	border-radius: var(--radius--normal);
	padding: var(--space-m);
}

/**********************************************************
=Hero
/*********************************************************/

/* Hero: inset */
.est-hero.est-inset > .brxe-container {
	padding-top: min( 300px, 25vh );
}

/* Hero: inset text */
.est-hero.est-inset :is(.brxe-heading,.brxe-text,.brxe-text-basic) {
	max-width: min( 500px, 100% );
}

/*.est-hero > .brxe-container {
	position: relative;
}
.est-hero .brxe-container .brxe-container {
	z-index: 1;
}
.est-hero__image,
.est-hero__video {
	height: 100%;
	inset: 0;
	object-fit: cover;
	object-position: center;
	position: absolute;
	width: 100%;
}
.est-hero__spacer {
	display: none;
	min-height: 0;
}
@media( min-width:991px ) {
	.est-hero__spacer {
		display: block;
	}
}*/

/**********************************************************
=Background rows
/*********************************************************/

/* Background rows: all */
#est-top .brxe-section[class*="est-bg--"] {
	background-color: var(--background);
}

/* Background rows: black */
#est-top .est-bg--black {
	--background: var(--black);
}

/* Background rows: grey */
#est-top .est-bg--grey {
	--background: var(--white--dark);
}

/**********************************************************
=Split rows
/*********************************************************/

/* Split rows (heading on left, button on bottom right) */
/* @media( max-width:499px ) {
	.est-text--split {
		flex-direction: column;
	}
} */
@media( min-width:500px ) {
	.est-text--split {
		flex-direction: row;
		flex-wrap: nowrap;
		gap: var(--space--normal);
		justify-content: space-between;
	}
	.est-text--split > .brxe-heading,
	.est-text--split > .brxe-block:first-child {
		flex-basis: 730px;
		flex-shrink: 1;
		max-width: 100%;
	}
	.est-text--split > .brxe-button,
	.est-text--split > .brxe-block:last-child {
		align-self: flex-end;
		flex: none;
		width: auto;
	}
}

/**********************************************************
=Staggered rows
/*********************************************************/

/* Staggered: container */
.est-staggered,
:where(.est-staggered > .brxe-container) {
	align-items: center;
	flex-direction: row;
}
@media( max-width:989px ) {
	/*.est-staggered {
		flex-direction: column;
	}*/
	.est-staggered {
		gap: var(--space--normal);
	}
}

/* Staggered: content */
.est-staggered__content {
	padding-block: var(--space-xl);
}
.est-staggered--flat .est-staggered__content {
	padding-block: 0;
}
@media( max-width:989px ) {
	.est-staggered__content {
		padding-block: 0;
	}
}

/* Staggered: media */
.est-staggered__media {
	align-self: stretch;
	border-radius: var(--radius--image);
	display: flex;
	/*min-height: 300px;*/
	position: relative;
}
@media( max-width:767px ) {
	.est-staggered__media {
		order: -1;
	}
}
@media( max-width:767px ) {
	/*.est-staggered__media .est-masonry {
		grid-template-columns: 1fr;
		grid-template-rows: 1fr;
	}
	.est-staggered__media .est-masonry > :nth-child(1) {
		grid-column: 1 / -1;
		grid-row: 1;
	}
	.est-staggered__media .est-masonry > :nth-child( 1n + 2 ) {
		display: none;
	}*/
}
.est-staggered__media .est-card {
	height: 100%;
}
.est-staggered__media .est-stats {
	align-self: center;
}
.est-staggered__media:has(> .est-stats:first-child:last-child) {
	flex-direction: row;
}

:where(.est-staggered__media > .est-masonry) {
	inset: 0;
	position: absolute;
}
@media( max-width:767px ) {
	:where(.est-staggered__media > .est-masonry) {
		position: static;
	}
}
:where(.est-staggered__media > img) {
	height: 100%;
	inset: 0;
	object-fit: cover;
	/*object-position: center;*/
	position: absolute;
	width: 100%;
}
@media( max-width:767px ) {
	:where(.est-staggered__media > img) {
		height: min( 300px, 35vh ); /* debug, see if it breaks anything */
		position: static;
		width: 100%;
	}
}

/**********************************************************
=Images and videos
/*********************************************************/

/* By default, give images a radius */
img {
	border-radius: var(--radius--image);
}

/* Transition effects on images in cards and masonry */
.est-card__image,
.est-card__video,
.est-masonry__item :where(img,video) {
	transform: scale(1);
}
a.est-card:where(:hover,:focus-visible) .est-card__image,
a.est-card__image:where(:hover,:focus-visible),
a.est-masonry__item:where(:hover,:focus-visible) :where(img,video),
a.est-masonry__item:where(:hover,:focus-visible) + .est-video--lightbox video {
	transform: scale(1.1);
}

/* When a video is meant to open a lightbox, we have to let the click event pass through the video onto its poster */
.est-video--lightbox {
	pointer-events: none;
}

/* When an image opens a lightbox, it's wrapped in <a>, so we need to inherit */
.bricks-lightbox.est-masonry__item img,
.bricks-lightbox.est-masonry__item video {
	object-fit: inherit;
	object-position: inherit;
}

/**********************************************************
=Password protected content
/*********************************************************/

/* By default, hide content and error message */
.est-gate__content {
	display: none;
}
.est-gate__error {
	display: none;
}

/**********************************************************
=Addresses
/*********************************************************/

address {
	font-size: var(--size--small);
	font-style: normal;
	line-height: 1.1;
}

/**********************************************************
=Accordion
/*********************************************************/

/* Accordion item */
.brxe-accordion-nested {
	--accordion__background: var(--white--dark);
	--accordion__padding: var(--space--normal);
	width: 100%;
}
.est-text--on-dark .brxe-accordion-nested {
	--accordion__background: var(--black--dark);
}
.brxe-accordion-nested > .brxe-block {
	border-radius: var(--radius--normal);
	overflow: hidden;
}

/* Accordion title */
.accordion-title-wrapper {
	align-items: flex-start;
	background: var(--accordion__background);
	display: flex;
	justify-content: space-between;
	padding: var(--accordion__padding);
	user-select: none;
}
.est-text--on-dark .accordion-title-wrapper {
	color: var(--white); /* required to make underline work well */
}

/* Accordion icon */
.accordion-title-wrapper i {
	align-items: center;
	background: var(--grey--lighter);
	border-radius: var(--radius--small);
	color: var(--color--heading);
	display: inline-flex;
	flex: none;
	height: 2lh;
	justify-content: center;
	padding: var(--space--small);
	text-decoration: none;
	transition: transform 0.1s linear;
	width: 2lh;
}
.est-text--on-dark .accordion-title-wrapper i {
	background: var(--black);
}
.accordion-title-wrapper:where(:hover,:focus-visible) i {
	background: var(--grey--light);
	text-decoration: none;
}
.est-text--on-dark .accordion-title-wrapper:where(:hover,:focus-visible) i {
	background: var(--grey);
}

/* Accordion content */
.accordion-content-wrapper {
	background: var(--accordion__background);
	padding: var(--accordion__padding);
	padding-top: 0;
}

/* Accordion items beside each other */
.brxe-accordion-nested {
	display: flex;
	flex-direction: column;
	gap: var(--space--normal);
}

/**********************************************************
=Table of contents
/*********************************************************/

/* Table of contents within content */
.brxe-post-toc {
	width: 100%;
}
.toc-list {
	display: flex;
	flex-direction: column;
	gap: var(--space--xs);
	width: 100%;
}
.toc-link {
	align-items: flex-start;
	background: var(--white--dark);
	border-radius: var(--radius--normal);
	color: var(--black);
	display: flex;
	font-size: var(--size--small);
	font-weight: var(--weight--medium);
	gap: var(--space--small);
	justify-content: space-between;
	padding: var(--space--small);
}
.toc-link::after {
	align-items: center;
	border-radius: var(--radius--small);
	box-shadow: inset 0 0 0 1px currentcolor;
	content: "\f118";
	display: inline-flex;
	flex: none;
	font-family: "ionicons";
	height: 1lh;
	justify-content: center;
	text-decoration: none;
	width: 1lh;
}
.toc-link:where(:hover,:focus-visible)::after {
	background: var(--black);
	box-shadow: inset 0 0 0 1px var(--black);
	color: var(--white);
}

/* Table of contents within sidebar */
.est-blog__sidebar .brxe-heading + .brxe-post-toc {
	margin-top: var(--space--small);
}
.est-blog__sidebar .toc-list {
	gap: 0;
}
.est-blog__sidebar .toc-list-item + .toc-list-item {
	border-top: 1px solid var(--grey--light);
	margin-top: var(--space--xs);
	padding-top: var(--space--xs);
}
.est-blog__sidebar .toc-link {
	background: transparent;
	font-size: var(--size--xs);
	font-weight: var(--weight--normal);
	padding: 0;
}

/**********************************************************
=Plaques
/*********************************************************/

/* Plaques: wrapper */
#est-top .est-plaques {
	align-items: stretch;
	display: grid;
	column-gap: var(--space--large);
	row-gap: var(--space--normal);
	grid-template-columns: 1fr;
}
@media( min-width:768px ) {
	/* Wrapper w/ even number of plaques */
	#est-top .est-plaques:has(.est-plaque:nth-child(2)) {
		grid-template-columns: 1fr 1fr;
	}
}
@media( min-width:990px ) {
	/* Wrapper w/ multiples of 3 */
	#est-top .est-plaques:has(.est-plaque:nth-child(3n):last-child) {
		grid-template-columns: 1fr 1fr 1fr;
	}
}

/* Plaque: individual container */
#est-top .est-plaque {
	align-items: center;
	flex-direction: row;
	gap: var(--space--xs);
	width: 100%;
}

/* Plaque: illustration */
#est-top .est-plaque__illustration {
	background-color: var(--white--dark);
	background-position: center;
	background-repeat: no-repeat;
	background-size: 0 0;
	border-radius: var(--radius--small);
	flex: none;
	margin-right: var(--space--xs);
	min-height: 3lh;
	position: relative;
	width: 3lh;
}
#est-top .est-plaque__illustration::after {
	background: inherit;
	background-color: transparent;
	background-size: contain;
	content: "";
	inset: var(--space--xs);
	position: absolute;
}
#est-top .est-text--on-dark .est-plaque__illustration {
	background-color: var(--black--dark);
	filter: invert(1) hue-rotate(186deg) brightness(3) saturate(0.5);
}

/* Plaque: content */
#est-top .est-plaque__content {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding-block: var(--space--xs);
}

/* Plaque: arrow symbol */
#est-top .est-plaque__symbol {
	align-items: center;
	color: var(--color--heading);
	display: flex;
	font-size: var(--size--small);
	transition: transform 0.2s ease-in-out;
	/*width: var(--text-s);*/
}
#est-top a.est-plaque .est-plaque__symbol {
	transform: translateX( 0px )

}
#est-top a.est-plaque:where(:hover,:focus-visible) .est-plaque__symbol {
	transform: translateX( 3px );
}
#est-top .est-plaque__symbol i {
	color: inherit;
	font-size: inherit;
	text-decoration: none;
}

/**********************************************************
=Tabs
/*********************************************************/

/* Tabs: navigation */
/* See: filters section */

/* Tabs: inner wrapper */
.est-tabs__inner {
	gap: var(--space--normal);
}

/* Tabs: content */
/*.est-tabs__content {
	flex: 2;
	max-width: 100%;
	width: 400px;
}*/

/* Tabs: media */
/*.est-tabs__media {
	display: grid;
	flex: 3;
}*/

/**********************************************************
=Filters
/*********************************************************/

/* Filters: wrapper */
.est-filters {
	align-self: center;
	background: var(--white--dark);
	border-radius: var(--radius--normal);
	justify-self: center;
	line-height: 1;	/* fix rendering bug with space above buttons */
	margin-bottom: var(--space--normal);
	margin-inline: auto;
	padding: var(--space--small);
	width: auto;
}
.est-filters,
.est-filters .brx-filter-options {
	align-items: center;
	flex-direction: row;
	display: flex;
	gap: var(--space--xs);
	justify-content: center;
}
.est-filters .brxe-button {
	--button__background: transparent;
	--button__border: transparent;
	--button__color: var(--black);
	--button__background--hover: var(--mint);
	--button__border--hover: var(--mint);
	--button__color--hover: var(--black);
}
.est-filters .brx-open .brxe-button, /* tabs navigation */
.est-filters .brx-option-active.brxe-button { /* query filter */
	--button__background: var(--black);
	--button__border: var(--black);
	--button__color: var(--white);
	--button__background--hover: var(--mint);
	--button__border--hover: var(--mint);
	--button__color--hover: var(--black);
}

/* Filters: smaller version */
.est-filters--small {
	--button__padding: 1.5ch;
	--button__size: var(--size--xs);
	background: transparent;
	padding: 0;
}
.est-filters--small .brxe-button {
	--button__background: transparent;
	--button__border: var(--grey--light);
	--button__color: var(--black);
	--button__background--hover: var(--grey--dark);
	--button__border--hover: var(--grey--dark);
	--button__color--hover: var(--white);
}
.est-filters--small .brx-open .brxe-button, /* tabs navigation */
.est-filters--small .brx-option-active.brxe-button { /* query filter */
	--button__background: var(--mint);
	--button__border: var(--mint);
	--button__color: var(--white);
	--button__background--hover: var(--mint);
	--button__border--hover: var(--mint);
	--button__color--hover: var(--black);
}

/* When a filter button is clicked, Bricks replaces the whole filter container, so there can be weird flashes/transitions of color */
.est-filters .brx-option-active.brxe-button {
	transition: background 0.2s ease-in-out, box-shadow 0.2s ease-in-out, color 0.2s ease-in-out; /* Exclude text color from transition to prevent flashing */
	@starting-style {
		color: var(--black); /* Manually set the color to black at start to avoid another instance of wrong color flashing */
	}
}

/* Filters: don't dim the buttons while Bricks reloads the results */
.est-filters .brx-filter-disabled label {
	opacity: 1;
}

/* Results: fade in new results */
.est-filters__results > a {
	transition: opacity 0.2s ease-in-out;
	@starting-style {
		opacity: 0;
	}
}

/* Subtabs: fade out and in on tab switch */
.est-filters--small.tab-menu + .tab-content {
	display: grid; /* we make a 1col/1row grid and put all tabs on it while fading, otherwise they'd stack since both are temporarily displayed */
}
.est-filters--small.tab-menu + .tab-content > .tab-pane {
	grid-area: 1 / 1;
	opacity: 0;
	transition: opacity 0.2s ease-in-out, display 0.2s allow-discrete;
}
.est-filters--small.tab-menu + .tab-content > .tab-pane.brx-open {
	opacity: 1;
	@starting-style {
		opacity: 0; /* display:none has no previous opacity to fade from */
	}
}

/**********************************************************
=Dropdowns
/*********************************************************/

/* Dropdown: toggle button */
.brx-submenu-toggle {
	--dropdown__background: var(--white);
	--dropdown__border: var(--white);
	--dropdown__color: var(--black);
	background: var(--dropdown__background);
	border-radius: var(--radius-xs);
	box-shadow: inset 0 0 0 1px var(--dropdown__border);
	color: var(--dropdown__color);
	font-size: var(--size--xs);
	gap: var(--space-2xs);
	padding: var(--space-xs);
	text-decoration: none;
	user-select: none;
}

/* Dropdowns: toggle button (hover) */
.brx-submenu-toggle:where(:hover,:focus-visible) {
	--dropdown__background: var(--white);
	--dropdown__border: var(--grey--light);
	--dropdown__color: var(--black);
}

/* Dropdowns: toggle button (open) */
.open > .brx-submenu-toggle {
	--dropdown__background: var(--mint--lighter);
	--dropdown__border: var(--mint--light);
	--dropdown__color: var(--black);
}

/*

old light #71E8D5

old lighter #D9EDEA

new light from vada b1dfd9

new lighter from vada e1faf3

*/

/* Dropdown: icon */
.brx-submenu-toggle button {
	display: inline-flex;
	height: 0.8em;
	min-height: 0;
	min-width: 0;
	width: 0.8em;
}
.brx-submenu-toggle svg {
	background: transparent;
	display: inline-flex;
	height: 100%;
	min-height: 0;
	min-width: 0;
	transition: background 0.2s ease-in-out, transform 0.2s ease-in-out;
	transform: rotate( 0deg );
	width: 100%;
}

/* Dropdowns: icon (open) */
.open > .brx-submenu-toggle svg  {
	--dropdown__background: var(--mint);
	--dropdown__color: var(--white);
	transform: rotate( 180deg );
}

/* Dropdowns: container (card) */
.brx-dropdown-content.est-card {
	max-width: none;
	min-width: 0;
}

/**********************************************************
=Icons
/*********************************************************/

/* Icons: all icons */
#est-top .icon i {
	align-items: center;
	display: inline-flex;
}
#est-top .icon i::before {
	font-size: 1lh;
}

/* Icons: custom icon masks */
#est-top .ion-ios-arrow-round-forward,
#est-top .ion-ios-arrow-round-back,
#est-top .ion-ios-play {
	background: currentcolor;
	height: 1cap;
	overflow: hidden;
	mask-position: center;
	mask-repeat: no-repeat;
	mask-size: contain;
	width: 1cap;
}
#est-top .ion-ios-arrow-round-forward {
	mask-image: url("/wp-content/themes/bricks-child/images/est-icon--arrow.svg");
}
#est-top .ion-ios-arrow-round-back {
	mask-image: url("/wp-content/themes/bricks-child/images/est-icon--arrow.svg");
	rotate: 180deg; /* can't use transform because .icon uses it */
}
#est-top .ion-ios-play {
	mask-image: url("/wp-content/themes/bricks-child/images/est-icon--play.svg");
}

/**********************************************************
=Lightboxes
/*********************************************************/

.pswp__img {
	border-radius: 0;
}

/**********************************************************
=Sliders
/*********************************************************/

/* All sliders: make shadows and horizontal overflow visible*/
#est-top .brxe-section:has(.est-slider) {
	overflow: hidden;
}
#est-top .est-slider .splide__track {
	overflow: visible;
}

/* Sliders: pagination */
#est-top .est-slider:has(.splide__pagination) {
	--pagination__height: var(--space--small);
	padding-bottom: calc( var(--pagination__height) + var(--space--small) );
}
#est-top .est-slider .splide__pagination {
	bottom: 0;
	gap: var(--space--small);
	height: var(--pagination__height);
}
#est-top .est-slider .splide__pagination__page {
	align-items: center;
	background: var(--grey);
	border-radius: var(--radius--normal);
	display: inline-flex;
	height: var(--pagination__height);
	justify-content: center;
	margin: 0;
	width: var(--pagination__height);
}
#est-top .est-slider .splide__pagination__page:where(:hover,:focus-visible) {
	box-shadow: 0 0 0 2px var(--mint);
}

/* Sliders: animated pagination */
@keyframes fillPagination {
	from {
		background-position: 100% 0;
	}
	to {
		background-position: 0 0;
	}
}
#est-top .est-slider--animated .splide__pagination__page.is-active {
	animation: fillPagination var(--slide__time) linear;
	background-image:
		radial-gradient( circle at center, var(--mint) calc( var(--pagination__height) / 2 ), transparent 0 ),
		linear-gradient( to right, var(--mint) 50%, transparent 0 );
	background-repeat: no-repeat;
	background-position: 100% 0;
	background-size: 200% 100%;
	width: var(--space--large);
}
#est-top .est-slider--animated:where(:hover,:focus-visible) .splide__pagination__page.is-active,
#est-top .est-slider--paused .splide__pagination__page.is-active {
	animation: none;
}
#est-top .est-slider--animated:where(:hover,:focus-visible) .splide__pagination__page.is-active::after,
#est-top .est-slider--paused .splide__pagination__page.is-active::after {
	color: var(--mint--light);
	content: "\f478"; /* pause */
	font-family: "Ionicons";
	font-size: var(--pagination__height);
}

/* Sliders: arrows */
#est-top .est-slider:has(+ .est-slider__arrows) .splide__arrow {
	border: 0;
	clip: rect( 0 0 0 0 );
	clip-path: inset( 50% );
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	white-space: nowrap;
	width: 1px;
}
#est-top .est-slider + .est-slider__arrows {
	margin-top: var(--space--normal);
}

/* Sliders: examples */
.est-slider--examples {
	--card__height: 350px;
	--card__width: 380px;
}
@media( max-width:767px ) {
	.est-slider--examples {
		--card__height: 270px;
		--card__width: 300px;
	}
}

/* Sliders: mockups */
.est-slider--mockups {
	--card__height: 300px;
	--card__width: 400px;
}
@media( max-width:767px ) {
	.est-slider--mockups {
		--card__height: 225px;
		--card__width: 300px;
	}
}

/* Sliders: testimonials */
@media( max-width:767px ) {
	.est-slider--testimonials .est-card {
		align-items: stretch;
		flex-direction: column;
		justify-content: flex-start;
	}
	.est-slider--testimonials .est-quote {
		font-size: var(--size--p);
		font-weight: var(--weight--bold);
	}
	.est-slider--testimonials.est-slider .est-card__content {
		flex: none;
	}
	.est-slider--testimonials.est-slider .est-card__media {
		flex: 1;
		height: auto;
		min-height: min( 40vw, 200px );
		width: 100%;
	}
	.est-slider--testimonials .est-card--horizontal .est-card__media::before {
		padding-top: 0;
		width: 0;
	}
	.est-slider--testimonials .est-stats {
		flex-wrap: nowrap;
	}
	#est-top .est-slider--testimonials .est-stats > * {
		flex-basis: 0;
		max-width: none;
		min-width: 0;
	}
}
@media( max-width:400px ) {
	#est-top .est-slider--testimonials .est-stats {
		align-items: stretch;
		flex-direction: column;
	}
}

/**********************************************************
=Sliders (wide active slide)
/*********************************************************/

/* Wide active slide: slide container */
.est-slider--wide .splide__slide {
	display: flex;
	flex-direction: row;
	overflow: visible;
	width: 300px;
}

/* Wide active slide: tile */
.est-slider--wide .est-tile {
	flex: none;
	width: inherit;
}
@media( min-width:600px ) {
	.est-slider--wide .est-tile {
		transition: width 0.2s ease-in-out;
	}
}
.est-slider--wide .est-tile {
	max-width: none;
}

/* Wide active slide: active */
.est-slider--wide .splide__slide.is-wide {
	max-width: 100%;
	width: 100%;
}
@media( min-width:600px ) {
	.est-slider--wide .splide__slide.is-wide {
		width: 500px;
	}
}

/* Wide active slide: text */
.est-slider--wide .splide__slide .brxe-text-basic {
	margin-top: 0;
	max-height: 0;
	overflow: hidden;
}
.est-slider--wide .splide__slide .brxe-text-basic::before {
	border: 1px;
	content: "";
	display: block;
	height: 15px;
}
.est-slider--wide .splide__slide.is-wide .brxe-text-basic {
	max-height: 400px;
}

/* Wide active slide: pane */
.est-slider--wide .splide__slide .est-tile__pane {
	align-items: center;
}
.est-slider--wide .splide__slide.is-wide .est-tile__pane {
	align-items: flex-end;
}

/* Wide active slide: neighbors */
.est-slider--wide .splide__slide:has(+ .is-active) {
	align-items: flex-start;
}
.est-slider--wide .splide__slide.is-active + .splide__slide {
	align-items: flex-end;
}

/**********************************************************
=Tiles
/*********************************************************/

/* Tile: individual tile */
.est-tile {
	--tile__padding: var(--space--small);
	--pane__padding: var(--space--normal);
	align-items: flex-end;
	align-self: stretch;
	background-color: var(--black);
	background-position: center;
	background-size: cover;
	border-radius: var(--radius--normal);
	display: grid;
	grid-template-columns: minmax( 0, 1fr ); /* one column, always the full tile */
	height: var(--tile__height, auto); /* allow height to be set manually */
	max-width: 100%;
	overflow: hidden;
	padding: var(--tile__padding);
	position: relative;
	width: var(--tile__width, 100%);
}

/* Tile: vertical spacer (for default height) */
.est-tile::before {
	content: "";
	display: block;
	grid-column: 1 / -1;
	padding-top: var(--tile__top, 200px);
	width: 100%;
	z-index: 1;
}

/* Tile: background gradient */
.est-tile::after {
	background: linear-gradient( to bottom, transparent, transparent 20%, rgb( 0,0,0, 0.7 ) );
	content: "";
	inset: 0;
	pointer-events: none;
	position: absolute;
}

/* Tile: image */
.est-tile__image {
	border-radius: 0;
	height: 100%;
	inset: 0;
	object-fit: cover;
	object-position: center;
	position: absolute;
	transform: scale(1);
	transition: transform 0.2s ease-in-out;
	width: 100%;
}
a.est-tile:where(:hover,:focus-visible) .est-tile__image {
	transform: scale( 1.05 );
}

/* Tile: video */
.est-tile__video,
.est-tile__video video {
	height: 100%;
	object-fit: cover;
	object-position: center;
	position: absolute;
	width: 100%;
}

/* Tile: pane */
.est-tile__pane {
	align-items: flex-end;
	backdrop-filter: blur( var(--space-xs) ) brightness( 1.5 );
	backdrop-filter: contrast( 0.5 ) brightness( 1.5 ) blur(var(--space-xs) );
	background: linear-gradient( to bottom, rgba( 0,0,0, 0.7 ) 10%, rgb( 0,0,0, 0.9 ) );
	border-radius: var(--radius--normal);
	box-shadow: var(--shadow--glass);
	display: flex;
	flex: 1;
	flex-direction: row;
	flex-wrap: nowrap;
	gap: var(--space--small);
	grid-column: 1 / -1;
	justify-content: space-between;
	justify-self: stretch;
	padding: var(--pane__padding);
	position: relative;
	width: 100%;
	z-index: 1;
}

/* Tiles: content */
.est-tile__content {
	align-self: center;
	flex: 1;
	min-width: 0; /* let the title wrap so the pane can stay full width */
}
.est-tile__text {
	font-size: var(--size--xs);
	font-weight: var(--weight--normal);
}

/* Tiles: logo */
.est-tile__logo {
	border-radius: 0;
	display: block; /* need this or text-box properties cause weird clipping */
	filter: grayscale(1);
	height: 60px;
	max-width: 100%;
	object-fit: contain;
	object-position: left center;
	width: 150px;
}
.est-tile__logo + * {
	margin-top: var(--space--normal);
}

/* Tile: transitions */
.est-tile .brxe-heading {
	transition: color 0.1s linear 0s, text-decoration 0.1s linear 0s; /* by default, heading changes color/underline immediately */
}
.est-slide.is-wide .est-tile .brxe-heading {
	transition: color 0.1s linear 0.2s, text-decoration 0.1s linear 0s; /* in animated sliders, heading waits until movement is finished to change color, but underline is still immediate */
}
.est-tile__text {
	transition: color 0.1s linear 0s, max-height 0s ease-in-out 0s, text-decoration 0.1s linear 0s; /* same defaults as heading, except we also account for max-height; by default, it changes instantly so tiles being animated out of a slider do not collapse weirdly */
}
.est-slide.is-wide .est-tile__text {
	transition: color 0.1s linear 0.2s, max-height 0.2s ease-in-out 0.2s, text-decoration 0.1s linear 0s; /* in animated sliders, the max-height also waits until movement is finished; others same as heading */
}
.est-tile__image {
	transition: transform 0.2s ease-in-out 0s; /* images only need their zoom animated, and only matters for hover */
}

/* Tile: alternate frame view (initially for podcasts, but design changed; keeping just in case) */
/*.est-tile:has([slug="podcast"]):first-child {
	grid-template-rows: 1fr min-content;
}
.est-tile:has([slug="podcast"]):first-child::before {
	display: none;
}
.est-tile:has([slug="podcast"]):first-child::before {
	--cutout__radius: var(--radius--normal);	
	background-color: rgba( 0,0,0, 0.7 );
	backdrop-filter: contrast( 0.5 ) brightness( 1.5 ) blur(var(--space-xs) );
	border-radius: var(--radius--normal) var(--radius--normal) 0 0;
	box-shadow: var(--shadow--glass);
	content: "";
	display: block;
	height: calc( 100% + 10px );
	margin-bottom: -10px;
	mask-image:
		linear-gradient( white ), /* top row *
		linear-gradient( to top, transparent, white 5px ), /* left column *
		linear-gradient( to top, transparent, white 5px ), /* right column *
		radial-gradient( circle at 100% 100%, transparent var(--cutout__radius), white var(--cutout__radius) ), /* top left cirlce, at x, y *
		radial-gradient( circle at 0% 100%, transparent var(--cutout__radius), white var(--cutout__radius) ) /* top right circle, at x, y *;
	mask-composite: add;
	mask-position:
		left 0rem top 0rem,
		left 0rem top 0rem,
		right 0rem top 0rem,
		left calc( 1rem - 0.5px ) top calc( 1rem - 0.5px ),
		right calc( 1rem - 0.5px ) top calc( 1rem - 0.5px );
	mask-repeat: no-repeat;
	mask-size: /* width, height *
		100% 1rem,
		1rem 100%,
		1rem 100%,
		var(--cutout__radius) var(--cutout__radius),
		var(--cutout__radius) var(--cutout__radius);
	width: calc( 100% + 0px );
	z-index: 2;
}
.est-tile:has([slug="podcast"]):first-child .est-tile__pane {
	border-top-left-radius: 0;
	border-top-right-radius: 0;
	mask-image:
		linear-gradient( to right, transparent 1rem, white 0, white calc( 100% - 1rem + 1px ), transparent 0 ) /* top row *,
		linear-gradient( white) /* everything else *;
	mask-composite:
		add;
	mask-position:
		top 0px left 0px,
		top 5px left 0;
	mask-repeat:
		no-repeat;
	mask-size:
		100% 5px,
		100% 100%;
}
.est-tile:has([slug="podcast"]):first-child .est-tile__content {
	flex: 1;
}*/

/**********************************************************
=Popups
/*********************************************************/

/* Make popup content fade in */
.brx-popup.hide .brx-popup-content {
	opacity: 0;
}
/* Popup outer container */
.brx-popup-content {
	background: transparent;
	max-height: 100%;
	min-height: 0; /* flex item, so the cap can shrink it */
	opacity: 1;
	overflow: visible;
	padding: 0;
	pointer-events: none; /* so you can click invisible padding and popup will close */
	transition: opacity 0.2s ease-in-out;
}
.brx-popup-content > * {
	pointer-events: initial;
}
#est-top .brx-popup-content {
	width: 100%;
}
/* Popup backdrop */
.brx-popup-backdrop {
	transition: opacity 0.1s ease-in-out;
}

/* Popup: close */
.est-popup__close {
	aspect-ratio: 1;
	justify-content: center;
	padding: var(--space--small);
	position: absolute;
	right: var(--space--small);
	top: var(--space--small);
	z-index: 2;
}

/* Inset section as popup */
.brx-popup-content > .est-inset {
	max-height: 100%;
	overflow: visible;
	padding-block: var(--space--normal);
	pointer-events: none;
}
.brx-popup-content > .est-inset > .brxe-container {
	box-shadow: var(--shadow--popup);
	max-height: 100%;
	overflow-y: auto;
	pointer-events: initial;
}

/* Form insets set overflow visible so the date picker can stick out. In a popup the row scrolls instead */
#est-top .brx-popup-content > .est-inset:has(form) > .brxe-container {
	overflow-y: auto;
}

/* Bricks wraps sections, containers, and blocks at 767, which shoves the form out of the side of a column popup */
@media( max-width:767px ) {
	.brx-popup :is(.brxe-section,.brxe-container,.brxe-block) {
		flex-wrap: nowrap;
	}
}

/**********************************************************
=Team members
/*********************************************************/

/* Team: media */
.est-team__media {
	container-type: inline-size;
}
.est-team__media .est-masonry {
	grid-template-columns: 1fr 1fr;
	grid-template-rows:
		2fr
		1fr
		minmax( calc( 50cqw - ( var(--space--normal) / 2 ) ), min-content ); /* the row containing the palette must be tall enough to make the palette square, but must also grow if the palette text is too long */
}
.est-team__media .est-masonry > :nth-child(1) {
	grid-column: 1 / -1;
}
.est-team__media .est-masonry > :nth-child(2) {
	grid-column: 1 / -1;
}
.est-team__media .est-palette {
	--palette__height: auto; /* ratio will keep it square as minimum height, but must be allowed to grow for long text */
	--palette__ratio: 100%;
}
@media( max-width:899px ) {
	.est-team .est-palette {
		--palette__height: 100%;
	}
}
.est-team__media .est-masonry__item img {
	position: absolute; /* remove intrinsic image size from grid calculations */
}

/* Team: put content and media into one grid so they can position differently on mobile */
@media( max-width:899px ) {
	.est-team {
		display: grid;
		grid-template-columns: 1fr;
		grid-template-rows: 60vw auto 40vw 40vw;
	}
}
@media( max-width:899px ) {
	#est-top .est-team__media {
		display: grid;
		grid-column: 1;
		grid-row: 1 / -1;
		grid-template-rows: inherit;
	}
	.est-team__content {
		grid-column: 1;
		grid-row: 2;
	}
	#est-top .est-team .est-masonry {
		display: grid;
		grid-column: 1;
		grid-row: 1 / -1;
		grid-template-columns: 1fr 1fr;
		grid-template-rows: subgrid;
		position: static;
	}
	.est-team .est-masonry > :nth-child(1) {
		grid-row: 1;
	}
	.est-team .est-masonry > :nth-child(2) {
		grid-row: 3;
	}
	.est-team .est-masonry > :nth-child(3) {
		grid-row: 4;
	}
	.est-team .est-masonry > :nth-child(4) {
		grid-row: 4;
	}
}

/**********************************************************
=Palettes
/*********************************************************/

/* Palette */
.est-palette {
	align-items: flex-start;
	background-color: var( --palette__background, var(--black) );
	border-radius: var(--radius--image);
	container-type: inline-size;
	display: flex;
	flex-direction: row;
	gap: 0;
	height: var( --palette__height, 100% );
	overflow: hidden;
	padding: var( --palette__padding, var(--space--normal) );
	position: relative;
	width: var( --palette__width, 100% );
}

/* Palette: hack to force aspect ratio as minimum height */
.est-palette::before {
	content: "";
	flex: none;
	padding-top: var( --palette__ratio, 100% );
	width: 1px;
}
.est-palette > * {
	flex: 1;
}

/* Palette: attempt to prevent long words from overflowing */
.est-palette > * {
	font-size: var( --palette__size, min( var(--size--h2), 15cqw ) );
}

/* Palette: image */
.est-palette__image {
	border-radius: 0;
	height: 100%;
	inset: 0;
	object-fit: cover;
	object-position: center;
	position: absolute;
	width: 100%;
	z-index: -1;
}

/* Palettes: automatic colors */
:where( .est-palettes > :nth-child( 6n + 1 ) ),
.est-palette--mint {
	--palette__background: #3BB0A1; /* mint */
}
:where( .est-palettes > :nth-child( 6n + 2 ) ),
.est-palette--purple {
	--palette__background: #794BAB; /* purple */
}
:where( .est-palettes > :nth-child( 6n + 3 ) ),
.est-palette--pink {
	--palette__background: #E63888; /* pink */
}
:where( .est-palettes > :nth-child( 6n + 4 ) ),
.est-palette--blue {
	--palette__background: #009CCF; /* blue */
}
:where( .est-palettes > :nth-child( 6n + 5 ) ),
.est-palette--orange {
	--palette__background: #F1910B; /* orange */
}
:where( .est-palettes > :nth-child( 6n + 6 ) ),
.est-palette--black {
	--palette__background: #000000; /* black */
}

/* Palettes: at least square, taller when the content needs it */
:where( .est-palettes > * ) {
	container-type: inline-size;
}
:where( .est-palettes > * ) > :is( .est-palette, .est-tile ) {
	min-height: max( 100cqw, min-content );
}

/**********************************************************
=Quotes
/*********************************************************/

.est-quote {
	color: var(--black);
	font-size: var(--size--h4);
	font-weight: var(--weight--bold);
}
.est-quote__person {
	color: var(--grey);
	font-size: var(--size--small);
}

/**********************************************************
=Inlay
/*********************************************************/

.est-inlay {
	background: var(--white--dark);
	border-radius: var(--radius--normal);
	box-shadow: var(--shadow--inset);
	padding: var(--space--normal);
}

/**********************************************************
=Results pages
/*********************************************************/

/* Results: stats inlay */
.est-result__stats > :is(:first-child,:last-child) {
	flex-basis: 180px;
}
.est-result__stats > :nth-child(2) {
	align-self: center;
	flex: 1;
}
@media( max-width:767px ) {
	.est-inlay.est-result__stats {
		align-items: flex-start;
		flex-direction: column;
	}
	.est-result__stats > :is(:first-child,:last-child) {
		flex-basis: auto;
	}
	.est-result__stats > :nth-child(2) {
		align-self: auto;
		flex: none;
	}
}

/**********************************************************
=Stats
/*********************************************************/

/* Stats: container */
.est-stats {
	/*--text-title: var(--mint);
	--text-body: var(--black);*/
	align-items: flex-start;
	display: flex;
	flex-direction: row;
	gap: var(--space--normal);
}
.est-stats > * {
	flex: 1;
	flex-basis: 150px;
	max-width: min( 100%, 250px );
}

.est-stat {
	/* color: var(--color--heading); */
	display: flex;
	/*flex-basis: 180px;*/
	flex-direction: column;
	/*gap: var(--space--xs);*/
	text-wrap: balance;
	width: auto;
}
.est-stat__number {
	--color--heading: var(--color--alt);
	/*font-size: var(--size--h1);
	font-weight: var(--weight--bold);*/
	margin: 0;
	text-box-trim: trim-both;
}
.est-stat__subtitle {
	color: var(--color--heading);
	font-weight: var(--weight--bold);
	line-height: 1.6cap;
}
.est-stat__number + .est-stat__subtitle,
.est-stat__subtitle + .est-stat__number {
	margin-top: var(--space--small);
}

@media( max-width:767px ) {
	/* .est-stats.est-inset {
		padding: var(--space--small);
	} */
	.est-stat__subtitle {
		font-size: var(--size--small);
		font-weight: var(--weight--medium);
	}
}

/**********************************************************
=Cards
/*********************************************************/

/* Card: individual card */
.est-card {
	--card__padding: var(--space-m);
	--card__padding--inset: var(--space-s);
	background-color: var( --card__background, var(--white) );
	border-radius: var(--radius--normal);
	box-shadow: var( --card__shadow, var(--shadow--normal) );
	gap: var(--card__padding--inset);
	height: var(--card__height, auto);
	justify-content: space-between;
	overflow: hidden;
	padding: var(--card__padding--inset);
	width: var(--card__width, 100%);
}

/* Card: horizontal card */
.est-card--horizontal {
	align-items: center;	
	flex-direction: row;
}

/* Card: card with image only */
.est-card:has(.est-card__media:first-child:last-child) {
	--card__padding: 0;
	--card__padding--inset: 0;
}
.est-card:has(.est-card__media:first-child:last-child) .est-card__media {
	border-radius: 0;
	height: 100%;
	width: 100%;
}

/* Card: text content */
.est-card__content {
	flex: 1;
	padding: calc( var(--card__padding) - var(--card__padding--inset) ); /* account for the media's padding inset */
	width: 100%;
}
.est-card__text {
	font-size: var(--size--small);
}

/* Card: media */
.est-card__media {
	align-self: stretch;
	align-items: flex-end;
	background-color: var(--white--dark);
	border-radius: var(--radius--normal);
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	height: auto;
	justify-content: space-between;
	min-height: 150px;
	overflow: hidden;
	padding: var(--space--small);
	position: relative;
	width: auto;
}

/* Card: image */
.est-card__image,
.est-card__video {
	border-radius: 0;
	height: 100%;
	inset: 0;
	object-fit: cover;
	object-position: center;
	position: absolute;
	transition: transform 0.2s ease-in-out; /* transform controlled in images section */
	width: 100%;
	z-index: 0;
}
.est-card__image img,
.est-card__video video {
	border-radius: 0;
	height: inherit;
	object-fit: inherit;
	object-position: inherit;
	width: inherit;
}
/* If card has image *and* video, we want video clicks to pass through to image so it can open lightbox */
.est-card:has(.est-card__image) .est-card__video {
	pointer-events: none;
}

/* Card: spacer within media (for default height) */
.est-card__media::before {
	content: "";
	padding-top: var(--card__top, 200px);
	width: 100%;
}

/* Card: horizontal card media */
.est-card--horizontal .est-card__media::before {
	height: 1px;
	padding-top: 0;
	width: var(--card__top, 200px);
}

/* Card: media shadow */
.est-card__media::after {
	background: linear-gradient( to bottom, transparent 50%, rgb( 0,0,0, 0.2 ) );
	content: "";
	inset: 0;
	pointer-events: none;
	position: absolute;
	z-index: 1;
}
.est-card__media .brxe-button {
	margin-left: auto;
}
.est-card__media :not(.est-card__image,.est-card__video) {
	position: relative;
	z-index: 2;
}

/* Card: logo */
#est-top .est-card__logo {
	border-radius: 0;
	flex-shrink: 1;
	height: 70px;
	object-fit: contain;
	object-position: bottom left;
	width: 100px;
}

/* Card illustration */
.est-card__illustration::after {
	display: none;
}
.est-card__illustration img {
	height: calc( 100% - var(--space--normal) - var(--space--normal) );
	inset: var(--space--normal);
	object-fit: contain;
	object-position: center;
	position: absolute;
	width: calc( 100% - var(--space--normal) - var(--space--normal) );
}

/* Card with pullquote from employee */
.est-card--pullquote {
	container-type: inline-size;
	flex-wrap: wrap;
}
.est-card--pullquote .est-card__media {
	width: 200px;
}
.est-card--pullquote img {
	object-position: center 30%;
}
.est-card--pullquote .est-card__content {
	flex: 1;
}
@container( max-width:499px ) {
	.est-card--pullquote .est-card__media {
		width: 130px;
	}
}
@container( max-width:359px ) {
	.est-card--pullquote .est-card__media {
		aspect-ratio: 3 / 2;
		width: 100%;
	}
}

/**********************************************************
=Pills
/*********************************************************/

/* Pills: container */
.est-pills {
	--pill__background: transparent;
	--pill__border: var(--grey--light);
	--pill__color: var(--color--heading);
	--pill__background--hover: var(--mint--lighter);
	--pill__border--hover: var(--mint--light);
	--pill__color--hover: var(--black);
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	gap: var(--space-xs);
	justify-content: flex-start;
	list-style-type: none;
	padding: 0;
}

/* Pills: container (list) */
.est-pills *,
.est-pill,
.est-pill * {
	display: inline-flex;
	max-width: 100%;
	text-decoration: none;
}

/* Pills: individual pill (also uses styles from buttons section) */
.est-pill:not(:has(.title)),
.est-pills a:not(:has(.title)),
.est-pill .title,
.est-pills .title {
	background: var(--pill__background);
	border-radius: var(--radius--small);
	box-shadow: inset 0 0 0 1px var(--pill__border);
	color: var(--pill__color);
	cursor: revert; /* button styles force pointer even on non-links */
	display: inline-block;
	font-size: var( --pill__size, var(--size--xs) );
	font-weight: var( --pill__weight, var(--weight--normal) );
	line-height: 1cap;
	list-style-type: none;
	margin: 0;
	max-width: 100%;
	overflow: hidden;
	padding: var( --pill__padding, var(--space-xs) );
	text-box: trim-both cap alphabetic;
	text-indent: 0;
	text-overflow: ellipsis;
	vertical-align: top;
	white-space: nowrap;
}
#est-top a.est-pill:not(:has(.title)):where(:hover,:focus-visible),
#est-top .est-pills a:not(:has(.title)):where(:hover,:focus-visible),
#est-top .est-pill a:where(:hover,:focus-visible) .title,
#est-top .est-pills a:where(:hover,:focus-visible) .title {
	background: var(--pill__background--hover);
	box-shadow: inset 0 0 0 1px var(--pill__border--hover);
	color: var(--pill__color--hover);
}

/**********************************************************
=Lists
/*********************************************************/

/* Lists within normal text */
ul {
	margin: 0;
}
.brxe-text ul {
	--bullet__color: var(--mint);
	--bullet__size: 0.8cap;
	line-height: inherit;
	list-style-type: none;
	margin: 0;
	padding-left: var(--space--small);
}
.brxe-text li {
	line-height: inherit;
	padding-left: calc( var(--bullet__size) + var(--space-s) );
	position: relative;
	text-box-trim: trim-both;
	text-box: none;
}
.brxe-text li::before {
	background: var(--bullet__color);
	border-radius: 3px;
	content: "";
	display: inline-block;
	height: var(--bullet__size);
	left: 0;
	position: absolute;
	top: calc( 1lh / 2 );
	transform: translateY( -50% );
	width: var(--bullet__size);
}

/**********************************************************
=Tables
/*********************************************************/

.brxe-text table,
.brxe-text th,
.brxe-text td {
	margin: 0;
	padding: 0;
}
.brxe-text table {
	border-collapse: collapse;
}
.brxe-text th,
.brxe-text td {
	border: 1px solid var(--grey--light);
	padding: var(--space--small);
}
.brxe-text th {
	color: var(--color--heading);
	font-weight: var(--weight--bold);
	vertical-align: top;
}
.brxe-text td {
	color: var(--color--body);
	font-size: var(--size--small);
}

/**********************************************************
=Favicon text
/*********************************************************/

#est-top .est-favicon {
	--favicon__size: 2lh;
	display: flex;
	flex-direction: column;
	font-size: var(--size--xs);
	font-weight: var(--weight--medium);
	gap: 0;
	line-height: 1.5cap;
	margin-block: var(--space--normal);
}
#est-top .est-favicon * {
	margin: 0;
}
#est-top .est-favicon .brxe-text-basic:last-child {
	--text-body: var(--grey--light);
}
#est-top .est-favicon {
	padding-left: calc( var(--favicon__size) + var(--space--xs) );
	position: relative;
}
#est-top .est-favicon img {
	background: var(--grey--light);
	border-radius: var(--radius--small);
	font-size: inherit;
	height: var(--favicon__size);
	left: 0;
	object-fit: cover;
	object-position: center;
	position: absolute;
	top: 0;
	width: var(--favicon__size);
}

/**********************************************************
=Chiclets
/*********************************************************/

/* Individual chiclet */
#est-top .est-chiclet {
	--chiclet__width: 2cap;
	--chiclet__overflow: calc( var(--chiclet__width) - 1lh ); /* how much taller the chiclet is than the line height of its container */
	--chiclet__offset: calc( -1 * ( var(--chiclet__overflow) / 2 ) ); /* how much in the negative direction we need to move the chiclet to center it within the line height */
	font-size: var(--size--small);
	gap: var(--size--xs);
	min-height: max( 1lh, var(--chiclet__width) );
}

/* Individual chiclet: icon */
#est-top .est-chiclet i {
	background: var(--grey--lighter);
	border-radius: var(--radius-xs);
	color: transparent;
	display: inline-flex;
	height: var(--chiclet__width);
	margin-block: var(--chiclet__offset);
	position: relative;
	width: var(--chiclet__width);
}
#est-top .est-chiclet i::after {
	background: var(--mint);
	content: "";
	inset: 3px;
	mask-position: center;
	mask-repeat: no-repeat;
	mask-size: contain;
	position: absolute;
}
#est-top .est-chiclet i.ti-settings::after {
	mask-image: url("/wp-content/themes/bricks-child/images/est-icon--gear.svg");
}
#est-top .est-chiclet i.ti-shine::after {
	mask-image: url("/wp-content/themes/bricks-child/images/est-icon--flame.svg");
}
#est-top .est-chiclet i.ti-heart::after {
	mask-image: url("/wp-content/themes/bricks-child/images/est-icon--heart.svg");
}
#est-top .est-chiclet i.ti-home::after {
	mask-image: url("/wp-content/themes/bricks-child/images/est-icon--home.svg");
}
#est-top .est-chiclet i.ti-book::after {
	mask-image: url("/wp-content/themes/bricks-child/images/est-icon--book.svg");
}
#est-top .est-chiclet i.ti-plus::after {
	mask-image: url("/wp-content/themes/bricks-child/images/est-icon--plus.svg");
}
#est-top .est-chiclet i.ti-layout::after {
	mask-image: url("/wp-content/themes/bricks-child/images/est-icon--layout.svg");
}
#est-top .est-chiclet i.ti-bar-chart::after {
	mask-image: url("/wp-content/themes/bricks-child/images/est-icon--bars.svg");
}
#est-top .est-chiclet i.ti-layout-grid2::after {
	mask-image: url("/wp-content/themes/bricks-child/images/est-icon--grid.svg");
}

/* Individual chiclet: within button */
#est-top .brxe-button.est-chiclet i {
	margin-left: var(--chiclet__offset); /* when a button contains a chiclet, make the chiclet closer to the left edge so it looks more balanced */
}

/**********************************************************
=Gallery
/*********************************************************/

/* All galleries: fade in */
.brx-gallery-item-reveal {
	transition: opacity 0.2s ease-in-out;
	@starting-style {
		opacity: 0;
	}
}

/* Gallery: photography portfolio galleries only */
.est-gallery {
	display: grid;
	gap: var(--space--normal);
	grid-template-columns: repeat( auto-fill, minmax( min( 400px, 100% ), 1fr ) );
	grid-auto-rows: 300px;
}
.est-gallery a,
.est-gallery img,
.est-gallery .est-card,
.est-gallery .brxe-video,
.est-gallery video {
	height: 100%;
	object-fit: cover;
	object-position: center;
	width: 100%;
}
.est-gallery a img {
	object-position: inherit;
}

/**********************************************************
=Masonry
/*********************************************************/

/* Masonry: wrapper */
.est-masonry {
	display: grid;
	gap: var(--space--normal);
	grid-auto-rows: min( 350px, 40vw );
	grid-template-columns: minmax( 0, 1fr );
}
/* Masonry: collapse most masonry to single columns on mobile */
@media( max-width:650px ) {
	#est-top .est-masonry {
		grid-template-columns: 1fr;
	}
	#est-top .est-masonry:has(.est-masonry) {
		grid-auto-rows: auto;
	}
	:where(.est-masonry > *) {
		grid-column: auto;
		grid-row: auto;
		min-width: 0;
	}
}
ul.est-masonry {
	list-style-type: none;
	margin: 0;
	padding: 0;
}
.est-masonry .est-card__media {
	object-fit: cover;
}


/* Trio: first image spans the top row, the next two share the row under it */
.est-masonry--trio {
	grid-template-columns: 1fr 1fr;
	grid-template-rows: 1fr 1fr;
}
@media( max-width:650px ) {
	#est-top .est-masonry--trio {
		grid-template-rows: min( 300px, 30vh );
		grid-template-columns: 1fr 1fr;
	}
}

/* Masonry: individual item */
.est-masonry__item {
	background: var(--white--dark);
	border-radius: var(--radius--image);
	height: 100%;
	min-height: 0;
	min-width: 0;
	object-fit: cover;
	object-position: center;
	overflow: hidden;
	position: relative;
	width: 100%;
}
.est-masonry__item :where(a:not(.brxe-button),img,video,.brxe-video) {
	border-radius: 0;
	height: inherit;
	inset: 0;
	object-fit: inherit;
	position: absolute;
	width: inherit;
}
.est-masonry__item :where(a:not(.brxe-button)) {
	object-fit: inherit;
	object-position: center 30%;
}
.est-masonry__item :where(img,video,.brxe-video) {
	object-position: inherit;
}
.est-masonry__item img,
.est-masonry__item video,
.est-masonry__item .brxe-video {
	object-fit: inherit;
	object-position: inherit;
}
.est-masonry__item img,
.est-masonry__item video {
	transition: transform 0.2s ease-in-out; /* transform controlled in images section */
}
.est-masonry__item--overflow {
	overflow: visible;
}

/* By default, make media cover entire masonry item container */

/* .est-masonry__item:has(video) :where(a,.brxe-video) {
	height: 100%;
	inset: 0;
	position: absolute;
	width: 100%;
} */

/* Allow overflow of masonry container if specified */
/* .est-masonry__item--overflow {
	overflow: visible;
} */

/**********************************************************
=Prose
/*********************************************************/

/* Centered long-form text, like in blogs */
#est-top .est-prose .brxe-container {
	width: 730px;
}

/**********************************************************
=Promobox
/*********************************************************/

#est-top .est-promobox {
	align-items: center;
	background: var(--white);
	border-radius: var(--radius--normal);
	box-shadow: var(--shadow--normal);
	display: flex;
	flex-direction: row;
	gap: var(--space--normal);
	justify-content: space-between;
	padding: var(--space--normal);
}
#est-top .est-promobox .brxe-heading {
	font-size: var(--size--h4);
}
#est-top .est-promobox .brxe-button {
	flex: none;
	margin: 0;
}

/**********************************************************
=Blog
/*********************************************************/

/* Blog: wrapper containing sidebar and content column */
.est-blog__wrapper {
	flex-direction: row;
	gap: var(--space--large);
}
@media( max-width:767px ) {
	.est-blog__wrapper {
		display: grid;
		grid-template-columns: 1fr;
		grid-template-rows: auto auto auto;
	}
}

/* Blog: sidebar */
.est-blog__sidebar {
	flex-basis: 350px;
	flex-direction: column;
	gap: var(--space--large);
}
@media( max-width:767px ) {
	.est-blog__sidebar {
		display: grid;
		grid-column: 1;
		grid-row: 1 / -1;
		grid-template-columns: subgrid;
		grid-template-rows: subgrid;
	}
	.est-blog__toc {
		grid-row: 1;
	}
	.est-blog__recents {
		grid-row: 3;
	}
}
.est-blog__sidebar > * {
	background: var(--white--dark);
	border-radius: var(--radius--normal);
	padding: var(--space--normal);
}
.est-blog__sidebar ul {
	list-style-type: none;
	padding: 0;
}
.est-blog__sidebar li a {
	align-items: flex-start;
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	gap: var(--space--small);
	padding-top: var(--space--small);
}
.est-blog__sidebar li + li {
	border-top: 1px solid var(--grey--light);
	margin-top: var(--space--small);
}
.est-blog__sidebar .brxe-block:has(> img) {
	border-radius: var(--radius--small);
	flex: none;
	flex-wrap: nowrap;
	height: 50px;
	overflow: hidden;
	width: 50px;
}
.est-blog__sidebar li img {
	border-radius: 0;
	height: 100%;
	max-width: none;
	object-fit: cover;
	object-position: center;
	transform: scale( 1 );
	transition: transform 0.1s linear, opacity 0.1s linear;
	width: 100%;
}
.est-blog__sidebar a:where(:hover,:focus-visible) img {
	opacity: 0.75;
	transform: scale( 1.05 );
}
.est-blog__sidebar .brxe-heading {
	font-size: var(--size--p);
	margin: 0;
	min-width: 0;
}

/* Blog: main content column */
.est-blog {
	align-self: flex-start;
	flex-basis: 600px;
}
.est-blog img {
	border: 2px solid var(--white--dark);
}
@media( max-width:767px ) {
	.est-blog {
		grid-column: 1;
		grid-row: 2;
		max-width: 100%;
		width: auto;
		z-index: 1;
	}
}
@media( min-width:768px ) {
	.est-blog {
		margin-left: 0;
	}
}

/* Blog: previous/next navigation */
.brxe-post-navigation {
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	gap: var(--space--normal);
	justify-content: space-between;
	max-width: 100%;
}
@media( max-width:499px ) {
	.brxe-post-navigation {
		align-items: center;
		flex-direction: column;
	}
}
.brxe-post-navigation a {
	display: flex;
	flex-basis: 350px;
	flex-shrink: 1;
	flex-wrap: nowrap;
	gap: var(--space--small);
}
@media( max-width:649px ) {
	.brxe-post-navigation a {
		align-items: flex-start;
		flex-basis: initial;
		flex-direction: column;
	}
	.brxe-post-navigation .next-post {
		align-items: flex-end;
	}
}
@media( max-width:499px ) {
	.brxe-post-navigation a {
		align-items: center;
		text-align: center;
	}
}
.brxe-post-navigation .content {
	display: flex;
	flex-direction: column;
	flex-shrink: 1;
	gap: var(--space--xs);
}
.brxe-post-navigation .label {
	color: var(--mint);
	font-size: var(--size--h6);
	font-weight: var(--weight--bold);
	line-height: 1cap;
}
.brxe-post-navigation .content,
.brxe-post-navigation .title {
	overflow: visible;
}
.brxe-post-navigation .title {
	white-space: normal;
}
.brxe-post-navigation .image {
	background-size: 0;
	border-radius: var(--radius--small);
	overflow: hidden;
	position: relative;
}
@media( max-width:649px ) {
	.brxe-post-navigation .image {
		display: none;
	}
}
.brxe-post-navigation .image::after {
	background: inherit;
	background-size: cover;
	content: "";
	inset: 0;
	opacity: 1;
	position: absolute;
	transform: scale( 1 );
	transition: transform 0.2s ease-in-out, opacity 0.2s ease-in-out;
}
.brxe-post-navigation a:where(:hover,:focus-visible) .image::after {
	opacity: 0.75;
	transform: scale( 1.1 );
}

/**********************************************************
=Specific pages
/*********************************************************/

/* Quick contact form: hide progress bar from first page */
#est-top .est-form--quick-contact:has(.gform_page:first-child:not([style*="display:none"])) .gf_progressbar_wrapper {
	display: none;
}