/*
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.7.1
Requires PHP: 8.0
Version: 6.3.7
Text Domain: fuel6
*/

/*--------------------------------------------------------------
>>> TABLE OF CONTENTS:
----------------------------------------------------------------
# Custom Properties
# Fuel Normalize
# Helper Classes
# WordPress Blocks
# Forms - Moved to css/gravity-forms.css
# Header
# Content
# Footer
# 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);
	--primary-trans: var(--wp--preset--color--primary-point-one);
	--accent-color: var(--wp--preset--color--accent);
	--light-blue: var(--wp--preset--color--light-blue);
	--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--light-blue);

	/* Sub Menu Colors */
	--wp--preset--color--sub-menu-background: var(--primary-color);
	--wp--preset--color--sub-menu-color: var(--white);
	--wp--preset--color--sub-menu-hover-color: var(--white);
	--wp--preset--color--sub-menu-hover-bg: var(--wp--preset--color--light-blue);

	/* 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: clamp(125%, 1vw, 240%);
	line-height: 1.9;
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scrollbar-gutter: stable;
	min-width: 18rem;
}

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 {
	color: var(--primary-color);
	transition: color 300ms, background-color 300ms;
}

a[href^="tel:"] {
	white-space: nowrap;
}

a:hover {
	color: var(--primary-color);
}

[hidden] {
	display: none;
}

@media only screen and (min-width: 68.5em) {
	*[id] {
		scroll-margin-top: 3rem;
	}
}

/*--------------------------------------------------------------
# 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;
}

.title-font {
	font-family: var(--title-font);
}

@media (min-width: 68.5em) {
	.mobile-only {
		display: none !important;
	}

}

@media (max-width: 68.49em) {
	.desktop-only {
		display: none !important;
	}

	.has-clamped-font-size {
		font-size: 1rem !important;
	}

	body {
		--center-on-mobile: center;
	}
}

.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(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;
}

:has(> .cover-link) {
	position: relative;
}

/*--------------------------------------------------------------
# WordPress Blocks
--------------------------------------------------------------*/
@media (min-width: 37.5em) {

	.alignleft,
	.alignright {
		max-width: 48%
	}
}

@media (min-width: 68.5em) {
	.is-position-sticky {
		top: 4rem;
	}
}

/*--------------------------------------------------------------
# Header
--------------------------------------------------------------*/
.hero-wave {
	width: 100%;
	position: absolute;
	bottom: -1px;
	left: 0;
	max-width: unset;
}

@media (min-width: 68.5em) {
	.header-number {
		text-decoration: none;
	}

	.header:not(.block-editor-block-list__block) {
		position: sticky;
		top: -8.5rem;
		z-index: 9999;
	}

	.header-number svg {
		color: var(--primary-color);
		transition: color 300ms, background-color 300ms;
		border-radius: 50%;
	}

	.header-number:hover svg {
		background-color: var(--accent-color);
		border-radius: 50%;
		color: var(--white);
	}

	.header-number:hover {
		color: var(--accent-color);
	}

	.header-number .phone-number {
		position: relative;
	}

	.header-number .phone-number::before {
		content: '';
		width: 100%;
		height: 2px;
		background-color: var(--accent-color);
		position: absolute;
		bottom: 0;
		left: 0;
		transform: scaleX(0);
		transform-origin: left;
		transition: transform 300ms;
	}

	.header-number:hover .phone-number::before {
		transform: scaleX(1);
	}

	.header-right nav a {
		display: inline-block;
		position: relative;
		overflow: hidden;
		padding-left: 1.2rem;
	}

	.header-right nav:first-of-type a::before {
		content: '';
		width: 100%;
		height: .05em;
		background-color: var(--accent-color);
		position: absolute;
		bottom: 0;
		right: 0;
		transition: right 300ms;
	}

	.header-right nav:first-of-type a:is(:hover, :focus-visible)::before {
		right: calc(100% - 1rem);
	}

	.header-right nav:first-of-type a>span {
		display: block;
		position: relative;
	}

	.header-right .globe a>span::before,
	.header-right .forms a>span::before,
	.header-right .calendar a>span::before {
		content: '';
		width: 1em;
		height: 1em;
		background-image: linear-gradient(to right, rgba(0, 116, 185, 1), rgba(0, 116, 185, 1));
		clip-path: url("#svg_globe");
		position: absolute;
		top: 0.3em;
		left: -1.2rem;
		transition: background-image 300ms;
	}

	.header-right .forms a>span::before {
		clip-path: url("#svg_form");
	}

	.header-right .calendar a>span::before {
		clip-path: url("#svg_cal");
	}

	.header-right .globe a:hover>span::before,
	.header-right .forms a:hover>span::before,
	.header-right .calendar a:hover>span::before {
		background: var(--accent-color);
	}
}

.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);
}

@media (max-width: 68.49em) {
	.header {
		position: relative;
		z-index: 998;
	}

	.header-logo {
		text-align: center;
	}

	.header-logo svg,
	.footer-logo svg {
		height: clamp(4.26rem, 6vw, 5.5rem);
	}
}

.header-quicklinks ul {
	flex-wrap: nowrap;
}

.header-quicklinks li {
	min-width: fit-content
}

.header-quicklinks.header-quicklinks a {
	padding: 0rem 0.1rem 0.2rem 1.2rem;
	border-bottom-left-radius: 3px;
	border-bottom-right-radius: 3px;
}

.header-quicklinks a:is(:hover, :focus-visible) {
	color: var(--primary-color);
}

.header-quicklinks svg {
	margin-right: 0.3rem;
	transform: translateY(-0.1rem);
}

/*--------------------------------------------------------------
# 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;
}

/* If a grid has only one column, make it full width */
.wp-block-post-template.is-layout-grid:not(:has(li:nth-child(2))) {
	grid-template-columns: 1fr
}

/* Location Section */
#location_section a {
	color: var(--content-color);
	text-decoration: none;
}

.loc-link circle,
.loc-link path {
	transition: fill 350ms;
}

.loc-link:has(a:hover) circle {
	fill: var(--accent-color);
}

.loc-link:has(a:hover) path {
	fill: var(--white);
}

.hours-row {
	min-width: 11rem;
}

.location {
	position: relative;
}

.location:first-of-type .location-card>.wp-block-group::before {
	content: '';
	width: calc(100% - 2rem);
	height: 0.4rem;
	background: url(./images/map-dot.svg);
	background-size: contain;
	background-repeat: space;
	position: absolute;
	bottom: 0rem;
	left: 0.5rem;
	z-index: -1;
}

@media (max-width: 68.49em) {
	#location_section .wp-block-image {
		margin-left: 1rem !important;
		margin-right: 1rem !important;
	}

	.location-card {
		padding: 0 0 1.6rem !important;
	}

	.location-card>.wp-block-group {
		margin-top: 0;
		row-gap: 1.5rem;
	}

	.location:last-of-type {
		margin-top: 1.6rem;
	}

	.location-card svg {
		width: 1.8rem;
		margin-top: -0.2rem !important;
	}
}

@media (min-width: 68.5em) {
	.location-cta ul {
		display: flex;
		/* flex-direction: column; */
	}

	.loc-details .wp-block-group .wp-block-group:has(.phone, .fax) {
		margin-block-start: 0.5rem;
	}

	#location_section .address {
		min-width: fit-content;
	}
}

/* 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;
}

.locations figure {
	max-width: fit-content;
}

@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;
	max-width: 11.5rem;
}

.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-image {
		height: unset;
		aspect-ratio: 1575/1800;
		border-radius: 4px;
		position: relative;
		overflow: visible;
	}

	.sub-menu .bio-list .bio-box.bio-box {
		margin-left: -1rem;
	}

	.sub-menu .bio-box::after,
	#main .bio-box::after {
		content: '';
		--link-svg: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" fill="none" width="18" height="18"><path stroke="white" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M10.37 7.63a3.88 3.88 0 0 0-5.49 0l-2.74 2.74a3.88 3.88 0 0 0 5.49 5.5L9 14.48"></path><path stroke="white" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M7.63 10.37a3.88 3.88 0 0 0 5.49 0l2.74-2.74a3.88 3.88 0 1 0-5.49-5.5L9 3.52"></path></svg>');
		background-color: currentColor;
		-webkit-mask: var(--link-svg);
		mask: var(--link-svg);
		position: absolute;
		inset: 0 8vw 0 auto;
		width: 0.9rem;
		height: 0.9rem;
		margin: auto;
		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);
	}
}

@media (min-width: 68.5em) {
	.bio-list {
		display: flex;
		flex-wrap: wrap;
		gap: 4rem;
		align-items: flex-start;
		margin-top: 1.2rem;
		max-width: fit-content;
		justify-content: flex-start;
	}

	.bio-list .bio-box {
		grid-template-areas:
			"img"
			"label";
		flex: 0 1 calc(25% - 3rem);
		max-width: 11.25rem;
		min-width: 7.5rem;
		/* Adjust to prevent names from wrapping */
		text-align: center;
		text-decoration: none;
	}

	.bio-list.bio-list .bio-box:is(:hover, :focus-visible) {
		background: none;
	}

	.bio-list .bio-image {
		display: block;
		width: 100%;
		max-width: 11.25rem;
		height: auto;
		aspect-ratio: 225/285;
		margin: auto;
		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);
	}
}

/* Shared Bio Menu Styling */
.sub-menu .bio-box {
	position: relative;
}

.sub-menu .bio-box::before {
	content: '';
	width: 100%;
	max-width: 11.25rem;
	aspect-ratio: 225/285;
	border: 1px solid white;
	border-radius: 4px;
	position: absolute;
	top: -10px;
	left: -10px;
	z-index: 1;
}

.sub-menu .bio-list .bio-image::after {
	content: '';
	width: 6px;
	aspect-ratio: 1/1;
	background-color: var(--accent-color);
	border-radius: 50%;
	position: absolute;
	top: -3px;
	left: -3px;
	z-index: 1;
}

.sub-menu .bio-list img {
	border-radius: 4px;
}

@media (min-width: 68.5em) {
	.sub-menu .bio-list .bio-image {
		border: unset;
	}

	.bio-list .bio-image {
		border-bottom: 0.4rem solid var(--primary-color);
		;
	}

	.sub-menu .bio-list .bio-image::before {
		left: -0.4rem;
		top: -0.4rem;
	}

	.sub-menu .bio-list .bio-image::after {
		width: 0.8rem;
		left: -0.8rem;
		top: -0.8rem;
	}
}

/* Home Page Welcome Section and About Us page */
.welcome-pics {
	position: relative;
	max-width: fit-content;
	min-width: 15rem;
}

body .welcome-pics img {
	border-radius: 50%;
}

.welcome-pic-small {
	position: absolute;
	top: 0;
	left: 0;
	max-width: 50%;
	z-index: 1;
}

.welcome-pic-small::before {
	content: '';
	width: calc(100% + 4px);
	height: calc(100% + 4px);
	border: 4px solid var(--white);
	border-radius: 50%;
	position: absolute;
	top: -2px;
	left: -2px;
}

.welcome-pic-large {
	position: relative;
	max-width: fit-content;
}

.welcome-pic-large::before {
	content: '';
	width: 100%;
	height: 100%;
	border-radius: 50%;
	border: 1px solid var(--accent-color);
	position: absolute;
	bottom: 5px;
	right: 5px
}

.about-mt .wp-block-media-text__media img {
	border-radius: unset;
}

.about-mt .wp-block-media-text__media::before {
	display: none;
}

.about-bottom {
	position: relative;
}

.about-bottom .wave-lines {
	width: 100%;
	position: absolute;
	top: 0;
	left: 0;
}

.wave-lines-wrap {
	max-width: unset !important;
	width: calc(100% + calc(2 * clamp(1.5rem, -1rem + 6.2vw, 3rem)));
	margin-left: calc(clamp(1.5rem, -1rem + 6.2vw, 3rem) * -1) !important;
	margin-bottom: -1px;
}

@media (max-width: 68.49em) {
	.welcome-cols {
		padding: 0 !important;
	}
}

@media (min-width: 68.5em) {
	.welcome-pics {
		min-width: 22rem;
		padding-top: 1.5rem;
	}

	.welcome-pics figure {
		border-radius: 50%;
		animation: reveal 1s ease-out forwards;
		animation-play-state: paused;
		clip-path: circle(0% at 50% 50%);
	}

	.js-intersected .welcome-pics figure {
		animation-play-state: running;
	}

	.welcome-pic-small {
		top: 1.5rem;
	}

	.welcome-pics figure:last-of-type {
		animation-delay: 500ms;
	}

	.welcome-pic-large::before {
		opacity: 0;
		transition: opacity 300ms;
		transition-delay: 1s;
	}

	.js-intersected .welcome-pic-large::before {
		opacity: 1;
	}
}

/*--------------------------------------------------------------
# Contact Section
--------------------------------------------------------------*/
#contact_section {
	position: relative;
	margin-top: -2px;
}

#contact_section .wp-block-column:first-of-type .phone {
	color: var(--white);
}

#contact_section .wp-block-columns {
	overflow: hidden;
}

#contact_section::before {
	content: '';
	width: 100%;
	aspect-ratio: 1920/171;
	background: url('./images/contact-waves.svg');
	background-size: cover;
	position: absolute;
	top: 0;
	left: 0;
	z-index: 1;
}

.contact-waves {
	position: absolute;
	top: 0;
	left: 0;
}

.contact-number .phone {
	text-decoration: none;
}



@media (max-width: 68.49em) {
	#contact_section .wp-block-columns {
		margin-top: 0 !important;
	}

	#contact_section .wp-block-column:last-of-type {
		padding: 0.8rem 0.7rem !important;
	}

	#contact_section em {
		font-size: 0.8rem !important;
		margin-top: -0.4rem !important;
		display: block;
	}

	.contact-logo {
		width: 4.4rem;
		height: fit-content;
	}
}

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
.footer {
	margin: 0;
	position: relative;
}

.footer a {
	display: block;
	width: fit-content;
	background: linear-gradient(0deg, var(--white), var(--white)) no-repeat 0 bottom / 0 2px;
	transition: background-size 350ms;
	text-decoration: none;
}

.footer a.icon-item {
	background-position-x: 1.6rem;
}

.footer a.address {
	margin: unset !important;
}

.footer a:not(.footer-logo):is(:hover, :focus-visible) {
	background-size: 100% 2px;
	color: var(--white);
}

.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 h3 {
	position: relative;
	z-index: 1;
}

.footer h3::before {
	content: '';
	width: 1.2rem;
	aspect-ratio: 1/1;
	background-color: var(--light-blue);
	border-radius: 50%;
	position: absolute;
	top: -0.3rem;
	left: -0.6rem;
	z-index: -1;
}

.watermark {
	position: absolute;
	top: 3rem;
	right: 3rem;
	width: clamp(29%, 29%, 27rem);
}

.footer .fax svg {
	margin-right: 0.5rem;
}

.footer .type-location {
	margin-top: unset;
}


@media (max-width: 68.49em) {
	.footer .fax {
		display: flex;
	}

	.footer h3 {
		font-size: 1.2rem !important;
	}

	#footer-socials>.wp-block-group {
		padding-right: 0 !important;
	}

	.footer-socials {
		display: none;
	}

	.watermark {
		display: none;
	}
}

@media (min-width: 68.5em) {
	#foot_content .wp-block-column:not(:first-of-type) {
		margin-top: 2.8rem;
	}
}

/* 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;
}

/*--------------------------------------------------------------
# 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);
	}
}

@keyframes reveal {
	to {
		clip-path: circle(75% at 50% 50%);
	}
}

/* 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(3rem);
	}

	.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
	}

	.contact-logo {
		overflow: visible;
	}

	.contact-logo path {
		opacity: 0;
		transition: opacity 350ms;
		transition-delay: 1350ms;
	}

	.js-intersected .contact-logo path {
		opacity: 1;
	}

	.contact-logo circle {
		opacity: 0;
		transform: scale(0.5);
		transform-origin: center;
		transition: opacity 350ms;
	}

	.js-intersected .contact-logo circle:not(.contact-circle) {
		opacity: 1;
		transform: scale(1);
		transition: transform 1s ease 350ms, opacity 350ms;
	}

	.js-intersected .contact-circle {
		animation: popAnimation 1s ease 2s 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);
		}
	}
}