/*!
Theme Name: Align Pilates 2025
Theme URI: http://Gliffen.com/
Author: Gliffen Designs
Author URI: http://gliffen.com/
Description: Under Gliffen is the base wordpress theme created by Gliffen Designs that is setup for customization. The theme requires that Advanced Custom Fields be installed on the website. 
Version: 2025.6.12
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: under_gliffen
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready

*/
/*--------------------------------------------------------------
>>> TABLE OF CONTENTS:
----------------------------------------------------------------
# Typography
# Elements
# Forms
# Navigation
	## Links
	## Menus
# Accessibility
# Alignments
# Clearings
# Widgets
# Content
	## Posts and pages
	## Comments
# Infinite scroll
# Media
	## Captions
	## Galleries
# Footer
# Custom Block Styles
--------------------------------------------------------------*/
/*--------------------------------------------------------------
# Variables
--------------------------------------------------------------*/
:root {
	--header-height: 0;
	--white: #FFF;
	--black: #1a1a1a;
	--lt-gray: var(--wp--preset--color--lt-gray);
	--dk-gray: var(--wp--preset--color--dk-gray);
	--accent-1: var(--wp--preset--color--accent-1);
	--accent-2: var(--wp--preset--color--accent-2);
	--accent-3: var(--wp--preset--color--accent-3);

	--x-margin:20px;

	--content-width:1080px;

	--base-font-size:16px;
	--wp--preset--font-size--small:	.75rem;
	--wp--preset--font-size--medium: 1.3rem;
	--wp--preset--font-size--large: 2.5rem;
	--wp--preset--font-size--x-large: 6rem;
	
}
@media (max-width: 1200px) { 
	:root {
		--bs-gutter-x:55px;
	}
}
@media (max-width: 767.98px) {
	:root {
		--bs-gutter-x:15px;
		--base-font-size:14px;
	  	--x-margin:20px;
	  	--header-height: 70px;
		--wp--preset--font-size--x-large: 3rem;
	}
}


/*--------------------------------------------------------------
# Typography
--------------------------------------------------------------*/
html{
	font-size: var(--base-font-size);
}
body,
select,
optgroup,
textarea {
	color: var(--dk-gray);
	background-color: var(--white);
	font-size: var(--base-font-size);
	line-height: 1.5;
}

body {
	font-family: "Merriweather", sans-serif;
  	font-optical-sizing: auto;
	font-weight: 400;
	font-style: normal;	
	font-variation-settings: "wdth" 100;
}
h1, h2, h3, h4, h5, h6 {
	font-family: "Josefin Sans", sans-serif;
  	font-optical-sizing: auto;
	font-weight: 300;
	font-style: normal;
	margin: .5rem 0;
	margin-block-start: 0;
	line-height: 1;
}
h1 {
	font-size: var(--wp--preset--font-size--x-large);
	font-weight: 600;
}
h2 {
	font-size: var(--wp--preset--font-size--large);
}
h3 {
	font-size: var(--wp--preset--font-size--medium);
}
h4, h5, h6 {
	font-size: var(--base-font-size);
}
strong, b{
	font-weight: 700;
}

p {
	margin:0 auto 1.5em auto;
	line-height: 2;
}

dfn, cite, em, i {
	font-style: italic;
}
/*--------------------------------------------------------------
# Elements
--------------------------------------------------------------*/
html {
	box-sizing: border-box;
	scroll-padding-top: calc(var(--header-height) + 30px);
}

*,
*:before,
*:after {
	/* Inherit box-sizing to make it easier to change the property for components that leverage other behavior; see https://css-tricks.com/inheriting-box-sizing-probably-slightly-better-best-practice/ */
	box-sizing: inherit;
}

body {
	overflow-x: hidden!important;
	max-width: 100vw;
}

hr {
	background-color: transparent;
	border: 0;
	height: 1px;
	margin-bottom: 1.5em;
	border-top: 2px var(--yellow) solid;

}

ul, ol {
	margin: 0 0 1em 0;
}

ul {
	list-style: disc;
}

ol {
	list-style: decimal;
}

li > ul,
li > ol {
	margin-bottom: 0;
	margin-left: 1.5em;
}

dt {
	font-weight: bold;
}

dd {
	margin: 0 1.5em 1.5em;
}

img {
	height: auto;
	/* Make sure images are scaled correctly. */
	max-width: 100%;
	/* Adhere to container width. */
	vertical-align:text-bottom;
	
}

figure {
	margin: 0;
}
figure.wp-block-image  {
	text-align: center
}

table {
	margin: 0 0 1.5em;
	width: 100%;
}
figcaption {
	text-align: center;
	font-size: 1em;
	display: block !important;
}
sup{
	top:0;
	vertical-align: middle;
	font-family:  "Josefin Sans", sans-serif;
	font-size: .9em;
}
mark{
	padding: 0;
}
/*--------------------------------------------------------------
# Buttons
--------------------------------------------------------------*/
#primary-menu .button a:link,
a.button,
.button a,
.wp-block-button__link{
	font-family: "Josefin Sans", sans-serif;
	background: var(--accent-1);
	color: var(--white);
	padding: 8px 28px 4px 28px;
	font-size: .9em;
	text-decoration: none;
	text-transform: uppercase;
	display: inline-block;
	border-radius: 0;
	transition: all 300ms;
	font-weight: 300;
	
}
a.button:visited,
a.button:hover,
#primary-menu .button a:hover,
.button a:visited,
.button a:hover,
.wp-block-button__link:hover{
	color: var(--white);
	text-decoration: none;
	opacity: 0.75;
}

.wp-block-button.is-style-outline > .wp-block-button__link,
.button-outline{
	background: transparent;
	color: var(--accent-1);
	padding: 11px 28px;
	font-size: inherit;
	text-decoration: none;
	display: inline-block;
	border-radius: 0;
	transition: all 300ms;
	border:2px solid var(--accent-1);
}
.wp-block-button.is-style-outline > .wp-block-button__link:hover,
.button-outline:hover{
	color:var(--accent-1);
	text-decoration: none;
	background-color:var(--lt-grey);
	border: 2px solid var(--lt-grey);
}

.wp-block-button__link img{
	margin-right: 10px;	
}
/*--------------------------------------------------------------
# Navigation
--------------------------------------------------------------*/
/*--------------------------------------------------------------
## Links
--------------------------------------------------------------*/
a {
	text-decoration: none;
	color: var(--accent-1);
}
a:hover, a:active {
	color: var(--accent-2);
	transition: all .5s;
}
:where(p.has-text-color:not(.has-link-color)) a{
	color: inherit !important;
}
/*--------------------------------------------------------------
## Primary Header
--------------------------------------------------------------*/

.main-header{
	padding: 10px;
	color:var(--black);
	position: fixed;
	top:6%;
	height: 88%;
	left:0;
	width:80px;
	z-index:110;
	transition: all .2s;
	background-color:var(--accent-1);
	white-space-collapse: collapse;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}
.main-header:hover{
	height: 84%;
	top:8%;
	width:100px;
}
.admin-bar .main-header {
}

.mobile-word {
	font-family: "Josefin Sans", sans-serif;
	padding: 15px;
	cursor:pointer; 
	color:var(--white);
	transform: rotate(-90deg);
	white-space: nowrap; 
	line-height: 0;
}
.mobile-word .material-symbols-outlined {
	vertical-align: text-bottom;
	font-size: 28px;
	position: relative;
	top: 3px;
}

.mobile-toggle{
	cursor: pointer;
}
.mobile-menu{
	font-family: "Josefin Sans", sans-serif;
	height: 88%;
	top:6%;
	width:calc(100% - 100px);
	position: fixed; 
	left: -100%;
	background: var(--accent-1);
	color: var(--white);
	padding: 10px;
	z-index:9999;
	display: block;
	transition:all .3s;
}
.mobile-menu.active{
	left:0;
}
.mobile-menu .menu-container{
	border-top: 3px solid var(--accent-1);
	flex-grow: 1;
	overflow-y: auto;
}
.mobile-menu a:hover{
	color: var(--black);	

}

.mobile-header{
	padding: 5px 10px;
	background-color: var(--accent-1);
	color: #FFF;
}

@media (max-width: 767.98px) { 
	.mobile-word {
		transform: rotate(0deg);
	}
	.mobile-menu{
		min-height: 88%;
		top:var(--header-height);
		width:100%;
		position: absolute; 
	}

}
/*--------------------------------------------------------------
## Menus
--------------------------------------------------------------*/
.menu-primary-container {
	padding:0;
}
#primary-menu{
	list-style:none;	
	margin:0;
	letter-spacing: 1px;
	display: flex;
	justify-content: end;
	text-transform: uppercase;
}
#primary-menu a:link, #primary-menu a:visited, #primary-menu a:active{
	padding: 20px;
	letter-spacing: 1px;
	text-decoration:none;
	display:block;
	color:var(--black);
}
#primary-menu a:hover,
#primary-menu .current-menu-item > a{
	color: var(--accent-1);
	text-decoration: none;
	transition: all .5s;
}

#primary-menu > li{
	display: inline-block;
    position: relative;
    font-size: 16px;
}
#primary-menu > li:last-of-type a {
	background: var(--accent-1);
	color: var(--white);
	margin-left: 20px;
}
#primary-menu > li:last-of-type a:hover {
	background: var(--accent-1);
	color: var(--white);
	opacity: 0.9;
}
#primary-menu > li .sub-menu {
    display: none; 
    position: absolute;
    top: 100%;
    left: 0;
    list-style: none;
    margin: 0;
    padding: 0;
    background-color: var(--lt-grey);
    min-width: 200px;
    z-index: 1000;
    text-align: left;
	text-transform: none;
}
#primary-menu > li:hover .sub-menu {
    display: block; 
}
#primary-menu > li .sub-menu > li a {
    font-size: 16px; 
	color: var(--black);
	padding: 8px 15px ;
}
#primary-menu > li:hover .sub-menu li a:hover {
	color: var(--accent-1);
}

#mobile-menu{
	list-style:none;	
	margin:0;
	padding: 0;
	width:100%;
	overflow: auto;
	display:block;
	font-size:2.8rem;
	z-index: 1000;
    text-align: left;
}
#mobile-menu ul {
	margin: 0;
	list-style: none;
	padding: 0;
}
#mobile-menu .children{
	list-style:none;
	margin: 0;
	padding-left: 15px;

}
#mobile-menu > li .sub-menu{
	padding-left: 30px;
}
#mobile-menu a:link, #mobile-menu a:visited, #mobile-menu a:active{
	padding:6px 10px;
	color:var(--white);	 
	text-decoration:none;
	display:block;
	text-align: left;
	text-transform: uppercase;
}

.site-main .comment-navigation, .site-main
.posts-navigation, .site-main
.post-navigation {
	margin: 0 0 1.5em;
	overflow: hidden;
}

.comment-navigation .nav-previous,
.posts-navigation .nav-previous,
.post-navigation .nav-previous {
	float: left;
	width: 50%;
}

.comment-navigation .nav-next,
.posts-navigation .nav-next,
.post-navigation .nav-next {
	float: right;
	text-align: right;
	width: 50%;
}

/*--------------------------------------------------------------
# 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; /* Many screen reader and browser combinations announce broken words as they would appear visually. */
}

.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: 14px;
	font-size: 0.875rem;
	font-weight: bold;
	height: auto;
	left: 5px;
	line-height: normal;
	padding: 15px 23px 14px;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100000;
	/* Above WP toolbar. */
}

/* Do not show the outline on the skip link target. */
#content[tabindex="-1"]:focus {
	outline: 0;
}

/*--------------------------------------------------------------
# Alignments
--------------------------------------------------------------*/
body:not(.wp-admin) .alignleft {
	display: inline;
	float: left;
	margin-right: 1.5em;
}

body:not(.wp-admin) .alignright {
	display: inline;
	float: right;
	margin-left: 1.5em;
}

body:not(.wp-admin) .aligncenter {
	clear: both;
	display: block;
	margin-left: auto;
	margin-right: auto;
}
body:not(.wp-admin) .alignwide {
	margin-left: calc( -80vw / 2 + 100% / 2 );
	margin-right: calc( -80vw / 2 + 100% / 2 );
	width: 80vw;
	max-width: 100vw;
}
body:not(.wp-admin)  .alignfull {
	margin-left  : calc( -100vw / 2 + 100% / 2 );
	margin-right : calc( -100vw / 2 + 100% / 2 );
	max-width    : 100vw;
	width 		 : 100vw;
}
@media (max-width: 500px){
	body:not(.wp-admin) .alignleft,
	body:not(.wp-admin) .alignright {
		display: block;
		float: none !important;
		text-align: center;
	}
}

/*--------------------------------------------------------------
# Clearings
--------------------------------------------------------------*/
.clear:before,
.clear:after,
.entry-content:before,
.entry-content:after,
.comment-content:before,
.comment-content:after,header
.site-header:before,
.site-header:after,
.site-content:before,
.site-content:after,
.site-footer:before,
.site-footer:after {
	content: "";
	display: table;
	table-layout: fixed;
}

.clear:after,
.entry-content:after,
.comment-content:after,
.site-header:after,
.site-content:after,
.site-footer:after {
	clear: both;
}

/*--------------------------------------------------------------
# Widgets
--------------------------------------------------------------*/
.widget {
	margin: 0 0 1.5em;
	/* Make sure select elements fit in widgets. */
}

.widget select {
	max-width: 100%;
}

/*--------------------------------------------------------------
# Content
--------------------------------------------------------------*/
#content {
	padding-top: var(--header-height);
	overflow: hidden !important;
	max-width: 100vw;
}
.page-template-fullheight-template #content{
	padding-top: 0;
}
#content .container{
	max-width: var(--content-width);
}

/*--------------------------------------------------------------
## Posts and pages
--------------------------------------------------------------*/
.sticky {
	display: block;
}
.updated:not(.published) {
	display: none;
}

.page-content,
.entry-summary {
	margin: 1.5em 0 0;
}

.page-links {
	clear: both;
	margin: 0 0 1.5em;
}
.single-post .entry-title, .archive .entry-title {
	display: block;
}
.page-header{
	text-align: center;
	color: var(--white);
	padding-top: 100px;
	padding-bottom: 100px;
	background-size: cover;
	background-position: center;
	position: relative;
	z-index: 0;
}
.page-header .entry-title{
	position: relative;
	z-index: 2;
}
.page-header::after,
.background_video::after{
	position: absolute;
	content: '';
	bottom: 0;
	left: 0;
	width: 100%;
	height: 85%;
	pointer-events: none;
	background: -o-linear-gradient(top, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 1) 100%);
	background: -webkit-gradient(linear, left top, left bottom, from(rgba(0, 0, 0, 0)), to(rgba(0, 0, 0, 1)));
	background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 1) 100%);
	z-index: 1;
}
/*--------------------------------------------------------------
## Comments
--------------------------------------------------------------*/
.comment-content a {
	word-wrap: break-word;
}

.bypostauthor {
	display: block;
}

/*--------------------------------------------------------------
# Infinite scroll
--------------------------------------------------------------*/
/* Globally hidden elements when Infinite Scroll is supported and in use. */
.infinite-scroll .posts-navigation,
.infinite-scroll.neverending .site-footer {
	/* Theme Footer (when set to scrolling) */
	display: none;
}

/* When Infinite Scroll has reached its end we need to re-display elements that were hidden (via .neverending) before. */
.infinity-end.neverending .site-footer {
	display: block;
}

/*--------------------------------------------------------------
# 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 embeds and iframes fit their containers. */
embed,
object {
	max-width: 100%;
}

iframe {
	width: 100%;
}

/* Make sure logo link wraps around logo image. */
.custom-logo-link{
	background-color: var(--accent-2);
	border-radius: 100%;
	width: 60px;
	height: 60px;
	display: block;
	margin: 0 auto;
}
.custom-logo-link img {
	width: 60px;
	height: auto;
}
@media (max-width:786px){
	.custom-logo-link{
		width: 50px;
		height: 50px;
	}
	.custom-logo-link img {
		width: 50px;
	}
}

/*--------------------------------------------------------------
## 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
--------------------------------------------------------------*/
.blocks-gallery-item {
	padding: 0px 16px 16px 0px;
}

.gallery {
	margin-bottom: 1.5em;
}

.gallery-item {
	display: inline-block;
	text-align: center;
	vertical-align: top;
	width: 100%;
}

.gal-container {
	margin-bottom: 20px;
}

.gallery-columns-2 .gallery-item {
	max-width: 50%;
}

.gallery-columns-3 .gallery-item {
	max-width: 33.33%;
}

.gallery-columns-4 .gallery-item {
	max-width: 25%;
}

.gallery-columns-5 .gallery-item {
	max-width: 20%;
}

.gallery-columns-6 .gallery-item {
	max-width: 16.66%;
}

.gallery-columns-7 .gallery-item {
	max-width: 14.28%;
}

.gallery-columns-8 .gallery-item {
	max-width: 12.5%;
}

.gallery-columns-9 .gallery-item {
	max-width: 11.11%;
}

.gallery-caption {
	display: block;
}

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
.editor-styles-wrapper[data-widget-area-id="footer_area_one"],
.editor-styles-wrapper[data-widget-area-id="mobile_footer"],
.site-footer {
	font-size: 16px;
	background-color: var(--black);
	color: var(--white);
	padding-top: 45px;
	padding-bottom:20px;
	padding-right: 40px;
	padding-left: 40px;
}
.site-info {
	font-size: 11px;
}
.site-footer a, .site-footer a:visited {
	color: var(--white);
	text-decoration: none;
}
.site-footer a:hover{
	color: var(--accent-3);
}
/*--------------------------------------------------------------
# Custom Block Styles
--------------------------------------------------------------*/

@media (min-width:786px){
	.is-style-hover-reveal .wp-block-cover__inner-container,
	.is-style-hover-reveal .has-background-dim{
		opacity:0 !important;
		transition: all 200ms;
	}
	.is-style-hover-reveal:hover .wp-block-cover__inner-container{
		opacity:1 !important;
	}
	.is-style-hover-reveal:hover .has-background-dim{
		opacity: 0.8 !important;
	}
}

.is-style-blocked{
	position: relative;
	padding: 60px 0;
}
.is-style-blocked::before{
	content: '';
	display: block;
	border:2px solid var(--accent-1);
	border-right: none;
	position: absolute;
	left: -100px;
	top: 0;
	bottom: 0;
	width: 100px;
}
.is-style-blocked::after{
	content: '';
	display: block;
	border:2px solid var(--accent-1);
	border-left: none;
	position: absolute;
	right: -100px;
	top: 0;
	bottom: 0;
	width: 100px;	
}
@media (max-width:1200px){
	.is-style-blocked{
		padding: 30px 20px;
	}
	.is-style-blocked::before{
		left:  0;
	}
	.is-style-blocked::after{
		right: 0;
	}
}
.wp-block-cover{
	max-height: calc(100vh - var(--header-height));	
}

/*
/* The outer gallery container 
.wp-block-gallery.is-style-flex-gallery.is-layout-flex {
    display: flex;
    flex-wrap: nowrap;      
    align-items: stretch;
    height: auto;          
    gap: 0;               
}

.wp-block-gallery.is-style-flex-gallery.is-layout-flex > figure.wp-block-image {
    margin: 0;
    padding: 0;
    display: flex;          
    align-items: stretch;
	width: auto !important;
}

.wp-block-gallery.is-style-flex-gallery.is-layout-flex > figure.wp-block-image > img {
    height: 100% !important;   
    width: auto !important;   
    max-width: none;          
    flex: 0 0 auto;            
}*/
.wp-block-gallery.is-style-flex-gallery.is-layout-flex {
    display: grid;
	grid-template-columns: 33% 17% 33% 17%;
    gap: 0;               
}
@media (max-width:767.95px){
	.wp-block-gallery.is-style-flex-gallery.is-layout-flex {
		grid-template-columns: 60% 40%;
	}
}

.wp-block-gallery.is-style-flex-gallery.is-layout-flex > figure.wp-block-image {
    margin: 0;
    padding: 0;
    align-items: stretch;
    width: auto !important; 
}

.wp-block-gallery.is-style-flex-gallery.is-layout-flex > figure.wp-block-image > img {
    width: auto !important; 
    height: 100% !important;   
	object-fit: cover;
    max-width: none;          
}

.is-style-shadow-box{
	box-shadow: 0 0 16.74px 1.26px rgba(0,0,0,.14);
	background-color: #fff;
}
.is-style-image-shadow .wp-block-media-text__media img{
	box-shadow: -25px 25px 0 0 #e9eae2;
}
.is-style-image-shadow .wp-block-media-text__media{
	padding-bottom: 35px;
}
.is-style-underlined{
	position: relative;
	margin-bottom: 50px;
}
.is-style-underlined::after{
	content: "";
	display: block;
	position: relative;
	bottom: -20px;
	width: 60px;
	height: 5px;
	background-color: var(--accent-1);
	left: calc(50% - 30px);
}
.z-top{
	position: relative;
	z-index: 1;
}
