/*
 * Theme styles that theme.json can't express: header, mobile call bar, footer,
 * update feed. Mobile first; desktop rules sit in min-width queries.
 */

/* Anchor jumps land below the sticky header. */
html { scroll-padding-top: 150px; scroll-behavior: smooth; }
@media (min-width: 768px) { html { scroll-padding-top: 100px; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.ig-placeholder { background: #fff3b0; color: #161616; padding: 0 0.25em; border-radius: 3px; }

/* ---------- Header ---------- */

.ig-site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: var(--wp--preset--color--base);
	border-bottom: 1px solid #e6e8e1;
}
/* Header is sticky at every width; keep it below the logged-in admin bar. */
@media (min-width: 601px) and (max-width: 782px) { .admin-bar .ig-site-header { top: 46px; } }
@media (min-width: 783px) { .admin-bar .ig-site-header { top: 32px; } }

.ig-header__row { max-width: 1240px; margin: 0 auto; padding: 0.7rem 1rem; gap: 1.5rem; }

.ig-logo { display: block; line-height: 0; flex: none; }
.ig-logo img { height: 30px; width: auto; max-width: 64vw; object-fit: contain; }

.ig-header__cta { display: none; }

/* Phones: logo larger and centred, menu button on the right. */
@media (max-width: 767px) {
	.ig-site-header .ig-header__row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 0.5rem; padding-block: 0.8rem; }
	.ig-site-header .ig-logo { grid-column: 2; }
	.ig-site-header .ig-logo img { width: min(72vw, 300px); height: auto; max-width: none; }
	.ig-site-header .ig-nav { grid-column: 3; justify-self: end; justify-content: flex-end; margin-right: -0.25rem; }
}

/* Mobile: flush, edge-to-edge Call | Email bar under the logo row. */
.ig-callbar { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid #e6e8e1; }
.ig-callbar__btn {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 50px;
	font-size: 0.875rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	text-decoration: none;
}
.ig-callbar__btn--call { background: var(--wp--preset--color--base); color: var(--wp--preset--color--forest); }
.ig-callbar__btn--email { background: var(--wp--preset--color--forest); color: var(--wp--preset--color--base); }
.ig-callbar__btn { transition: var(--ig-btn-fade); }
.ig-callbar__btn--call:hover { background: var(--ig-tint); color: var(--wp--preset--color--forest); }
.ig-callbar__btn--email:hover { background: var(--ig-forest-dark); color: var(--wp--preset--color--base); }
.ig-callbar__btn:focus-visible { outline: var(--ig-focus); outline-offset: -3px; }

/* Core shows the inline menu from 600px; keep the menu button until 1200px,
 * where logo, five links, phone and Email fit on one line. */
@media (min-width: 600px) and (max-width: 1199px) {
	.ig-nav .wp-block-navigation__responsive-container-open:not(.always-shown) { display: flex; }
	.ig-nav .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) { display: none; }
}

/* Open overlay menu: large, easy-to-tap links. */
.ig-nav .is-menu-open .wp-block-navigation__responsive-container-content { padding-top: 2rem; }
.ig-nav .is-menu-open .wp-block-navigation-item { font-family: var(--wp--preset--font-family--heading); font-size: 1.75rem; }

@media (min-width: 768px) {
	.ig-callbar { display: none; }
	.ig-header__row { padding: 0.9rem 2rem; }
	.ig-logo img { height: 40px; max-width: none; }
	.ig-header__cta { display: flex; align-items: center; gap: 1.5rem; flex: none; }
	.ig-header__phone {
		color: var(--wp--preset--color--ink);
		font-weight: 600;
		letter-spacing: 0.02em;
		text-decoration: none;
		white-space: nowrap;
	}
	.ig-header__phone:hover { color: var(--wp--preset--color--rose); }
	.ig-header__cta .ig-btn { white-space: nowrap; }
}
@media (min-width: 1200px) {
	.ig-nav { flex: 1; }
	.ig-nav .wp-block-navigation__container { gap: 1.75rem; }
	.ig-nav .wp-block-navigation-item { font-size: 0.9375rem; }
}

/* ---------- Footer ---------- */

.ig-site-footer { margin-block-start: 0; }
.ig-footer {
	background: var(--wp--preset--color--forest);
	color: var(--wp--preset--color--base);
	padding: var(--wp--preset--spacing--50) 1rem 1.5rem;
	font-size: var(--wp--preset--font-size--small);
}
.ig-footer__inner {
	display: grid;
	gap: 2rem;
	max-width: 1240px;
	margin: 0 auto;
}
.ig-footer__name {
	font-family: var(--wp--preset--font-family--heading);
	font-size: 1.75rem;
	font-weight: 600;
	line-height: 1.1;
	margin: 0;
}
.ig-footer__heading {
	color: var(--wp--preset--color--sage);
	font-family: var(--wp--preset--font-family--body);
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	margin: 0 0 0.6rem;
}
.ig-footer p, .ig-footer ul { margin: 0 0 0.4rem; }
.ig-footer ul { list-style: none; padding: 0; }
.ig-footer li { margin-bottom: 0.4rem; }
.ig-footer a { color: var(--wp--preset--color--base); }
.ig-footer a:hover { color: var(--wp--preset--color--sage); }
.ig-footer__copy {
	max-width: 1240px;
	margin: 2.5rem auto 0 !important;
	padding-top: 1.25rem;
	border-top: 1px solid rgba(255, 255, 255, 0.18);
	opacity: 0.8;
}
@media (min-width: 768px) {
	.ig-footer__inner { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}

/* ---------- Main + update feed ---------- */

.ig-main { margin-block-start: 0; }
.ig-main--home > .wp-block-post-content > * { margin-block-start: 0; }

.ig-updates { list-style: none; padding: 0; }
.ig-update {
	padding-block: var(--wp--preset--spacing--40);
	border-bottom: 1px solid var(--wp--preset--color--moss);
}
.ig-update .wp-block-post-title a { text-decoration: none; }

/* ---------- Home page (patterns/home.php) ---------- */

.ig-home { --ig-gutter: 1rem; }
@media (min-width: 768px) { .ig-home { --ig-gutter: 2rem; } }

.ig-wrap { max-width: 1240px; margin-inline: auto; padding-inline: var(--ig-gutter); }

.ig-home h2 { font-size: var(--wp--preset--font-size--x-large); margin: 0 0 1rem; }
.ig-home p { margin: 0 0 1rem; }
.ig-home ul { margin: 0; padding: 0; list-style: none; }
.ig-home figure { margin: 0; }

.ig-eyebrow {
	color: var(--wp--preset--color--rose);
	font-size: 0.8125rem !important;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	margin-bottom: 0.6rem !important;
}
.ig-lead { font-size: var(--wp--preset--font-size--large); color: var(--wp--preset--color--muted); line-height: 1.5; }

/* Buttons: one system everywhere.
 *   primary  rose fill        -> darker rose
 *   ghost    forest outline   -> forest fill, white text
 *   light    white fill (dark backgrounds) -> soft green tint
 * Same 0.2s colour fade and focus ring for all; no lifts or shadows. */
:root {
	--ig-rose-dark: #b01a4c;
	--ig-forest-dark: #142c1d;
	--ig-tint: #e9f0e3;
	--ig-btn-fade: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
	--ig-focus: 3px solid var(--wp--preset--color--blossom);
}
.ig-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }
.ig-btn {
	box-sizing: border-box;
	display: inline-flex; align-items: center; justify-content: center;
	min-height: 50px; padding: 0.75rem 1.6rem;
	border-radius: 999px; border: 2px solid transparent;
	font-weight: 600; text-decoration: none; line-height: 1.2;
	transition: var(--ig-btn-fade);
}
.ig-btn:focus-visible { outline: var(--ig-focus); outline-offset: 3px; }
.ig-btn--primary { background: var(--wp--preset--color--rose); border-color: var(--wp--preset--color--rose); color: var(--wp--preset--color--base); }
.ig-btn--primary:hover { background: var(--ig-rose-dark); border-color: var(--ig-rose-dark); color: var(--wp--preset--color--base); }
.ig-btn--ghost { background: transparent; border-color: var(--wp--preset--color--forest); color: var(--wp--preset--color--forest); }
.ig-btn--ghost:hover { background: var(--wp--preset--color--forest); border-color: var(--wp--preset--color--forest); color: var(--wp--preset--color--base); }
.ig-btn--light { background: var(--wp--preset--color--base); border-color: var(--wp--preset--color--base); color: var(--wp--preset--color--forest); }
.ig-btn--light:hover { background: var(--ig-tint); border-color: var(--ig-tint); color: var(--wp--preset--color--forest); }
.ig-btn--sm { min-height: 44px; padding: 0.55rem 1.3rem; font-size: 0.9375rem; }
.ig-btn--big { min-height: 60px; font-size: 1.125rem; padding-inline: 2rem; }

/* Photos: rounded, cropped to fill their box. */
.ig-photo { overflow: hidden; border-radius: 14px; background: var(--wp--preset--color--moss); }
.ig-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* Sections */
.ig-band { padding-block: clamp(3rem, 7vw, 6rem); }
.ig-band--paper { background: var(--wp--preset--color--paper); }
.ig-band--moss { background: var(--wp--preset--color--moss); }
.ig-band--forest { background: var(--wp--preset--color--forest); color: var(--wp--preset--color--base); }
.ig-band--forest h2 { color: var(--wp--preset--color--base); }
.ig-band--forest .ig-eyebrow { color: var(--wp--preset--color--sage); }
.ig-band__head { max-width: 640px; margin-bottom: 2rem; }

/* Hero: text, then a three-photo mosaic. */
.ig-hero { background: var(--wp--preset--color--paper); padding-block: clamp(2rem, 6vw, 5rem); }
.ig-hero__grid { display: grid; gap: 2rem; align-items: center; }
.ig-hero__title { font-size: var(--wp--preset--font-size--xx-large); margin: 0 0 1rem; }
.ig-hero__photos { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.ig-hero__photos .ig-photo { aspect-ratio: 1; }
.ig-hero__photos .ig-photo--main { grid-column: 1 / -1; aspect-ratio: 4 / 3; }

/* Image + text split. */
.ig-split { display: grid; gap: 2rem; align-items: center; }
.ig-split__media { aspect-ratio: 4 / 3; }
.ig-split__text { max-width: 560px; }

/* Gallery grid. */
.ig-gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
.ig-gallery-grid .ig-photo { aspect-ratio: 1; }
.ig-gallery-grid img { transition: transform 0.4s ease; }
.ig-gallery-grid .ig-photo:hover img { transform: scale(1.04); }

/* Services. */
.ig-services { display: grid; gap: 2rem; }
.ig-checklist { display: grid; gap: 0.6rem; }
.ig-checklist li {
	display: flex; gap: 0.9rem; align-items: center;
	background: var(--wp--preset--color--base);
	border-radius: 12px; padding: 0.85rem 1.1rem;
	font-weight: 600; color: var(--wp--preset--color--forest);
	line-height: 1.35;
}
.ig-icon-wrap {
	flex: none; display: grid; place-items: center;
	width: 52px; height: 52px; border-radius: 50%;
	background: #fdeaf0;
	color: var(--wp--preset--color--rose);
}
.ig-icon { width: 30px; height: 30px; flex: none; }

/* Reviews: masonry columns so short and long reviews pack tightly. */
.ig-reviews { columns: 1; column-gap: 1rem; }
.ig-review {
	break-inside: avoid;
	margin: 0 0 1rem !important;
	background: var(--wp--preset--color--paper);
	border-radius: 14px;
	padding: 1.25rem 1.4rem;
}
.ig-review__mark { display: block; color: var(--wp--preset--color--blossom); width: 26px; height: auto; margin-bottom: 0.6rem; }
.ig-home .ig-review__text {
	margin: 0;
	padding: 0;
	border: 0;
	font-family: var(--wp--preset--font-family--body);
	font-size: 1rem;
	font-style: normal;
	line-height: 1.6;
	color: var(--wp--preset--color--ink);
}
.ig-home .ig-review__text p { font-size: inherit; margin: 0 0 0.6rem; }
.ig-home .ig-review__text p:last-child { margin-bottom: 0; }
/* Long reviews show ~7 lines until "Read more" is tapped (assets/js/nav.js). */
.ig-review__text.is-clamped { max-height: 11.2em; overflow: hidden; -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
.ig-review__more {
	margin-top: 0.4rem; padding: 0; border: 0; background: none; cursor: pointer;
	color: var(--wp--preset--color--rose); font: inherit; font-size: 0.9375rem; font-weight: 600;
	text-decoration: underline; text-underline-offset: 3px;
}
.ig-review__more:hover { color: var(--wp--preset--color--forest); }
.ig-review figcaption { margin-top: 0.9rem; font-size: 0.9375rem; font-weight: 700; color: var(--wp--preset--color--forest); }

/* Service area: text left, towns right on desktop. */
.ig-area { display: grid; gap: 1.5rem; align-items: center; }
.ig-towns { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.ig-towns li {
	background: var(--wp--preset--color--moss);
	color: var(--wp--preset--color--forest);
	border-radius: 999px; padding: 0.5rem 1.1rem; font-weight: 600;
}
.ig-card { background: var(--wp--preset--color--paper); border-radius: 18px; padding: clamp(1.5rem, 4vw, 2.5rem); }

/* Facebook: heading row with Follow button, then a single-column feed
 * (newest first, one post per row) like a Facebook timeline. */
.ig-fb-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem 2rem; max-width: 680px; margin: 0 auto 2rem; }
.ig-fb-head .ig-band__head { margin-bottom: 0; }
.ig-home .ig-fb-feed { display: grid; gap: 1.25rem; max-width: 680px; margin: 0 auto; }
.ig-fb-post {
	background: var(--wp--preset--color--base);
	border-radius: 16px;
	box-shadow: 0 0 0 1px #e6e8e1;
	padding: 1.1rem 1.25rem 1.25rem;
}
.ig-fb-post__author { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 0.8rem; line-height: 1.25; }
.ig-fb-post__avatar { width: 40px; height: 40px; border-radius: 50%; box-shadow: 0 0 0 1px #e6e8e1; }
.ig-fb-post__who { display: block; color: var(--wp--preset--color--ink); font-size: 0.9375rem; }
.ig-fb-post__who strong { color: var(--wp--preset--color--forest); }
.ig-fb-post__author time { display: block; }
.ig-fb-post__author time { color: var(--wp--preset--color--muted); font-size: 0.8125rem; }
.ig-home .ig-fb-post__text { margin: 0 0 0.9rem; font-size: 1rem; line-height: 1.6; }
.ig-fb-post__photo { display: block; margin: 0 -1.25rem 0.9rem; line-height: 0; }
.ig-fb-post__photo img { width: 100%; height: auto; max-height: 640px; object-fit: cover; }
/* Album: 2x2 grid of square tiles, "+N" on the last one. */
.ig-fb-post__album { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; margin: 0 -1.25rem 0.9rem; }
.ig-fb-post__album--2 .ig-fb-post__tile, .ig-fb-post__album--3 .ig-fb-post__tile:first-child { aspect-ratio: 1; }
.ig-fb-post__album--3 .ig-fb-post__tile:first-child { grid-column: 1 / -1; aspect-ratio: 2 / 1; }
.ig-fb-post__tile { position: relative; aspect-ratio: 1; overflow: hidden; background: var(--wp--preset--color--moss); }
.ig-fb-post__tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ig-fb-post__more {
	position: absolute; inset: 0; display: grid; place-items: center;
	background: rgba(22, 22, 22, 0.5); color: #fff;
	font-size: 2rem; font-weight: 700;
}
/* Shared link preview. */
.ig-fb-post__card {
	display: flex; align-items: center; gap: 0.9rem; margin-bottom: 0.9rem;
	border: 1px solid #e6e8e1; border-radius: 12px; overflow: hidden;
	background: var(--wp--preset--color--paper); color: var(--wp--preset--color--ink); text-decoration: none;
}
.ig-fb-post__card img { width: 96px; height: 96px; object-fit: cover; flex: none; }
.ig-fb-post__card > span { display: grid; gap: 0.2rem; padding: 0.6rem 0.9rem 0.6rem 0; font-size: 0.875rem; }
.ig-fb-post__card strong { color: var(--wp--preset--color--forest); font-size: 0.9375rem; }
.ig-fb-post__card:hover strong { color: var(--wp--preset--color--rose); }
/* Location box (Facebook shows a map here). */
.ig-fb-post__place {
	display: flex; align-items: center; gap: 0.9rem; margin-bottom: 0.9rem;
	background: var(--wp--preset--color--paper); border: 1px solid #e6e8e1; border-radius: 12px; padding: 0.75rem 0.9rem;
}
.ig-fb-post__pin { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--wp--preset--color--moss); color: var(--wp--preset--color--forest); flex: none; }
.ig-fb-post__place small { display: block; font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--wp--preset--color--muted); }
.ig-fb-post__place strong { color: var(--wp--preset--color--forest); }
/* A shared post, shown inside the sharing post. */
.ig-fb-post__shared { border: 1px solid #e6e8e1; border-radius: 12px; padding: 0.9rem 1rem 0.1rem; margin-bottom: 0.9rem; }
.ig-fb-post__shared .ig-fb-post__photo, .ig-fb-post__shared .ig-fb-post__album { margin-inline: -1rem; }
.ig-fb-post__shared .ig-fb-post__avatar { width: 32px; height: 32px; }
.ig-fb-post__link { color: var(--wp--preset--color--forest); font-weight: 600; font-size: 0.9375rem; text-decoration: none; }
.ig-fb-post__link:hover { color: var(--wp--preset--color--rose); }
.ig-fb-more { display: flex; justify-content: center; margin-top: 2rem; }

/* Contact band. */
.ig-contact { display: grid; gap: 2rem; align-items: center; }
.ig-contact p { opacity: 0.9; }
.ig-contact__actions { display: grid; gap: 0.75rem; }
.ig-contact__actions .ig-btn { width: 100%; }
/* Contact band runs into the footer, so separate them with a hairline. */
.ig-site-footer .ig-footer { border-top: 1px solid rgba(255, 255, 255, 0.15); }

@media (min-width: 600px) {
	.ig-gallery-grid { grid-template-columns: repeat(3, 1fr); }
	.ig-reviews { columns: 2; }
}

@media (min-width: 900px) {
	.ig-hero__grid { grid-template-columns: 5fr 6fr; gap: 4rem; }
	.ig-hero__photos { grid-template-columns: 3fr 2fr; grid-template-rows: 1fr 1fr; }
	.ig-hero__photos .ig-photo--main { grid-column: 1; grid-row: 1 / 3; aspect-ratio: auto; min-height: 460px; }
	.ig-split { grid-template-columns: 1fr 1fr; gap: 4rem; }
	.ig-gallery-grid { grid-template-columns: repeat(4, 1fr); gap: 1rem; }
	.ig-services { grid-template-columns: 2fr 3fr; gap: 4rem; align-items: start; }
	.ig-checklist { grid-template-columns: 1fr 1fr; }
	.ig-reviews { columns: 3; column-gap: 1.25rem; }
	.ig-area { grid-template-columns: 1fr 1fr; gap: 4rem; }
	.ig-contact { grid-template-columns: 3fr 2fr; gap: 4rem; }
}

/* ---------- Fence Collective pages ---------- */

.ig-narrow { max-width: 800px; }
.ig-page-hero .ig-hero__title { font-size: clamp(2.25rem, 6vw, 3.5rem); }

/* Google Form: tall enough to show without its own scrollbar. */
.ig-form { border-radius: 14px; overflow: hidden; background: var(--wp--preset--color--base); box-shadow: 0 0 0 1px #e6e8e1; }
.ig-form iframe { display: block; width: 100%; height: var(--ig-form-h-m, 1500px); border: 0; }
@media (min-width: 768px) { .ig-form iframe { height: var(--ig-form-h, 1200px); } }
.ig-form-pending p { font-size: var(--wp--preset--font-size--large); }

/* Updates feed. */
.ig-feed { display: grid; gap: 1.25rem; margin-bottom: 2.5rem; }
.ig-post {
	background: var(--wp--preset--color--base);
	border: 1px solid #e6e8e1;
	border-radius: 16px;
	padding: clamp(1.25rem, 4vw, 2rem);
}
.ig-post__date {
	display: block; margin-bottom: 0.4rem;
	color: var(--wp--preset--color--rose);
	font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
}
.ig-home .ig-post__title { font-size: clamp(1.5rem, 3.5vw, 2rem); margin-bottom: 1rem; }
.ig-post__photo { margin: 0 0 1rem !important; aspect-ratio: 3 / 2; }
.ig-post__body > *:last-child { margin-bottom: 0; }
.ig-post__body img { max-width: 100%; height: auto; border-radius: 10px; }
.ig-join { text-align: center; }
.ig-join .ig-btn { margin-top: 0.5rem; }



/* Tablet and small laptop (768-1199px): menu button at the far right, after phone + Email. */
@media (min-width: 768px) and (max-width: 1199px) {
	.ig-nav { order: 3; flex: 0 0 auto; }
	.ig-header__row .ig-header__cta { margin-left: auto; } /* beats WordPress's flex-layout margin reset */
}
/* Longer intros on the Fence pages read better at body size. */
.ig-fence .ig-lead { font-size: 1.125rem; color: var(--wp--preset--color--ink); }
@media (min-width: 768px) {
	.ig-footer { padding-inline: 2rem; }
}

/* ---------- Before/after slider (home page, Our work) ----------
 * The after photo fills the frame; the before photo sits on top, clipped to
 * --pos. Pointer events handle dragging; a hidden range input handles arrow
 * keys and screen readers (assets/js/nav.js). */

.ig-home .ig-ba-heading { font-size: var(--wp--preset--font-size--large); margin: 0 0 1rem; }
/* Wrapping flex row so a short last row (e.g. 2 of 3) sits centred. */
.ig-ba-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin-bottom: 2.5rem; }
.ig-ba { flex: 0 0 100%; min-width: 0; }
@media (min-width: 600px) { .ig-ba { flex-basis: calc((100% - 1rem) / 2); } }
@media (min-width: 900px) {
	.ig-ba-grid { gap: 1.25rem; }
	.ig-ba { flex-basis: calc((100% - 2.5rem) / 3); }
}
/* Square frames keep a mix of portrait and landscape pairs tidy. */
.ig-ba__frame {
	position: relative; overflow: hidden;
	aspect-ratio: 1; border-radius: 14px;
	background: var(--wp--preset--color--moss);
	touch-action: pan-y;
}
.ig-ba__frame img, .ig-ba__before { position: absolute; inset: 0; width: 100%; height: 100%; }
.ig-ba__frame img { object-fit: cover; object-position: center; display: block; }
/* Portrait shots: the garden is usually in the lower half of the frame. */
.ig-ba--portrait .ig-ba__frame img { object-position: center 65%; }
.ig-ba__before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ig-ba__handle {
	position: absolute; top: 0; bottom: 0; left: var(--pos);
	width: 3px; margin-left: -1.5px; background: #fff;
	box-shadow: 0 0 8px rgba(0, 0, 0, 0.35); pointer-events: none;
}
.ig-ba__handle::after {
	content: ""; position: absolute; top: 50%; left: 50%;
	width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%;
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231E3F2A' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l-6 6 6 6M15 6l6 6-6 6'/%3E%3C/svg%3E") center / 22px no-repeat;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}
.ig-ba__tag {
	position: absolute; top: 0.75rem; padding: 0.25rem 0.65rem; border-radius: 999px;
	background: rgba(22, 22, 22, 0.65); color: #fff;
	font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
	pointer-events: none;
}
.ig-ba__tag--before { left: 0.75rem; }
.ig-ba__tag--after { right: 0.75rem; }
.ig-ba__range {
	position: absolute; inset: 0; width: 100%; height: 100%; margin: 0;
	opacity: 0; pointer-events: none;
}
.ig-ba__frame { cursor: ew-resize; user-select: none; -webkit-user-select: none; }
.ig-ba__frame:focus-within .ig-ba__handle::after { outline: 3px solid var(--wp--preset--color--blossom); outline-offset: 2px; }
.ig-ba figcaption { margin-top: 0.5rem; font-size: 0.9375rem; color: var(--wp--preset--color--muted); }

/* Block-editor buttons (on posts) follow the same system: filled = primary, outline = ghost. */
.wp-element-button, .wp-block-button__link { transition: var(--ig-btn-fade); }
.wp-block-button:not(.is-style-outline) > .wp-block-button__link { border: 2px solid var(--wp--preset--color--rose); }
.wp-block-button:not(.is-style-outline) > .wp-block-button__link:hover { border-color: var(--ig-rose-dark); }
.wp-block-button.is-style-outline > .wp-block-button__link {
	background: transparent;
	color: var(--wp--preset--color--forest);
	border: 2px solid var(--wp--preset--color--forest);
}
.wp-block-button.is-style-outline > .wp-block-button__link:hover {
	background: var(--wp--preset--color--forest);
	color: var(--wp--preset--color--base);
}
.wp-block-button__link:focus-visible { outline: var(--ig-focus); outline-offset: 3px; }

/* Hero kicker: the small line inside the H1, styled like the other eyebrows. */
.ig-hero__kicker { display: block; font-family: var(--wp--preset--font-family--body); line-height: 1.4; }
