/*
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.6.2
Requires PHP: 8.0
Version: 6.3.4
Text Domain: fuel6
*/

/*--------------------------------------------------------------
>>> TABLE OF CONTENTS:
----------------------------------------------------------------
# Custom Properties
# Fuel Normalize
# Helper Classes
# WordPress Blocks
# Forms - Moved to css/gravity-forms.css
# Header
# Content
# Footer
# Map
# Animations
# print
# Safari 15.3 fallbacks
--------------------------------------------------------------*/

/*--------------------------------------------------------------
# Custom Properties
  Note: WordPress declares its variables in the body, so do the same to avoid scope issues.
--------------------------------------------------------------*/
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);

	/* Top Level Primary Menu Colors - now managed on the block level */
	--wp--preset--color--menu-background: inherit;
	--wp--preset--color--menu-color: currentColor;
	--wp--preset--color--menu-hover-color: var(--white);
	--wp--preset--color--menu-hover-bg: var(--wp--preset--color--color-2);

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

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

/*--------------------------------------------------------------
# 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;
	scrollbar-gutter: stable;
	position: relative;
	min-width: 18rem;
}

/* background gradients */
body{
	background: var(--wp--preset--color--tan);
	position: relative; 
	padding-bottom: 3rem; 
}

body:before{
	content:'';
	position: absolute;
	top: 0;
	left: 0; 
	width: 100%; 
	height: 100%; 
	background: 	
		radial-gradient(23rem 30rem at left top, rgba(250, 176, 177, 1), rgba(250, 176, 177, 0)),
    	radial-gradient(30em 30em at right top, rgba(176, 239, 255, 1), rgba(0, 255, 0, 0)),
    	radial-gradient(23em 30em at 100% 5%, rgba(250, 176, 177, 1), rgba(250, 176, 177, 0)),
		radial-gradient(23rem 30rem at right 30%, rgba(250, 176, 177, 1), rgba(250, 176, 177, 0)),
		radial-gradient(30em 30em at left 50%, rgba(176, 239, 255, 1), rgba(0, 255, 0, 0)),
    	radial-gradient(23em 30em at left 55%, rgba(250, 176, 177, 1), rgba(250, 176, 177, 0)),
		radial-gradient(30em 30em at left 10%, rgba(176, 239, 255, 1), rgba(0, 255, 0, 0)),
    	radial-gradient(23em 30em at left bottom, rgba(250, 176, 177, 1), rgba(250, 176, 177, 0));
	background-repeat: no-repeat;
	z-index: -1; 
}

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

img {
	object-fit: cover;
}

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

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

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

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

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

.fax {
	margin-left: .25rem; 
}

.page-id-28 .entry-content .location-card .fax{
	margin-left: 0 ; 
}

/*--------------------------------------------------------------
# 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;
}

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

@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: var(--center-on-mobile);
	}
}

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

/* Use on query loops to help change the order every other column */
.stagger > :nth-child(even) .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;
}

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

.site-width {
	width: 95%; 
	max-width: 80rem; 
	margin-left: auto; 
	margin-right: auto; 
	margin-top: 3rem; 
	border-radius: 5px; 
	border: 1px solid #fff; 
	padding: 1rem; 
	background: rgba(255, 255, 255, .25)
}

#contact-section .site-width{
	padding: 0; 
}

.bio-label{
	text-align: center !important ; 
}

/*--------------------------------------------------------------
# WordPress Blocks
--------------------------------------------------------------*/
@media (min-width: 37.5em) {
	.alignleft,
	.alignright {
		max-width: 48%
	}
}

@media (min-width: 68.5em) {
	.is-position-sticky {
		top: 4rem;
	}
}

/*--------------------------------------------------------------
# Header
--------------------------------------------------------------*/
@media (min-width: 68.5em) {
	.header:not(.block-editor-block-list__block) {
		position: sticky;
		top: -10.2rem;
    	z-index: 9999;
	}
}

.footer-logo.alignleft{
	display: block; 
	float: none; 
	max-width: 100%; 
}

.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 {
	padding-top: 1rem;
	margin: 0;
	max-width: 80rem;
	margin-left: auto;
	margin-right: auto;
	width: 95%;
}

.header .wp-block-columns{
	padding-left: 0 !important; 
	padding-right: 0 !important; 
}

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

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

.header-logo {
	height: 11.5rem; 
}

.header-logo a{
	display: block; 
	height: 9.5rem; 
}

@media (min-width: 68.5em) {
	.header-logo {
		height: initial;
	}
	.header-logo .wp-block-fuel-wrapper-block {
		margin-bottom: 1rem;
		padding-bottom: 0;
	}
	.header-logo a{
		height: initial; 
	}
	.header-logo .wp-block-fuel-dynamic-spacer{
		--desktop-height: 0 !important;
	} 
}

.header-number:is(:hover, :focus-visible),
.entry-content .phone-cta:is(:hover, :focus-visible) {
	color: var(--content-color);
}

.header-quicklinks.header-quicklinks a {
	padding: 0.45rem 1.6rem;
	border-bottom-left-radius: 3px;
	border-bottom-right-radius: 3px;
	font-family: var(--title-font); 
}

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

.footer .wp-container-core-navigation-is-layout-1{
	flex-direction: row;
	justify-content: space-between;
}

#footer-quick-links{
	max-width: 18rem; 
}

.footer .location a.phone,
.footer .location span.fax {
	margin: 0; 
}

.header-quicklinks .wp-block-fuel-menu-item{
	border-radius: 10px;
}

.header-number .phone-number{
	font-weight: 700; 
}
.policy-menu a {
	color: var(--content-color);
}

.header-quicklinks .menu-label {
	overflow: hidden; 
	z-index: 10; 
}

.header-quicklinks .menu-label .screen-reader-hidden {
	position: absolute;
	bottom: -.75rem;
	width: 100%;
	height: 100%;
	left: 0;
	right: 0;
	color: var(--primary-color); 
	background: linear-gradient(69.97deg, #FAB0B1 25.04%, #B0EFFF 73.35%);
	transform: translateY(2rem);
	opacity: 0; 
	transition: transform .25s ease, opacity .5s ease; 
	display: flex;
	justify-content: center;
	align-items: center;
	z-index: 1; 
	border-radius: 10px; 
}

.header-quicklinks a.menu-label:hover .screen-reader-hidden,
a.menu-label:focus-visible .screen-reader-hidden{
	transform: translateY(-.75rem);
	opacity: 1; 
}

.header-quicklinks a.menu-label .menu-label-text,
.header-quicklinks a.menu-label .menu-label-svg{
	transition: transform .5s ease; 
}

.header-quicklinks a.menu-label:hover .menu-label-text,
.header-quicklinks a.menu-label:hover .menu-label-svg,
.header-quicklinks a.menu-label:focus-visible .menu-label-text,
.header-quicklinks a.menu-label:focus-visible .menu-label-svg {
	transform: translateY(-3rem);
}

.header-quicklinks a.menu-label .base-text{
	display: block; 
	transform: translateY(0);
	transition: transform .5s ease; 
	width: 100%;
	height: 100%;
}

.header-quicklinks a.menu-label:hover .base-text,
.header-quicklinks a.menu-label:focus-visible .base-text{
	transform: translateY(-3rem);
	
}

.primary-menu .menu-label:focus-visible{
	background: none; 
}

/* menu background hover */

.sub-menu-trigger.menu-label .screen-reader-hidden{
	display: none; 
}

@media (min-width: 68.5em) {
	.sub-menu-trigger.menu-label{
		overflow: hidden; 
		z-index: 10; 
	}
	.sub-menu-trigger.menu-label .screen-reader-hidden {
		position: absolute;
		bottom: 0; 
		width: 100%;
		height: 100%;
		left: 0;
		right: 0;
		color: var(--primary-color); 
		background: linear-gradient(69.97deg, #FAB0B1 25.04%, #B0EFFF 73.35%);
 		transform: translateY(4.25rem);
/* 		transition: transform .5s ease;  */
		transition: transform .25s ease;
		display: flex;
		justify-content: center;
		align-items: center;
		z-index: 1; 
	}
	.sub-menu-trigger.menu-label .screen-reader-hidden:after{
		content: '';
    	position: absolute;
    	bottom: .9rem;
    	left: 0;
    	right: 0;
    	margin: auto;
    	width: 1.5rem;
    	height: 0.1rem;
    	border-bottom: 2px solid var(--primary-color);
	}
	
/* 	.sub-menu-trigger.menu-label .screen-reader-hidden:before{
		content: '';
    	position: absolute;
    	top: 0 ;
    	left: 0;
    	width: 100%;
    	height: 100%;
    	background: var(--primary-color);
		transition: opacity .5s ease; 
	} */
	
/* 	.sub-menu-trigger.menu-label:hover .screen-reader-hidden:before{
		opacity: 0; 
	} */

	.sub-menu-trigger.menu-label:hover .screen-reader-hidden,
	.sub-menu-trigger.menu-label:focus-visible .screen-reader-hidden,
	.sub-menu-trigger.menu-label[aria-expanded="true"] .screen-reader-hidden{
		transform: translateY(0);
		
	}	
	
	.sub-menu-trigger.menu-label .menu-label-text{
		opacity: 1; 
		transition: transform .25s ease, opacity .1s ease; 
	}
	
	.sub-menu-trigger.menu-label:hover .menu-label-text,
	.sub-menu-trigger.menu-label:focus-visible .menu-label-text,
	.sub-menu-trigger.menu-label[aria-expanded="true"] .menu-label-text{
		transform: translateY(-2rem);
		opacity: 0; 
	}
	li:not(.menu-notifications, .mobile-label) .sub-menu-trigger::after{
		transition: transform .3s ease; 
	}
	li:not(.menu-notifications, .mobile-label) .sub-menu-trigger:hover:after,
	li:not(.menu-notifications, .mobile-label) .sub-menu-trigger:focus-visible:after{
		transform: translateY(-2rem);
	}
}


/*--------------------------------------------------------------
# Content
--------------------------------------------------------------*/
.wp-site-blocks {
    margin: auto;
}

#main {
	margin: 0 0 2em;
	font-size: var(--wp--preset--font-size--content);
}

.entry-content .wp-block-list li {
	margin: 1em 0 0 0;
}

/* Location card loop - Used in content, and menu */
.sub-menu .location-card {
    background: none !important;
	padding-top: 0 !important;
}

.sub-menu .location-card .wp-block-post-title {
    border-bottom: 1px solid;
    padding-bottom: 0.5rem;
    font-size: 1.1rem;
    font-family: var(--content-font);
    font-weight: bold;
}

.sub-menu .location h2.wp-block-heading{
	font-size: .9rem; 
	position: relative; 
	border-bottom: none; 
}

.sub-menu .location h2.wp-block-heading:after {
	content: '';
   	position: absolute;
   	bottom: 0;
   	left: 1rem;
   	width: 2rem;
   	height: 1px;
   	border-bottom: solid 1px #fff;
}

@media (min-width: 68.5em) {
	.sub-menu .location h2.wp-block-heading:after{
		left: 0; 
	}
}


.location a.phone{
	margin-bottom: 0 !important; 
}
.location p{
	margin-top: 0; 
}

@media (max-width: 68.49em) {
	.sub-menu .location-cta svg {
		color: var(--white);
	}
}

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

.bio-list .bio-image {
	grid-area: img;
	width: 2rem;
	height: 3rem;
	margin-right: 0.5rem;
	overflow: hidden;
}

.bio-list img {
	width: 100%;
	height: 100%;
}

.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;
}

@media (max-width: 68.49em) {
    #main .bio-list .bio-box {
        padding: 0.3rem 1rem;
		margin-left: -1rem;
        width: calc(100% + 2rem);
    }

    #main .bio-list .bio-box:nth-child(odd) {
        background: rgba(0,0,0,0.1);
    }

	/* Menu styling */
	.sub-menu .bio-list .bio-box.bio-box {
        margin-left: -1rem;
		width: 110%; 
    }

    .sub-menu .bio-box::after,
    #main .bio-box::after {
        content: '';
       --link-svg: url('data:image/svg+xml,<svg width="7" height="12" viewBox="0 0 7 12" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M0.0645471 10.125L4.18955 5.99995L0.0645475 1.87495L1.12505 0.814453L6.31055 5.99995L1.12505 11.1855L0.0645471 10.125Z" fill="white"/></svg>'); 
        background-color: currentColor; 
          -webkit-mask: var(--link-svg); 
        mask: var(--link-svg); 
        position: absolute;
		right: 1rem;
		top: 0;
		bottom: 0; 
		margin: auto; 
       	width: 0.35rem;
        height: 0.6rem;
		transition: background-color 0.3s ease;
		
    }
    
    .sub-menu .bio-list .bio-box:not(:hover, :focus-visible):nth-child(odd) {
        background: rgba(255,255,255,0.1);
    }
	
	.primary-menu .wp-block-button__link.wp-block-button__link{
		border: 1px solid #fff; 
	}
	.primary-menu .wp-block-buttons .wp-element-button:is(:hover, :focus-visible), 
	.primary-menu .wp-block-buttons .wp-block-button__link.wp-block-button__link:is(:hover, :focus-visible){
		color: var(--primary-color); 
	}
	
}

@media (min-width: 68.5em) {
	.bio-list {
		display: flex;
    	flex-wrap: wrap;
    	gap: .1rem;
    	align-items: flex-start;
		margin-top: 1rem;
	}

	.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 {
		display: block;
		width: 100%;
		height: auto;
		aspect-ratio: 1 / 1.2;
		margin-bottom: 0.8rem;
	}

	.bio-list .bio-image img {
		transition: transform 0.3s;
	}
	
	.bio-list .bio-box:is(:hover, :focus-visible) .bio-image img {
		transform: scale(1.1);
	}

	.bio-list .bio-cred {
		color: var(--content-color);
	}
}

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
.footer {
	margin: 0;
	color: var(--content-color); 
	font-size: .9rem  ; 
}

.footer-columns {
	gap: 9%
}

.footer a {
	display: block;
	width: fit-content;
	background: linear-gradient(0deg, var(--primary-color), var(--primary-color)) no-repeat 0 bottom / 0 2px;
    transition: background-size 350ms;
	color: var(--content-color); 
	font-size: .9rem  ; 
}

.footer .hours{
	color: var(--content-color); 
	font-size: .9rem  ; 
}

.footer h3 {
	color: var(--content-color); 
	font-weight: 700; 
	font-size: .9rem  ; 
}

.copyright-wrapper a {
	font-size: .8rem 
}

.footer-column-right h3{
	position: relative;
	border-bottom: none; 
	padding-bottom: 1rem; 
}

.footer-column-right h3:after{
	content:'';
	position: absolute;
	bottom: 0; 
	left: 0; 
	width: 2rem; 
	height: 1px;
	border-bottom: solid 1px #000; 
}

.footer h3.footer-tag-line{
	font-size: clamp(1.2rem, 4vw, 1.6rem); 
	text-align: center; 
	padding-bottom: 1rem; 
	border-bottom: 1px solid #000; 
}

.footer .wp-block-navigation .wp-block-navigation-item__content.wp-block-navigation-item__content {
	color: #000; 
}

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

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

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

@media (min-width: 69.625em) {
	#menu-footer {
		column-count: 2;
	}
}

.copyright {
	color: var(--content-color); 
}

.footer .fax{
	color: var(--content-color); 
}

.wp-block-search__input{
	border: 1px solid #4a4a4a;
	padding: 0 0 0 .5rem; 
}

.footer .wp-block-search__inside-wrapper{
	position: relative; 
}

.footer .wp-block-search__inside-wrapper:after{
	content:'';
	position: absolute;
	right: .5rem;
	top: 0; 
	bottom: 0;
	margin: auto; 
	width: 1rem;
	height: 1rem; 
	background: url('./images/search-icon.svg') no-repeat; 
	background-size: cover; 
}

.footer .facebook-footer a {
	color: var(--primary-color); 
}

.footer .wp-block-search__no-button{
		width: 100%;  
	}

@media (min-width: 68.5em) {
	.footer h3.footer-tag-line {
		text-align: left; 
		border-bottom: none;
		position: relative;
	}	
	.footer h3.footer-tag-line:after{
		content: '';
  		position: absolute;
  		bottom: 1.35rem;
    	left: initial;
    	right: initial;
     	width: 72%; 
        width: -webkit-fill-available;
		transform: translateX(.5rem);
 		height: 2px;
		margin: 0 0.5rem 0 auto;
  		border-bottom: 1px solid #000;
	}
	.footer .site-width{
		overflow: hidden; 
	}
	.facebook-footer {
		padding-left: .5rem; 
	}
	.facebook-footer svg{
		margin-right: .25rem; 
		margin-top: -.25rem; 
	}
	.footer .wp-block-search__no-button{
		padding-left: .5rem;  
	}
	
}


/* 850px - Mobile breakpoint for copyright section */
@media only screen and (max-width: 53.125em) {
	.copyright-wrapper {
		flex-direction: column;
		text-align: center;
	}

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

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

/*--------------------------------------------------------------
# Map
--------------------------------------------------------------*/
.fm-map {
	position: relative;
	width: 100%;
	height: 30rem;
	max-height: calc(90vh - 3.2rem);
	background: var(--grey);
	margin-bottom: 2rem;
}

.map-list-button {
    font-size: 1rem;
}

.map-list-button,
.map-show-list,
.map-show-map {
	background: none;
}

.map-show-map,
.map-show-list {
	font-size: 0.8rem;
}

[hidden] {
    display: none;
}

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

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

/* 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 {
	@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: 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);
		}
	}
}