/* InJournal Brand Page – articles, autoplay video, Instagram comments wall */

.ijbp-brand-page,
.ijbp-wall,
.ijbp-igv,
.ijbp-video {
	--ijbp-ink: #141414;
	--ijbp-muted: #6b625c;
	--ijbp-paper: #f6f0ea;
	--ijbp-card: #ffffff;
	--ijbp-line: rgba(20, 20, 20, 0.09);
	--ijbp-accent: #7a4e32;
	--ijbp-head: "Jost", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--ijbp-body: -apple-system, system-ui, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
}

/* ---------- Brand page shell: only the page's own content ---------- */
.ijbp-brand-page .site-content > .ast-container { max-width: none; padding: 0; }
.ijbp-brand-page #primary { margin: 0; padding: 0; }
.ijbp-brand-page .entry-header,
.ijbp-brand-page .post-navigation,
.ijbp-brand-page .comments-area,
.ijbp-brand-page #secondary { display: none; }
.ijbp-brand-page .entry-content > * { margin-left: auto; margin-right: auto; }

/* Astra's block layout caps groups at the container width and centers each child at
   50rem; brand articles use one 760px reading column with everything left-aligned. */
.ijbp-brand-page .entry-content > .ijbp-article { max-width: 760px !important; width: 100% !important; }
.ijbp-brand-page .entry-content .ijbp-article > *,
.ijbp-brand-page .entry-content .ijbp-article [class*="__inner-container"] > * {
	max-width: none !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
}
.ijbp-brand-page .entry-content > .ijbp-wall,
.ijbp-brand-page .entry-content > p > .ijbp-wall,
.ijbp-brand-page .entry-content > .ijbp-igv,
.ijbp-brand-page .entry-content > p > .ijbp-igv { max-width: none !important; }

/* ---------- Articles ---------- */
.ijbp-article {
	max-width: 760px;
	box-sizing: border-box;
	padding: clamp(40px, 7vw, 88px) 20px clamp(24px, 4vw, 48px);
	margin: 0 auto;
	color: var(--ijbp-ink);
	font-family: var(--ijbp-body);
	font-size: 18px;
	line-height: 1.7;
}
.ijbp-article p { margin: 0 0 1.15em; }
/* Images get the same room as in a normal article. Astra pads two-image rows by 3em
   (less at the sides on tablet and phone) and gives single images a 1em bottom margin,
   but only for blocks placed directly in the post, not inside our article group. */
.ijbp-article > .wp-block-columns,
.ijbp-collapse__body > .wp-block-columns,
.ijbp-article [class*="__inner-container"] > .wp-block-columns {
	padding: var(--wp--custom--ast-default-block-top-padding, 3em) var(--wp--custom--ast-default-block-right-padding, 3em) var(--wp--custom--ast-default-block-bottom-padding, 3em) var(--wp--custom--ast-default-block-left-padding, 3em);
}
.ijbp-article > .wp-block-image,
.ijbp-collapse__body > .wp-block-image,
.ijbp-article [class*="__inner-container"] > .wp-block-image { margin-bottom: 1em; }
/* Where two photos sit side by side, the row is moved 15px to the left (asked for on the
   Collagen Code page); stacked rows on phones stay centred. */
@media (min-width: 782px) {
	.ijbp-article > .wp-block-columns,
	.ijbp-collapse__body > .wp-block-columns,
	.ijbp-article [class*="__inner-container"] > .wp-block-columns {
		padding-left: calc(var(--wp--custom--ast-default-block-left-padding, 3em) - 15px);
		padding-right: calc(var(--wp--custom--ast-default-block-right-padding, 3em) + 15px);
	}
}
.ijbp-kicker {
	font-family: var(--ijbp-head);
	font-size: 13px !important;
	font-weight: 500;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--ijbp-accent);
	margin-bottom: 18px !important;
}
.ijbp-article h1,
.ijbp-article h2 {
	font-family: var(--ijbp-head);
	font-weight: 500;
	font-size: clamp(32px, 5vw, 52px);
	line-height: 1.08;
	letter-spacing: -0.01em;
	margin: 0 0 24px;
	color: var(--ijbp-ink);
	text-wrap: balance;
}
.ijbp-article h3 {
	font-family: var(--ijbp-head);
	font-weight: 500;
	font-size: 24px;
	line-height: 1.25;
	margin: 2em 0 0.6em;
	color: var(--ijbp-ink);
}
.ijbp-lead {
	font-family: var(--ijbp-head);
	font-weight: 400;
	font-size: clamp(20px, 2.4vw, 24px) !important;
	line-height: 1.45;
	color: #2b2522;
	padding-bottom: 28px;
	border-bottom: 1px solid var(--ijbp-line);
	margin-bottom: 32px !important;
}
.ijbp-article ol,
.ijbp-article ul { margin: 0 0 1.2em; padding: 0 0 0 1.4em; }
.ijbp-article li { margin: 0 0 0.5em; padding-left: 0.2em; }
.ijbp-article strong { font-weight: 600; }
.ijbp-article .wp-block-quote,
.ijbp-quote {
	border: 0;
	margin: 2em 0;
	padding: 0 0 0 24px;
	border-left: 2px solid var(--ijbp-accent);
}
.ijbp-article .wp-block-quote p {
	font-family: var(--ijbp-head);
	font-size: 24px;
	line-height: 1.4;
	font-style: normal;
	margin-bottom: 0.5em;
}
.ijbp-article .wp-block-quote cite {
	font-size: 14px;
	font-style: normal;
	color: var(--ijbp-muted);
}
.ijbp-note {
	font-size: 14px !important;
	color: var(--ijbp-muted);
}

/* ---------- Collapsible articles (block class "ijbp-collapsible") ---------- */
.ijbp-collapse__body { position: relative; overflow: hidden; transition: max-height 0.55s cubic-bezier(0.3, 0.7, 0.2, 1); }
.ijbp-collapsible.is-collapsed .ijbp-collapse__body::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 120px;
	background: linear-gradient(rgba(255, 255, 255, 0), #fff 85%);
	pointer-events: none;
}
.ijbp-collapsible .ijbp-collapse__toggle,
.ijbp-collapsible .ijbp-collapse__toggle:focus {
	display: inline-block;
	margin: 6px 0 0;
	font-family: var(--ijbp-head);
	font-size: 15px;
	font-weight: 500;
	letter-spacing: 0.04em;
	line-height: 1;
	padding: 14px 24px;
	border-radius: 999px;
	border: 1px solid rgba(20, 20, 20, 0.25);
	background: transparent;
	color: var(--ijbp-ink);
	cursor: pointer;
}
.ijbp-collapsible .ijbp-collapse__toggle:hover { background: var(--ijbp-ink); color: #fff; border-color: var(--ijbp-ink); }
.ijbp-collapsible .ijbp-collapse__toggle:focus-visible { outline: 2px solid var(--ijbp-accent); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .ijbp-collapse__body { transition: none; } }

/* ---------- Autoplay video ---------- */
.ijbp-video {
	margin: clamp(16px, 4vw, 40px) auto clamp(40px, 6vw, 72px);
	padding: 0 20px;
	max-width: 1000px;
}
.ijbp-video--medium { max-width: 680px; }
.ijbp-video--narrow { max-width: 520px; }
/* Video as the first thing on a brand page: breathing room under the header. */
.ijbp-brand-page .entry-content > .ijbp-video:first-child { margin-top: clamp(32px, 6vw, 72px); margin-bottom: 0; }
.ijbp-brand-page .entry-content > .ijbp-video:first-child + .ijbp-article { padding-top: clamp(32px, 5vw, 56px); }
.ijbp-video__frame {
	position: relative;
	aspect-ratio: var(--ijbp-ratio, 16 / 9);
	overflow: hidden;
	background: #111;
	cursor: pointer;
}
.ijbp-video__frame iframe,
.ijbp-video__frame video,
.ijbp-video__player {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
	object-fit: cover;
	pointer-events: none;
}
.ijbp-video__poster {
	position: absolute;
	inset: 0;
	background: center / cover no-repeat;
	transition: opacity 0.6s ease 0.4s;
}
.ijbp-video.is-playing .ijbp-video__poster { opacity: 0; }
.ijbp-video:not(.is-playing) .ijbp-video__poster { transition-delay: 0s; }
.ijbp-video__sound {
	position: absolute;
	right: 14px;
	bottom: 14px;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	border: 0;
	display: grid;
	place-items: center;
	padding: 0;
	color: #fff;
	background: rgba(20, 20, 20, 0.55);
	backdrop-filter: blur(6px);
	cursor: pointer;
	transition: background 0.2s;
	z-index: 2;
}
.ijbp-video__sound:hover { background: rgba(20, 20, 20, 0.8); }
.ijbp-video__sound:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.ijbp-video__sound .ijbp-wave { display: none; }
.ijbp-video__sound[aria-pressed="true"] .ijbp-wave { display: inline; }
.ijbp-video__sound[aria-pressed="true"] .ijbp-x { display: none; }
.ijbp-video__caption {
	font-family: var(--ijbp-head);
	font-size: 14px;
	color: var(--ijbp-muted);
	margin-top: 12px;
	text-align: left;
}

/* ---------- Video cover (style="cover"): portrait video + offset panel, like byrdie.com ---------- */
.ijbp-video--cover {
	max-width: none;
	margin: 0;
	padding: clamp(40px, 7vw, 88px) 20px clamp(48px, 7vw, 96px);
	background: var(--ijbp-cover-bg, #efece7);
}
.ijbp-brand-page .entry-content > .ijbp-video--cover:first-child { margin: 0; }
.ijbp-vcover__inner {
	max-width: 1040px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: minmax(0, 430px) minmax(0, 1fr);
	gap: clamp(32px, 7vw, 96px);
	align-items: center;
}
.ijbp-vcover__media { position: relative; padding: 0 7% 20% 0; }
.ijbp-vcover__panel {
	position: absolute;
	top: 5%;
	left: 11%;
	right: 0;
	bottom: 0;
	background: #111;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	padding-bottom: 6.5%;
}
.ijbp-vcover__panel span {
	font-family: var(--ijbp-head);
	font-weight: 500;
	font-size: clamp(18px, 3.2vw, 30px);
	line-height: 1;
	letter-spacing: 0.32em;
	text-indent: 0.32em;
	color: #fff;
	white-space: nowrap;
}
.ijbp-video--cover .ijbp-video__frame {
	position: relative;
	z-index: 1;
	background: #d9d4cd;
	box-shadow: 0 20px 44px rgba(20, 14, 10, 0.14);
}
.ijbp-video--cover .ijbp-vcover__kicker {
	font-family: var(--ijbp-head);
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--ijbp-accent);
	margin: 0 0 18px;
}
.ijbp-video--cover .ijbp-vcover__title {
	font-family: var(--ijbp-head);
	font-weight: 500;
	font-size: clamp(36px, 4.8vw, 58px);
	line-height: 1.04;
	letter-spacing: -0.01em;
	color: var(--ijbp-ink);
	margin: 0 0 20px;
	text-wrap: balance;
}
.ijbp-video--cover .ijbp-vcover__lede {
	font-size: 18px;
	line-height: 1.6;
	color: #3a332f;
	max-width: 30em;
	margin: 0 0 28px;
}
.ijbp-video--cover .ijbp-vcover__link {
	display: inline-block;
	font-family: var(--ijbp-head);
	font-size: 15px;
	font-weight: 500;
	letter-spacing: 0.04em;
	line-height: 1;
	padding: 15px 26px;
	border-radius: 999px;
	background: var(--ijbp-ink);
	color: #fff !important;
	text-decoration: none !important;
}
.ijbp-video--cover .ijbp-vcover__link:hover { background: #000; }
.ijbp-video--cover .ijbp-vcover__caption { font-size: 13px; color: var(--ijbp-muted); margin: 26px 0 0; }

/* Tall cover (ratio="9:16", the whole portrait video): narrower video column so it fits on screen. */
.ijbp-video--tall .ijbp-vcover__inner { grid-template-columns: minmax(0, 360px) minmax(0, 1fr); }
@media (max-width: 860px) {
	.ijbp-video--tall .ijbp-vcover__inner { grid-template-columns: 1fr; }
	.ijbp-video--tall .ijbp-vcover__media { max-width: 400px; }
}

/* Cover on a dark band (e.g. Vichy red): white text, white button. */
.ijbp-video--cover.is-dark .ijbp-vcover__kicker { color: rgba(255, 255, 255, 0.85); }
.ijbp-video--cover.is-dark .ijbp-vcover__title { color: #fff; }
.ijbp-video--cover.is-dark .ijbp-vcover__lede { color: rgba(255, 255, 255, 0.92); }
.ijbp-video--cover.is-dark .ijbp-vcover__caption { color: rgba(255, 255, 255, 0.82); }
.ijbp-video--cover.is-dark .ijbp-vcover__link { background: #fff; color: var(--ijbp-ink) !important; transition: background 0.2s, color 0.2s; }
.ijbp-video--cover.is-dark .ijbp-vcover__link:hover { background: var(--ijbp-ink); color: #fff !important; }
.ijbp-video--cover.is-dark .ijbp-vcover__link:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.ijbp-video--cover.is-dark .ijbp-video__frame { box-shadow: 0 22px 48px rgba(40, 0, 6, 0.32); }
@media (max-width: 860px) {
	.ijbp-vcover__inner { grid-template-columns: 1fr; }
	.ijbp-vcover__media { width: 100%; max-width: 460px; margin: 0 auto; }
	.ijbp-vcover__text { max-width: 460px; width: 100%; margin: 0 auto; }
}

/* ---------- Instagram comments wall ---------- */
.ijbp-wall {
	background: var(--ijbp-paper);
	color: var(--ijbp-ink);
	padding: clamp(48px, 7vw, 96px) 20px;
	margin: clamp(24px, 5vw, 56px) 0;
	font-family: var(--ijbp-body);
}
.ijbp-wall__inner {
	max-width: 1180px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
	gap: clamp(28px, 5vw, 64px);
	align-items: center;
}
.ijbp-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-family: var(--ijbp-head);
	font-size: 13px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--ijbp-accent);
	margin: 0 0 16px;
}
.ijbp-wall__title {
	font-family: var(--ijbp-head);
	font-weight: 500;
	font-size: clamp(30px, 4vw, 44px);
	line-height: 1.08;
	margin: 0 0 16px;
	color: var(--ijbp-ink);
	text-wrap: balance;
}
.ijbp-wall__sub {
	font-size: 17px;
	line-height: 1.6;
	color: #3a332f;
	margin: 0 0 12px;
}
.ijbp-wall__count {
	font-family: var(--ijbp-head);
	font-size: 15px;
	color: var(--ijbp-muted);
	margin: 0 0 24px;
}
.ijbp-wall__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.ijbp-btn,
.ijbp-wall__toggle {
	font-family: var(--ijbp-head);
	font-size: 14px;
	font-weight: 500;
	letter-spacing: 0.04em;
	line-height: 1;
	padding: 13px 20px;
	border-radius: 999px;
	text-decoration: none;
	cursor: pointer;
	transition: background 0.2s, color 0.2s;
}
.ijbp-btn { background: var(--ijbp-ink); color: #fff !important; border: 1px solid var(--ijbp-ink); text-decoration: none !important; }
.ijbp-btn:hover { background: #000; }
.ijbp-wall__toggle { background: transparent; color: var(--ijbp-ink); border: 1px solid rgba(20, 20, 20, 0.25); }
.ijbp-wall__toggle:hover { border-color: var(--ijbp-ink); }
.ijbp-btn:focus-visible,
.ijbp-wall__toggle:focus-visible { outline: 2px solid var(--ijbp-accent); outline-offset: 3px; }
.ijbp-wall__demo {
	display: inline-block;
	margin: 20px 0 0;
	font-size: 12px;
	letter-spacing: 0.04em;
	padding: 6px 10px;
	border: 1px dashed var(--ijbp-accent);
	color: var(--ijbp-accent);
	border-radius: 4px;
}

.ijbp-cols {
	display: grid;
	grid-template-columns: repeat(var(--ijbp-cols, 3), minmax(0, 1fr));
	gap: 16px;
	height: 580px;
	overflow: hidden;
	-webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 14%, #000 86%, transparent 100%);
	mask-image: linear-gradient(to bottom, transparent 0, #000 14%, #000 86%, transparent 100%);
}
.ijbp-col { overflow: hidden; min-width: 0; }
.ijbp-track {
	animation: ijbp-up var(--ijbp-dur, 60s) linear infinite;
	will-change: transform;
}
.ijbp-col--down .ijbp-track { animation-name: ijbp-down; }
.ijbp-set {
	list-style: none;
	margin: 0;
	padding: 0 0 24px 8px; /* left room for the cards' offset shadow */
	display: flex;
	flex-direction: column;
	gap: 24px;
}
@keyframes ijbp-up { from { transform: translateY(0); } to { transform: translateY(-50%); } }
@keyframes ijbp-down { from { transform: translateY(-50%); } to { transform: translateY(0); } }

.ijbp-cols:hover .ijbp-track,
.ijbp-cols:focus-within .ijbp-track,
.ijbp-wall.is-paused .ijbp-track,
.ijbp-wall.is-offscreen .ijbp-track { animation-play-state: paused; }

/* Cards look like Netflix's Instagram reply cards: white, coloured border, solid offset shadow. */
.ijbp-wall {
	--ijbp-tone-1: #6e2b2b;
	--ijbp-tone-2: #d4b99d;
}
.ijbp-card {
	--tone: var(--ijbp-tone-1);
	position: relative;
	margin: 0 9% 0 0;
	padding: 12px 16px 14px;
	background: #fff;
	color: #111;
	border: 2px solid var(--tone);
	border-radius: 18px;
	box-shadow: -6px 7px 0 var(--tone);
	font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Segoe UI", Roboto, Arial, sans-serif;
}
.ijbp-card:nth-child(even) { --tone: var(--ijbp-tone-2); margin: 0 0 0 9%; }
.ijbp-col:nth-child(even) .ijbp-card { --tone: var(--ijbp-tone-2); }
.ijbp-col:nth-child(even) .ijbp-card:nth-child(even) { --tone: var(--ijbp-tone-1); }
.ijbp-card__user {
	display: block;
	margin: 0 0 3px;
	font-size: 13.5px;
	font-weight: 700;
	line-height: 1.3;
	color: #111 !important;
	text-decoration: none;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
/* The theme underlines every link in .entry-content. */
.ijbp-wall a.ijbp-card__user,
.entry-content .ijbp-wall a.ijbp-card__user { text-decoration: none; }
.ijbp-wall a.ijbp-card__user:hover,
.entry-content .ijbp-wall a.ijbp-card__user:hover { text-decoration: underline; }
/* The theme gives every .entry-content p a bottom margin. */
.ijbp-card .ijbp-card__text,
.entry-content .ijbp-card .ijbp-card__text { margin: 0; }
.ijbp-card__text {
	font-size: 18px;
	font-weight: 500;
	line-height: 1.25;
	letter-spacing: -0.01em;
	color: #111;
	overflow-wrap: anywhere;
}
.ijbp-mention { color: #00376b; font-weight: 600; }

/* The theme colors every <button> on hover/focus – keep our buttons' own look. */
.ijbp-wall .ijbp-wall__toggle,
.ijbp-wall .ijbp-wall__toggle:focus { background: transparent; color: var(--ijbp-ink); border: 1px solid rgba(20, 20, 20, 0.25); }
.ijbp-wall .ijbp-wall__toggle:hover { background: transparent; color: var(--ijbp-ink); border-color: var(--ijbp-ink); }
.ijbp-video .ijbp-video__sound,
.ijbp-video .ijbp-video__sound:focus { background: rgba(20, 20, 20, 0.55); color: #fff; border: 0; }
.ijbp-video .ijbp-video__sound:hover { background: rgba(20, 20, 20, 0.8); color: #fff; }

@media (max-width: 900px) {
	.ijbp-wall__inner { grid-template-columns: 1fr; }
	.ijbp-cols { --ijbp-cols: 2 !important; height: 520px; }
	.ijbp-col:nth-child(n + 3) { display: none; }
}
@media (max-width: 480px) {
	.ijbp-cols { gap: 10px; height: 480px; }
	.ijbp-set { gap: 18px; padding-bottom: 18px; padding-left: 6px; }
	.ijbp-card { padding: 9px 12px 11px; border-radius: 14px; border-width: 1.5px; box-shadow: -4px 5px 0 var(--tone); margin-right: 5%; }
	.ijbp-card:nth-child(even) { margin-left: 5%; margin-right: 0; }
	.ijbp-card__text { font-size: 15px; }
	.ijbp-card__user { font-size: 12px; }
	.ijbp-article { font-size: 17px; }
}

@media (prefers-reduced-motion: reduce) {
	.ijbp-track { animation: none; }
	.ijbp-cols { overflow-y: auto; -webkit-mask-image: none; mask-image: none; }
	.ijbp-col { overflow: visible; }
	.ijbp-set[aria-hidden="true"],
	.ijbp-wall__toggle { display: none; }
	.ijbp-video__poster { transition: none; }
}

/* ---------- Instagram videos row ([ig_videos]) ---------- */
.ijbp-igv {
	background: var(--ijbp-paper);
	color: var(--ijbp-ink);
	padding: clamp(48px, 7vw, 96px) 20px;
	margin: clamp(24px, 5vw, 56px) 0 0;
	font-family: var(--ijbp-body);
}
.ijbp-igv__inner { max-width: 880px; margin: 0 auto; }
/* Astra 4 gives every child of a top-level block its content width (1200px) with a stronger selector;
   keep our sections at their own widths. */
.ijbp-igv > .ijbp-igv__inner { max-width: 880px !important; }
.ijbp-wall > .ijbp-wall__inner { max-width: 1180px !important; }
.ijbp-video > .ijbp-vcover__inner { max-width: 1040px !important; }
.ijbp-igv__head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px 32px;
	flex-wrap: wrap;
	margin-bottom: clamp(24px, 4vw, 40px);
}
.ijbp-igv__title {
	font-family: var(--ijbp-head);
	font-weight: 500;
	font-size: clamp(30px, 4vw, 44px);
	line-height: 1.08;
	margin: 0;
	color: var(--ijbp-ink);
	text-wrap: balance;
}
.ijbp-igv__sub { margin: 12px 0 0; max-width: 560px; font-size: 16px; line-height: 1.6; color: var(--ijbp-muted); }
.ijbp-igv__head .ijbp-btn { flex: none; display: inline-block; }
.ijbp-igv__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	/* Each video is a third of the row wide, also when there are fewer than 3; a shorter row is centred. */
	--ijbp-igv-gap: clamp(14px, 2vw, 24px);
	grid-template-columns: repeat(var(--ijbp-igv-n, 3), minmax(0, calc((100% - 2 * var(--ijbp-igv-gap)) / 3)));
	justify-content: center;
	gap: var(--ijbp-igv-gap);
}
.ijbp-igv__item { margin: 0; min-width: 0; }
.ijbp-igv__frame {
	position: relative;
	aspect-ratio: 9 / 16;
	border-radius: 14px;
	overflow: hidden;
	background: #2a2420;
	isolation: isolate;
}
@supports not (aspect-ratio: 1) { .ijbp-igv__frame { height: 0; padding-bottom: 177.78%; } }
.ijbp-igv__fallback {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	color: rgba(255, 255, 255, 0.5);
	z-index: 0;
}
.ijbp-igv__media {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	z-index: 1;
	cursor: pointer;
}
.ijbp-igv__media.is-broken { display: none; }
/* "Coming soon" tile ([ig_videos placeholder="..."]): black like the cover's panel. */
.ijbp-igv__soon {
	background: #141414;
	color: #fff;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 14px;
	padding: 28px 22px;
	text-align: center;
	box-sizing: border-box;
}
.ijbp-igv__soon-img { display: block; max-width: 62%; max-height: 28%; object-fit: contain; margin-bottom: 6px; }
.ijbp-igv__soon-label {
	font-family: var(--ijbp-head);
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: #f4c2c8;
}
.ijbp-igv__soon-text {
	font-family: var(--ijbp-head);
	font-size: clamp(19px, 2vw, 24px);
	font-weight: 500;
	line-height: 1.25;
	text-wrap: balance;
}
.ijbp-igv__soon-icon { color: rgba(255, 255, 255, 0.55); margin-top: 6px; display: inline-flex; }
.ijbp-igv__play {
	position: absolute;
	left: 50%;
	top: 50%;
	z-index: 2;
	width: 58px;
	height: 58px;
	margin: -29px 0 0 -29px;
	border-radius: 50%;
	display: grid;
	place-items: center;
	color: #fff;
	background: rgba(20, 20, 20, 0.45);
	backdrop-filter: blur(6px);
	pointer-events: none;
}
.ijbp-igv__open {
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 3;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	display: grid;
	place-items: center;
	color: #fff !important;
	background: rgba(20, 20, 20, 0.45);
	backdrop-filter: blur(6px);
	text-decoration: none !important;
	transition: background 0.2s;
}
.ijbp-igv__open:hover { background: rgba(20, 20, 20, 0.75); }
.ijbp-igv__open:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.ijbp-igv__open--cover { inset: 0; width: auto; height: auto; border-radius: 0; background: transparent; backdrop-filter: none; }
.ijbp-igv__open--cover:hover { background: rgba(0, 0, 0, 0.08); }
.ijbp-igv__open--cover:focus-visible { outline-offset: -4px; }
/* The theme styles every <button>; keep this one's own look. */
.ijbp-igv .ijbp-igv__sound,
.ijbp-igv .ijbp-igv__sound:focus,
.ijbp-igv .ijbp-igv__sound:hover {
	position: absolute;
	right: 12px;
	bottom: 12px;
	z-index: 3;
	width: 38px;
	height: 38px;
	min-height: 0;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	display: grid;
	place-items: center;
	color: #fff;
	background: rgba(20, 20, 20, 0.5);
	backdrop-filter: blur(6px);
	box-shadow: none;
	line-height: 1;
	cursor: pointer;
}
.ijbp-igv .ijbp-igv__sound:hover { background: rgba(20, 20, 20, 0.78); }
.ijbp-igv .ijbp-igv__sound:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.ijbp-igv__sound .ijbp-wave { display: none; }
.ijbp-igv__sound[aria-pressed="true"] .ijbp-wave { display: inline; }
.ijbp-igv__sound[aria-pressed="true"] .ijbp-x { display: none; }
.ijbp-igv:not(.is-ready) .ijbp-igv__sound { display: none; }
.ijbp-igv__caption {
	margin: 12px 2px 0;
	font-size: 14px;
	line-height: 1.45;
	color: var(--ijbp-muted);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	overflow-wrap: anywhere;
}
.ijbp-igv__caption .ijbp-mention { color: var(--ijbp-ink); font-weight: 500; }

/* Phones: one row that scrolls sideways; the next video peeks in so it's clear there's more. */
@media (max-width: 720px) {
	.ijbp-igv { padding-left: 0; padding-right: 0; }
	.ijbp-igv__head { padding: 0 20px; }
	.ijbp-igv__list {
		grid-template-columns: none;
		grid-auto-flow: column;
		grid-auto-columns: 58%;
		justify-content: start;
		gap: 12px;
		overflow-x: auto;
		scroll-snap-type: x proximity;
		scroll-padding: 0 20px;
		padding: 0 20px 4px;
		scrollbar-width: none;
		-webkit-overflow-scrolling: touch;
		overscroll-behavior-x: contain;
	}
	.ijbp-igv__list::-webkit-scrollbar { display: none; }
	.ijbp-igv__item { scroll-snap-align: start; }
}

/* Comments wall and Instagram videos on a colored band: background="#bc011a" on the shortcode.
   On a dark color (is-dark) the text turns white, buttons turn white and the cards get black/pale-pink offsets. */
.ijbp-wall,
.ijbp-igv { background: var(--ijbp-band-bg, var(--ijbp-paper)); }
.ijbp-wall.is-dark { --ijbp-tone-1: #141414; --ijbp-tone-2: #f4c2c8; }
.ijbp-wall.is-dark .ijbp-eyebrow,
.ijbp-igv.is-dark .ijbp-eyebrow { color: rgba(255, 255, 255, 0.85); }
.ijbp-wall.is-dark .ijbp-wall__title,
.ijbp-igv.is-dark .ijbp-igv__title { color: #fff; }
.ijbp-wall.is-dark .ijbp-wall__sub { color: rgba(255, 255, 255, 0.92); }
.ijbp-wall.is-dark .ijbp-wall__count,
.ijbp-igv.is-dark .ijbp-igv__sub,
.ijbp-igv.is-dark .ijbp-igv__caption { color: rgba(255, 255, 255, 0.85); }
.ijbp-igv.is-dark .ijbp-igv__caption .ijbp-mention { color: #fff; }
.ijbp-wall.is-dark .ijbp-btn,
.ijbp-igv.is-dark .ijbp-btn { background: #fff; border-color: #fff; color: var(--ijbp-ink) !important; }
.ijbp-wall.is-dark .ijbp-btn:hover,
.ijbp-igv.is-dark .ijbp-btn:hover { background: var(--ijbp-ink); border-color: var(--ijbp-ink); color: #fff !important; }
.ijbp-wall.is-dark .ijbp-wall__toggle,
.ijbp-wall.is-dark .ijbp-wall__toggle:focus { color: #fff; border-color: rgba(255, 255, 255, 0.55); }
.ijbp-wall.is-dark .ijbp-wall__toggle:hover { color: #fff; border-color: #fff; }
.ijbp-wall.is-dark .ijbp-btn:focus-visible,
.ijbp-igv.is-dark .ijbp-btn:focus-visible,
.ijbp-wall.is-dark .ijbp-wall__toggle:focus-visible { outline-color: #fff; }
.ijbp-wall.is-dark .ijbp-wall__demo { color: #fff; border-color: rgba(255, 255, 255, 0.6); }

