/*!
Theme Name: Forefront Living
Theme URI: http://underscores.me/
Author: Anstey Hodge
Author URI: http://ansteyhodge.com
Description: Description
Version: 1.0.0
Tested up to: 5.4
Requires PHP: 5.6
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: forefrontliving
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned.

Forefront Living is based on Underscores https://underscores.me/, (C) 2012-2020 Automattic, Inc.
Underscores is distributed under the terms of the GNU GPL v2 or later.

Normalizing styles have been helped along thanks to the fine work of
Nicolas Gallagher and Jonathan Neal https://necolas.github.io/normalize.css/
*/

/*--------------------------------------------------------------
>>> TABLE OF CONTENTS:
----------------------------------------------------------------
# Generic
	- Normalize
	- Box sizing
# Base
	- Typography
	- Elements
	- Links
	- Forms
## Layouts
# Components
	- Navigation
	- Posts and pages
	- Comments
	- Widgets
	- Media
	- Captions
	- Galleries
# plugins
	- Jetpack infinite scroll
# Utilities
	- Accessibility
	- Alignments

--------------------------------------------------------------*/

/*--------------------------------------------------------------
# Generic
--------------------------------------------------------------*/

/* Normalize
--------------------------------------------- */

/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */

/* Document
	 ========================================================================== */

/**
 * 1. Correct the line height in all browsers.
 * 2. Prevent adjustments of font size after orientation changes in iOS.
 */
html {
	line-height: 1.15;
	-webkit-text-size-adjust: 100%;
}

/* Sections
	 ========================================================================== */

/**
 * Remove the margin in all browsers.
 */
body {
	margin: 0;
}

/**
 * Render the `main` element consistently in IE.
 */
main {
	display: block;
}

/**
 * Correct the font size and margin on `h1` elements within `section` and
 * `article` contexts in Chrome, Firefox, and Safari.
 */
h1 {
/*	font-size: 2em;*/
	margin: 0.67em 0;
}

/* Grouping content
	 ========================================================================== */

/**
 * 1. Add the correct box sizing in Firefox.
 * 2. Show the overflow in Edge and IE.
 */
hr {
	box-sizing: content-box;
	height: 0;
	overflow: visible;
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */
pre {
	font-family: monospace, monospace;
	font-size: 1em;
}

/* Text-level semantics
	 ========================================================================== */

/**
 * Remove the gray background on active links in IE 10.
 */
a {
	background-color: transparent;
}

/**
 * 1. Remove the bottom border in Chrome 57-
 * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
 */
abbr[title] {
	border-bottom: none;
	text-decoration: underline;
	text-decoration: underline dotted;
}

/**
 * Add the correct font weight in Chrome, Edge, and Safari.
 */
b,
strong {
	font-weight: bolder;
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */
code,
kbd,
samp {
	font-family: monospace, monospace;
	font-size: 1em;
}

/**
 * Add the correct font size in all browsers.
 */
small {
	font-size: 80%;
}

/**
 * Prevent `sub` and `sup` elements from affecting the line height in
 * all browsers.
 */
sub,
sup {
	font-size: 75%;
	line-height: 0;
	position: relative;
	vertical-align: baseline;
}

sub {
	bottom: -0.25em;
}

sup {
	top: -0.5em;
}

/* Embedded content
	 ========================================================================== */

/**
 * Remove the border on images inside links in IE 10.
 */
img {
	border-style: none;
}

/* Forms
	 ========================================================================== */

/**
 * 1. Change the font styles in all browsers.
 * 2. Remove the margin in Firefox and Safari.
 */
button,
input,
optgroup,
select,
textarea {
	font-family: inherit;
	font-size: 100%;
	line-height: 1.15;
	margin: 0;
}

/**
 * Show the overflow in IE.
 * 1. Show the overflow in Edge.
 */
button,
input {
	overflow: visible;
}

/**
 * Remove the inheritance of text transform in Edge, Firefox, and IE.
 * 1. Remove the inheritance of text transform in Firefox.
 */
button,
select {
	text-transform: none;
}

/**
 * Correct the inability to style clickable types in iOS and Safari.
 */
button,
[type="button"],
[type="reset"],
[type="submit"] {
	-webkit-appearance: button;
}

/**
 * Remove the inner border and padding in Firefox.
 */
button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
	border-style: none;
	padding: 0;
}

/**
 * Restore the focus styles unset by the previous rule.
 */
button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
	outline: 1px dotted ButtonText;
}

/**
 * Correct the padding in Firefox.
 */
fieldset {
	padding: 0.35em 0.75em 0.625em;
}

/**
 * 1. Correct the text wrapping in Edge and IE.
 * 2. Correct the color inheritance from `fieldset` elements in IE.
 * 3. Remove the padding so developers are not caught out when they zero out
 *		`fieldset` elements in all browsers.
 */
legend {
	box-sizing: border-box;
	color: inherit;
	display: table;
	max-width: 100%;
	padding: 0;
	white-space: normal;
}

/**
 * Add the correct vertical alignment in Chrome, Firefox, and Opera.
 */
progress {
	vertical-align: baseline;
}

/**
 * Remove the default vertical scrollbar in IE 10+.
 */
textarea {
	overflow: auto;
}

/**
 * 1. Add the correct box sizing in IE 10.
 * 2. Remove the padding in IE 10.
 */
[type="checkbox"],
[type="radio"] {
	box-sizing: border-box;
	padding: 0;
}

/**
 * Correct the cursor style of increment and decrement buttons in Chrome.
 */
[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
	height: auto;
}

/**
 * 1. Correct the odd appearance in Chrome and Safari.
 * 2. Correct the outline style in Safari.
 */
[type="search"] {
	-webkit-appearance: textfield;
	outline-offset: -2px;
}

/**
 * Remove the inner padding in Chrome and Safari on macOS.
 */
[type="search"]::-webkit-search-decoration {
	-webkit-appearance: none;
}

/**
 * 1. Correct the inability to style clickable types in iOS and Safari.
 * 2. Change font properties to `inherit` in Safari.
 */
::-webkit-file-upload-button {
	-webkit-appearance: button;
	font: inherit;
}

/* Interactive
	 ========================================================================== */

/*
 * Add the correct display in Edge, IE 10+, and Firefox.
 */
details {
	display: block;
}

/*
 * Add the correct display in all browsers.
 */
summary {
	display: list-item;
}

/* Misc
	 ========================================================================== */

/**
 * Add the correct display in IE 10+.
 */
template {
	display: none;
}

/**
 * Add the correct display in IE 10.
 */
[hidden] {
	display: none;
}

/* Box sizing
--------------------------------------------- */

/* Inherit box-sizing to more easily change it's value on a component level.
@link http://css-tricks.com/inheriting-box-sizing-probably-slightly-better-best-practice/ */
*,
*::before,
*::after {
	box-sizing: inherit;
}

html {
	box-sizing: border-box;
}

/*--------------------------------------------------------------
# Base
--------------------------------------------------------------*/

/* Typography
--------------------------------------------- */
body,
button,
input,
select,
optgroup,
textarea {
	color: #404040;
	font-family: 'Lora', serif;
	font-size: 1rem;
/*	line-height: 1.5;*/
}

h1,
h2,
h3,
h4,
h5,
h6 {
	clear: both;
}

p {
	margin-bottom: 1.5em;
}

dfn,
cite,
em,
i {
	font-style: italic;
}

blockquote {
	margin: 0 1.5em;
}

address {
	margin: 0 0 1.5em;
}

pre {
	background: #eee;
	font-family: "Courier 10 Pitch", courier, monospace;
	line-height: 1.6;
	margin-bottom: 1.6em;
	max-width: 100%;
	overflow: auto;
	padding: 1.6em;
}

code,
kbd,
tt,
var {
	font-family: monaco, consolas, "Andale Mono", "DejaVu Sans Mono", monospace;
}

abbr,
acronym {
	border-bottom: 1px dotted #666;
	cursor: help;
}

mark,
ins {
	background: #fff9c0;
	text-decoration: none;
}

big {
	font-size: 125%;
}

/* Elements
--------------------------------------------- */
body {
	background: #fff;
	text-wrap: pretty;
}

hr {
	background-color: #ccc;
	border: 0;
	height: 1px;
	margin-bottom: 1.5em;
}

ul,
ol {
	margin: 0 0 1.5em 3em;
}

ul {
	list-style: disc;
}

ol {
	list-style: decimal;
}

li > ul,
li > ol {
	margin-bottom: 0;
	margin-left: 1.5em;
}

dt {
	font-weight: 700;
}

dd {
	margin: 0 1.5em 1.5em;
}

/* Make sure embeds and iframes fit their containers. */
embed,
iframe,
object {
	max-width: 100%;
}

img {
	height: auto;
	max-width: 100%;
}

figure {
	margin: 1em 0;
}

table {
	margin: 0 0 1.5em;
	width: 100%;
}

/* Links
--------------------------------------------- */
/*a {
	color: #4169e1;
}

a:visited {
	color: inherit;
}

a:hover,
a:focus,
a:active {
	color: inherit;
}*/

a:focus {
	outline: thin dotted;
}

a:hover,
a:active {
	outline: 0;
}
a.wp-block-tiptip-hyperlink-group-block {
	text-decoration: none;
}

/* Forms
--------------------------------------------- */
button,
input[type="button"],
input[type="reset"],
input[type="submit"] {
	border: 1px solid;
	border-color: #ccc #ccc #bbb;
	border-radius: 3px;
	background: #e6e6e6;
	color: rgba(0, 0, 0, 0.8);
	line-height: 1;
	padding: 0.6em 1em 0.4em;
}

button:hover,
input[type="button"]:hover,
input[type="reset"]:hover,
input[type="submit"]:hover {
	border-color: #ccc #bbb #aaa;
}

button:active,
button:focus,
input[type="button"]:active,
input[type="button"]:focus,
input[type="reset"]:active,
input[type="reset"]:focus,
input[type="submit"]:active,
input[type="submit"]:focus {
	border-color: #aaa #bbb #bbb;
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
input[type="range"],
input[type="date"],
input[type="month"],
input[type="week"],
input[type="time"],
input[type="datetime"],
input[type="datetime-local"],
input[type="color"],
textarea {
	color: #666;
	border: 1px solid #ccc;
	border-radius: 3px;
	padding: 3px;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
input[type="range"]:focus,
input[type="date"]:focus,
input[type="month"]:focus,
input[type="week"]:focus,
input[type="time"]:focus,
input[type="datetime"]:focus,
input[type="datetime-local"]:focus,
input[type="color"]:focus,
textarea:focus {
	color: #111;
}

select {
	border: 1px solid #ccc;
}

textarea {
	width: 100%;
}

/*--------------------------------------------------------------
# Layouts
--------------------------------------------------------------*/

/*--------------------------------------------------------------
# Components
--------------------------------------------------------------*/

/* Navigation
--------------------------------------------- */
.main-navigation {
	display: block;
	width: 100%;
}

.main-navigation ul {
	display: none;
	list-style: none;
	margin: 0;
	padding-left: 0;
	text-transform: uppercase;
}
.main-navigation ul a:hover {
	text-decoration: underline;
}
.main-navigation ul li:last-child {
	margin-left: auto;
    margin-right: 3em;
}

.main-navigation ul ul {
	box-shadow: 0 3px 3px rgba(0, 0, 0, 0.2);
	float: left;
	position: absolute;
	top: 100%;
	left: -999em;
	z-index: 99999;
}

.main-navigation ul ul ul {
	left: -999em;
	top: 0;
}

.main-navigation ul ul li:hover > ul,
.main-navigation ul ul li.focus > ul {
	display: block;
	left: auto;
}

.main-navigation ul ul a {
	width: 200px;
}

.main-navigation ul li:hover > ul,
.main-navigation ul li.focus > ul {
	left: auto;
}

.main-navigation li {
	position: relative;
}

.main-navigation a {
	display: block;
	text-decoration: none;
}

/* Small menu. */
.menu-toggle,
.main-navigation.toggled ul {
	display: block;
}

@media screen and (min-width: 37.5em) {

	.menu-toggle {
		display: none;
	}

	.main-navigation ul {
		display: flex;
	}
}

.site-main .comment-navigation,
.site-main
.posts-navigation,
.site-main
.post-navigation {
	margin: 0 0 1.5em;
}

.comment-navigation .nav-links,
.posts-navigation .nav-links,
.post-navigation .nav-links {
	display: flex;
}

.comment-navigation .nav-previous,
.posts-navigation .nav-previous,
.post-navigation .nav-previous {
	flex: 1 0 50%;
}

.comment-navigation .nav-next,
.posts-navigation .nav-next,
.post-navigation .nav-next {
	text-align: end;
	flex: 1 0 50%;
}

/* Posts and pages
--------------------------------------------- */
.sticky {
	display: block;
}

.updated:not(.published) {
	display: none;
}

.page-links {
	clear: both;
	margin: 0 0 1.5em;
}

/* Comments
--------------------------------------------- */
.comment-content a {
	word-wrap: break-word;
}

.bypostauthor {
	display: block;
}

/* Widgets
--------------------------------------------- */
.widget {
	margin: 0 0 1.5em;
}

.widget select {
	max-width: 100%;
}

/* Media
--------------------------------------------- */
.page-content .wp-smiley,
.entry-content .wp-smiley,
.comment-content .wp-smiley {
	border: none;
	margin-bottom: 0;
	margin-top: 0;
	padding: 0;
}

/* Make sure logo link wraps around logo image. */
.custom-logo-link {
	display: inline-block;
}

/* Captions
--------------------------------------------- */
.wp-caption {
	margin-bottom: 1.5em;
	max-width: 100%;
}

.wp-caption img[class*="wp-image-"] {
	display: block;
	margin-left: auto;
	margin-right: auto;
}

.wp-caption .wp-caption-text {
	margin: 0.8075em 0;
}

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

/* Galleries
--------------------------------------------- */
.gallery {
	margin-bottom: 1.5em;
	display: grid;
	grid-gap: 1.5em;
}

.gallery-item {
	display: inline-block;
	text-align: center;
	width: 100%;
}

.gallery-columns-2 {
	grid-template-columns: repeat(2, 1fr);
}

.gallery-columns-3 {
	grid-template-columns: repeat(3, 1fr);
}

.gallery-columns-4 {
	grid-template-columns: repeat(4, 1fr);
}

.gallery-columns-5 {
	grid-template-columns: repeat(5, 1fr);
}

.gallery-columns-6 {
	grid-template-columns: repeat(6, 1fr);
}

.gallery-columns-7 {
	grid-template-columns: repeat(7, 1fr);
}

.gallery-columns-8 {
	grid-template-columns: repeat(8, 1fr);
}

.gallery-columns-9 {
	grid-template-columns: repeat(9, 1fr);
}

.gallery-caption {
	display: block;
}

/*--------------------------------------------------------------
# Plugins
--------------------------------------------------------------*/

/* Jetpack infinite scroll
--------------------------------------------- */

/* Hide the Posts Navigation and the Footer when Infinite Scroll is in use. */
.infinite-scroll .posts-navigation,
.infinite-scroll.neverending .site-footer {
	display: none;
}

/* Re-display the Theme Footer when Infinite Scroll has reached its end. */
.infinity-end.neverending .site-footer {
	display: block;
}

/*--------------------------------------------------------------
# Utilities
--------------------------------------------------------------*/

/* Accessibility
--------------------------------------------- */

/* Text meant only for screen readers. */
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	background-color: #f1f1f1;
	border-radius: 3px;
	box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
	clip: auto !important;
	clip-path: none;
	color: #21759b;
	display: block;
	font-size: 0.875rem;
	font-weight: 700;
	height: auto;
	left: 5px;
	line-height: normal;
	padding: 15px 23px 14px;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100000;
}

/* Do not show the outline on the skip link target. */
#primary[tabindex="-1"]:focus {
	outline: 0;
}

/* Alignments
--------------------------------------------- */
.alignleft {

	/*rtl:ignore*/
	float: left;

	/*rtl:ignore*/
	margin-right: 1.5em;
	margin-bottom: 1.5em;
}

.alignright {

	/*rtl:ignore*/
	float: right;

	/*rtl:ignore*/
	margin-left: 1.5em;
	margin-bottom: 1.5em;
}

.aligncenter {
	clear: both;
	display: block;
	margin-left: auto;
	margin-right: auto;
	margin-bottom: 1.5em;
}


/* Theme */

:root {
	--serif: 'Lora', serif;
	--sans-serif: 'Work Sans', sans-serif;

	--mykonos-blue: #00567E;
	--baltic-sea: #71C5E8;
	--cool-gray: #C8C9C7;
	--provincial-blue: #4e748b;
	--lime: #A7D500;
	--pale-lime: #CDEA80;
	--coral: #f26c6a;
	--saffron: #f9a21a;
	--azure-blue: #499dc4;
}

html {
	font-size: 16px;
	scroll-behavior: smooth;
}
header#masthead {
	display: flex;
	position: absolute;
	left:0;
	right: 0;
	z-index: 10;
	background-color: white;
	width: 100%;
	box-shadow: 0 0em 0em #00567e3d;
	transition: box-shadow .5s ease-out;
}
/* Inset Header */
.page-template-inset-header-page header#masthead {
	background-color: transparent;
	transition: background-color .5s .5s ease, box-shadow 1s ease-out, filter .5s .5s;
	filter: brightness(0) invert(1) ;
}

.page-template-inset-header-page header#masthead:hover, .page-template-inset-header-page header#masthead.on {
	background-color: white;
	filter: brightness(1) invert(0);
	transition: background-color .5s  0s ease, box-shadow 1s ease-out, filter .5s 0s;
	z-index: 1001;
}
.menu-on header#masthead {
	box-shadow: 0 1em 10em #00567e3d;
	transition: box-shadow 1s ease-out;
	z-index: 1001;
}
.closeMenu {
	background-color: var(--mykonos-blue);
}


/*header#masthead:before {
	content: '';
	display: block;
	position: absolute;
	inset: 0;
	background: #fff;
	background: linear-gradient(180deg, rgba(256,256,256,1) 70%, rgba(256,256,256,0) 100%);
	opacity: 0;
	transition: opacity .5s;
}
header#masthead:hover:before {
	opacity: 1;
}
header#masthead.on {
	background: #fff;
}
*/


header#masthead .custom-logo, footer.site-footer .custom-logo {
	width: 100%;
	max-width: 380px;
	min-width: 230px;
	padding: 1.5em 3em;
}
header#masthead:hover .custom-logo, header#masthead.on .custom-logo {
	filter: brightness(1) invert(0) ;
}
#site-navigation {
	flex-basis: 100%;
	position: relative;
	padding-top: 1.5em;
}

.hiddenmenu {
	background: #fff;
}
.hiddenmenu:before {
	content: '';
	display: block;
}
ul.summenu {
	border-bottom: 1px solid var(--cool-gray);
}
ul#menu-mobile {
	list-style: none;
    margin: 0;
    padding: 0;
    text-align: right;
}
ul#menu-mobile li {
	padding:.5em 0;
}
ul#menu-mobile li a {
	padding:.5em 0;
}
ul#menu-mobile li a:hover, ul#menu-mobile li a:focus {
	text-decoration: underline;
}
ul#menu-mobile li ul {
	list-style: none;
	margin-left: 0;
	margin-right:3em;
    margin-top: 1em;
}
ul#menu-mobile form {
	display: flex;
    flex-direction: row-reverse;
}
.page-template-page-templates ul.summenu {
	border-bottom: 1px solid transparent;
	transition: all .5s;
}
.page-template-page-templates .site-header.on ul.summenu {
	border-bottom: 1px solid var(--cool-gray);
}
ul.summenu, ul#menu-mobile, footer.site-footer nav ul {
	font-family: var(--sans-serif);
	font-weight: 600;
}
ul.summenu > li, ul#menu-mobile > li {
	padding: 1em 3em 1em 0;
	line-height: 1.2;
}
ul#menu-mobile > li li {
	font-weight: 400;
}
ul#menu-mobile > li li:first-of-type {
	font-weight: 600;
}
ul.summenu > li a, ul#menu-mobile > li a, footer.site-footer nav ul > li a {
	text-transform: uppercase;
	color: inherit;
	text-decoration: none;
	padding: .5em 0;
/*	text-wrap: nowrap;*/
	font-weight: inherit;
}
ul.summenu > li a:hover, ul#menu-mobile > li a:hover, footer.site-footer nav ul > li a:hover {
}
ul.summenu > li a.active,
 .hiddenmenu li a.active,
 ul#menu-mobile > li.current-page-ancestor > a,
 ul#menu-mobile li.current-menu-item a,
 body.page-id-80 a[href*="#independent"],
 body.parent-pageid-80 a[href*="#independent"],
 body.page-id-87 a[href*="#lifestyle"],
 body.parent-pageid-87 a[href*="#lifestyle"],
 body.page-id-92 a[href*="#about"],
 body.parent-pageid-92 a[href*="#about"],
 body.page-id-96 a[href*="#health"],
 body.parent-pageid-96 a[href*="#health"],
  body.page-id-80 ul#menu-mobile > li a[href*="#independent"],
 body.parent-pageid-80 ul#menu-mobile > li a[href*="#independent"],
 body.page-id-87 ul#menu-mobile > li a[href*="#lifestyle"],
 body.parent-pageid-87 ul#menu-mobile > li a[href*="#lifestyle"],
 body.page-id-92 ul#menu-mobile > li a[href*="#about"],
 body.parent-pageid-92 ul#menu-mobile > li a[href*="#about"],
 body.page-id-96 ul#menu-mobile > li a[href*="#health"],
 body.parent-pageid-96 ul#menu-mobile > li a[href*="#health"] {
	color:var(--azure-blue);
}
ul.summenu > li a.active:after {
	filter: invert(55%) sepia(98%) saturate(273%) hue-rotate(154deg) brightness(85%) contrast(89%); //Close to Azure Blue
}
.active .hamburger-inner, .active .hamburger-inner::before, .active .hamburger-inner::after {
	background-color: var(--azure-blue);
}

/* Specialty Classes */
.text-align-right {
	text-align: right;
}
.scale-origin-right {
	scale: 1.1;
    transform-origin: right;
}
a[href*="youtube.com/e"] img {
    cursor: -webkit-zoom-in;
    cursor: -moz-zoom-in;
    cursor: zoom-in;
}
a[href*="tel:"] {
	white-space: nowrap;
}
.featherlight iframe {
    height: 100%;
    aspect-ratio: 16 / 9;
}
.return-blog {
	font-size: .8em;
}
.has-drop-cap:not(:focus):first-letter { 
	float: left; 
	font-size: 5.2em; 
	line-height: 1; 
	margin: 0 .07em 0 -.07em; 
	color: var(--wp--preset--color--coral); 
}

/* Mobile Menu */
#menuToggle {
    border: 0;
    border-radius: 0;
    background: transparent;
    color: inherit;
    line-height: 1;
    padding: .2rem;
    width: 30px;
    cursor: pointer;
    margin-left: auto;
    margin-right: 3rem;
    display: none;
}
#menuToggle svg {
	width: 100%;
}


#mobile-navigation  {
	background: #fff;
	margin-left: auto;
  display: none;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.5s ease-out;
}

#mobile-navigation.toggled{
  grid-template-rows: 1fr;
}

.menu-mobile-container {
  overflow: hidden;
}

/*#menu-mobile > li > a:after {
	content: '';
    display: inline-block;
    width: .5em;
    height: .5em;
    rotate: 45deg;
    border-right: 2px solid #000;
    border-bottom: 2px solid #000;
    margin: 0 .5em;
    transition: rotate .5s;
}
*/#menu-mobile > li > a[href*="tel:"] {
	background-color: var(--mykonos-blue);
	color: white;
	align-self: center;
	padding: 1em;
	display: block;
}
#menu-mobile > li > a[href*="tel:"]:before, .phone a[href*="tel:"]:before {
	content: '';
	display: inline-block;
	width: 1em;
	height: 1em;
	background-image: url(images/phone.svg);
	background-size: contain;
    vertical-align: middle;
    filter: invert(1);
    margin: 0 0.2em 0 0;
}
.phone a[href*="tel:"]:before { 
	filter: brightness(0) saturate(100%) invert(14%) sepia(44%) saturate(7341%) hue-rotate(185deg) brightness(96%) contrast(104%);
}
#menu-mobile > li:has(a[href*="tel:"]) {
    text-align: center;
    padding: 1em 1em 2em;
}
#menu-mobile > li > a[href*="tel:"]:after {
	display: none;
}
#menu-mobile > li.active > a {
	color: var(--azure-blue);
    text-decoration: none !important;
}
#menu-mobile > li.active > a:after {
    border-right: 2px solid var(--azure-blue);
    border-bottom: 2px solid var(--azure-blue);
    rotate: 225deg;
}


/* Mobile submenu toggle */
#menu-mobile .sub-menu {	
	max-height:0;
	overflow: hidden;
  transition: max-height 0.5s ease-out;
}

#menu-mobile li.active ul.sub-menu {
	max-height:1000px;
}


@media all and (max-width: 1246px) {
	header#masthead {
		flex-wrap: wrap;
		position: relative;
	}
	.page-template-inset-header-page header#masthead {
		filter: none ;
		position: relative;
	}
	.page-template-inset-header-page header#masthead .custom-logo {
		padding: .5em 1em;
	}
	.site-branding {
		flex-basis: 75%;
	}
	#menuToggle {
		display: block;
	}
	#mobile-navigation  {
		display: grid;
	}
	#site-navigation  {
		display: none;
	}
}

/* Search */
.position-relative {
	position: relative;
}
.hiddenmenu .menu-search {
	position: absolute;
    inset: 0;
    background: #fff;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    width:0;
    overflow: hidden;
    visibility: hidden;
    transition: width .5s, visibility 0s .5s;
}
.hiddenmenu .menu-search form {
	flex-basis: 100%;
}
.hiddenmenu .menu-search.active {
	width: 100%;
    visibility: visible;
    transition: width .5s;
}
.search-form {
	display: flex;
}
.menu-search .wp-block-search__button, #searchform button {
	margin-left: 0;
	border-radius: 0 2em 2em 0;
    padding: 1em 1.5em 1em 1em;
    background: transparent;
    border: 1px solid #ccc;
    border-left: 0;
	color: var(--provincial-blue);
	vertical-align: middle;
	cursor: pointer;
}
.wp-block-search__button svg, #searchform button svg {
    height: 1.25em;
    min-height: 24px;
    min-width: 24px;
    width: 1.25em;
    fill: currentColor;
    vertical-align: text-bottom;
}
.menu-search .wp-block-search__button:hover, #searchform button:hover {
	color: var(--azure-blue);
}
.menu-search input, #searchform input {
    padding: 1em 1em 1em 1.5em;
    border-radius: 2em 0 0 2em;
    border: 1px solid #ccc;
    border-right: 0;
    font-family: var(--sans-serif);
	vertical-align: middle;
}
.menu-search input::placeholder, #searchform input::placeholder {
	text-transform: uppercase;
	color: var(--azure-blue);
}


#page {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
}

#primary {
	flex-basis: 66%;
	padding: 0em 1em;
	max-width: 720px;
}
#secondary {
	flex-basis: 34%;
	padding: 4em 1em;
	max-width: 440px;
	background: #f6f6f6;
    padding: 2em;
}
body.page #primary, body.single-l #primary, body.single-thank-you #primary {
	flex-basis: 100%;
	padding: 0;
	max-width: none;
}
body:not(.page-template-inset-header-page) #primary, body:not(.page-template-inset-header-page) #secondary, body .tribe-common, body.single-tribe_events #tribe-events-pg-template {
	margin-top: 10rem;
}
body.single-team #primary {
	flex-basis: 100%;
	max-width: 1400px;
}

.blog article, .search article, .archive article:not(.tribe_events), article.team {
	display: flex;
    flex-wrap: wrap;
    gap: 1em 2em ;
    margin-bottom: 2em;
}
.blog article header, .search article header, .archive article header, article.team header {
	flex-basis: 100%;
}
.blog article header h2, .search article header h2, .archive article header h2 {
	margin-bottom: 0;
}
article header .entry-meta, article footer {
	font-size: var(--wp--preset--font-size--small);
}
article.team h1, article h1 {
	margin-bottom: .1em;
}
article.team .post-thumbnail, .blog article .post-thumbnail, .search article .post-thumbnail, .archive article .post-thumbnail {
	flex-basis: 30%;
    width: unset;
    height: unset;
    max-height: 80vh;
    position: relative;
    z-index: 1;
}
article.team .post-thumbnail img, .blog article .post-thumbnail img, .search article .post-thumbnail img, .archive article .post-thumbnail img {
	width: unset;
    height: unset;
    object-fit: unset;
    position: relative;
    inset: auto;
    display: block;
}
article.team .entry-content, .blog article .entry-content, .search article .entry-summary, .archive article .entry-content {
	flex-basis: calc(70% - 2em);
}
article.team .entry-content, .blog article .entry-content p, .search article .entry-summary p, .archive article .entry-content p {
	margin:0;
}
aside#secondary ul {
	margin:0;
}

.post-navigation {
	border-top: 1px solid var(--provincial-blue);
}

footer.site-footer {
	padding: 2em;
	display: flex;
	gap: 3em;
	width: 100%;
}
footer.site-footer .custom-logo {
 	padding: 0;
 }
footer.site-footer nav {
	flex-grow: 2;
	display: flex;
    flex-direction: column;
    flex-basis: 50%;
}
footer.site-footer nav ul {
	list-style: none;
    padding: 0;
    margin: 0 0 0 3em;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
}
footer.site-footer nav ul > li {
	padding: 0em 0 1em 3em;
	line-height: 1.2;
}
.bottom {
	background: var(--baltic-sea);
	padding: .5em 1em;
	flex-basis: 100%;
}
.bottom p {
	line-height: 1.2;
}
.bottom a {
	color: inherit;
}

.single-team .post-thumbnail {
	width: 100%;
    height: 80vh;
    max-height: 80vh;
    position: relative;
    z-index: 1;
}
.single-team .post-thumbnail img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	position: absolute;
	inset: 0;
	display: block;
}
.single .post-thumbnail {
	height: unset;
}
.single .post-thumbnail img {
	width: unset;
	height: unset;
	position: unset;
}

/* Grid for cards/hyperlink group block */
body .grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
	gap: 2rem;
	margin: 0;
}
body .grid.five {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
body .grid > a, body .grid > div, body .wp-block-query .grid a.wp-block-tiptip-hyperlink-group-block {
	display: grid;
	grid-template-rows: subgrid;
	grid-row: span 3;
	color:inherit;
	border-radius: 3px;
	overflow: clip;
	transform: translate(0px, 0px);
	box-shadow: 0px 0px 1px #00000000;
	transition: all .5s;
	gap: 0;
	font-family: inherit;
	font-weight: inherit;
	margin: 0;
	height: 100%;
}
body .grid > a:hover, body .grid > a:focus, body .wp-block-query .grid a.wp-block-tiptip-hyperlink-group-block:hover, body .wp-block-query .grid a.wp-block-tiptip-hyperlink-group-block:focus {
	transform: translateY(-10px);
	box-shadow: 0px 10px 10px #00000033;
}
body .grid a figure, body .grid.five figure {
	margin:0;
}

strong {
	font-weight: 600;
}

/* Video Image Hover */
a[href*=".mp4"]:not(.wp-element-button), a[href*="youtube.com/e"]:not(.wp-element-button) {
	display: block;
	position: relative;
	cursor: zoom-in;
	overflow: hidden;
}
a[href*=".mp4"]:not(.wp-element-button) img, a[href*="youtube.com/e"]:not(.wp-element-button) img {
	scale:1.1;
	transition: all .5s ease-in-out;
}
a[href*=".mp4"]:not(.wp-element-button):hover img, a[href*="youtube.com/e"]:not(.wp-element-button):hover img, a[href*=".mp4"]:not(.wp-element-button):focus img, a[href*="youtube.com/e"]:not(.wp-element-button):focus img {
	scale:1;
}

a[href*=".mp4"]:not(.wp-element-button):before, a[href*="youtube.com/e"]:not(.wp-element-button):before {
	content: '';
	position: absolute;
	inset: 0;
	background-color:var(--mykonos-blue);
	opacity:0;
	transition: all .5s ease-in-out;
	z-index: 1;
}
a[href*=".mp4"]:not(.wp-element-button):hover:before , a[href*="youtube.com/e"]:not(.wp-element-button):hover:before, a[href*=".mp4"]:not(.wp-element-button):focus:before , a[href*="youtube.com/e"]:not(.wp-element-button):focus:before {
	opacity: 0.3;
}
a[href*=".mp4"]:not(.wp-element-button):after, a[href*="youtube.com/e"]:not(.wp-element-button):after {
	content: '';
	position: absolute;
	inset: 0;
	background-image: url(images/play-button.svg);
	background-repeat: no-repeat;
	background-size: 30%;
	background-position: center;
	filter: drop-shadow(0px 0px 10px #00000099);
	transition: all .5s ease-in-out;
	z-index: 2;
}
a[href*=".mp4"]:not(.wp-element-button):hover:after, a[href*="youtube.com/e"]:not(.wp-element-button):hover:after, a[href*=".mp4"]:not(.wp-element-button):focus:after, a[href*="youtube.com/e"]:not(.wp-element-button):focus:after {
	background-size: 35%;
	filter: drop-shadow(0px 0px 0px transparent);
}

/* Embeded Videos */
.wp-block-embed iframe {
    aspect-ratio: 16 / 9;
    width: 100%;
    height: auto;
}


/* MetaSlider customizations */

.alignnormal .metaslider .flexslider .flex-direction-nav li a {
	height:60px!important;
	width: 40px;
	background-color: #0003;
	background-color: transparent;
	filter: drop-shadow(.1em 0 .1em #0003);
	margin: -30px 0 0;
	background-repeat: no-repeat!important;
	right: 20px;
}
.alignnormal .metaslider .flex-direction-nav .flex-next, .alignnormal .metaslider .flex-direction-nav .flex-next:focus {
	background-image: url('images/next-arrow.svg')!important;
	background-size: 60%!important;
	background-position: center!important;
}
.alignnormal .metaslider .flex-direction-nav .flex-prev, .alignnormal .metaslider .flex-direction-nav .flex-prev:focus {
	background-image: url('images/prev-arrow.svg')!important;
	background-size: 60%!important;
	background-position: center!important;
}
.alignnormal .metaslider .flexslider .flex-direction-nav li a {
	opacity: .8;
}


/* Search Results */
.search h1 {
	color: var(--mykonos-blue);
	font-size: var(--wp--preset--font-size--large);	
}
.search h1 span {
	font-family: var(--serif);
    color: black;
    text-transform: none;
    font-weight: 400;
}
.search article.team {
	gap: 1em;
	flex-wrap: wrap;
}
.search article.team header.entry-header {
	flex-basis: 100%;
}
.search article.team .entry-summary {
	flex-basis: 60%;
}

/* Hover state for Buttons */
:root :where(.wp-element-button, .wp-block-button__link) {
    transform: translate(0px, 0px);
    box-shadow: 0px 0px 1px #00000000;
    filter: brightness(1);
    transition: all .5s;

}
:root :where(.wp-element-button:hover, .wp-block-button__link:hover,.wp-element-button:focus, .wp-block-button__link:focus) {
    transform: translateY(-5px);
    filter: brightness(1.1);
    box-shadow: 0px 5px 5px #00000055;
}
:root :where(.wp-element-button:active, .wp-block-button__link:ative) {
    transform: translateY(1px);
    box-shadow: 0px 0px 0px #00000000;
    transition: all 0s;
}



/*Responsive*/
@media all and (max-width: 1246px) {
	body:not(.page-template-inset-header-page) #primary {
		padding-top: 0;
	}
	body:not(.page-template-inset-header-page) #primary, body:not(.page-template-inset-header-page) #secondary, body .tribe-common, body.single-tribe_events #tribe-events-pg-template {
		margin-top:0;
	}

}

@media all and (max-width: 781px) {
	footer.site-footer {
		flex-wrap: wrap;
	}
	.mobile-no-background {
		background-image: none!important;
	}
	.scale-origin-right {
		scale: 1;
	}

}
@media all and (max-width: 768px) {
	body .grid {
		display:block;
	}
	body .grid > a, body .grid > div, body .wp-block-query .grid a.wp-block-tiptip-hyperlink-group-block {
		margin-bottom: 1em;
	}
}

@media all and (max-width: 480px) {
	article.team {
		flex-direction: column;
	}
	#primary, #secondary {
		flex-basis: 100%;
	}
	article.team .post-thumbnail, .blog article .post-thumbnail, .search article .post-thumbnail, .archive article .post-thumbnail, article.team .entry-content, .blog article .entry-content, .search article .entry-summary, .archive article .entry-content {
	    flex-basis: 100%;
	}
	footer.site-footer ul#menu-footer {
		flex-direction: column;
        text-align: right;
	}
	.wp-block-latest-posts__featured-image.alignleft {
		width: 100%;
	}
	.desktop {
		display: none;
	}
}