/**
 * ROOTS Landing — page-specific styles.
 * Loaded only on template-roots-landing.php (see functions.php).
 * Brand color / .roots-header / scroll-margin-top already live in custom.css.
 */

/* Official palette — ROOTS Brand Guideline 2026 v2. */
:root {
	--roots-green: #6fa382;
	--roots-cream: #ffffff; /* White — primary text color */
	--roots-ink: #2b2b2b;
	--roots-orange: #e28e69; /* Peach — primary brand color */
	--roots-carrot: #ea8c47; /* Carrot — primary brand color */
	--roots-mahogany: #774d31; /* Mahogany — supplementary */
	--roots-radius: 0px;
	--roots-font-heading: 'Anton', sans-serif;
	--roots-font-body: 'Be Vietnam Pro', sans-serif;
	--roots-font-accent: 'Bricolage Grotesque', sans-serif;
}

.roots-landing,
.roots-landing * {
	box-sizing: border-box;
}

.roots-landing h1,
.roots-landing h2,
.roots-landing h3 {
	font-family: var(--roots-font-heading);
	color: var(--roots-ink);
}

/* Accent copy — Manifesto item descriptions, Farm to Table intro, Our Sustainable narrative. */
.manifesto-item p,
.manifesto-card__desc,
.roots-farm__copy,
.sustainable-layout__copy {
	font-family: var(--roots-font-accent);
}

/* Manifesto item titles stay on the body font — only the "Manifesto"
   section heading itself uses Anton. */
.manifesto-item h3,
.manifesto-card__title {
	font-family: var(--roots-font-body);
}

.roots-landing {
	margin: 0;
	color: var(--roots-ink);
	font-family: var(--roots-font-body);
	line-height: 1.5;
}

.roots-landing__main {
	padding-top: 0;
}

/* ---------- Neutralize Astra's global hover/focus/active styling ----------
   Astra's theme CSS applies its own accent color + a blue focus ring to any
   a/button on hover, focus, and active, beating our rules on plain selectors.
   None of that is wanted on this page — every interactive element here
   defines its own state explicitly, locked in with !important so Astra's
   theme CSS (not itself !important) can never re-apply its colors/outline. */
.roots-landing a,
.roots-landing button {
	-webkit-tap-highlight-color: transparent;
}

.roots-landing a:hover,
.roots-landing a:focus,
.roots-landing a:active,
.roots-landing button:hover,
.roots-landing button:focus,
.roots-landing button:active {
	outline: none !important;
	box-shadow: none !important;
}

.roots-landing a:focus-visible,
.roots-landing button:focus-visible {
	outline: 2px solid var(--roots-green) !important;
	outline-offset: 2px;
}

.roots-nav a,
.roots-nav a:hover,
.roots-nav a:focus,
.roots-nav a:active {
	background: transparent !important;
}

.roots-nav a:hover,
.roots-nav a:focus,
.roots-nav a:active {
	color: var(--roots-green) !important;
}

.roots-header.header-scrolled .roots-nav a:hover,
.roots-header.header-scrolled .roots-nav a:focus,
.roots-header.header-scrolled .roots-nav a:active {
	color: var(--roots-green) !important;
}

.location-card__phone,
.location-card__phone:hover,
.location-card__phone:focus,
.location-card__phone:active {
	background: transparent !important;
	color: var(--roots-orange) !important;
}

.community-card__cta,
.community-card__cta:hover,
.community-card__cta:focus,
.community-card__cta:active {
	background: var(--roots-orange) !important;
	color: #fff !important;
}

.career-layout__cta,
.career-layout__cta:hover,
.career-layout__cta:focus,
.career-layout__cta:active {
	background: #fff !important;
	color: var(--roots-orange) !important;
}

.roots-footer__links a,
.roots-footer__links a:hover,
.roots-footer__links a:focus,
.roots-footer__links a:active,
.roots-footer__social a,
.roots-footer__social a:hover,
.roots-footer__social a:focus,
.roots-footer__social a:active {
	background: transparent !important;
	color: var(--roots-ink) !important;
}

.connect-block__label a,
.connect-block__label a:hover,
.connect-block__label a:focus,
.connect-block__label a:active {
	background: transparent !important;
	color: var(--roots-ink) !important;
}

.menu-card,
.menu-card:hover,
.menu-card:focus,
.menu-card:active,
.career-photo,
.career-photo:hover,
.career-photo:focus,
.career-photo:active,
.roots-nav-toggle,
.roots-nav-toggle:hover,
.roots-nav-toggle:focus,
.roots-nav-toggle:active {
	background: none !important;
	border: 0 !important;
}

.roots-lightbox__close,
.roots-lightbox__close:hover,
.roots-lightbox__close:focus,
.roots-lightbox__close:active {
	background: none !important;
	color: #fff !important;
	border: 0 !important;
}

.roots-lightbox__nav,
.roots-lightbox__nav:hover,
.roots-lightbox__nav:focus,
.roots-lightbox__nav:active {
	background: rgba(0, 0, 0, 0.4) !important;
	color: #fff !important;
	border: 0 !important;
}

/* ---------- Placeholder image blocks ---------- */
.img-ph {
	position: relative;
	display: block;
	width: 100%;
	background: repeating-linear-gradient(
		45deg,
		#e9e5da,
		#e9e5da 10px,
		#f2efe6 10px,
		#f2efe6 20px
	);
	border: 1px dashed #b9b2a0;
	border-radius: var(--roots-radius);
	overflow: hidden;
	text-decoration: none;
}

.img-ph::after {
	content: attr(data-label);
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 12px;
	text-align: center;
	font-size: 0.8rem;
	color: #7a7364;
}

/* ---------- Header / nav ---------- */
.roots-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	max-width: 1200px;
	margin: 0 auto;
	padding: 16px 24px;
}

.roots-header__logo-img {
	height: 48px;
	width: auto;
	display: block;
}

.roots-header__logo-img--dark {
	display: none;
}

.roots-header.header-scrolled .roots-header__logo-img--light {
	display: none;
}

.roots-header.header-scrolled .roots-header__logo-img--dark {
	display: block;
}

.roots-nav {
	display: flex;
	gap: 28px;
}

.roots-nav a {
	color: #fff;
	text-decoration: none;
	font-size: 0.85rem;
	font-weight: 600;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	transition: color 0.2s ease;
}

.roots-header.header-scrolled .roots-nav a {
	color: var(--roots-ink);
}

.roots-lang-switcher {
	display: flex;
	align-items: center;
	gap: 8px;
	padding-left: 12px;
	border-left: 1px solid rgba(255, 255, 255, 0.4);
}

.roots-header.header-scrolled .roots-lang-switcher {
	border-left-color: rgba(43, 43, 43, 0.25);
}

.roots-lang-switcher__link {
	opacity: 0.6;
}

.roots-lang-switcher__link.is-active {
	opacity: 1;
}

.roots-nav a:hover {
	color: var(--roots-green);
}

.roots-nav-toggle {
	display: none;
	flex-direction: column;
	gap: 4px;
	background: none;
	border: 0;
	cursor: pointer;
	padding: 8px;
}

.roots-nav-toggle span {
	display: block;
	width: 24px;
	height: 2px;
	background: #fff;
}

.roots-header.header-scrolled .roots-nav-toggle span {
	background: var(--roots-ink);
}

/* ---------- Sections ---------- */
.roots-section {
	max-width: 1200px;
	margin: 0 auto;
	padding: 80px 24px 0;
}

.roots-section__title {
	text-align: center;
	font-size: 2rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	margin-bottom: 40px;
}

.roots-section__subtitle {
	text-align: center;
	margin-top: -24px;
	margin-bottom: 40px;
	color: #6b6558;
}

/* Title → subtitle → content: halve the spacing vs. other sections'
   default, and keep both gaps equal to each other. */
.roots-community .roots-section__title {
	margin-bottom: 10px;
}

.roots-community .roots-section__subtitle {
	margin-top: 0;
	margin-bottom: 20px;
}

/* ---------- Hero ---------- */
.roots-hero {
	height: 100vh;
	min-height: 480px;
	overflow: hidden;
}

.roots-hero__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* ---------- Manifesto ---------- */
.manifesto-variant {
	margin-bottom: 64px;
}

.manifesto-variant:last-child {
	margin-bottom: 0;
}

.manifesto-variant__label {
	text-align: center;
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--roots-green);
	margin-bottom: 24px;
}

/* Option 1: swipe cards */
.manifesto-carousel {
	display: flex;
	align-items: center;
	gap: 12px;
}

.manifesto-carousel__viewport {
	flex: 1 1 auto;
	min-width: 0;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
}

.manifesto-carousel__viewport::-webkit-scrollbar {
	display: none;
}

.manifesto-carousel__track {
	display: flex;
	gap: 20px;
}

.manifesto-card {
	position: relative;
	flex: 0 0 300px;
	aspect-ratio: 1 / 1;
	scroll-snap-align: start;
	overflow: hidden;
}

.manifesto-card__img {
	display: block;
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.manifesto-card__title {
	position: absolute;
	top: 16px;
	left: 16px;
	max-width: 60%;
	font-size: 1.15rem;
	font-weight: 700;
	color: #fff;
	text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
	margin: 0;
	color: #fff !important;
}

.manifesto-card__desc {
	position: absolute;
	bottom: 16px;
	left: 16px;
	right: 16px;
	text-align: justify;
	font-size: 0.85rem;
	font-weight: 400;
	color: #fff;
	text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
	margin: 0;
	color: #fff !important;
}

/* Option 2: full list */
.manifesto-item {
	margin: 0 0 32px;
	text-align: justify;
}

.manifesto-item:last-child {
	margin-bottom: 0;
}

.manifesto-item h3 {
	font-size: 1.15rem;
	margin-bottom: 8px;
}

.manifesto-badges {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	width: 100%;
	gap: 12px 28px;
	list-style: none;
	margin: 16px 0 0;
	padding: 0;
	font-size: 0.85rem;
}

.manifesto-badges li {
	display: flex;
	align-items: center;
	gap: 8px;
}

.manifesto-badges__icon {
	display: inline-flex;
	color: var(--roots-green);
	flex: 0 0 auto;
}

.manifesto-badges__icon svg {
	width: 28px;
	height: 28px;
}

.manifesto-badges__icon img {
	width: 32px;
	height: 32px;
	object-fit: contain;
}

/* ---------- Our Menu ---------- */
.menu-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 24px;
}

.menu-card {
	position: relative;
	border: 0;
	background: none;
	padding: 0;
	cursor: pointer;
	text-align: left;
}

.menu-card__rotator {
	position: relative;
	width: 100%;
	aspect-ratio: 4 / 3;
	border-radius: var(--roots-radius);
	overflow: hidden;
	background: #ddd6c4;
	transition: opacity 0.25s ease;
}

.menu-card:hover .menu-card__rotator,
.menu-card:focus-visible .menu-card__rotator {
	opacity: 0.9;
}

.menu-card__rotator::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(transparent 40%, rgba(0, 0, 0, 0.45));
	pointer-events: none;
}

.menu-card__rotator-img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0;
	transition: opacity 1.2s ease;
}

.menu-card__rotator-img--saigon {
	object-position: center 80%;
}

.menu-card__rotator-img.is-active {
	opacity: 1;
}

.menu-card__overlay {
	position: absolute;
	top: 50%;
	left: 0;
	width: 100%;
	transform: translateY(-50%);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
	text-align: center;
}

.menu-card__city {
	color: #fff;
	font-size: 2rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.menu-card__cta {
	color: #fff;
	font-size: 1.05rem;
	text-decoration: none;
}

/* ---------- Locations ---------- */
.locations-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}

.location-card__photo {
	display: block;
	position: relative;
	aspect-ratio: 4 / 5;
}

.location-card__photo img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: var(--roots-radius);
}

.location-card__img--benthanh {
	object-position: center 70%;
}

.location-card__badge {
	position: absolute;
	left: 50%;
	bottom: 0;
	transform: translate(-50%, 50%);
	z-index: 1;
	white-space: nowrap;
	padding: 10px 18px;
	background: var(--roots-orange);
	color: #fff;
	font-weight: 700;
	font-size: 1rem;
	border-radius: 0;
}

.location-card__address {
	color: #6b6558;
	font-size: 1.05rem;
	margin: 28px 0 10px;
	text-align: center;
	line-height: 1.4;
}

.location-card__phone,
.location-card__phone:hover,
.location-card__phone:focus,
.location-card__phone:active {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	color: var(--roots-orange) !important;
	font-weight: 600;
	font-size: 1.05rem;
	text-decoration: none;
	background: transparent !important;
}

.location-card__phone-icon {
	display: inline-flex;
	color: var(--roots-orange);
}

.location-card__phone-icon svg {
	width: 20px;
	height: 20px;
}

/* ---------- Farm ---------- */
/* Halve the title→paragraph and paragraph→photos gaps (both were 40px,
   now both 20px — kept equal to each other). */
.roots-farm .roots-section__title {
	margin-bottom: 10px;
}

.roots-farm__copy {
	margin: 0 0 20px;
	text-align: justify;
	color: #4a4638;
}

.farm-grid {
	display: grid;
	grid-template-columns: 60fr 20fr 20fr;
	align-items: stretch;
	gap: 24px;
	height: 420px;
}

.farm-photo {
	position: relative;
	height: 100%;
	border-radius: var(--roots-radius);
	overflow: hidden;
}

.farm-photo img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.farm-grid__label {
	position: absolute;
	left: 0;
	bottom: 0;
	z-index: 1;
	display: block;
	width: 100%;
	padding: 16px;
	color: #fff;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	background: linear-gradient(transparent, rgba(0, 0, 0, 0.55));
}

/* ---------- Sustainable ---------- */
.sustainable-layout {
	display: grid;
	grid-template-columns: 7fr 3fr;
	gap: 40px;
	align-items: stretch;
}

.sustainable-rotator {
	position: relative;
	width: 100%;
	height: 100%;
	border-radius: var(--roots-radius);
	overflow: hidden;
	background: #ddd6c4;
}

.sustainable-rotator-img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0;
	transition: opacity 1.2s ease;
}

.sustainable-rotator-img.is-active {
	opacity: 1;
}

.sustainable-layout__copy {
	color: #4a4638;
	text-align: justify;
}

/* ---------- Connect ---------- */
.connect-block {
	margin-bottom: 20px;
}

.connect-block__label {
	text-align: left;
	margin-bottom: 16px;
	font-family: var(--roots-font-body);
}

.connect-block__label a {
	color: var(--roots-ink);
	text-decoration: none;
}

.connect-block__label a em {
	font-style: italic;
	font-weight: 400;
}

.connect-block__label a strong {
	font-style: normal;
	font-weight: 700;
	margin-left: 4px;
}

/* .connect-columns and .connect-grid--ig both use the SAME 6-column
   1fr grid at the same (full section) width, so their tracks resolve
   to identical pixel widths automatically — no manual px math needed.
   Facebook spans the first 4 tracks (so its tile width == IG's tile
   width, and its own 4-column grid exactly fills that span). Tiktok
   spans the last 2 tracks, with 3 narrower (9:16) tiles fit inside
   that span — matching the last 2 IG columns' combined width. */
.connect-grid {
	display: grid;
	gap: 12px;
}

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

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

.connect-block--fb {
	grid-column: 1 / 4;
}

/* Equal width with Facebook — 3 tracks each in the shared 6-column grid. */
.connect-block--tiktok {
	grid-column: 4 / 7;
	display: flex;
	flex-direction: column;
}

.connect-block--tiktok #sb-tiktok-feeds-container-1 {
	max-width: 100%;
	overflow: hidden;
}

.connect-block--tiktok .sb-grid-wrapper {
	grid-template-columns: repeat(4, 1fr) !important;
	gap: 10px !important;
}

.connect-block--tiktok .sb-post-item-image-wrap {
	height: auto !important;
	aspect-ratio: 9 / 15.2;
	border-radius: 0 !important;
}

/* The plugin's own thumbnail <img> letterboxes (object-fit: contain by
   default), leaving black bars top/bottom inside the box above. Cover
   instead so it fills the tile completely, cropping as needed. */
.connect-block--tiktok .sb-post-item-image-wrap img {
	width: 100% !important;
	height: 100% !important;
	object-fit: cover !important;
}

.connect-grid--tiktok {
	display: flex;
	flex: 1;
	gap: 12px;
	overflow: hidden;
}

.img-ph--connect,
.connect-grid__photo,
.connect-grid img {
	display: block;
	width: 100%;
	object-fit: cover;
	border-radius: var(--roots-radius);
}

.connect-grid--ig .img-ph--connect,
.connect-grid--ig .connect-grid__photo,
.connect-grid--ig img,
.connect-grid--fb .img-ph--connect,
.connect-grid--fb .connect-grid__photo,
.connect-grid--fb img {
	aspect-ratio: 4 / 5;
}

.connect-grid--tiktok .img-ph--connect,
.connect-grid--tiktok .connect-grid__photo,
.connect-grid--tiktok img {
	flex: 0 1 auto;
	min-width: 0;
	height: 100%;
	width: auto;
	aspect-ratio: 9 / 16;
}

.connect-columns {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 12px;
	margin-top: 40px;
}

/* ---------- Community ---------- */
.roots-community {
	padding-bottom: 80px;
}

.community-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 12px;
}

.community-card {
	position: relative;
}

.img-ph--community,
.community-card img {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: var(--roots-radius);
}

.community-card__overlay {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 20px;
	border-radius: 0 0 var(--roots-radius) var(--roots-radius);
	background: linear-gradient(transparent 30%, rgba(0, 0, 0, 0.65));
	color: #fff;
}

.community-card__overlay h3,
.community-card__overlay p {
	color: #fff;
}

.community-card__overlay h3 {
	margin: 4px 0;
	font-family: var(--roots-font-body);
	font-weight: 700;
}

.community-card__no-bold {
	font-weight: 400;
}

.community-card__overlay p {
	margin: 0;
	font-size: 0.9rem;
}

.community-card__eyebrow {
	color: #fff;
	font-size: 0.8rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	margin: 0;
}

.community-card__cta {
	display: inline-block;
	margin-top: 12px;
	padding: 6px 14px;
	background: var(--roots-orange);
	color: #fff;
	border-radius: 0;
	text-decoration: none;
	font-style: italic;
	font-size: 1rem;
}

/* ---------- Career ---------- */
.roots-career {
	background: var(--roots-orange);
	max-width: none;
	padding: 0;
}

.career-layout {
	max-width: none;
	margin: 0;
	display: grid;
	grid-template-columns: 1fr 1fr;
	align-items: stretch;
	gap: 0;
	height: 480px;
}

.career-layout__copy {
	display: flex;
	flex-direction: column;
	justify-content: center;
	/* .roots-career is full-bleed (no max-width), so match the left inset
	   every other (max-width:1200px, padding:24px) section starts its
	   text at, instead of a flat 5vw that drifts on wide screens. */
	padding: 60px 5vw 60px max(24px, calc((100vw - 1200px) / 2 + 24px));
	color: #fff;
}

.career-layout__copy h2 {
	color: #fff;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	margin-bottom: 12px;
}

.career-layout__copy p {
	margin-bottom: 0;
}

.career-layout__cta {
	display: inline-block;
	align-self: flex-start;
	margin-top: 16px;
	padding: 10px 24px;
	background: #fff;
	color: var(--roots-ink);
	border-radius: 0;
	text-decoration: none;
	font-size: 0.85rem;
	font-weight: 600;
	white-space: nowrap;
}

.img-ph--career,
.career-photo {
	display: block;
	width: 100%;
	height: 100%;
	overflow: hidden;
}

.career-photo img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* ---------- Back to top (Astra's own #ast-scroll-top) ----------
   Recolor from Astra's default blue to the brand green. !important
   because Astra's own rule wins on plain specificity otherwise. */
#ast-scroll-top,
#ast-scroll-top:hover,
#ast-scroll-top:focus {
	background-color: var(--roots-green) !important;
}

/* ---------- Footer ---------- */
.roots-footer {
	background: #fff;
	color: var(--roots-ink);
	padding: 12px 24px;
	margin-top: 24px;
	border-top: 1px solid #000;
}

.roots-footer__inner {
	max-width: 1200px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 24px;
}

.roots-footer__logo img {
	height: 56px;
}

.roots-footer__right {
	display: flex;
	align-items: flex-start;
	gap: 56px;
}

.roots-footer__links {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.roots-footer__links a,
.roots-footer__social a {
	color: var(--roots-ink);
	text-decoration: none;
	font-size: 0.85rem;
}

.roots-footer__social {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 10px;
}

.roots-footer__social-label {
	font-weight: 600;
}

.roots-footer__social-icons {
	display: flex;
	align-items: center;
	gap: 10px;
}

.roots-footer__social a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
}

.roots-footer__social a svg {
	width: 26px;
	height: 26px;
}

/* ---------- Lightbox ---------- */
.roots-lightbox {
	position: fixed;
	inset: 0;
	z-index: 999;
	background: rgba(0, 0, 0, 0.85);
	display: none;
	align-items: center;
	justify-content: center;
	padding: 40px;
	opacity: 0;
	transition: opacity 0.25s ease;
}

/* The [hidden] attribute and this class-based display:flex are equal
   specificity, so source order alone would let this rule win and show
   the modal on page load. Gate visibility explicitly on :not([hidden]). */
.roots-lightbox:not([hidden]) {
	display: flex;
}

.roots-lightbox.is-open {
	opacity: 1;
}

.roots-lightbox__body {
	position: relative;
	max-width: 720px;
	width: 100%;
	transform: scale(0.92);
	transition: transform 0.25s ease;
}

.roots-lightbox.is-open .roots-lightbox__body {
	transform: scale(1);
}

.roots-lightbox.is-scroll-mode .roots-lightbox__body {
	max-width: 680px;
}

.roots-lightbox__scroll {
	max-height: 85vh;
	overflow-y: auto;
	overscroll-behavior: contain;
	border-radius: var(--roots-radius);
	-webkit-overflow-scrolling: touch;
}

.roots-lightbox__scroll-img {
	display: block;
	width: 100%;
}

/* display gated on :not([hidden]) — see .roots-lightbox comment above,
   same cascade quirk: an unconditional author `display` here would beat
   the [hidden] UA rule and show the image even when JS sets .hidden. */
.roots-lightbox__img:not([hidden]) {
	display: block;
}

.roots-lightbox__img {
	width: 100%;
	max-height: 85vh;
	object-fit: contain;
	border-radius: var(--roots-radius);
}

.roots-lightbox__close {
	position: absolute;
	top: 24px;
	right: 24px;
	background: none;
	border: 0;
	color: #fff;
	font-size: 2rem;
	line-height: 1;
	cursor: pointer;
}

/* display gated on :not([hidden]) — see .roots-lightbox comment above. */
.roots-lightbox__nav:not([hidden]) {
	display: flex;
}

.roots-lightbox__nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: rgba(0, 0, 0, 0.4);
	border: 0;
	color: #fff;
	font-size: 2.5rem;
	line-height: 1;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	cursor: pointer;
	align-items: center;
	justify-content: center;
	transition: opacity 0.2s ease;
}

.roots-lightbox__nav:hover {
	opacity: 0.7;
}

.roots-lightbox__nav--prev {
	left: -20px;
}

.roots-lightbox__nav--next {
	right: -20px;
}

@media (max-width: 640px) {
	.roots-lightbox__nav--prev {
		left: 4px;
	}
	.roots-lightbox__nav--next {
		right: 4px;
	}
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
	.locations-grid,
	.community-grid,
	.farm-grid {
		grid-template-columns: 1fr;
	}

	/* Stacked on mobile — drop the fixed row height, give each photo its
	   own explicit height instead of stretching to match the row. */
	.farm-grid {
		height: auto;
	}

	.farm-photo {
		height: auto;
		aspect-ratio: 3 / 4;
	}

	.sustainable-layout,
	.career-layout,
	.connect-columns {
		grid-template-columns: 1fr;
	}

	.connect-block--fb,
	.connect-block--tiktok {
		grid-column: auto;
	}

	/* No sibling row to stretch-match height against once stacked —
	   fall back to width-first sizing like the other two grids. */
	.connect-grid--tiktok {
		display: grid;
		grid-template-columns: repeat(3, 1fr);
	}

	.connect-grid--tiktok .img-ph--connect,
	.connect-grid--tiktok .connect-grid__photo,
	.connect-grid--tiktok img {
		height: auto;
		width: 100%;
	}

	.sustainable-rotator {
		height: auto;
		aspect-ratio: 16 / 10;
	}

	/* Stacked on mobile — drop the fixed row height, give the image its
	   own explicit height instead since it can no longer stretch to match
	   a sibling column's row height. */
	.career-layout {
		height: auto;
	}

	.career-photo {
		height: auto;
		aspect-ratio: 16 / 10;
	}

	/* Fewer columns at narrower widths so tiles stay a sensible tap size. */
	.connect-grid--ig {
		grid-template-columns: repeat(3, 1fr);
	}

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

@media (max-width: 700px) {
	.roots-nav-toggle {
		display: flex;
	}

	.roots-nav {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		flex-direction: column;
		gap: 0;
		background: #fff;
		box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
		max-height: 0;
		overflow: hidden;
		transition: max-height 0.25s ease;
	}

	.roots-nav a {
		color: var(--roots-ink);
		padding: 14px 24px;
		border-bottom: 1px solid #eee;
	}

	.roots-nav.is-open {
		max-height: 480px;
	}

	.menu-grid {
		grid-template-columns: 1fr;
	}

	.roots-section__title {
		font-size: 1.5rem;
	}
}

/* When admin bar is present, offset the fixed header. */
.admin-bar .roots-header {
	top: 32px;
}

@media (max-width: 782px) {
	.admin-bar .roots-header {
		top: 46px;
	}
}
