/* Focus styles: no outline on mouse click, a soft outline for keyboard navigation */
a:focus,
button:focus,
[tabindex]:focus {
	outline: none;
}

a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
	outline: 2px solid var(--wp--preset--color--accent-4, #686868);
	outline-offset: 3px;
}

/* Smooth scroll for the "Our Story" anchor link */
html {
	scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
}

/* Top-down staggered fade-in on load */
.jt-fade {
	opacity: 0;
	transform: translateY(24px);
	transition: opacity 0.7s ease, transform 0.7s ease;
}

.jt-fade.is-visible {
	opacity: 1;
	transform: none;
}

@media (prefers-reduced-motion: reduce) {
	.jt-fade {
		transition: none;
		opacity: 1;
		transform: none;
	}
}

/* Header: single flowers framing the script title */
.jt-site-header__inner {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: center;
	text-align: center;
	gap: 0 !important;
}

.jt-site-header__inner .wp-block-site-title {
	flex: 0 0 auto;
	position: relative;
	z-index: 2;
}

.jt-site-header__inner .jt-floral-accent-frame {
	flex: 0 0 auto;
}

.jt-site-header .wp-block-site-title {
	font-size: var(--wp--preset--font-size--script, 4rem);
	line-height: 1.1;
}

.jt-title-amp {
	display: inline-block;
	font-family: var(--wp--preset--font-family--quicksand);
	font-weight: 300;
	font-size: 0.45em;
	vertical-align: 0.08em;
	margin: 0 -0.05em;
}

.jt-site-header .jt-site-nav {
	width: 100%;
	display: flex;
	justify-content: center;
	margin-top: var(--wp--preset--spacing--30, 20px);
}

.jt-site-header .jt-site-nav .wp-block-navigation__container {
	justify-content: center;
}

.jt-site-header .wp-block-navigation__responsive-container-open {
	color: var(--wp--preset--color--contrast, #111);
	padding: 8px;
}

.jt-site-header .wp-block-navigation__responsive-container-open svg {
	width: 26px;
	height: 26px;
}

.wp-block-navigation__responsive-container.is-menu-open {
	padding: var(--wp--preset--spacing--60, 40px) var(--wp--preset--spacing--40, 30px);
}

.wp-block-navigation__responsive-container .wp-block-navigation-item__label {
	font-family: var(--wp--preset--font-family--quicksand);
	font-weight: 300;
	font-size: calc(var(--wp--preset--font-size--medium) * 1.5);
}

@media (max-width: 600px) {
	.jt-site-header .wp-block-site-title {
		font-size: 2.75rem;
	}
}

@media (max-width: 640px) {
	.jt-site-header__inner .jt-floral-accent-frame {
		display: none;
	}
}

/* Floral accent frame: rotates each header flower outward, away from the title */
.jt-floral-accent-frame {
	display: flex;
	position: relative;
	z-index: 1;
	overflow: hidden;
}

.jt-floral-accent-frame--left {
	margin-right: 65px !important;
	transform: rotate(-28deg);
	transform-origin: 50% 100%;
}

/* "Our Story" heading flanked by flowers, same treatment as the site title */
.jt-story-heading-row {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: center;
	gap: 0 !important;
	margin-bottom: 28.8px !important;
}

.jt-story-heading-row .jt-story-heading {
	flex: 0 0 auto;
	margin: 0;
	font-size: clamp(2.58rem, 4vw, 3.6rem);
	position: relative;
	z-index: 2;
}

.jt-story-heading-row .jt-floral-accent-frame {
	flex: 0 0 auto;
}

.jt-floral-accent-frame--story .jt-floral-accent svg {
	height: clamp(34px, 4.8vw, 58px);
}

@media (max-width: 640px) {
	.jt-story-heading-row .jt-floral-accent-frame {
		display: none;
	}
}

.jt-floral-accent-frame--right {
	margin-left: 65px !important;
	transform: rotate(28deg);
	transform-origin: 50% 100%;
}

/* Floral artwork colors (shared by the footer divider and the header accent) */
.jt-floral-divider,
.jt-floral-accent {
	--jt-stem-color: #2f5233;
	--jt-petal-color: #ff8a1a;
}

.jt-floral-divider {
	width: 100%;
}

.jt-floral-divider svg {
	display: block;
	width: 100%;
	height: clamp(34px, 5vw, 64px);
}

.jt-floral-accent svg {
	display: block;
	height: clamp(56px, 8vw, 96px);
	width: auto;
	overflow: hidden;
}

.jt-floral-divider path,
.jt-floral-divider circle {
	vector-effect: non-scaling-stroke;
}

.jt-floral-divider .jt-floral-stem,
.jt-floral-accent .jt-floral-stem {
	stroke: var(--jt-stem-color);
	fill: none;
}

.jt-floral-divider .jt-floral-petal path,
.jt-floral-accent .jt-floral-petal path {
	fill: var(--jt-petal-color);
	stroke: none;
}

.jt-floral-divider .jt-floral-spark {
	fill: var(--jt-stem-color);
	stroke: none;
}

.jt-site-footer {
	display: flex;
	justify-content: center;
}

/* Footer on mobile: swap the full line-and-flowers divider for a simple pair */
.jt-footer-mobile-duo {
	display: none !important;
}

@media (max-width: 640px) {
	.jt-site-footer .jt-floral-divider {
		display: none;
	}

	.jt-footer-mobile-duo {
		display: flex !important;
		align-items: flex-end;
	}

	.jt-footer-mobile-duo .jt-floral-accent-frame--left {
		margin-right: 10px !important;
	}

	.jt-footer-mobile-duo .jt-floral-accent-frame--right {
		margin-left: 0 !important;
	}
}

/* Story section */
.jt-story-section {
	text-align: center;
	scroll-margin-top: 40px;
}

.jt-story-body {
	text-align: left;
	margin-top: 0 !important;
}

/* Instagram social links (inside the nav overlay) */
.jt-nav-social-row {
	justify-content: center !important;
	align-items: center;
	gap: var(--wp--preset--spacing--50, 40px) !important;
	margin-top: var(--wp--preset--spacing--50, 30px);
}

.jt-social-link {
	display: flex;
	flex: 0 0 auto;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	color: #000;
	text-decoration: none;
	transition: opacity 0.2s ease;
}

.jt-social-link:hover,
.jt-social-link:focus-visible {
	opacity: 0.65;
}

.jt-social-name {
	font-family: var(--wp--preset--font-family--quicksand);
	font-weight: 300;
	font-size: 1rem;
	color: #000;
}

/* Photo carousel */
.jt-gallery-section {
	padding-top: 0;
	padding-bottom: 0;
}

.jt-carousel {
	position: relative;
	display: flex;
	align-items: center;
	gap: 8px;
}

.jt-carousel-track {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	-webkit-overflow-scrolling: touch;
	padding: 4px 0 16px;
	flex: 1 1 auto;
}

.jt-carousel-item {
	position: relative;
	flex: 0 0 auto;
	scroll-snap-align: start;
	border: 0;
	background: none;
	padding: 0;
	cursor: pointer;
	line-height: 0;
}

.jt-carousel-item img {
	display: block;
	height: 450px;
	width: auto;
	max-width: none;
}

.jt-carousel-caption {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 28px 12px 12px;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
	color: #fff;
	font-family: var(--wp--preset--font-family--quicksand);
	font-weight: 300;
	font-size: 0.85rem;
	line-height: 1.3;
	text-align: center;
	pointer-events: none;
}

.jt-carousel-arrow {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 999px;
	border: 1px solid var(--wp--preset--color--accent-6, #ccc);
	background: var(--wp--preset--color--base, #fff);
	color: var(--wp--preset--color--contrast, #111);
	font-size: 1.5rem;
	cursor: pointer;
	z-index: 2;
}

.jt-carousel-arrow:hover {
	background: color-mix(in srgb, var(--wp--preset--color--contrast, #111) 8%, transparent);
}

@media (max-width: 900px) {
	.jt-carousel-item img {
		height: 320px;
	}
}

@media (max-width: 600px) {
	.jt-carousel-item img {
		height: 200px;
	}

	.jt-carousel-arrow {
		width: 34px;
		height: 34px;
		font-size: 1.2rem;
	}
}

/* Lightbox */
.jt-lightbox {
	position: fixed;
	inset: 0;
	margin: 0 !important;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(17, 17, 17, 0.92);
}

.jt-lightbox[hidden] {
	display: none !important;
}

.jt-lightbox-figure {
	position: relative;
	margin: 0;
	max-width: 90vw;
	max-height: 88vh;
	display: flex;
}

.jt-lightbox-img {
	display: block;
	max-width: 90vw;
	max-height: 88vh;
	width: auto;
	height: auto;
	object-fit: contain;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.jt-lightbox-caption {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	margin: 0;
	padding: 48px 24px 20px;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.65), transparent);
	color: #fff;
	font-family: var(--wp--preset--font-family--quicksand);
	font-weight: 300;
	font-size: 1rem;
	line-height: 1.4;
	text-align: center;
}

.jt-lightbox-caption[hidden] {
	display: none;
}

.jt-lightbox-close,
.jt-lightbox-nav {
	position: absolute;
	border: 0;
	background: transparent;
	color: #fff;
	cursor: pointer;
	line-height: 1;
}

.jt-lightbox-close {
	top: 20px;
	right: 24px;
	font-size: 2.5rem;
}

.jt-lightbox-nav {
	top: 50%;
	transform: translateY(-50%);
	font-size: 3rem;
	padding: 0 16px;
}

.jt-lightbox-nav--prev {
	left: 8px;
}

.jt-lightbox-nav--next {
	right: 8px;
}

@media (max-width: 600px) {
	.jt-lightbox-close {
		top: 12px;
		right: 12px;
		font-size: 2rem;
	}

	.jt-lightbox-nav {
		font-size: 2.25rem;
		padding: 0 8px;
	}
}

body.jt-no-scroll {
	overflow: hidden;
}
