/*
Theme Name: Fuel6
Theme URI: https://fuelmedical.com
Author: Fuel Medical
Description: A Fuel Medical block theme (2024)
Requires at least: 6.5
Tested up to: 6.9
Requires PHP: 8.0
Version: 6.4.4
*/

/*--------------------------------------------------------------
>>> TABLE OF CONTENTS:
----------------------------------------------------------------
# Custom Properties
# Fuel Normalize
# Helper Classes
# WordPress Blocks
# Header
# Content
# Footer
# Animations
# print
# Safari 15.3 fallbacks
--------------------------------------------------------------*/

/*--------------------------------------------------------------
# Custom Properties
--------------------------------------------------------------*/
body {
	/* Structure - 1100px - for use outside of contain class */
	--contain-padding: clamp(1rem, calc(50vw - 29.93rem), 19rem);

	/* 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);

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

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

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

html:has(.ios) {
	overscroll-behavior: none;
}

html {
	font-size: clamp(125%, 1vw, 240%);
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scrollbar-gutter: stable;
	min-width: 15rem;
}

iframe,
img,
svg,
video {
	vertical-align: middle;
	max-width: 100vw;
}

img {
	object-fit: cover;
/* 	width: -webkit-fill-available; */
}

img:not([src*=".png"], [src*=".gif"], [src*=".svg"]) {
	background: var(--grey);
}

picture[style*="width"] {
    display: flex;
}

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

button {
	transition: color 300ms, background-color 300ms;
}

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

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

[hidden] {
	display: none;
}

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

.content-cta{
	background: var(--wp--preset--color--light-gray);
	color: var(--primary-color);
	position: relative;
	margin-bottom: 2rem !important ; 
	z-index: 10;
	overflow: hidden; 
	border: none;
	border-radius: 4px; 
}

.content-cta:before{
	content:'';
	position: absolute;
	
	right: -3rem;
	width: 13rem;
	height: 8rem;
	z-index: -1;
	
	top: 0;
/*   	right: 0;
  	width: 18rem;
  	height: 11rem; */
	background: url(./images/content-cta-accent.svg); 
	background-size: cover;
}

.content-cta:after{
	content:'';
	position: absolute;
	bottom: -2rem;
  	left: 0;
  	width: 18rem;
  	height: 16px;
	background: var(--accent-color); 
	border-radius: 0 5px 5px 0;
}

@media (min-width: 68.5em) {
	.content-cta:before{
		top: -2rem;
		right: 0;
  		width: 18rem;
  		height: 11rem; 
	}
}

@media (prefers-reduced-motion: no-preference) {
	.content-cta:after{
/* 		width: 0;  */
		transform: scaleX(0);
		transform-origin: left; 
		transition: transform .5s .5s ease; 
	}
	.js-intersected.content-cta:after{
/* 		width: 18rem;  */
		transform: scaleX(1);
	}
}



.content-cta p{
	color: var(--primary-color);
}
.content-cta a{
	color: var(--primary-color);
	font-weight: 600; 
}

/*--------------------------------------------------------------
# Helper Classes
--------------------------------------------------------------*/
.contain {
	--contain-padding: clamp(var(--mobile-padding, 1rem), calc(50vw - 29.93rem), var(--desktop-padding, 19rem));
	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;
}

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

@media (min-width: 68.5em) {
	.mobile-only {
		display: none !important;
	}
}

@media (max-width: 68.49em) {
	.desktop-only {
		display: none !important;
	}

	body {
		--center-on-mobile: center;
	}

	.text-center-on-mobile {
		text-align: var(--center-on-mobile);
	}

	.center-on-mobile {
		justify-content: var(--center-on-mobile);
	}

	.align-items-center-on-mobile {
		align-items: center;
	}

	.margin-center-on-mobile {
		margin-left: auto;
		margin-right: auto;
	}

	.stack-on-mobile {
		flex-direction: column;
	}

	.full-width-on-mobile {
		width: 100%;
		max-width: 100%;
	}

	.wrap-on-mobile {
		flex-wrap: wrap;
	}
}

.zebra > *:not(tbody):nth-child(odd) {
	background-color: var(--zebra, var(--grey));
}

.toggle-content:has(.zebra) {
	padding: 0;
}

/* Use on query loops to help change the order every other column */
.stagger > :nth-child(odd) .wp-block-columns {
	flex-direction: row-reverse;
}

/* Use to make link fill entire block - use when you can't wrap blocks with anchor tag */
.cover-link {
	position: absolute !important;
	inset: 0;
	width: 100%;
	z-index: 1;
	background: none !important;
	
}

.sub-menu .location-card a.cover-link{
	color:  var(--wp--preset--color--transparent) !important;
}

.location-card a.cover-link{
	color:  var(--wp--preset--color--transparent) !important;
}

:has(> .cover-link) {
	position: relative;
}

/*--------------------------------------------------------------
# WordPress Blocks
--------------------------------------------------------------*/
@media (max-width: 37.49em) {
	:where(.alignleft, .alignright):not(.wp-block-query .wp-block-post-featured-image) {
		float: none;
		margin: 0 auto 1rem;
	}
}

@media (min-width: 37.5em) {
	:where(.alignleft, .alignright):not(.wp-block-query .wp-block-post-featured-image) {
		max-width: 48%
	}
}

@media (min-width: 68.5em) {
	.is-position-sticky {
		transition: top 0.3s ease;
	}

	body:has(header.show-sticky) .is-position-sticky {
		top: 4rem;
	}
}

/* Button hover/focus styles */
.wp-element-button, .wp-block-button__link{
	background: var(--primary-color); 
	border: none; 
	position: relative; 
 	overflow: hidden; 
	z-index: 10; 
	font-weight: 600; 
	font-size: 1rem !important ; 
	font-family: var(--title-font); 
}
.wp-element-button, .wp-block-button__link:is(:hover, :focus-visible){
	color: #fff; 
}
.wp-element-button:after, 
.wp-block-button__link:after{
	content:'';
	position: absolute; 
	right: 95%;
	top: -3rem;
	width: 110%;
	height: 8rem;
	background: var(--accent-color);
	border-radius: 50%; 
	transition: right .25s ease ; 
	z-index: -1; 
}
.wp-element-button:hover:after, 
.wp-block-button__link:focus-visible:after{
	right: -5%;
}

.wp-block-search__button.wp-element-button{
		border: 1px solid var(--primary-color); 
}

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

.cta p.wp-block-button__link{
	position: relative; 
}

.alt-button .wp-element-button{
	background: #fff !important; 
	color: var(--primary-color) !important ;
	border: 1px solid var(--primary-color);
}

.alt-button .wp-element-button:hover{
	color: #fff !important ; 
}

.alt-button .wp-element-button:focus-visible{
	color: #fff !important ; 
}

@media (max-width: 68.49em) {
	.entry-content .wp-block-buttons {
		justify-content: var(--center-on-mobile); /* Center buttons on mobile but not in menu */
	}
}

/* Search block */
.wp-block-search__input {
	border-color: var(--search-white, currentColor);
	color: var(--search-white, currentColor);
	background: none;
	outline: 0;
}

.wp-block-search__button {
	margin-left: -0.1rem;
	border-top-left-radius: 0;
	border-bottom-left-radius: 0;
}

.wp-block-search__button:is(:hover, :focus-visible) {
	background: var(--search-button-bg, var(--white));
	color: var(--search-white, var(--accent-color));
}

.gradient-group {
	background: linear-gradient(180deg, #C5CDDC -43.25%, #FFFFFF 45.25%);
	padding-top: 3rem;
	margin-top: 3rem; 
	border-radius: 35px 35px 0 0 ;
}

/*--------------------------------------------------------------
# Header
--------------------------------------------------------------*/

.header{
	background: var(--primary-color); 
	width: 90%;
  	margin: 1rem auto 0 auto;
	border-radius: 5px 5px 5px 5px ; 
}

.header-logo a {
	z-index: 1;
  	position: relative;
}

@media (min-width: 68.5em) {
	.header{
		margin: 2rem auto 0 auto;
		box-shadow: 0px 0px 12px 0px rgba(0, 0, 0, 0.25);
	}
}

.wp-block-columns{
	background: none !important; 	
}

.header .wp-block-columns{
	position: relative; 
}

.header .wp-block-columns:before{
	content:'';
	position: absolute; 
	left: 0; 
	bottom: 0; 
	height: .75rem;
	width: 100%; 
	background: var(--wp--preset--color--light-gray); 
	border-radius: 0 0 5px 5px; 
}


@media (max-width: 68.49em) {
	.show-sticky .wp-block-group:has( > .fuel6-walker-menu):not(:has(.depth-0 > .menu-link[aria-expanded="true"])) {
		bottom: calc((var(--menu-height) + env(safe-area-inset-bottom) + 0.05rem) * -1);
	}
}

@media (min-width: 68.5em) {
	.header:not(.block-editor-block-list__block) {
		position: sticky;
		top: calc(var(--headerHeight, 11.7rem) * -1);
		z-index: 999;
		transition: top 0.5s ease;
	}

	body:not(.js-active) .header:not(.block-editor-block-list__block),
	.header:has(.depth-0 > .menu-link[aria-expanded="true"]),
	.header.show-sticky:not(.block-editor-block-list__block) {
		--menuTop: calc(var(--headerHeight, 11.7rem) - var(--menu-height, 3.2rem));
		top: calc(var(--menuTop, 8.5rem) * -1);
	}
}

.header-logo svg{
	height: 2.5rem !important ; 
}

@media (min-width: 68.5em) {
	.header-logo svg{
		height: 4.5rem !important ; 
	}
	.header .wp-block-columns:before{
		display: none; 
	}
}

.header-logo svg,
.footer-logo svg {
	transition: transform 0.3s ease;
}

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


.header a.phone-tree-number {
	width: fit-content;
	background: linear-gradient(0deg, var(--white), var(--white)) no-repeat 0 bottom / 0 2px;
  	transition: background-size 350ms;
}

.header a.phone-tree-number:is(:hover, :focus-visible) {
	background-size: 100% 2px;
  	color: var(--white);
}

@media (min-width: 68.5em) {
	.header .phone-tree{
		display: flex;
		justify-content: right;
		gap: 2rem; 
		padding-top: 1.5rem; 
	}
	.header .phone-tree a{
		color: #fff; 
	}
	.header .phone-tree-number{
		display: flex;
		flex-flow: column; 
		font-size: 1.6rem; 
		font-weight: 600; 
		font-family: var(--title-font); 
	}
	.header .phone-tree strong{
		font-weight: 400; 
		font-size: 1rem; 
		font-family: var(--content-font); 
	}
}

/*--------------------------------------------------------------
# Video Lightbox
--------------------------------------------------------------*/

#fuel_lightbox { position: fixed; inset: 0; z-index: 99999; background: var(--black, #000); box-shadow: 0 1px 6px rgba(0, 0, 0, 0.7); max-width: 90dvw; max-height: 90dvh; padding: 0; overflow: visible; }
#fuel_lightbox .lightbox-close { text-transform: uppercase; position: absolute; inset: 0 0 auto auto; padding: 0.3rem 0.5rem; cursor: pointer; transition: opacity 0.3s; }
#fuel_lightbox iframe, #fuel_lightbox img { max-width: -webkit-fill-available; max-height: inherit; }
#fuel_lightbox img { width: 100%; height: 100%; }
#fuel_lightbox .lightbox-close {text-transform: uppercase;position: absolute;inset: 0.25rem 0.25rem auto auto;padding: 1rem 1rem;cursor: pointer;opacity: 1;background: red;color: var(--white);z-index: 99;border-radius: 0.5rem;} 
#fuel_lightbox .lightbox-close:is(:hover, :focus-visible) { background: var(--white); color: red; }

/* Fullscreen styling */
#fuel_lightbox.fullscreen { max-width: 100vw; max-height: 100vh; }

/* Needed for iPhone/iPad */
#fuel_lightbox[open], #fuel_lightbox[open] iframe { width: 100%; height: 100%; }
#fuel_lightbox.fullscreen .lightbox-close { inset: 1.2rem 0 auto; width: 5rem; margin: auto; }
#fuel_lightbox.fullscreen iframe, #fuel_lightbox.fullscreen img { width: 100vw; height: 100vh; object-fit: contain; }

/* Lightbox Animation */
#fuel_lightbox[open] { animation: lightBoxIn var(--s, 0.5s) var(--e, ease); }
#fuel_lightbox.close{ animation: lightBoxOut var(--s, 0.5s) var(--e, ease); }

@keyframes lightBoxIn { 
	0% { opacity: var(--o1, 0); transform: translate(var(--x1, 0), var(--y1, 0)); }
	100% { opacity: var(--o2, 1); transform: translate(var(--x2, 0), var(--y2, 0)); }
}

@keyframes lightBoxOut { 
	0% { opacity: var(--o2, 1); transform: translate(var(--x2, 0), var(--y2, 0)); }
	100% { opacity: var(--o1, 0); transform: translate(var(--x1, 0), var(--y1, 0)); }
}

/*--------------------------------------------------------------
# Content
--------------------------------------------------------------*/

.synced-pattern-menu-cta-about h3{
	border: 1px solid #fff; 
	color: #fff; 
	padding: 1rem 2rem; 
	font-weight: 700 !important ; 
	font-size: 1.2rem !important ; 
	text-align: center; 
	position: relative;
	width: 90%;
	margin: 1rem auto; 
}

.synced-pattern-menu-cta-about h3:after{
	content:''; 
	position: absolute; 
	left: -1rem;
	bottom: -1rem; 
	width: 2.5rem; 
	height: 2.5rem; 
	background-color: var(--primary-color);
	background-image: url('./images/logo-icon.svg');
	background-repeat: no-repeat;
	background-size: 80%;
	background-position: center; 
	border-radius: 50%; 
}

.team-pattern-4 img{
	width: 3rem; 
}

.loc-pattern-fax svg{
	width: .8rem; 
}

.footer .fax svg {
	margin-right: .25rem;
}

@media (min-width: 68.5em) {
	.synced-pattern-menu-cta-about{
		padding-top: 3rem !important; 
	}

	.synced-pattern-menu-cta-about h3{
		border: 1px solid var(--primary-color); 
		color: var(--primary-color);
		width: 100%; 
		margin: inherit; 
	}
	.synced-pattern-menu-cta-about h3:after{
		background-color: #fff;
	}
	
}




/*--------------------------------------------------------------
# Location
--------------------------------------------------------------*/

.single-location .entry-wrapper .location-info{
	align-items: inherit !important ; 
}

.single-location .entry-wrapper .location-info svg{
	color: var(--accent-color);
}

.location-card{
	max-width: 20rem; 
}

.location-card .hours-row {
	justify-content: space-between; 
}

.sub-menu .location{
	background: #fff !important ; 	
/* 	margin-top: 2rem; */
	margin-bottom: 2rem; 
}


.location-card .vital-info a{
	color: var(--wp--preset--color--content); 
	width: fit-content;
  	background: linear-gradient(0deg, var(--wp--preset--color--content), var(--wp--preset--color--content)) no-repeat 0 bottom / 0 2px;
  	transition: background-size 350ms;
}

.location-card .vital-info a:hover{
	background-size: 100% 2px;
  	color: var(--wp--preset--color--content);
}

.location-card .vital-info a:focus-visible {
	background-size: 100% 2px;
  	color: var(--wp--preset--color--content);
}

.location-card a.wp-block-button__link{
	color: #fff; 
}

.location-card a.wp-block-button__link:hover:after{
	right: -5%;
}

#location_section{
	padding-bottom: 3rem ; 
}

#location_section > .wp-block-group {
	position: relative; 
	overflow: visible; 
	
}

#location_section > .wp-block-group:after{
	content: '';
    position: absolute;
    right: 0;
    bottom: -2rem ;
    width: 7rem;
	max-width: 38.2rem; 
    height: 16px;
    background: var(--accent-color);
    border-radius: 5px 0 0 5px;
}

.location-card h3{
	margin-top: 1rem;
	font-weight: 600 !important ; 
}

#location_section h2{
	border-bottom: 1px solid #fff; 
	padding-bottom: 1rem; 
	font-weight: 600; 
	font-size: clamp(1.2rem, 4vw, 2rem) !important ;
}

.loc-pattern-fax{
	margin-top: .25rem !important ; 
	padding-top: .25rem !important ; 
	
}

.loc-pattern-hours{
	margin-top: -.75rem !important ; 
}

@media (min-width: 68.5em) {
	#location_section > .wp-block-group:after{
		 width: 100%;
		 max-width: 38.2rem; 
	}
	.entry-content .location-card h3{
		font-size: 1.4rem !important ; 
	}
}

@keyframes homeLoc{
	to{
		opacity: 1; 
		transform: translateX(0);
	}
}

@media (prefers-reduced-motion: no-preference){
	.home-loc-left{
		opacity: 0;
		transform: translateX(-3rem);
	}
	.home .entry-content .location-cta .location{
		opacity: 0;
		transform: translateX(-3rem);
	}
	
	.home-loc-wrapper.js-intersected .home-loc-left {
		animation: homeLoc 1s 1s ease forwards; 
	}
	.home .entry-content .home-loc-wrapper.js-intersected .location-cta .location:first-child{
		animation: homeLoc 1s 2s ease forwards; 
	}
	.home .entry-content .home-loc-wrapper.js-intersected .location-cta .location:last-child{
		animation: homeLoc 1s 3s ease forwards; 
	}
	
}


@media (prefers-reduced-motion: no-preference) and (min-width: 68.5rem) {
	.home-loc-left{
		opacity: 0;
		transform: translateX(-3rem);
	}
	.home .entry-content .location-cta .location{
		opacity: 0;
		transform: translateX(-3rem);
	}
	.home .entry-content .home-loc-wrapper.js-intersected .location-cta .location:last-child{
		animation: homeLoc 1s 1s ease forwards; 
	}
	.home .entry-content .home-loc-wrapper.js-intersected .location-cta .location:first-child{
		animation: homeLoc 1s 2s ease forwards; 
	}
	.home-loc-wrapper.js-intersected .home-loc-left {
		animation: homeLoc 1s 3s ease forwards; 
	}
}

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

#contact_section h2{
	font-size: clamp(1.2rem, 4vw, 2rem) !important ;
	font-weight: 600 !important;
	position: relative; 
}

#contact_section h2:after{
	content:''; 
	position: absolute; 
	left: 0; 
	right: 0; 
	bottom: -1rem; 
	margin: auto; 
	height: 1px;
	width: 5rem;
	background: #fff; 
}

#contact_section {
	position: relative; 
	overflow: visible; 
	border-radius: 5px !important ; 
}

#contact_section .wp-block-group.fadeup{
	width: 90%; 
} 

#contact_section .wp-block-group{
	max-width: 43rem !important ; 
}

#contact_section:after{
	content: '';
    position: absolute;
    right: 0;
    bottom: -2rem;
    width: 7rem;
	max-width: 38.2rem; 
    height: 16px;
    background: var(--accent-color);
    border-radius: 5px 0 0 5px;
}

@media (min-width: 68.5em) {
	#contact_section:after{
		 width: 100%;
		 max-width: 38.2rem; 
	}
}
@media (prefers-reduced-motion: no-preference) {
	#contact_section:after{
		transform: scaleX(0);
		transform-origin: right;
		transition: transform 1s 1s ease; 
	}
	
	#contact_section.js-intersected:after{
		transform: scaleX(1); 
	}

}
	

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
.footer a {
	width: fit-content;
	background: linear-gradient(0deg, var(--white), var(--white)) no-repeat 0 bottom / 0 2px;
	transition: background-size 350ms;
}

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

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

.footer-socials a {
	transition: transform 0.3s ease;
	font-size: 1.2rem;
}

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

.footer-tagline{
	font-weight: 600; 
	text-align: center; 
	font-size: 1.2rem; 
}

.footer h3{
	padding-top: 1rem; 
	border-top: 1px solid #fff; 
	font-size: .9rem !important ; 
}

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

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

.social-columns-footer{
	padding-top: 2rem; 
	border-top: 1px solid #fff; 
}

.instagram-link p{
	margin-left: .35rem;
}


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

@media (min-width: 68.5em) {
	.footer-content-middle{
		padding-top: 3.5rem;
	}
	.footer-content-right{
		padding-top: 3.5rem;
	}
	.footer-tagline-right {
		border-bottom: 1px solid #fff;
		transform: translateY(3.5rem);
		padding-bottom: 1rem;
	}
	#footer-socials{
		margin-top: -1rem;
	}
	.footer-tagline{
		
		font-size: 1.6rem; 
		text-align: left; 
	}
	.footer h3{
		border-top: none; 
	}
	
	.social-columns-footer{
		padding-top: 0 ; 
		padding-left: 1rem; 
		border-top: none; 	
		flex-flow: column; 
	}
}

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

@keyframes fadein {
	0% {
		opacity: var(--o1, 0);
		transform: translate(var(--x1, 0), var(--y1, 5rem));
	}
	100% {
		opacity: var(--o2, 1);
		transform: translate(var(--x2, 0), var(--y2, 0));
	}
}

@keyframes fadeout {
	0% {
		opacity: var(--o2, 1);
		transform: translate(var(--x2, 0), var(--y2, 0));
	}
	100% {
		opacity: var(--o1, 0);
		transform: translate(var(--x1, 0), var(--y1, 5rem));
	}
}

@keyframes reveal {
	0% {
		opacity: var(--o1, 0);
		clip-path: inset(var(--reveal, 25%));
	}
	100% {
		opacity: var(--o2, 1);
		clip-path: inset(var(--reveal, 0%));
	}
}

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

/* popAnimation Example: https://jsfiddle.net/KTC_88/8xkLv520/ */
@keyframes popAnimation {
	0% {
		transform: scale(0.5);
		opacity: 0;
	}
	60% {
		transform: scale(1.2)
	}
	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);
		--y1: 0;
	}

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

	.fadedown {
		opacity: 0;
		transform: translateY(-5rem);
		--y1: -5rem;
	}

	.fadeleft {
		opacity: 0;
		transform: translateX(-5rem);
		--x1: -5rem;
		--y1: 0;
	}

	.faderight {
		opacity: 0;
		transform: translateX(5rem);
		--x1: 5rem;
		--y1: 0;
	}

	.reveal {
		opacity: 0;
		clip-path: inset(25%);
	}

	body:not(.js-active) .js-intersect:is(.fadein, .fadeup, .fadedown, .fadeleft, .faderight), /* NO JS */
	.js-intersected:is(.fadein, .fadeup, .fadedown, .fadeleft, .faderight) {
		animation: fadein var(--time, 300ms) var(--easing, ease) var(--delay, 0s) forwards
	}

	body:not(.js-active) .js-intersect.reveal, /* NO JS */
	.js-intersected.reveal {
		animation: reveal var(--time, 300ms) var(--easing, ease) var(--delay, 0s) forwards
	}
}

.i2 {--i: 2}
.i3 {--i: 3}
.i4 {--i: 4}
.i5 {--i: 5}
.i6 {--i: 6}
.i7 {--i: 7}
.i8 {--i: 8}
.i9 {--i: 9}
.i10 {--i: 10}

.delay500 {--delay: 500ms}
.delay1000 {--delay: 1s}
.delay1500 {--delay: 1.5s}
.delay2000 {--delay: 2s}

/* Used to make images in links grow when link is hovered - simply add .hover-img-grow to link or image block */
figure.hover-img-grow,
.hover-img-grow figure {
	overflow: hidden;
}

.hover-img-grow img {
	transition: transform var(--time, 0.3s);
}

a:has(+ .hover-img-grow):is(:hover, :focus-visible)+figure img,
a:has(.hover-img-grow):is(:hover, :focus-visible) img,
a.hover-img-grow:is(:hover, :focus-visible) img {
	transform: scale(var(--scale, 1.1));
}

/*--------------------------------------------------------------
# Print
--------------------------------------------------------------*/
@media print {
	* {
		background: transparent !important;
		color: initial !important;
		--wp--preset--color--white: initial !important;
	}

	.main-header {
		all: unset;
	}

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

	nav,
	#sidebar,
	.header,
	.footer,
	.pagination,
	.wp-prev-next,
	.main-header img,
	.wp-block-cover__image-background,
	.wp-block-cover__background,
	main + * {
		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: var(--white);
			z-index: 9999;
		}

		dialog[open] {
			display: block;
		}

		/* menu fixes */
		.js-active .sub-menu-trigger[aria-expanded=true]+.sub-menu .sub-animate>* {
			background: var(--white);
		}

		.primary-menu .menu-label:hover {
			color: var(--white);
		}
	}
}

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