html.jm-splash-viewed .jm-splash {
	display: none !important;
}

a:focus, a:focus-visible, button:focus, button:focus-visible, 
input:focus, select:focus, textarea:focus {
  outline: none !important;
  box-shadow: none !important;
}



/* =========================================================
   Global
   ========================================================= */

::selection {
	background: rgb(144, 144, 144);
	color: white;
}

.wp-block-site-title a {
	letter-spacing: 0;
    font-size: clamp(1.75rem, 1.4vw, 2.6rem);
}
.wp-block-site-title a:hover {
	text-decoration: none;
}


:where(.wp-site-blocks :focus) {
	outline-width: 0;
}

/* check jm-bio, jm-news, jm-attachment */
.site-wrapper--default {
	display: flex;
	flex-direction: column;

	width: 100%;
	min-height: 100svh;
}

.site-wrapper--default > .content-wrapper {
	flex: 1 0 auto;	
}

@media (min-width: 769px) {
	.site-wrapper--default > .content-wrapper {
		padding-top: 30px !important;
	}
}

/* =========================================================
   Archive
   ========================================================= */

.post-featured-image-container:not(:has(.wp-block-post-featured-image)) {
	display: none;
}

.post-featured-image-container:not(:has(.wp-block-post-featured-image)) + * {
	flex-basis: 100% !important;
}

/* =========================================================
   Header / Footer
   ========================================================= */

.header-wrapper {
	z-index: 9999;
	background: white;
}

body.has-attachment-fullscreen .header-wrapper {
	background: transparent;
}


header li a {
	font-size: clamp(1.1rem, 1vw, 1.5rem);
}

footer {
	background: white;
}


header li a,
footer li a,
footer li {
	text-transform: uppercase;
	font-weight: 400;
	transition: all 0.3s ease-in-out;
	text-decoration: none;
	letter-spacing: 0.07em;
}



header li a:hover,
footer li a:hover {
	text-decoration: none;
	font-weight: 600;
}

header li.current-menu-item a {
    font-weight: 900;
    letter-spacing: .1em;
	font-size: clamp(1.2rem, 1.1vw, 1.6rem);
}


footer ul {
	margin: 0;
	padding: 0;

	display: flex;
	gap: 1rem;
	justify-content: end;

	list-style-type: none;
}


header .wp-block-site-title {
	font-family: "Aeonik Pro", sans-serif;
	font-weight: 400;
}

/* CUSTOM TYPOGRAPHY with SERIF FONT  */

h1,h2,h3,h4,h5,h6 {
	letter-spacing: 0;
}
.jm-patterns-landing__item h3,
h1.jm-attachment__title {
		font-family: var(--wp--preset--font-family--cormorant);
		font-size: clamp(1.5rem, 2.2vw, 3rem);
		font-style: italic;
		font-weight: 400;
		line-height: 1.1;
}


.jm-carousel__title,
h1.wp-block-post-title,
.archive h2.wp-block-post-title,
h1.wp-block-query-title {
		font-family: var(--wp--preset--font-family--cormorant);
		font-size: var(--wp--preset--font-size--xx-large);		
		font-style: italic;
		font-weight: 400;
		line-height: 0.95;	
}

.list-cascading .wp-block-post-title {
	font-family: var(--wp--preset--font-family--aeonik-pro);
		font-family: var(--wp--preset--font-family--aeonik-pro);
		font-style: normal;
		font-size: var(--wp--preset--font-size--medium);	
}

blockquote {
	margin-left: 0;
	margin-right: 0;
}
blockquote p,
.jm-carousel__count {
	font-family: var(--wp--preset--font-family--cormorant);
	font-size: clamp(1.7rem, 1.9vw, 2.7rem);
	font-style: italic;
	font-weight: 400;
	line-height: 1.1;	
}



cite {
	font-family: var(--wp--preset--font-family--aeonik-pro);
	font-style: normal;
	font-size: var(--wp--preset--font-size--medium);
}







/* =========================================================
   General Content
   ========================================================= */

figure.alignfull figcaption {
	max-width: var(--wp--style--global--content-size);
	margin-left: auto;
	margin-right: auto;
}


.single .wp-site-cover {
	margin-top: 0 !important;
}


/* =========================================================
   News
   ========================================================= */

.page-template-jm-news .wp-block-heading {
	opacity: 0;
	filter: blur(8px);
	transform: translateY(20px);
}


.page-template-jm-news .list-cascading ul li {
	opacity: 0;
	transform: translateY(15px);
}

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

.gform_wrapper {

	--gf-field-gap: 1.5rem;
	--gf-input-padding: 0.875rem 1rem;
	--gf-border-width: 1px;

}


.gform_wrapper .gform_fields {
	row-gap: var(--gf-field-gap);
}


.gform_wrapper input[type="text"],
.gform_wrapper input[type="email"],
.gform_wrapper input[type="tel"],
.gform_wrapper input[type="url"],
.gform_wrapper input[type="number"],
.gform_wrapper select {
	width: 100%;
	padding: var(--gf-input-padding);
	border: none;
	border-bottom: 2px solid black;
	border-radius: 0;

	background: transparent;
	color: inherit;

	font: inherit;
}

.gform_wrapper textarea {
	border: 2px solid black;
}

.gform_wrapper button[type="submit"] {
	padding: 0.5rem 1rem;

	border: 2px solid #000;
	border-radius: 0;

	background: transparent;
	color: #000;

	font: inherit;
	cursor: pointer;
	text-transform: none;
	font-weight: 500;
	letter-spacing: .5px;
}

.gform_wrapper button[type="submit"]:hover,
.gform_wrapper button[type="submit"]:focus {
	background: #000;
	color: #fff;
}


.gform_wrapper input:focus,
.gform_wrapper textarea:focus,
.gform_wrapper select:focus {
	outline: 2px solid black;
	outline-offset: 2px;
}


.gform_wrapper .gform_button {
	border-radius: 0;
	text-transform: uppercase;
	letter-spacing: 0.08em;
}

.gform_wrapper .gform_required_legend {
	display: none !important;
}

/* envira overrides */
.envirabox-theme-base_dark .envirabox-thumbs>ul>li.envirabox-thumbs-active.focused img {
    border: 2px solid var(--wp--preset--color--accent-3) !important;
}

/* =========================================================
   RESPONSIVE: Tablet
   ========================================================= */

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

	footer li {
		font-size: 12px !important;
	}

}


/* =========================================================
   RESPONSIVE: Mobile
   ========================================================= */

@media only screen and (max-width: 768px) {
	footer li {
		font-size: 10px !important;
	}	
	footer .wp-block-columns > div:first-child {
		display: none;
	}
	footer .wp-block-site-logo {
		display: none;
	}

	footer ul:first-of-type {
		width: 100%;
    	justify-content: space-between;
		padding-bottom: .5rem;
	}

	/* shorter featured cover on mobile */
	.jm-featured-cover {
		height: 280px !important;
		max-height: 280px !important;
		min-height: unset !important;
	}

}

/* BIO PAGE see global.js */
body.page-template-jm-bio .wp-block-image {
    overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
    body.page-template-jm-bio .wp-block-image img,
    body.page-template-jm-bio .wp-block-post-title,
    body.page-template-jm-bio .jm-bio-content p {
        filter: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}