/*
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.2.0
Text Domain: fuel6
*/

/*--------------------------------------------------------------
>>> TABLE OF CONTENTS:
----------------------------------------------------------------
# Custom Properties
# Fuel Normalize
# Custom Elements
# WordPress Blocks
# Header
# Content
# Footer
# Map
# Video Lightbox
# 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 - for use outside on 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);
	--black: var(--wp--preset--color--black);
	--white: var(--wp--preset--color--white);
	--grey: var(--wp--preset--color--grey);

	--charky-dark: var(--wp--preset--color--color-1);
	--scurple-purple: var(--wp--preset--color--color-2);
	--rover-clover: var(--wp--preset--color--color-3);
	--mint-pie: var(--wp--preset--color--color-4);


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

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


/*--------------------------------------------------------------
# Fuel Normalize
--------------------------------------------------------------*/
body { overflow-x: hidden; }
*, *::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; }
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: var(--grey); }
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);}

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

@media (max-width: 68.49em) {
    iframe[title="Message Us"] {
        bottom: 4rem !important;
    }
}

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

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


/*--------------------------------------------------------------
# WordPress Blocks
--------------------------------------------------------------*/
.alignleft, .alignright { width: 100% }
#main .alignleft { float: left; margin: 0 1em 0.2em 0; }
#main .alignright { float: right; margin: 0 0 0.2em 1em; }
.entry-content *:has(.alignright, .alignleft) { display: flow-root; }

@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; min-width: 100%; }
}


/*--------------------------------------------------------------
# Header
--------------------------------------------------------------*/
.header {position: relative;z-index: 1;background: var(--white);}
.header .wp-block-columns.contain {--contain-padding: 1.2rem;padding-top: 0;padding-bottom: 0;justify-content: center;}
.header-logo {padding-top: 0.75rem;padding-bottom: 0.75rem;}
.header-logo > a { display: inline-block; }
.header-logo svg {transition: transform 0.3s ease;height: 4.1rem;}
.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 { z-index: 998; }
	.header-logo { text-align: center; }
	.header-right { display: none; }
}


.header-right {text-align: right;}
.header-quicklinks li:last-of-type .menu-label { width: nerp; }
.header-quicklinks .menu-label {display: block;padding: 0.5rem 1rem;font-size: 0.9rem;line-height: 1.2rem;background: rgba(45, 107, 175, 0.1);border-radius: 0 0 0.25rem 0.25rem;transition: 300ms ease;.header-quicklinks .menu-label {position: relative;overflow: hidden;z-index: 1;};} 
.header-quicklinks .menu-label:is(:hover, :focus-visible) {color: var(--white);background: var(--primary-color);}
.header-quicklinks .menu-label svg path { transition: 300ms ease; }
.header-quicklinks .menu-label:is(:hover, :focus-visible) svg path { fill: var(--white); }
.header-quicklinks svg {width: auto;height: 0.8rem;margin-right: 0rem;transform: translateY(-0.1rem);}
.header-quicklinks li:last-of-type svg { width: nerp; }
.hdr-menu-search .sub-menu {right: 0;bottom: auto;padding: 2rem 0rem 3rem;width: 100%;max-width: 30rem;box-shadow: none;} 
.hdr-menu-search .sub-menu .sub-animate {justify-content: center;}
.hdr-menu-search .sub-menu .tablist {padding: 0;opacity: 1 !important;transform: translateY(0) !important;}
.hdr-menu-search .sub-menu .tablist .wp-block-search {opacity: 1;transform: translateX(0);padding: 0;} 
.hdr-menu-search .sub-menu .wp-block-search__inside-wrapper { border: none; padding: 0; }
.hdr-menu-search .sub-menu .wp-block-search__input {padding: 0 0 0 0.5rem;min-width: 15rem;}
.hdr-menu-search .sub-menu .wp-block-search__button {margin: 0;background: var(--color-2);padding: 0.5rem 1rem;}
.hdr-menu-search .sub-menu .wp-block-search__button:is(:hover, :focus-visible) { background: var(--accent-color); }

/* Delete this CSS and block if not using header phone number */ 
.header-number {font-size: clamp(1rem, 3vw, 2rem);font-size: 1.5rem;font-family: var(--title-font);/* margin-top: clamp(0.9rem, 4vw - 2rem, 1.5rem) !important; */display: block;background: var(--primary-color);width: 100%;max-width: 284px;max-width: 240px;padding: 0.4rem;color: lime;}
.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: none; /* change to block to unhide *//* transform: translateY(1.5rem); */}
.dialog-box .phone-tree { --wp--style--global--content-size: 24rem; max-width: var(--wp--style--global--content-size); width: 90vw; }
.phone-tree a {display: flex;color: var(--primary-color);margin-bottom: 0.8rem;text-align: left;}
.phone-tree a:last-child { margin-bottom: 0; }
.phone-tree a:nth-child(even) {justify-content: flex-end;font-style: italic;}
.phone-tree a:is(:hover, :focus-visible) { text-decoration: underline; }
.phone-tree a strong {flex: auto;position: relative;overflow: hidden;}
.phone-tree a strong::after {content: '';position: absolute;bottom: 0.35rem;height: 1em;width: 100%;margin-left: 0;background: radial-gradient(var(--primary-color) 1px,transparent 0) left bottom/8px 8px repeat-x;}
.phone-tree a svg { margin-right: .3rem; margin: 0.4rem 0.3rem 0 0.45rem; }
.close-dialog {border: none;background: var(--accent-color);}
.close-dialog:is(:hover, :focus-visible) {background: #c02b0a;color: var(--white);}

/* Custom Styles */
@media (min-width: 48.875em) { /* 782px */
	.header .wp-block-columns .header-logo.wp-block-column {max-width: fit-content; }
}

@media (min-width: 68.5em) {
	.header .wp-block-columns.contain {border-top: 0; position: relative;justify-content: space-between;}
	.header-logo {padding-top: 1.2rem;padding-bottom: 1.2rem;}
	.header-logo svg {height: auto;}
	.header-right.wp-block-column {flex-basis: auto;max-width: fit-content;max-height: fit-content;margin-top: 4.2rem;text-align: center; }
	.header-right .dialog-trigger {margin-right: auto !important;background: var(--primary-color);color: var(--white);font-family: var(--title-font);width: clamp(10.2rem, 17.8vw, 14.2rem);min-height: 3rem;display: flex;justify-content: center;align-items: center;position: relative;overflow: hidden;z-index: 0;outline-color: rgba(255, 255, 255, 0.75);outline-width: 1px;outline-style: solid;outline-offset: -0.35rem;transform: translateX(2rem);transition: 300ms ease;}
	.header-right .dialog-trigger:is(:hover, :focus-visible), .header-right .dialog-trigger:is(:hover, :focus-visible) > span { background: var(--color-2); }
	.header-right .dialog-trigger > span {background: var(--primary-color);position: absolute;right: 0;bottom: 0.3rem;left: 0;margin: auto;width: 1.1rem;height: 0.65rem;display: flex;padding: 0.2rem;transition: 300ms ease;}
	.header-quicklinks {position: absolute;top: 0;right: 1.2rem;left: 0;max-width: none;z-index: 999;}
	.header-quicklinks .wp-block-fuel-menu-wrapper {gap: 0;}
	.header-quicklinks .wp-block-fuel-menu-wrapper .wp-block-fuel-menu-item {margin-left: 0.4rem;}
	.header-quicklinks .wp-block-fuel-menu-wrapper .wp-block-fuel-menu-item:first-of-type { margin-left: 0; }
	.header-right .phone-number {font-size: 1.4rem;line-height: 1.3;font-weight: 700;color: var(--primary-color);}
	.header-right .phone:is(:hover, :focus-visible) .phone-number { color: var(--accent-color); }
	.header-right .phone svg {transform: translate(-0.15rem, -0.15rem);}
	.header-right .phone:is(:hover, :focus-visible) svg * { fill: var(--accent-color); }
}

@media (min-width: 82.5em) {
	.header .wp-block-columns.contain {--contain-padding: 2.4rem;}
	.header-quicklinks { right: 2.4rem; }
	.header-quicklinks .menu-label { padding: 0.6rem 1.2rem; font-size: 1rem; }
}

@media (min-width: 100em) { /* 1600px */
	.header .wp-block-columns.contain { width: nerp;}
}


/*--------------------------------------------------------------
# Content
--------------------------------------------------------------*/
body > .wp-site-blocks {}
.wp-site-blocks { margin: auto; }
#main { margin: 0; font-size: var(--wp--preset--font-size--content); }

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

@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 {width: 100%;height: auto;aspect-ratio: 1 / 1.2;border-bottom: 0.4rem solid var(--primary-color);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); }
}

/* Location card loop - Used in footer, content, and menu */ 
body .location-list-detailed { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start; 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: var(--grey); 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; margin-top: 0; }
#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); }
#main .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:only-child .loc-left { flex: 0 0 12rem; }
	.location-box .loc-left { flex: 0 0 10rem; }
	.location-box .hours { flex: 0 0 13rem; }
	.location-box .map-link { flex: 1 0 10rem; }
}

/* Apply styles when there is only one locations-card */ 
.location-list-detailed .location-box:only-child { justify-content: start; }
.location-list-detailed .location-box:only-child img { width: 100% }

@media (min-width: 51.25em) { 
	.location-list-detailed .location-box:only-child .map-link { width: calc(100% - 25rem) }
}

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


/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
.footer {color: var(--white);background: var(--primary-color);padding-top: clamp(1.4rem, 5.7vw, 3.1rem);margin: 0;max-width: 100%;position: relative;overflow: hidden;}
.footer-bg-logo-icon {position: absolute;right: 0;bottom: 3.3rem;left: 0;z-index: 1;margin: auto;width: 100%;max-width: 28.4rem;max-height: 100%;--time: 750ms;}
.footer-bg-logo-icon svg {height: 100%;}
.footer a, .footer h3 { color: var(--white); }
.footer a, .location-list-names a {text-decoration: none;display: block;width: fit-content;background: linear-gradient(0deg, var(--white), var(--white)) no-repeat 0 bottom / 0 1px;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% 1px;}
#foot_content {flex-wrap: wrap !important; justify-content: space-between;font-size: var(--wp--preset--font-size--footer);gap: 6%;z-index: 1;}
#foot_content .wp-block-column { margin-bottom: 1rem; width: 100%; }
.footer-logo svg {transition: transform 0.3s ease;height: 4.1rem;}
#Logo_Ftr { display: flex ; justify-content: center; }
.footer .footer-logo { max-width: 13.3rem; }
.footer .footer-logo:is(:hover, :focus-visible) { background-size: 0; }
.footer-logo path { fill: var(--white); }
.footer .wp-block-heading {font-size: clamp(1.1rem, 2vw, 1.2rem);border-bottom: 1px solid var(--white);padding-bottom: 0.6rem;margin: 0;color: var(--white);}
.location-list-names a {margin: 0 0 0.443rem;}
.social-menu {display: block !important;background: none;}
.social-menu .wp-block-fuel-menu-item { margin: 0 0 0.6rem; }
.footer-socials .menu-label {background: linear-gradient(0deg, var(--white), var(--white)) no-repeat 0 bottom / 0 2px;transition: 350ms;}
.footer-socials .menu-label:is(:hover, :focus-visible) {background-size: 100% 1px;}
.footer-socials .menu-label-svg { vertical-align: 0.12rem; }
.footer-socials .menu-label-svg svg { height: 1rem; }
.footer-socials .menu-label-text {line-height: 1.8;}
#Quick_Links_Ftr { display: none; }

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

@media (min-width: 32.5em) { /* 520px */
	#Locations_Ftr, #Connect_Ftr {max-width: calc(50% - 3%);}
}

@media (min-width: 48.875em) { /* 782px */
	.footer-bg-logo-icon { top: 0; }
}

@media (min-width: 58.5em) {
	.footer-bg-logo-icon {right: auto;}
	.footer-bg-logo-icon svg {height: auto;}
	#foot_content .wp-block-column { margin-bottom: 0; }
	#Quick_Links_Ftr { display: block; }
	#Quick_Links_Ftr .wp-block-navigation-item { margin: 0 0 0.3rem; }
}

/* Copyright Row */
.copyright-wrapper {padding-top: 1.2rem;padding-bottom: 5rem; text-align: center;z-index: 1;display: block !important; }
.copyright-wrapper .wp-block-column { margin: 0 0 1rem; }
.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); }

@media only screen and (min-width: 68.5em) { 
	.copyright-wrapper {text-align: left;padding-bottom: 1.2rem;display: flex !important;}
	.copyright-wrapper .wp-block-column { margin: 0; }
	.policy-menu { justify-content: end; }
}


/*--------------------------------------------------------------
# Map
--------------------------------------------------------------*/
.fm-map {position: relative;width: 100%;height: 30rem;max-height: calc(90vh - 3.2rem);max-height: -webkit-fill-available;background: var(--grey);}
.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; }

.location-section {padding-top: 1rem;padding-bottom: clamp(1.6rem,10.3vw,5.6rem);margin-top: 0;max-width: none;}
.location-section > * {position: relative;z-index: 1;}
.fm-map-container { padding-right: 0.8rem; padding-left: 0.8rem; }
.fm-map-title { background: var(--primary-color); display: flex ; justify-content: center; color: var(--white); padding: 0.6rem 0; margin: 0; }

.map-wrapper { background: none; }
.map-view-bar {background: rgba(45, 107, 175, 0.1);}
.map-view-bar > button {color: var(--primary-color);border: 1px solid var(--primary-color);}
.map-view-bar > button:is(:hover, :focus-visible) { background: var(--accent-color); border: 1px solid var(--accent-color); }

.map-sidebar { background: none; padding: 0; min-width: 15rem; }
.map-list-item {height: calc(20% - 0.5px);border-color: rgba(45, 107, 175, 0.2);}

.map-list-button {background: rgba(45, 107, 175, 0.1);height: 100%;color: var(--charky-dark);position: relative;}
.map-list-button:is(:hover, :focus-visible), .map-list-button.map-active {background: rgba(45, 107, 175, 0.1);color: var(--white);}
.map-list-button:before {content: '';display: inline-block;background: var(--primary-color);clip-path: url(#menu_chevron);width: 0.6rem;height: 0.4rem;transform: rotate(-90deg) translateY(0);transition: 400ms ease;position: absolute;top: 0;right: 1.2rem;bottom: 0;margin: auto;}
.map-list-button:is(:hover, :focus-visible):before { background: var(--white); transform: rotate(-90deg) translateY(0.5rem); }
.map-list-button:after {content: '';background: var(--accent-color);position: absolute;top: 0;right: 0;bottom: 0;left: 0;z-index: -1;transform: scale(0,1);transform-origin: left;transition: 300ms ease;}
.map-list-button:is(:hover, :focus-visible):after { transform: scale(1, 1); }
.map-list-button .map-loc-title {font-family: var(--title-font);}

#map_loc_details {background: var(--white);min-width: 19.6rem;}
.map-loc-header, .map-loc-info { background: rgba(45, 107, 175, 0.1); }
.map-quick-links {background: rgba(45, 107, 175, 0.18);}
.map-loc-details a {text-decoration: none;display: block;width: fit-content;background: linear-gradient(0deg, var(--primary-color), var(--primary-color)) no-repeat 0 bottom / 0 1px;transition: background-size 350ms;}
.map-loc-details a:is(:hover, :focus-visible) {text-decoration: none;color: var(--primary-color);background-size: 100% 1px;}
.map-quick-links a { color: var(--charky-dark); }
.map-loc-header {padding: 0.65rem 0.8rem;}
.map-loc-header .map-loc-title { line-height: 0.8; }
.map-loc-header .map-loc-title a { color: var(--charky-dark); font-size: 1rem; }
.map-loc-header .map-loc-title a:is(:hover, :focus-visible) { color: var(--accent-color); }
.map-loc-info, .map-loc-info a { color: var(--primary-color); }
.map-loc-icon svg path { fill: var(--primary-color); }
.map-loc-hours .hours-note {display: inline-block;margin-top: 0.25rem;font-size: 0.75rem;}
.map-back {background: var(--primary-color);border: none;text-align: left;padding: 0.425rem 0.7rem;}
.map-back:is(:hover, :focus-visible) { background: var(--accent-color); }

@media (min-width: 50em) {
	.map-list-item {height: 20%;}

@media (min-width: 68.5em) {
    .location-section {max-width: none;padding-right: var(--contain-padding);padding-left: var(--contain-padding);}
    .fm-map-container {padding-right: 0;padding-left: 0;max-width: 55rem;}
}


/*--------------------------------------------------------------
# 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 iframe, #fuel_lightbox img { max-width: -webkit-fill-available; max-height: inherit; }
#fuel_lightbox img { width: 100%; height: 100%; }
#fuel_lightbox .lightbox-close {transition: opacity 0.3s;text-transform: uppercase;position: absolute;inset: 0.25rem 0.25rem auto auto;padding: 1rem 0.5rem;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)); }
}


/*--------------------------------------------------------------
# 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) and (min-width: 68.5em) {

	/* 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, .fadedownleft, .fadedownright, .fadeupleft, .fadeupright ) { animation: fadein var(--time, 300ms) ease var(--delay, 0s) 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: 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); }
	}
}











