/*
Theme Name: Tandem Base Template
Theme URI: https://tandem.nyc/
Author: Tandem NYC
Author URI: https://tandem.nyc/
Description: Starter template for Tandem projects. Adapted from Frost WP.
Tags: block-patterns, block-styles, custom-colors, custom-logo, custom-menu, editor-style, full-site-editing, one-column, template-editing, threaded-comments, translation-ready, wide-blocks
Requires at least: 6.2
Tested up to: 6.3.1
Requires PHP: 5.6
Version: 1.0.1
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tandem_base
*/


/* Defaults
---------------------------------------------------------------------------- */
@import url(https://use.typekit.net/elq7xru.css);

*,
*::before,
*::after {
	box-sizing: border-box;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

/* *::selection { 
	background-color: #1D202560;
} */

.icon::before {
	display: inline-block;
	text-rendering: auto;
	-webkit-font-smoothing: antialiased;
}

#wpadminbar {
	position: absolute;
}

html {
	scroll-behavior: smooth;
}

html:has(body.post-template-wp-custom-template-case-study) {
	scroll-behavior: unset !important;
}

.wp-site-blocks {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

main.site-content {
	flex-grow: 1;
}

:where(.wp-site-blocks) >

:where(.wp-block-columns) {
	margin-block-end: 0;
}

body:not(.post-template-default) :where(.wp-site-blocks) > *,
body:not(.post-template-default) .entry-content.is-layout-constrained > * {
	margin-block-start: 0;
}

/* body.post-template-default .is-layout-flow > * {
    margin-block-start: var(--wp--preset--spacing--small);
} */

.entry-content > figure {
	margin: var(--wp--custom--spacing--gap);
}

body.post-template-default .entry-content .wp-block-columns:first-child .wp-block-column:first-child {
	display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* :root body:not(.post-template-wp-custom-template-case-study) :where(.wp-block-image) {
	margin: var(--wp--custom--spacing--gap) 0;
} */

:where(.wp-block-columns) {
	margin-bottom: 0;
}

a,
button,
input:focus,
input[type="button"],
input[type="submit"],
textarea:focus,
.wp-element-button {
	transition: all 200ms ease-in-out;
}

a {
	text-decoration: underline;
	text-underline-offset: 0.1em;
}

a.wp-element-button {
	text-decoration: none;
}

a:focus,
a:hover {
	text-decoration: none;
}

.wp-block-query h2 a,
.wp-block-query h4 a {
	text-decoration: none;
}

.wp-block-button .wp-block-button__link {
	border-bottom: 2px solid currentColor;
}
.wp-block-button .wp-block-button__link:hover {
	color: var(--wp--preset--color--gray);
}

:root :where(.wp-element-button, .wp-block-button__link) {
	background: none;
}

a.wp-element-button::after {
	font: var(--fa-font-solid);
	content: " \f061";
    font-size: 0.8em;
	transform: translateX(0);
	display: inline-block;
	margin-left: 4px;
	transition: transform 200ms cubic-bezier(0.770, 0.000, 0.175, 1.000); /* easeInOutQuart */ 
}

a.wp-element-button:hover::after,
a.wp-element-button:focus::after {
	transform: translateX(50%);
}

#see-more a.wp-element-button::after {
	content: '';
    font-size: inherit;
	display: inline-block;
	margin-left: 0;
}

.wp-block-query li figure a {
	overflow: hidden;
}

.wp-block-query li figure a img,
.wp-block-query li figure a video {
	transition: all 200ms ease-in-out;
	opacity: 1;
}

/* scale image when hover over image or title */
.wp-block-query li figure a img:hover,
.wp-block-query li figure a video:hover,
.wp-block-query li:has(h2:hover) figure a img,
.wp-block-query li:has(h2:hover) figure a video,
.wp-block-query li:has(h4:hover) figure a img,
.wp-block-query li:has(h4:hover) figure a video {
	scale: 1.02;
	opacity: .9;
}

/* change color of case study and project title when hover over image */
.wp-block-query h2 a:focus,
.wp-block-query h2 a:hover,
.wp-block-query li:has(figure:hover) h2 a,
.wp-block-query h4 a:focus,
.wp-block-query h4 a:hover,
.wp-block-query li:has(figure:hover) h4 a  {
	color: var(--wp--preset--color--gray);
}

.process-tabs figure .wp-element-caption {
	opacity: 0;
	visibility: hidden;
	transition: all 200ms ease-in-out;
	font-size: 10px;
	color: var(--wp--preset--color--gray);
	padding-top: var(--wp--preset--spacing--xx-small);
	margin: 0;
	text-decoration: none !important;
	line-height: 1;
	font-weight: 500;
}

.process-tabs figure:has(img:hover) .wp-element-caption {
    opacity: 1;
    visibility: visible;
    scale: 1.01;
}

/* .process-tabs .tm-tab-buttons .tab-internal-navbuttons.current-tab::before {
	content: "•";
	display: inline-block;
	margin-right: 4px;
 } */

.site-footer img {
    -webkit-user-drag: none;
    user-select: none;
    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
}

div.has-secondary-font-family {
	letter-spacing: 0;
}

b,
strong,
th {
	font-weight: var(--wp--custom--font-weight--medium);
}

/* .alignfull > .alignwide:first-child, */
.wp-block-cover__inner-container.has-global-padding {
	padding-right: var(--wp--style--root--padding-right);
	padding-left: var(--wp--style--root--padding-left);
}

@supports (-webkit-backdrop-filter: none) or (backdrop-filter: none) {
	.site-header {
	  -webkit-backdrop-filter: blur(10px);
	  backdrop-filter: blur(10px);
	}
}

/* Navigation
--------------------------------------------- */

.header-hero-video h1 {
	text-wrap: balance;
}
.header-hero-video .wp-block-video video {
	border-radius: 4px;
	overflow: hidden;
	box-shadow: 0px 0px 12px rgba(0, 0, 0, 0.05);
}

.header-hero-video .wp-block-video figcaption {
	font-size: 10px;
	color: var(--wp--preset--color--gray);
	padding-top: var(--wp--preset--spacing--xx-small);
	margin: 0;
	text-decoration: none !important;
	line-height: 1;
	font-weight: 500;
}


header.site-header .wp-block-navigation .wp-block-navigation-item__content {
	text-decoration: none;
	text-underline-offset: .3em;
	padding: var(--wp--preset--spacing--xxx-small) 0;
}

header.site-header .wp-block-navigation .current-menu-item .wp-block-navigation-item__content {
	text-decoration: underline;
	text-decoration-thickness: 1.5px;
}

header.site-header .wp-block-navigation .wp-block-navigation-item__content:focus,
header.site-header .wp-block-navigation .wp-block-navigation-item__content:hover {
	color: var(--wp--preset--color--gray);
}

.wp-block-navigation__responsive-container.is-menu-open {
	padding: var(--wp--preset--spacing--xxx-small) var(--wp--style--root--padding-right) var(--wp--preset--spacing--xxx-small) var(--wp--style--root--padding-left);
	min-height: 100vh;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-close {
	padding: var(--wp--preset--spacing--xxx-small) 0;
	display: flex;
	flex-direction: column;
	flex-grow: 1;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-dialog {
	display: flex;
	flex-direction: column;
	flex-grow: 1;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
	/* padding: 24px 48px; */
	padding: 24px;
	display: flex;
	flex-direction: column;
	flex-grow: 1;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__container {
	justify-content: center;
	gap: var(--wp--preset--spacing--x-small);
	width: 100%;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__container li:not(.mobile-link) .wp-block-navigation-item__content {
	font-size: var(--wp--preset--font-size--max-64);
	margin-bottom: var(--wp--preset--spacing--small);
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__container .mobile-link-first {
	padding-top: var(--wp--preset--spacing--medium);
	border-top: 1px solid currentColor;
	width: 100%;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__container .wp-block-navigation-item__content:focus {
	color: var(--wp--preset--color--contrast);
}

/* Navigation Submenu
--------------------------------------------- */

/* Header styling */
.site-header {
	box-shadow: 0px 0px 12px rgba(0, 0, 0, 0.10);
	position: sticky;
	z-index: 999;
	top: 0;
	background: rgba(255, 255, 255, .85);
	min-height: 52px;
}

/* Header animation */
.site-logo {
	display: flex;
	padding: var(--wp--preset--spacing--xxx-small) 0;
}

body:not(.home) .site-header .site-logo svg {
	fill: #1D2025;
}
  
body:not(.home) .site-header .site-logo.collapsed svg #a,
body:not(.home) .site-header .site-logo.collapsed svg #n,
body:not(.home) .site-header .site-logo.collapsed svg #d,
body:not(.home) .site-header .site-logo.collapsed svg #e,
body:not(.home) .site-header .site-logo.collapsed svg #m {
	transform: translateX(-72%);
	opacity: 0;
	transition: transform 400ms cubic-bezier(0.770, 0.000, 0.175, 1.000), opacity 200ms cubic-bezier(0.770, 0.000, 0.175, 1.000); /* easeInOutQuart */ 
}

body:not(.home) .site-header .site-logo.collapsed svg #slash {
	transform: translateX(-72%);
	transition: transform 400ms cubic-bezier(0.770, 0.000, 0.175, 1.000); /* easeInOutQuart */
}
  
body:not(.home) .site-header .site-logo svg #a,
body:not(.home) .site-header .site-logo:hover svg #a {
	transform: translateX(0%);
	opacity: 1;
	transition: transform 400ms cubic-bezier(0.770, 0.000, 0.175, 1.000), opacity 400ms cubic-bezier(0.770, 0.000, 0.175, 1.000) 160ms; /* easeInOutQuart */
}
body:not(.home) .site-header .site-logo svg #n,
body:not(.home) .site-header .site-logo:hover svg #n {
	transform: translateX(0%);
	opacity: 1;
	transition: transform 400ms cubic-bezier(0.770, 0.000, 0.175, 1.000), opacity 400ms cubic-bezier(0.770, 0.000, 0.175, 1.000) 140ms; /* easeInOutQuart */
}
body:not(.home) .site-header .site-logo svg #d,
body:not(.home) .site-header .site-logo:hover svg #d {
	transform: translateX(0%);
	opacity: 1;
	transition: transform 400ms cubic-bezier(0.770, 0.000, 0.175, 1.000), opacity 400ms cubic-bezier(0.770, 0.000, 0.175, 1.000) 120ms; /* easeInOutQuart */
}
body:not(.home) .site-header .site-logo svg #e,
body:not(.home) .site-header .site-logo:hover svg #e {
	transform: translateX(0%);
	opacity: 1;
	transition: transform 400ms cubic-bezier(0.770, 0.000, 0.175, 1.000), opacity 400ms cubic-bezier(0.770, 0.000, 0.175, 1.000) 100ms; /* easeInOutQuart */
}
body:not(.home) .site-header .site-logo svg #m,
body:not(.home) .site-header .site-logo:hover svg #m {
	transform: translateX(0%);
	opacity: 1;
	transition: transform 400ms cubic-bezier(0.770, 0.000, 0.175, 1.000), opacity 400ms cubic-bezier(0.770, 0.000, 0.175, 1.000) 80ms; /* easeInOutQuart */
}
  
body:not(.home) .site-header .site-logo svg #slash,
body:not(.home) .site-header .site-logo:hover svg #slash {
	transform: translateX(0%);
	transition: transform 400ms cubic-bezier(0.770, 0.000, 0.175, 1.000); /* easeInOutQuart */
}

/* Case Study */
.case-study-hero .wp-block-columns {
	min-height: 80vh;
}

.case-study-quote h3.wp-block-heading::before {
	content: "“";
    margin-left: -.35em;
    position: absolute;
}
.case-study-quote h3.wp-block-heading::after {
	content: "”";
}

.post-template-wp-custom-template-case-study .entry-content > * {
	scroll-margin-top: 20px;
}

/* Forms
--------------------------------------------- */

input,
select,
textarea {
	border-radius: 5px;
	font-size: var(--wp--preset--font-size--small);
	padding: 10px 20px;
	width: 100%;
}

input:focus,
textarea:focus {
	outline: none;
}

input[type="checkbox"],
input[type="image"],
input[type="radio"] {
	width: auto;
}

input[type="button"],
input[type="email"],
input[type="search"],
input[type="submit"],
input[type="text"],
textarea {
	-webkit-appearance: none;
	appearance: none;
}

::placeholder {
	color: var(--wp--preset--color--contrast);
	font-size: var(--wp--preset--font-size--small);
	opacity: 0.5;
}

/* Blocks
---------------------------------------------------------------------------- */

/* Code
--------------------------------------------- */

*:not(.wp-block-code) > code {
	background-color: var(--wp--preset--color--neutral);
	font-size: var(--wp--preset--font-size--small);
	padding: 5px 8px;
}

/* Group
--------------------------------------------- */

.wp-block-group.is-style-shadow-light {
	box-shadow: var(--wp--preset--shadow--light);
}

.wp-block-group.is-style-shadow-solid {
	box-shadow: var(--wp--preset--shadow--shadow);
}

/* Image
--------------------------------------------- */

.wp-block-image.is-style-shadow-light img {
	box-shadow: var(--wp--preset--shadow--light);
}

.wp-block-image.is-style-shadow-solid img {
	box-shadow: var(--wp--preset--shadow--solid);
}

/* List
--------------------------------------------- */

.is-style-no-disc {
	list-style-type: none;
	padding-left: 0;
}

/* Quote
--------------------------------------------- */

.wp-block-quote.is-style-shadow-light {
	box-shadow: var(--wp--preset--shadow--light);
}

.wp-block-quote.is-style-shadow-solid {
	box-shadow: var(--wp--preset--shadow--solid);
}


/* .logo-grid.alignwide .logo-container:nth-child(15) {
  grid-column-start: 2 !important;
} */

.wp-block-video video[playsinline] {
       aspect-ratio: auto !important; /* or use 'unset' */
 }


/* Media Queries
---------------------------------------------------------------------------- */

@media only screen and (max-width: 600px) {

	/* Utility
	--------------------------------------------- */

	.is-style-hidden-mobile {
		display: none !important;
	}

	.footer-container {
		justify-content: center;
		flex-direction: column;
		gap: var(--wp--preset--spacing--medium);
	}
	.footer-container > .wp-block-group {
		flex-direction: column;
	}
	.site-footer > .wp-block-group {
	padding-top: var(--wp--preset--spacing--x-large) !important;
    padding-bottom: var(--wp--preset--spacing--xx-large) !important;
	}

}

@media only screen and (max-width: 781px) {

	/* Columns
	--------------------------------------------- */
/* .logo-grid.alignwide .logo-container:nth-child(15) {
  grid-column-start: auto !important;
} */
	.is-style-columns-reverse {
		flex-direction: column-reverse;
	}

	.case-study-hero .wp-block-columns {
		min-height: auto;
	}
	#image-container {
		display: none;
	}
	.wp-block-columns.process-tabs-images:not(.is-not-stacked-on-mobile)>.wp-block-column {
		flex-basis: calc(50% - 32px) !important;
	}
	.no-margin-mobile {
		margin: 0 !important;
	}

	.page-template-wp-custom-template-work .wp-block-query .category-case-study img,
	.home .wp-block-query .category-case-study img {
		aspect-ratio: 3/4;
	}
	.page-template-wp-custom-template-work .wp-block-query .category-case-study .wp-block-post-excerpt__excerpt,
	.home .wp-block-query .category-case-study .wp-block-post-excerpt__excerpt {
		font-size: var(--wp--preset--font-size--max-22);
	}

	.process-tabs figure .wp-element-caption {
		display: none;
	}
	
}

@media only screen and (min-width: 780px) {

	/* Navigation Link
	--------------------------------------------- */

	.wp-block-navigation .wp-block-navigation-item.mobile-link {
		display: none;
		font-size: var(--wp--preset--font-size--body);
	}

}

@media only screen and (min-width: 600px) {

	/* Navigation Link
	--------------------------------------------- */

	.wp-block-navigation-item.is-style-outline a {
		border: 1px solid currentColor;
		padding: 8px 15px;
	}

	.wp-block-navigation .wp-block-navigation-item.mobile-link {
		display: none;
		font-size: var(--wp--preset--font-size--body);
	}

}

.wp-block-group[id^="page-"] {
    opacity: 0;
    transition: all 800ms ease-out; /* Fade in - we can change the animation here but it makes sense not to have it flash*/
}

.wp-block-group[id^="page-"].show {
    opacity: 1;
}

.wp-block-group[id="page-1"] {
    display: block;
    opacity: 1;
}