/*
Theme Name: Fuel6
Theme URI: https://fuelmedical.com
Author: Fuel Medical
Description: A Fuel Medical block theme (2023)
Requires at least: 6.4
Tested up to: 6.4
Requires PHP: 8.0
Version: 6.0.3
Text Domain: fuel6
*/

/*--------------------------------------------------------------
>>> TABLE OF CONTENTS:
----------------------------------------------------------------
# Custom Properties
# Fuel Normalize
# Custom Elements
# WordPress Blocks
# Forms
## Search Form
# Header
# Content
# Footer
# Map
# Animations
## Page Transition
# print
# Safari 15.3 fallbacks
--------------------------------------------------------------*/

/*--------------------------------------------------------------
# Custom Properties
--------------------------------------------------------------*/
body {
	/**
	 * Note: WordPress declares its variables in the body, so do the same to avoid scope issues.
	 */
	
	 /* Structure - 1100px */
	--mobile-padding: 1rem;
	--desktop-padding: 13rem;
	--contain-padding: clamp(var(--mobile-padding), calc(50vw - 29.93rem), var(--desktop-padding));

	/* Design - Change in theme.json */
	--primary-color: var(--wp--preset--color--primary);
	--accent-color: var(--wp--preset--color--accent);
	--white: var(--wp--preset--color--white);
	--grey: var(--wp--preset--color--grey);
	--black: var(--wp--preset--color--black);

	/* Top Level Primary Menu Colors */
	--wp--preset--color--menu-background: var(--primary-color);
	--wp--preset--color--menu-color: var(--white);
	--wp--preset--color--menu-hover-color: var(--white);
	--wp--preset--color--menu-hover-bg: var(--wp--preset--color--pr-green);

	/* Sub Menu Colors */
	--wp--preset--color--sub-menu-background: var(--white);
	--wp--preset--color--sub-menu-color: var(--dark-grey);
	--wp--preset--color--sub-menu-hover-color: var(--primary-color);
	--wp--preset--color--sub-menu-hover-bg: var(--wp--preset--color--light-green);

	/* Text */
	--title-font: var(--wp--preset--font-family--title);
	--title-color: var(--primary-color);

	--content-font: var(--wp--preset--font-family--content), sans-serif;
	--content-color: var(--wp--preset--color--content);

	--wp--preset--color--h-1: var(--white);
	--wp--preset--color--h-2: var(--wp--preset--color--dark-grey);
	--wp--preset--color--h-3: var(--wp--preset--color--dark-grey);
	--wp--preset--color--footer: var(--white);
}

/*--------------------------------------------------------------
# Fuel Normalize
--------------------------------------------------------------*/
*, *::before, *::after {
	box-sizing: border-box;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

html {
	font-size: 125%;
	line-height: 1.5;
	-webkit-text-size-adjust:100%;
	-webkit-overflow-scrolling: touch;
	scroll-behavior: smooth;
	position: relative;
	min-width: 18rem;
}

ul, ol {
	padding-left: clamp(1.5rem, 3vw, 2rem);
}

li {
	margin: 1em 0 0 0;
}

iframe, img, svg, audio, canvas, video, object, embed {
	vertical-align: middle;
	max-width: 100%;
}

img {
	object-fit: cover;
}

img[src*=".jpg"] {
	background: #eee;
}

blockquote, figcaption {
	font-style: italic;
}

small {
	font-size: 0.75em;
}

sub, sup {
	font-size: 0.75em;
	line-height: 0;
}

a {
	text-decoration: none;
	color: var(--accent-color);
	transition: color 300ms, background-color 300ms;
}

a[href^="tel:"] {
	white-space: nowrap;
}

a:hover {
	color: var(--primary-color);
}

dialog:-internal-dialog-in-top-layer::backdrop{
	background: none !important; 
}

@media only screen and (min-width: 68.5em) {
	*[id] {
		scroll-margin-top: 3rem;
	}
}

/*--------------------------------------------------------------
# Custom Elements
--------------------------------------------------------------*/
@media only screen and (max-width: 68.49em) {
    .contact-buttons .button.full-width-form.mobile-only-button {
	    display: block;
	}
}

@media (min-width: 68.5em) {
    .clamp {
        font-size: 1rem;
        font-size: clamp(0.8rem, 1.2vw, 1rem);
    }
    .contact-buttons .button.full-width-form.mobile-only-button {
	    display: none;
	}
}

.contain {
	display: block;
	position: relative;
	margin: auto;
	padding-right: var(--contain-padding);
	padding-left: var(--contain-padding);
	width: 100%;
}

.icon-item {
	display: block;
	position: relative;
	margin: 1em 0;
	padding: 0 0 0 1.8em;
}

.icon-item svg {
	position: absolute;
	top: 0.15em;
	left: 0;
	width: 1.2em;
	height: 1.2em;
}

.img-shadow img{
	box-shadow: 0px 0px 12px 0px #00000040;
}

.inline-bold {
	font-weight: 700; 
}

.menu-notifications.wp-block-fuel-menu-item .notice{
	color: var(--wp--preset--color--dark-grey);
}

.menu-notifications li::before{
	height: 100%;
	top: 0;
	left: 0 !important ;
	border-radius: 0; 
}

@media (min-width: 38.5em) {
	.list-col-2 {
		column-count: 2;
		column-gap: 2em;
		margin-left: 1rem;
		color: #000;
	}
}

.header-number:hover span:last-child{
	color: var(--wp--preset--color--bleh-green); 
}

.sub-animate .mobile-call-wrapper{
	text-align: center; 
}

.menu-locations .sub-menu .tablist, 
.menu-locations .sub-menu .tabpanel{
	padding-top: 0; 
}

body:has(.dialog-box[open]) {
  overflow-y: scroll;
}

/*--------------------------------------------------------------
# WordPress Blocks
--------------------------------------------------------------*/
.alignleft,
.alignright {
	width: 100%
}


#main .alignleft {
	float: left;
	margin: 1.5em 1em 0.2em 0;
}  

#main .alignright {
	float: right;
	margin: 1.5em 0 0.2em 1em;
}

@media (min-width: 37.5em) {
	.alignleft,
	.alignright {
		max-width: 48%
	}
}

.wp-block-cover__inner-container {
	position: relative;
}

.entry-content {
	container-type: inline-size;
	container-name: content;
}

@container content (max-width: 25rem) {
	#main .alignright,
    #main .alignleft {
		float: none;
		margin: 1.5em 0 0.2em;
    }
}

/* Button block */
.button,
.wp-block-file__button,
.wp-block-post-excerpt__more-link,
.wp-block-buttons .wp-element-button,
.wp-block-buttons .wp-block-button__link.wp-block-button__link {
	background-color: var(--wp--preset--color--pr-green);
	color: #fff;
	line-height: normal;
	padding: 0.5em 1em ;
	border: 1px solid #fff; 
}

.page-id-24 .wp-element-button, .wp-block-button__link {
	background-color: var(--wp--preset--color--pr-green); 
}

:where(.wp-block-file__button) {
	border-radius: 0 !important;
}

.wp-block-buttons svg {
	vertical-align: initial; 
}

.wp-block-buttons .wp-block-button__link{
	position: relative; 
}

.button:is(:hover, :focus-visible),
.wp-block-file__button:is(:hover, :focus-visible),
.wp-block-post-excerpt__more-link:is(:hover, :focus-visible),
.wp-block-buttons .wp-element-button:is(:hover, :focus-visible),
.wp-block-buttons .wp-block-button__link.wp-block-button__link:is(:hover, :focus-visible) {
	color: #fff;
}

.wp-element-button{
	overflow: hidden; 
	z-index: 10; 
	position: relative; 
}

.wp-element-button:after{
	content:''; 
	position: absolute; 
	top: 100%;
	left: 0;
	width: 100%;
	height: 100%; 
	background: var(--wp--preset--color--bleh-green);
	transition: all .5s ease; 
	z-index: -1;
}

.wp-element-button:hover:after{
	top: 0; 
}

.wp-element-button svg{
	transition: transform .5s ease; 
}

.wp-element-button:hover svg{
	transform: rotate(180deg); 
}

.has-transparent-background-color{
	border: 1px solid var(--wp--preset--color--pr-green);
}

.header-right .has-transparent-background-color {
	border: none; 
}

.header-right .has-transparent-background-color:hover {
	border: none; 
	background: none; 
}

.has-transparent-background-color:hover{
	border: 1px solid var(--wp--preset--color--bleh-green);
	background: var(--wp--preset--color--bleh-green) !important; 
	color: #fff !important; 
}

/* Button block - outline */
.is-style-outline.is-style-outline.wp-block-button .wp-block-button__link {
	background: #fff;
	color: var(--wp--preset--color--accent);
	border: 1px solid var(--wp--preset--color--accent);
	padding: 0.5em 1em;
}

.wp-block-button.is-style-outline .wp-element-button:is(:hover, :focus-visible) {
	background: var(--wp--preset--color--accent);
	border-color: var(--wp--preset--color--accent);
	color: #fff;
}

.contact-section .wp-block-button__link, 
.contact-by-text-widget .wp-block-button__link {
	font-weight: 700; 
}

.wp-block-buttons .wp-block-button.alt-style .wp-block-button__link{
	background: #fff; 
	color: var(--wp--preset--color--pr-green); 
	border: 1px solid var(--wp--preset--color--pr-green); 
	width: 12.5em;
}

.wp-block-buttons .wp-block-button.alt-style .wp-block-button__link:hover, 
.wp-block-buttons .wp-block-button.alt-style .wp-block-button__link:focus-visible{
	border: 1px solid var(--wp--preset--color--bleh-green); 
	background-color: var(--wp--preset--color--bleh-green);
  	color: #fff;
}

/* 
 * iPhone bug fix
 * https://www.notion.so/fueldigital/iPhone-button-contrast-fix-47918141a741472fbc1fba3aa5919ca4 
 */
@supports (-webkit-touch-callout: none) {
	.entry-content a.wp-block-button__link{
		transition: none;
  	}
}
.tabpanel.tabpanel,
.tabpanel-container.tabpanel-container{
		height: auto;
	}
/* Search block */

.wp-block-search ::placeholder {
	color: #fff; 
}

.error404 .wp-block-search ::placeholder {
	color: #000; 
}

.desktop-search-block.wp-block-search ::placeholder {
	color: #000; 
}

.wp-block-search input {
	color: #fff; 
}

.error404 .wp-block-search input {
	color: #000; 
}

.desktop-search-block.wp-block-search input {
	color: #000; 
}

.wp-block-search {
    padding: 0;
	max-width: calc(100vw - 2rem);
}

.wp-block-search__inside-wrapper {
    padding: 0;
    border-radius: 50px;
    border: none;
    outline: 1px solid;
}

.wp-block-search__input {
    font-size: 1rem;
    padding-left: 1rem;
    background: none;
	border: none; 
	color: #fff; 
}

.wp-block-search__button {
	padding: 0.45rem 0.75rem;
    background: transparent;
	transition: background-color 0.3s, color 0.3s;
}

.wp-block-search .wp-element-button::after{
	display: none; 
}

/* for search */
.wp-element-button, .wp-block-button__link {
	background-color: transparent; 
}

.desktop-search-block .wp-block-search__input{
	color: #000; 
}

.desktop-search-block .wp-block-search__button{
	background: #000; 
}

.desktop-search-block .wp-block-search__inside-wrapper{
	overflow: hidden; 
}

@media (max-width: 68.49em) {
	.wp-block-search__button:is(:hover, :focus-visible) {
        background: transparent;
        color: #fff;
    }
}

/* Quote block */
body .wp-block-quote {
	border: 1px solid var(--primary-color);
	padding: clamp(0.5rem, 4vw, 1.6em) clamp(1rem, 4vw, 5.5rem) clamp(1rem, 4vw, 2.6rem);
	font-size: clamp(1rem, 4vw, 1.2rem);
	line-height: 2.2;
	position: relative;
	margin: 1.2rem 1rem 0 !important;
}

.wp-block-quote::before {
	content: '';
	background: var(--primary-color) url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" fill="none" width="20" height="14"><path fill="white" d="M18.57 0H14.3l-2.86 5.6V14H20V5.6h-4.29L18.57 0ZM7.14 0H2.86L0 5.6V14h8.57V5.6H4.3L7.14 0Z"/></svg>') center no-repeat;
    position: absolute;
    inset: -1rem auto auto -1rem;
	width: 2rem;
	height: 2rem;
}

.wp-block-quote cite {
	display: block;
	font-size: clamp(0.9rem, 4vw, 1rem);
	font-weight: bold;
	text-align: right;
	line-height: 1.5;
}

/*--------------------------------------------------------------
# charleston plastic surgery Carousel
--------------------------------------------------------------*/

.fm-carousel{
	background: none; 
}

.fm-carousel-container{
/* 	top: initial !important;   */
/* 	height: 39em;  */
	height: 23em; 
	top: -820px; 
}

.fm-carousel-container li{
	background: none; 
	/* 	position: absolute; 
	opacity: 0;  */
	height: 33px; 
}

.fm-carousel-container li.active{
	opacity: 1; 
}

.fm-carousel.vertical .fm-carousel-container li{
	flex-wrap: wrap !important; 
	align-content: center;
	height: 33px;
}

.plastic-surgery-reviews-wrapper {
	background: var(--wp--preset--color--light-grey); 
	position: relative; 
	padding: 1em; 
}

.plastic-surgery-reviews-wrapper:before{
	content:''; 
	position: absolute; 
	left: 0;
	top: 0;
	width: 13em;
	height: 26em;
	background: url('./images/plastic-reviews-plant.svg') no-repeat; 
	background-size: contain; 
}

.plastic-surgery-reviews-left{
	padding-left: 5em;
}

body .plastic-surgery-reviews-left{
	margin-top: 2em; 
}

.plastic-surgery-reviews-left h2{
	font-size: 1.3em; 
}

.fm-carousel.vertical {
	padding: 2rem clamp(2rem,5vw,4rem);
}

.fm-carousel.vertical .fm-carousel-container li{
	padding: 0 1rem; 
}

.plastic-surgery-page-bottom{
	position: relative; 
	z-index: 10;
}

.fm-carousel-bullets{
	opacity: 1;
}

.fm-carousel-bullets li a {
	background: var(--wp--preset--color--medium-grey); 
}

.fm-carousel-bullets a{
	background: var(--wp--preset--color--medium-grey); 
	border-radius: 0 ; 
	height: 1em; 
	width: 5px;
}

.fm-carousel-bullets .active a{
	outline: none; 
	background: var(--wp--preset--color--bleh-green) ; 
}

.fm-carousel.vertical .fm-prev{
	--btn-top: -8rem;
}

.fm-carousel.vertical .fm-next{
	--btn-top: 10rem;
}

.fm-carousel.vertical .fm-carousel-bullets{
	display: none; 
}

.fm-nav-arrow{
	border: 2px solid  var(--wp--preset--color--medium-grey);
	height: 1.75em;
	width: 1.75em;
}

.fm-nav-arrow svg{
	height: .75em;
	width: .75em;
	inset: .4em;
	position: absolute;
	color:  var(--wp--preset--color--medium-grey); 
}

.fm-carousel.vertical .fm-nav-arrow {
	border-radius: 5px;
	inset: var(--btn-top) auto 0 1.5em;
}

.fm-carousel.vertical .fm-carousel-overflow {
	height: 20rem;
	max-height: 20rem; 
}

@media (min-width: 68.5em) {
	.fm-carousel.vertical .fm-carousel-overflow {
		height: 40rem;
		max-height: 40rem; 
	}
	.page-id-2290 .entry-content{
		overflow: hidden; 
	}
	.page-id-2290 .entry-content:before {
		content: ''; 
		position: absolute; 
		right: -8em; 
		top: 85%; 
		width: 24em;
		height: 24em;
		background: url('./images/plastic-surgery-review-plant.svg') no-repeat;
		background-size: contain;
		z-index: -1;
	}
	.fm-carousel.vertical .fm-carousel-overflow{
		height: 25rem; 
	} 
	
	.fm-carousel.vertical .fm-carousel-overflow:before{
		content:''; 
		position: absolute; 
		left: 1.4em; 
		top: 2em; 
		width: .25em;
		height: 100%;
		background: url('./images/surgery-review-line.svg') no-repeat;  
	}
	
	.fm-carousel.vertical .fm-carousel-overflow:after{
		content:''; 
		position: absolute; 
		left: 1.4em; 
		bottom: 1em; 
		width: .25em;
		height: 100%;
		background: url('./images/surgery-review-line.svg') no-repeat; 
		transform: rotate(180deg);
	}

	body .plastic-surgery-reviews-left{
		margin-top: 0 ; 
	}
	.plastic-surgery-reviews-left h2{
		font-size: 1.6em; 	
	}
	.fm-carousel.vertical .fm-carousel-bullets {
		margin: auto;
		inset: .5em auto 0 1.45em;
		display: flex; 
	}
	

} 

/*--------------------------------------------------------------
# Forms
--------------------------------------------------------------*/
.gfield {
	border: 1px solid var(--accent-color);
	border-radius: 0.3rem;
	overflow: hidden !important;
	background: #fff;
	line-height: normal;
}

.gfield:focus-within {
	outline: 2px auto -webkit-focus-ring-color;
}

.gfield .gfield_label.gform-field-label {
    color: var(--accent-color);
    font-weight: normal;
    font-size: 0.7rem;
    margin-bottom: 0;
    padding-left: 0.6rem;
}

.gfield .medium, .gfield .large {
	padding: 0 0.6rem 0.35rem !important;
	color: var(--content-color);
	background: #fff;
	outline: none;
	border: 0 !important;
}

.gform_footer {
	position: relative;
	margin-top: 0.7rem;
}

.gform_footer {
    justify-content: center;
}

.gform_button {
	transition: color 0.3s, background-color 0.3s;
	margin: 0.9rem auto 0;
}

.gform_ajax_spinner {
	position: absolute;
	top: 0;
	right: 0.5rem;
	bottom: 0;
	margin: auto;
	border: 0.2em solid rgba(0, 0, 0, 0.4);
	border-left: 0.2em solid #07B084;
	border-radius: 50%;
	width: 1.2em;
	height: 1.2em;
	animation: spin 1.1s infinite linear;
}

.gform_confirmation_message {
	font-family: inherit;
	font-size: 1.1em;
	font-weight: normal;
}

.gform_fileupload_rules {
    padding: 0 1rem 1rem;
    font-style: italic;
}

/* Validation styling */
.gform_wrapper .gform_validation_errors .gform_submission_error {
    border: none;
    margin: 0;
}

.gform_validation_errors p {
    margin: 0;
}

.gfield_error {
    border-color: #c02b0a;
}

.gfield_validation_message {
    border-left: none !important;
    border-right: none !important;
    border-bottom: none !important;
}

.gform_required_legend,
#contact_section .sidebar-form-content {
    display: none;
}

/* Full width contact form */
#contact_section {
    --contain-padding: clamp(var(--mobile-padding), calc(50vw - 20rem), 26.3rem);
	padding-top: clamp(2.4rem, 10vw, 6.25rem);
	padding-bottom: clamp(2.4rem, 10vw, 6.25rem);
}

#contact_section .wp-block-cover__inner-container {
    background: rgba(255,255,255,0.9);
    padding: 1.25rem clamp(1.2rem, 10vw, 7.5rem) 3.25rem;
}

#contact_section .gform_title {
    text-align: center;
}

#contact_section .gform_description {
    font-size: clamp(0.7rem, 3vw, 0.9rem);
}

#contact_section .contact-emergency {
    display: block;
    margin-bottom: 1rem;
}

@media (prefers-reduced-motion:no-preference) {
	#contact_section .wp-block-cover__inner-container {
		opacity: 0;
		transform: translateY(2rem);
		transition: transform 0.6s, opacity 0.6s;
	}

	#contact_section.js-intersected .wp-block-cover__inner-container {
		opacity: 1;
		transform: translateY(0);
	}
}	

/*--------------------------------------------------------------
# Header
--------------------------------------------------------------*/
.header {
	position: relative;
	z-index: 9999;
	background: url('./images/header-bg.png') no-repeat; 
}

.header:after{
	content: '';
	position: absolute; 
	left: 0; 
	top: 0; 
	width: 100%; 
	height: 100%;
	background: var(--wp--preset--color--light-grey);
	opacity: .65; 
	z-index: -1; 
}

.header .wp-block-columns.contain {
	--contain-padding: clamp(2rem, 5vw, 3rem);
}

.header-logo {
	padding-top: clamp(0.8rem, 3vw, 1.5rem);
	padding-bottom: clamp(1.5rem, 3vw, 1.5rem);
}

.header-logo img, 
.footer-logo img {
	transition: transform 0.3s ease;
/* 	height: clamp(7.26rem, 6vw, 5.5rem); */
	height: 7.45em; 
	display: block; 
	object-fit: contain; 
}

.header-logo a:is(:hover, :focus-visible) img,
.footer-logo:is(:hover, :focus-visible) img {
	transform: scale(1.05);
}

@media (min-width: 68.5em){
	.header-logo img, 
	.footer-logo img {
		height: 6.5em;
	margin: .5em 0;
	}
	.header:before{
		content: ''; 
		position: absolute; 
		top: 0; 
		left: 0; 
		width: 100%; 
		height: 2em; 
		background: var(--wp--preset--color--pr-green); 
		z-index: 0; 
	}	
	.dialog-content-wrapper {
		width: 21em;
		background: var(--wp--preset--color--pr-green);
		color: #fff; 
	}
	.dialog-content-wrapper a {
		color: #fff; 
	}
	.header .wp-block-fuel-menu-wrapper {
		background: var(--wp--preset--color--pr-green);
	}
}



@media (max-width: 68.49em) {
	.header {
		z-index: 998;
	}

	.header-logo {
		text-align: center;
	}

	.header-right {
		display: none;
	}

}

.header-right {
    text-align: right;
}

.header-quicklinks.header-quicklinks .menu-label {
	background: var(--wp--preset--color--pr-green);
	color: #fff;
	padding: 0.35rem 1.15rem;
	font-size: .9rem;
	border-bottom-left-radius: 3px;
	border-bottom-right-radius: 3px;
	line-height: 1.364;
}

.header-quicklinks .menu-label:is(:hover, :focus-visible) {
	background: var(--primary-color);
	color: #fff;
}

.header-quicklinks svg {
	width: 1rem;
	height: 1rem;
	margin-right: 0.3rem;
	transform: translateY(-0.1rem);
}

/* Delete this CSS and block if not using header phone number */
.header-number {
   	font-family: var(--content-font);
	display: inline-block;
}

.header-number span:first-child{
	font-style: italic; 
	font-size: 1.2em; 
	color: #000; 
}

.header-number span:last-child{
	 font-size: 2.4em; 
	 color: var(--wp--preset--color--pr-green); 
	 font-weight: 700; 
	 transition: color .5s ease; 
}

.header-number svg {
	width: 2rem;
	height: 2rem;
	margin-right: 0.4rem;
}

/* Phone Tree - delete CSS and block if not using phone tree */
.header-right .dialog-trigger {
	display: block; /* change to block to unhide */
	max-width: 14.5em;
  	border: 1px solid #000;
  	padding: .5em;
/*   	background: #D9D9D9; */
	transition: all .25s ease; 
}

.header-right .dialog-trigger[aria-expanded="true"]{
	background: var(--wp--preset--color--pr-green);
	color: #fff; 
}

.dialog-box .phone-tree {
	--wp--style--global--content-size: 24rem;
	max-width: var(--wp--style--global--content-size);
    width: 90vw;
}

.phone-tree a {
	color: #fff;
}

.phone-tree .wp-block-button {
	border: 1px solid #fff; 
}

.phone-tree a:last-child {
	margin-bottom: 0;
}

.phone-tree a strong {
	flex: auto;
	position: relative;
	overflow: hidden;
}

.phone-tree a strong::after {
	content: '';
	position: absolute;
	bottom: 0.15rem;
	height: 1em;
	width: 100%;
	margin-left: 0;
	background-image: radial-gradient(var(--primary-color) 1px, transparent 0px);
	background-size: 8px 8px;
	background-repeat: repeat-x;
	background-position: left bottom;
}

.phone-tree a svg {
	margin-right: .3rem;
	margin: 0.4rem 0.3rem 0 0.45rem;
}

a.phone-tree-button {
	border: 1px solid #fff;
	padding: .5em 1em;
	margin: 0 auto;
	width: 14em;
  	display: block;
  	text-align: center;
}

a.phone-tree-button svg {
	margin: 0; 
	
}

a.phone-tree-button:hover, a.phone-tree-button:focus-visible{
	background: var(--wp--preset--color--bleh-green); 
}

.wp-block-fuel-dialog-block{
	background: none;
}

.dialog-content-wrapper {
	transform: scale(.1); 
	opacity: 0
	transition: transform 5s ease ; 
}

.dialog-box{
	box-shadow: none; 
}

.dialog-box.phone-tree{
	inset: initial; 
	right: 4%; 
}

.wp-block-fuel-dialog-block[open] .dialog-content-wrapper{
	transform: scale(1);
	opacity: 1; 
}

.dialog-trigger:hover{
	color: var(--wp--preset--color--pr-green); 
}

.dialog-trigger svg{
	transition: transform .25s ease; 
}

.dialog-trigger[aria-expanded="true"] svg{
	transform: rotate(180deg); 
}


.dialog-trigger[aria-expanded="true"] svg path{
	fill: #fff; 
}

.dialog-trigger:hover svg path{
	fill: var(--wp--preset--color--pr-green); 
}

.phone-tree-text-today{
	padding-bottom: 1.5em; 
	position: relative; 
}

.phone-tree-text-today:after{
	content: '';
	position: absolute; 
	left: 0;
	right: 0;
	margin: auto;
	bottom: .25em;
	width: 2em; 
	height: .5em;
	background: var(--wp--preset--color--bleh-green); 
}

.dialog-content-wrapper .wp-block-separator {
	margin-top: 2em !important; 
	margin-bottom: 2em !important; 
}

@media (min-width: 68.5em) {
	.header-number{
		padding-top: 1em; 
		display: flex; 
		align-items: center;
		justify-content: space-between;
		width: 25.5em;
	}
	.header-logo{
		padding-bottom: 0.75em;
	}
	.primary-menu .menu-label{
		height: 3.8em;
	}
}

/*--------------------------------------------------------------
# Content
--------------------------------------------------------------*/
.wp-site-blocks {
    max-width: 96rem;
    margin: auto;
}

#main {
	margin: 0 0 2em;
	font-size: var(--wp--preset--font-size--content);
	border-top: 40px solid var(--wp--preset--color--pr-green);
}

/* Bio grid loop */
.bio-list .bio-box {
	display: grid;
	grid-template-areas:
		"img label";
	justify-content: start;
}

.bio-list .bio-label {
	grid-area: label;
	line-height: normal;
	display: flex;
	flex-wrap: wrap;
	align-content: center;
}

.bio-list .bio-label span {
	flex: 1 1 100%;
}

.bio-list .bio-cred {
	font-size: 0.8rem;
}

.bio-list-item {
	max-width: 12em; 
	text-align: center; 
	text-decoration: none;
}

.bio-list-item:hover{
	text-decoration: underline;
	color: var(--wp--preset--color--pr-green)
}

.bio-list-image {
	border-radius: 50%;
	overflow: hidden;
	display: block; 
	width: 11.5rem;
	height: 11.5rem;
	margin: 1em auto; 
	background: #247797;
	transition: all 300ms ease;
}

.bio-list-image img{
	width: 100%;
    height: auto;
    object-fit: cover;
    object-position: top;
    margin: 0;
}

.bio-list-label{
	margin-top: 1em; 
	display: block; 
}

.bio-list-name{
	font-family: var(--title-font); 
	display: block; 
	font-size: clamp(1em, 4vw, 1.2em); 
}

@media (min-width: 68.5em) {
	#main{
		border-top: none; 
	}
	.bio-list {
		display: flex;
    	flex-wrap: wrap;
    	gap: 2rem;
    	align-items: flex-start;
		margin-top: 1rem;
		justify-content: left; 
	}

	.bio-list .bio-box {
		grid-template-areas:
			"img"
			"label";
		flex: 0 1 calc(25% - 1rem);
		min-width: 7.5rem; /* Adjust to prevent names from wrapping */
		text-align: center;
	}

	.bio-list.bio-list .bio-box:is(:hover, :focus-visible) {
		background: none;
	}

	.bio-list .bio-image {
		border-radius: 50%;
		overflow: hidden;
		display: block;
		width: 11.5rem;
		height: 11.5rem;
		margin: 1em auto;
		background: #247797;
		transition: all 300ms ease;
	}

	.bio-list .bio-image img {
		transition: transform 0.3s;
		width: 100%;
		height: auto;
		object-fit: cover;
		object-position: top;
		margin: 0;
	}
	
	.bio-list .bio-box:is(:hover, :focus-visible) .bio-image img {
		transform: scale(1.1);
	}

	.bio-list .bio-cred {
		color: var(--content-color);
	}
	.bio-list .bio-name {
		color: #000; 
		font-weight: 400;
    	font-family: var(--title-font);
	}
}

/* Location card loop - Used in footer, content, and menu */
#main .locations-title {
    color: #231F20;
}

body .location-list-detailed {
    display: flex;
    flex-wrap: wrap;
	justify-content: center;
	gap: clamp(0.8rem, 4vw, 3rem);
    max-width: 100%;
	margin: 0;
}

.footer .location-list-detailed {
    gap: 0 2rem;
}

.location-list-detailed .location-box {
    min-width: 15rem;
    flex: 1 1 calc(33.3% - 2rem);
	container-type: inline-size;
	container-name: loc-box;
}

.location-box .loc-left {
	margin: 0;
}

#main .location-list-detailed .location-box {
    background: #EFEFEF;
    padding: 1.3rem clamp(1.2rem, 2.2vw, 2rem) 2.3rem;
}

#main .location-box .loc-title {
	border-bottom: 1px solid var(--wp--preset--color--h-3);
	padding-bottom: 0.9rem;
}

#main .location-list-detailed a {
	color: var(--content-color);
	background: linear-gradient(0deg, var(--accent-color), var(--accent-color)) no-repeat 0 bottom / 0 2px;
	transition: background-size 350ms;
	background-position-x: 1.6rem;
	width: fit-content;
	text-decoration: none;
}

#main .location-list-detailed a:is(:hover, :focus-visible) {
	background-size: 100% 2px;
}

.location-box p, .location-box .icon-item {
    margin-top: 0;
	font-style: normal;
}

.sub-menu .location-box a.icon-item {
    margin-left: -0.5rem;
    padding-left: 2.3rem !important;
}

.sub-menu .location-box a.icon-item svg {
    left: 0.5rem
}

.location-box svg {
    width: 0.9rem;
    height: 0.9rem;
    transform: translateY(0.2rem);
}

#main .location-box svg {
	color: var(--accent-color);
}

.location-box img {
	box-shadow: 0px 0px 8px 0px rgba(0, 0, 0, 0.25);
}

@media only screen and (min-width: 37.5em) {
    .location-box {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 0 1rem;
    }
    
    .location-box .loc-title {
		flex: 0 0 100%;
    }
    
    .location-box .loc-left {
		flex: 0 0 10rem;
    }
    
    .location-box .hours {
		flex: 0 0 13rem;
    }

	.location-box img {
		flex: 1 0 10rem;
	}
}

/* Location Card Animations */
@media (prefers-reduced-motion:no-preference) {
    #main .location-list-detailed > .location-box {
        opacity: 0;
        transform: translateY(0);
    }

    #main .location-list-detailed.js-intersected > .location-box {
        --delay:calc(var(--i, 0) * 200ms);
        animation: fadein var(--time, 400ms) ease var(--delay) forwards
    }

    .location-box:nth-child(1) {
        --i: 0;
    }
    
    .location-box:nth-child(2) {
        --i: 1;
    }
}


/*--------------------------------------------------------------
# Full site styles
--------------------------------------------------------------*/

.overview-gradient-bg{
	background: linear-gradient(180deg, #E6EDF0 0%, rgba(230, 237, 240, 0) 15%);
}

.overview-gradient-bg{
	position: relative; 
}

.overview-gradient-bg:before{
	content:'';
	position: absolute; 
	top: -3.5em;
	right: 0; 
	width: 85%;
	height: 4em; 
	background: url('./images/grass.svg') no-repeat; 
	background-size: cover; 
}

.mobile-padding{
	padding-left: 1em; 
	padding-right: 1em; 
}

.animated-line-media-text  .wp-block-media-text__media:before{
	content: ''; 
	position: absolute;
	left: 0;
	bottom: -.5em; 
	width: 70%;
	height: .25em; 
	border-bottom: 1px solid #000; 
}

.animated-line-media-text  .wp-block-media-text__media:after{
	content: ''; 
	position: absolute;
	left: 70%;
	bottom: -.6em; 
	width: .25em;
	height: .25em;
	background: #000; 
	border-radius: 50%; 
}

@media (min-width: 68.5em) {
	.animated-line-media-text  .wp-block-media-text__media:before{
		bottom: -2em; 
	}
	.animated-line-media-text  .wp-block-media-text__media:after{
		bottom: -2.1em; 
	}
	.overview-gradient-bg:before{
		top: -4em;
		width: 60%;
	}
}

@media (min-width: 68.5em) {
	.mobile-padding{
		padding-left: 0 ;  
		padding-right: 0 ; 
	}
}

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
.footer {
	color: var(--white);
	background: var(--primary-color);
	padding-top: clamp(1.2rem, 2vw, 2.8rem);
	margin: 0;
	position: relative; 
}

.footer a,
.footer h3 {
	color: var(--white);
}

.footer a,
.location-list-names a {
	text-decoration: none;
	display: block;
	background: linear-gradient(0deg, var(--white), var(--white)) no-repeat 0 bottom / 0 2px;
    transition: background-size 350ms;
    font-size: var(--wp--preset--font-size--footer);
	
}

.footer a.icon-item {
	background-position-x: 1.6rem;
}

.footer a:is(:hover, :focus-visible) {
	background-size: 100% 2px;
}

.footer .location-list-names a:is(:hover, :focus-visible) {
	/*background-size: 100% 2px;*/
	background-size: 0 0 ;
}

.footer .location-list-names a span {
	background: linear-gradient(0deg, var(--white), var(--white)) no-repeat 0 bottom / 0 2px;
  	transition: background-size 350ms;
}

.footer .location-list-names a:is(:hover, :focus-visible) span{
	background-size: 100% 2px;
	
}

#foot_content {
    justify-content: space-between;
    font-size: var(--wp--preset--font-size--footer);
	gap: 6%;
}

#foot_content .wp-block-column {
    flex: 0 1 auto;
	flex-basis: fit-content !important;
	margin-bottom: 1rem;
}

.footer .footer-logo {
	max-width: 13.3rem;	
}

.footer .footer-logo:is(:hover, :focus-visible) {
	background-size: 0;
}

.footer-logo path {
    fill: var(--white);
}

.footer-socials a {
 transition: transform 0.3s ease;
}

.footer-socials a:is(:hover, :focus) {
	background: none;
	transform: scale(1.2);
}

.footer .wp-block-heading {
    font-size: clamp(1.1rem, 2vw, 1.2rem);
	border-bottom: 1px solid var(--white);
	padding-bottom: 0.6rem;
	margin: 0;
}

.footer .wp-block-heading + * {
	margin-top: 1rem;
}

.footer #footer-locations {
    flex: 1 0 auto;
}

.location-list-names a{
	margin-bottom: 1em; 
	padding-left: 1em; 
	padding-right: .25em;
	position: relative;
}

.location-list-names a:before{
	content: '';
	position: absolute; 
	left: 0; 
	top: 0;
	width: .2em;
	height: 1.5em; 
	background: var(--wp--preset--color--pr-light-blue); 
}

.footer .wp-block-heading{
	font-size: 1rem; 
	text-align: center; 
}

@media (min-width: 68.5em) {
	.footer li {
		margin: 0 0 .9em 0 ;
	}
}

@media only screen and (max-width: 68.49em) {
	#foot_content {
		flex-wrap: wrap !important;
		justify-content: center;
	}
	
	#footer-locations {
		flex-basis: 100% !important;
	}

    #footer-quick-links {
        display: none;
    }
	
	
}

.copyright-wrapper {
	padding-top: 1.2rem;
	padding-bottom: 5rem;
	text-align: center;
}

.policy-menu li {
	margin: 0;
}

.policy-menu li:nth-child(n+1):not(:last-child)::before {
    content: '|';
	position: absolute;
	right: -0.6rem;
}

.policy-menu a {
    font-size: var(--wp--preset--font-size--copyright);
}

#footer-quick-links .wp-block-navigation__container{
	display: block; 
}

#footer-quick-links{
	width: 5em; 
}

.social-menu svg{
	margin-top: -.25em; 
}

nav.footer-socials{
	position: relative;
	margin: 0; 
}

nav.footer-socials .is-layout-flex{
	justify-content: center; 
}

nav.footer-socials:before{
	content: ''; 
	position: absolute; 
	left: 0;
	top: 0.75em;
	width: 32%; 
	height: .25em; 
	border-top: 1px solid #fff; 
}

nav.footer-socials:after{
	content: ''; 
	position: absolute; 
	right: 0;
	top: 0.75em;
	width: 32%; 
	height: .25em; 
	border-top: 1px solid #fff; 
}

.location-list-names li {
	list-style: none; 
}

ul.location-list-names{
	padding: 0 ;
}

@media (min-width: 68.5em){
	nav.footer-socials:before, nav.footer-socials:after {
		width: 29%; 
	}
	.footer .wp-block-heading{
		text-align: left; 
	}
	.footer .wp-block-image img {
		width: 100%; 
	}
	.footer .wp-block-image {
		width: 100%; 
	}
	
/* 	.location-list-names {
		display: flex;
		flex-wrap: wrap;
	} */
/* 	.location-list-names a {
		width: 50%;
	}  */
 	#footer-socials{
	 	max-width: 17em;  
	} 
	.footer #footer-locations {
    	flex: 1 0 43% !important;
	}
	#footer-quick-links{
		flex: 0 0 20% !important;
	}
	.footer{
		z-index: 10; 
	}
	.footer:after{
		content:''; 
		position: absolute; 
		bottom: 0; 
		right: 0; 
		width: 30%;
		height: 100%; 
		background: url('./images/footer-flower.svg') no-repeat; 
		background-size: cover; 
		z-index: -1; 
	}
	.location-list-names{
		column-count: 2;
		column-gap: 1.5rem;
		width: 100%;
	}
}



@media only screen and (min-width: 68.5em) {
	.copyright-wrapper {
		text-align: left;
		padding-bottom: 1.2rem;
	}

	.policy-menu {
		justify-content: end;
	}
}

/*--------------------------------------------------------------
# Contact Section
--------------------------------------------------------------*/

.contact-section .wp-block-buttons > .wp-block-button {
	display: block; 
}

.contact-section-content h2{
	position: relative; 
	font-size: clamp(1.6em, 4vw, 2em); 
	margin-top: 1.5em;
	margin-bottom: 2em; 
	width: 8em; 
}

.contact-section-content h2:before {
	content: '' ; 
	position: absolute; 
	bottom; 0;
	left: -.5em;
	bottom: -.9em; 
	margin: auto; 
	width: 1.5em;
	height: .25em; 
	background:  var(--wp--preset--color--pr-green); 	
}

.contact-buttons .button{
	display: block;
	margin-bottom: 1em; 
	width: 11em;
	text-align: center;
	font-weight: bold; 
	background: var(--wp--preset--color--pr-green);
}

.contact-buttons .button.alt-style {
	background: #fff; 
	color: var(--wp--preset--color--pr-green); 
	border: 1px solid var(--wp--preset--color--pr-green); 
}

.contact-buttons .button.alt-style:hover, .contact-buttons .button.alt-style:focus-visible {
	border: 1px solid var(--wp--preset--color--bleh-green); 
	background: var(--wp--preset--color--bleh-green); 
	color: #fff; 
}

.wp-block-buttons .wp-block-button.sidebar-alt-button-style .wp-block-button__link {
	background: none ; 
	color: var(--wp--preset--color--pr-green); 
	border: 1px solid var(--wp--preset--color--pr-green); 
}

.wp-block-buttons .wp-block-button.sidebar-alt-button-style .wp-block-button__link:hover,
.wp-block-buttons .wp-block-button.sidebar-alt-button-style .wp-block-button__link:focus-visible{
	border: 1px solid var(--wp--preset--color--bleh-green); 
	background: var(--wp--preset--color--bleh-green); 
	color: #fff; 
}

@media (prefers-reduced-motion:no-preference) {
	.contact-section .contact-left img{
		clip-path: polygon(0 0, 0% 0, 0% 100%, 0% 100%);
		transition: clip-path .5s ease; 
	}
	
	.contact-section.js-intersected .contact-left img{
		clip-path: polygon(0 0, 110% 0, 110% 110%, 0% 110%);
	}
}

@media (min-width: 68.5em) {
	.contact-section{
		margin-top: 5em; 
	}
	.contact-section .wp-block-column:last-child {
		margin-left: 2em; 
	}
	.contact-section-content{
		width: 27em; 	
	}
	.contact-section-content h2 {
		width: 7em; 
	}	
	.contact-section-content h2{
	 	margin-bottom: 2em; 
		line-height: 1.2; 
	}
	.contact-section-content h2::before{
		bottom: -1.5em;
		left: 0;
	}
	.contact-left {
		align-self: end;
	}
}

/*--------------------------------------------------------------
# Map
--------------------------------------------------------------*/

.fm-map {
    position: relative;
    width: 100%;
    height: 51rem;
/*     max-height: calc(90vh - 3.2rem); */
    background: var(--grey);
    margin-bottom: 2rem;
}
.map-list-button {
    font-size: 1rem;
	padding: 1.1rem 1.5rem;
	position: relative; 
}
.map-list-button,
.map-show-list,
.map-show-map {
    background: none;
	color: var(--wp--preset--color--pr-green); 
}

.map-list-button:before{
	content: ''; 
	position: absolute; 
	left: 0; 
	top: 0; 
	width: .5em;
	height: 100%; 
	background:  var(--wp--preset--color--pr-green);
}

.map-list-button:after{
	content: ''; 
	position: absolute; 
	left: 0; 
	bottom: 0;
	width: 100%; 
	height: .25em;
	border-bottom: 1px solid #fff; 
}

.map-show-map,
.map-show-list {
    font-size: 0.8rem;
}
[hidden] {
    display: none;
}

.map-sidebar {
	background: var(--wp--preset--color--light-grey);
	padding: 0; 
}

.map-loc-header .map-loc-title a {
	color: var(--wp--preset--color--pr-green); 
}

.map-loc-details a{
	color: var(--wp--preset--color--pr-green); 
}

.map-loc-details a:hover,
.map-loc-details a:focus-visible {
	color: var(--wp--preset--color--pr-green); 
}

.map-loc-details{
	color: var(--wp--preset--color--pr-green); 
}

.map-loc-icon svg{
	color: var(--wp--preset--color--pr-green); 
}

.map-loc-header .fuel-average-rating .checked, .map-loc-header .fuel-average-rating .checked ~ i, .map-loc-header .fuel-average-rating .checked-before ~ i{
	color: var(--wp--preset--color--pr-green); 
}
.map-list-button:hover, .map-list-button:focus, .map-list-button.map-active{
	background: var(--wp--preset--color--pr-green); 
}

.map-view-bar {
	background: var(--wp--preset--color--light-grey); 
}

.map-view-bar button:hover{
	background:  var(--wp--preset--color--pr-green);
}

.map-show-list:before{
	content: ''; 
	position: absolute; 
	left: 0;
	top: 0; 
	width: .5em;
	height: 100%; 
	background: var(--wp--preset--color--pr-light-blue); 
}

.map-view-bar button{
	color: var(--wp--preset--color--pr-green); 
	text-align: left; 
}

.map-show-list svg {
	display: none; 
}

.map-list-button .map-loc-title{
	font-family: var(--content-font); 	
}

.entry-content .map-wrapper a {
	color: var(--wp--preset--color--pr-green) !important; 
}

.entry-content .map-wrapper a:hover,
.entry-content .map-wrapper a:focus-visible {
	color: var(--wp--preset--color--pr-light-blue) !important; 
	background-size: 0 !important; 
	text-decoration: none; 
}

.hours-note{
	font-size: .8em; 
}
.pharmacy-hours-title {
    margin-bottom: 0.2em;
}

#map_back{
	order: -1; 
}

@media (min-width: 68.5em) {
	.fm-map {
		min-height: 52em;
		height: initial; 
	}
}

/*--------------------------------------------------------------
# Fuel Tabs Block
--------------------------------------------------------------*/

.wp-block-fuel-tabs-wrapper:not(.tabs-only){
	border: none; 
}

.wp-block-fuel-tabs-wrapper .tablist{
	position: relative; 
	flex-direction: column; 
}

.wp-block-fuel-tabs-wrapper .tablist:before{
	content: '';
	position: absolute; 
	left: 0;
	bottom: 0;
	width: 100%;
	height: 1px;
	border-bottom: 1px solid var(--wp--preset--color--pr-green); 
	z-index: 10; 
}

.wp-block-fuel-tabs-wrapper .tablist:after{
	content: '';
	position: absolute; 
	right: 0;
	bottom: -.1em;
	width: 5px;
	height: 5px;
	border-radius: 50%; 
	background: var(--wp--preset--color--pr-green); 
}

.wp-block-fuel-tabs-wrapper .tablist li{
	flex: initial; 
}

.wp-block-fuel-tabs-wrapper .tablist li a {
	display: flex;
	align-content: center;
	text-decoration: none; 
	background: var(--wp--preset--color--light-grey); 
	color: var(--wp--preset--color--medium-grey); 
	padding: 1em 1em 1.25em 1em; 
	position: relative; 
	justify-content: center; 
}

.wp-block-fuel-tabs-wrapper .tablist li a svg{
	transition: transform .25s ease; 
}
 
.wp-block-fuel-tabs-wrapper .tablist li a svg{
	content: '';
	position: absolute; 
	left: 0;
	right: 0;
	bottom: .5em;
	width: .75em;
	height: .75em; 
	margin: auto; 
} 

.wp-block-fuel-tabs-wrapper .tablist li a:hover, 
.wp-block-fuel-tabs-wrapper .tablist li a:focus-visible {
	background: var(--wp--preset--color--pr-green); 
	color: #fff; 
}

.wp-block-fuel-tabs-wrapper .tablist li a:hover svg, 
.wp-block-fuel-tabs-wrapper .tablist li a:focus-visible svg{
	transform: rotate(180deg); 
}

.tab {
	border: none; 
}

.tab[aria-selected="true"] {
    background: var(--wp--preset--color--pr-green) !important; 
    color: #fff !important; 
}

.tab svg {
	transition: transform .25s ease; 
}

.tab[aria-selected="true"] svg{
	transform: rotate(180deg); 
}

.wp-block-fuel-tabs-wrapper .tablist{
	gap: 0 .25em;
}

@media (min-width: 68.5em) {
	.wp-block-fuel-tabs-wrapper .tablist{
		flex-direction: row; 
	}
}


/*--------------------------------------------------------------
# Animations
--------------------------------------------------------------*/

.animated-line {
	position: relative;
}

.animated-line:before{
	content: ''; 
	position: absolute;
	left: 0;
	bottom: -.5em; 
	width: 70%;
	height: .25em; 
	border-bottom: 1px solid #000; 
}

.animated-line:after{
	content: ''; 
	position: absolute;
	left: 70%;
	bottom: -.6em; 
	width: .25em;
	height: .25em;
	background: #000; 
	border-radius: 50%; 
}

.animated-line.full-line.move-line-up:before{
	bottom: 1.5em;
	width: 90%; 
}

.animated-line.full-line.move-line-up:after{
	bottom: 1.4em;
	left: 90%; 
}

.animated-line.full-line{
	padding-bottom: 3em;
}

.animated-line.full-line:before{
	width: 100%; 
	bottom: .5em;
}

.animated-line.full-line:after{
	left: 100%;
	bottom: .4em; 
}

.animated-line.top-line{
	padding-top: 1em; 
}

.animated-line.top-line:before {
	bottom: 100%; 
}

.animated-line.top-line:after {
	bottom: 98.5%; 
}

#sidebar .animated-line:after {
	bottom: -1.575em;
}

#sidebar .animated-line:before {
	bottom: -1.5em;
}

@media (min-width: 68.5em) {
	.animated-line:before{
		bottom: -2em; 
	}
	.animated-line:after{
		bottom: -2.1em; 
	}
}

@keyframes spin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(var(--spin-rotation, 360deg)); }
}

@keyframes fadein {
	0% { opacity: var(--fadein-opacity, 0); transform: translate(var(--x, 0), var(--y, 5rem)); }
	100% { opacity: 1; transform: translate(0, 0); }
}

/* popAnimation Example: https://jsfiddle.net/KTC_88/8xkLv520/ */
@keyframes popAnimation {
    0% {transform: scale(0.5); opacity: 0;}
    80% {transform: scale(1.1)}
    100% {transform: scale(1); opacity: 1}
}

/**
 * Animation helper classes.
 */
@media (prefers-reduced-motion:no-preference) {
	/* Add to wrappers to animate children */
	.popin > * {
		transform: scale(0.5);
		opacity: 0;
	}

	.popin.js-intersected > * {
		--delay:calc(var(--i, 0) * 200ms);
		animation: popAnimation 400ms ease var(--delay) forwards
	}

	.fadein-items > * {
		opacity: 0;
		transform: translateY(0);
	}

	.fadein-items.js-intersected > * {
		--delay:calc(var(--i, 0) * 200ms);
		animation: fadein var(--time, 400ms) ease var(--delay) forwards
	}

	/* Add directly to element that will be affected */
	.fadein {
		opacity: 0;
		transform: translateY(0);
		--y: 0;
	}

	.fadeup {
		opacity: 0;
		transform: translateY(5rem);
	}

	.fadedown {
		opacity: 0;
		transform: translateY(-5rem);
		--y: -5rem;
	}
	
	.fadeleft {
		opacity: 0;
		transform: translateX(-5rem);
		--x: -5rem;
		--y: 0;
	}
	
	.faderight {
		opacity: 0;
		transform: translateX(5rem);
		--x: 5rem;
		--y: 0;
	}

	.js-intersected:is(.fadein, .fadeup, .fadedown, .fadeleft, .faderight)  {
		animation: fadein var(--time, 300ms) var(--easing, ease) forwards
	}
}

/*--------------------------------------------------------------
## Page Transition
# @see https://css-tricks.com/animating-with-clip-path/
# @see https://www.uplabs.com/posts/clip-path-generator
--------------------------------------------------------------*/
.page-transition {
	display: none;
}

/*
 * Page transition bug:
 * Mobile, page transition: Something to take note on. Whenever I click to a page, 
 * then press back on my iPhone, the page transition is locked and I only see the green background color over my whole screen. 
 * I can’t navigate from that point at all anymore.
 */

/*
@media (prefers-reduced-motion:no-preference) {
	.page-transition {
		display: block;
		will-change: transform;
		background-color: var(--wp--preset--color--menu-hover-bg);
		pointer-events: none;
	}

	.transition-in {
		animation: 0.3s slidein-left forwards;
	}

	.transition-out {
		animation: 0.3s slideout-right 0.3s  forwards;
	}

	@keyframes slidein-left {
		0% { clip-path: inset(0% 100% 0% 0%); }
		100% { clip-path: inset(0% 0% 0% 0%); }
	}

	@keyframes slideout-right {
		0% { clip-path: inset(0% 0% 0% 0%); }
		100% { clip-path: inset(0% 0% 0% 100%); }
	}
}
*/

/*--------------------------------------------------------------
# Print
--------------------------------------------------------------*/
@media print {
	@page {
		margin: 0.5cm;
	}

	* {
		background: transparent !important;
		color: black !important;
		text-shadow: none !important;
		-webkit-filter: none !important;
		filter: none !important;
		-ms-filter: none !important;
	}

	a, a:visited {
		color: #444 !important;
		text-decoration: underline;
	}

	pre, blockquote {
		border: 1px solid #999;
		page-break-inside: avoid;
	}

	tr, img {
		page-break-inside: avoid;
	}

	img {
		max-width: 100% !important;
	}

	p, h1, h2, h3 {
		orphans: 3;
		widows: 3;
	}

	h1, h2, h3 {
		page-break-after: avoid;
	}

	.main-header {
		padding-top: 0 !important;
		padding-bottom: 0 !important;
	}

	.main-title {
		margin: 0;
		padding-bottom: 1rem;
		border-bottom: 2px solid #000;
	}

	.primary-menu, #sidebar, .header, .footer, .page-navigation, .pagination, .wp-prev-next, .respond-form {
		display: none !important;
	}
}

/*--------------------------------------------------------------
# Safari 15.3 fallbacks
  Safari 15.3 and under bug fixes - welcome to the new IE
--------------------------------------------------------------*/
@media not all and (min-resolution: 0.001dpcm) {
	@supports (-webkit-appearance: none) {
	  /* Hide Dialog (not supported) */
		dialog {
			display: none;
			background-color: #fff;
			z-index: 9999;
		}

		dialog[open] {
			display: block;
		}

		/* menu fixes */
		.js-active .sub-menu-trigger[aria-expanded=true] + .sub-menu .sub-animate > * {
			background: #fff;
		}
		.primary-menu .menu-label:hover {
			color: #fff;
		}
	}
  }