/*
 * Sprint 8a content: Our Table groups, committee portraits, sponsors and supporters, single-photo albums,
 * the click-to-load video, Our Shared Home's pledges and brochure, and the scroll effects. Loaded on every
 * page (the sponsors strip is on Home), after pages.css. Kept apart from pages.css so the parallel
 * membership work (Sprint 8b) and this sprint touch different files.
 */

/* ================= Our Table: dishes by course ================= */
:root .bt-dishgroups {
	display: grid;
	gap: clamp(40px, 5vw, 64px);
	margin-top: clamp(40px, 4vw, 56px);
}

:root .bt-dishgroup > .bt-dishgroup__title {
	margin: 0 0 4px;
	color: var(--wp--preset--color--primary-text);
	font-family: var(--wp--preset--font-family--text);
	font-size: var(--wp--preset--font-size--eyebrow);
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

:root .bt-dish h4 {
	margin: 0;
	font-size: clamp(1.38125rem, 1.8vw, 1.6125rem);
	font-weight: 500;
	line-height: 1.12;
	letter-spacing: -0.006em;
}

/* ================= About: timeline's next item, committee portraits ================= */
:root .bt-timeline li.bt-timeline__next {
	border-top-style: dashed;
}

:root .bt-timeline li.bt-timeline__next::before {
	border: 1.5px solid var(--wp--preset--color--contrast);
	background: var(--wp--preset--color--base-2);
}

:root .bt-person__photo {
	margin: 0 0 16px !important;
}

:root .bt-person__photo img {
	display: block;
	width: 120px;
	height: auto;
	border-radius: 12px;
	aspect-ratio: 4 / 5;
	object-fit: cover;
}

:root .bt-people__note {
	max-width: 44em;
	margin-top: 32px;
	color: var(--wp--preset--color--contrast-2);
}

/* ================= sponsors and supporters (atam-core/sponsors) ================= */
.atam-sponsors ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.atam-sponsors__list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
	gap: 24px;
}

.atam-sponsor {
	display: grid;
	grid-template-rows: auto 1fr;
	gap: 20px;
	padding: 24px;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 20px;
	background: var(--wp--preset--color--base);
}

.atam-sponsor--premier {
	border-color: var(--wp--preset--color--primary);
	box-shadow: inset 0 3px 0 var(--wp--preset--color--primary);
}

.atam-sponsor__logo {
	display: grid;
	place-items: center;
	height: 112px;
	padding: 16px;
	border-radius: 12px;
	background: var(--wp--preset--color--base-2);
}

.atam-sponsor__logo img {
	max-width: 100%;
	max-height: 80px;
	width: auto;
	height: auto;
	object-fit: contain;
}

.atam-sponsor__mono {
	color: var(--wp--preset--color--contrast-2);
	font-family: var(--wp--preset--font-family--display);
	font-size: 2.25rem;
	letter-spacing: 0.04em;
}

.atam-sponsor__body > * {
	margin: 0;
}

.atam-sponsor__tier {
	color: var(--wp--preset--color--primary-text);
	font-size: var(--wp--preset--font-size--eyebrow);
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.atam-sponsor__name {
	margin-top: 6px !important;
	font-size: clamp(1.38125rem, 1.8vw, 1.6125rem);
	font-weight: 500;
	line-height: 1.15;
}

.atam-sponsor__name a,
.atam-supporter__name a {
	color: inherit;
	text-decoration: none;
}

.atam-sponsor__name a:hover,
.atam-supporter__name a:hover {
	text-decoration: underline;
	text-underline-offset: 0.18em;
}

.atam-sponsor__summary {
	margin-top: 8px !important;
	color: var(--wp--preset--color--contrast-2);
}

.atam-sponsor__history {
	display: grid;
	gap: 4px;
	margin-top: 14px !important;
	padding-top: 12px !important;
	border-top: 1px solid var(--wp--preset--color--line);
	color: var(--wp--preset--color--contrast-2);
	font-size: var(--wp--preset--font-size--small);
}

.atam-sponsor__years {
	color: var(--wp--preset--color--muted);
	font-variant-numeric: lining-nums tabular-nums;
}

.atam-sponsor__site {
	margin-top: 12px !important;
	font-size: var(--wp--preset--font-size--small);
	overflow-wrap: anywhere;
}

.atam-sponsor__site a {
	color: var(--wp--preset--color--primary-text);
	font-weight: 600;
	text-underline-offset: 0.18em;
}

.atam-sponsors__sub {
	margin: clamp(40px, 5vw, 56px) 0 16px;
	font-size: var(--wp--preset--font-size--heading-s);
	font-weight: 500;
}

.atam-sponsors__supporters {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
	gap: 16px;
}

.atam-supporter {
	display: grid;
	gap: 10px;
}

.atam-supporter .atam-sponsor__logo {
	height: 88px;
}

/* the logo keeps the box's padding (the logo files are trimmed to their artwork) */
.atam-supporter .atam-sponsor__logo img {
	max-height: 52px;
}

.atam-supporter > p {
	margin: 0;
}

.atam-supporter__name {
	font-weight: 600;
}

.atam-supporter__since {
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--small);
}

/* compact (About): logos and names only */
.atam-sponsors--compact .atam-sponsor {
	padding: 16px;
	gap: 14px;
}

.atam-sponsors--compact .atam-sponsor__logo {
	height: 88px;
}

/* strip (Home, above the footer) */
:root .bt-sponsor-strip {
	padding-block: clamp(40px, 5vw, 64px);
	border-top: 1px solid var(--wp--preset--color--line);
}

.atam-sponsors--strip {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 20px 40px;
}

.atam-sponsors__thanks,
.atam-sponsors__more {
	margin: 0;
}

.atam-sponsors__thanks {
	color: var(--wp--preset--color--contrast-2);
	font-size: var(--wp--preset--font-size--eyebrow);
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.atam-sponsors__logos {
	display: flex;
	flex: 1 1 520px;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 28px;
}

/* every logo in the same box: a fixed height and a maximum width, scaled to fit (Sprint 10). A business
   without a logo shows its monogram at the same height; the names are for screen readers. */
.atam-sponsors__logo {
	--logo-h: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	height: var(--logo-h);
	max-width: 144px;
	color: var(--wp--preset--color--contrast-2);
	font-weight: 600;
}

.atam-sponsors__logo img {
	display: block;
	width: auto;
	max-width: 100%;
	height: 100%;
	object-fit: contain;
	filter: grayscale(1);
	opacity: 0.85;
}

.atam-sponsors__logo .atam-sponsor__mono {
	display: grid;
	place-items: center;
	width: var(--logo-h);
	height: var(--logo-h);
	border-radius: 50%;
	background: var(--wp--preset--color--base-2);
	font-size: calc(var(--logo-h) * 0.38);
	letter-spacing: 0.02em;
}

@media (max-width: 600px) {
	.atam-sponsors__logos {
		gap: 14px 22px;
	}

	.atam-sponsors__logo {
		--logo-h: 36px;
		max-width: 100px;
	}
}

/* wider screens: the thanks and the link share the first line, the logos the full width beneath */
@media (min-width: 782px) {
	.atam-sponsors--strip .atam-sponsors__logos {
		flex-basis: 100%;
		order: 3;
		justify-content: space-between;
		gap: 16px 40px;
	}

	.atam-sponsors--strip .atam-sponsors__logo {
		max-width: 132px;
	}
}

.atam-sponsors__more a {
	color: var(--wp--preset--color--contrast);
	font-weight: 600;
	text-underline-offset: 0.2em;
}

/* the badge on ATAM Connect cards and listing pages */
.atam-sponsor-badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 10px 0 0;
	padding: 4px 12px 4px 10px;
	border-radius: 999px;
	background: var(--wp--preset--color--base-2);
	color: var(--wp--preset--color--contrast);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
}

.atam-sponsor-badge::before {
	content: "";
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--wp--preset--color--primary);
}

.atam-listing-draft,
:root .bt-sponsors-note {
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--small);
}

:root .bt-sponsors-note {
	margin-top: 32px;
}

/* ================= gallery: themes ================= */
:root .bt-themes__title {
	margin: clamp(32px, 4vw, 48px) 0 16px;
}

.bt-themes__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr));
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

@media (min-width: 782px) {
	.bt-themes__grid {
		grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
	}
}

.bt-theme-card a {
	display: grid;
	gap: 4px;
	color: inherit;
	text-decoration: none;
}

.bt-theme-card__media {
	display: block;
	overflow: hidden;
	margin-bottom: 8px;
	border-radius: var(--wp--custom--radius--media);
	background: var(--wp--preset--color--base-3);
	aspect-ratio: 4 / 3;
}

.bt-theme-card__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform var(--wp--custom--motion--fill) var(--wp--custom--motion--ease);
}

.bt-theme-card a:is(:hover, :focus-visible) .bt-theme-card__media img {
	transform: scale(1.04);
}

.bt-theme-card__name {
	font-size: var(--wp--preset--font-size--heading-xs);
	font-weight: 600;
	line-height: 1.2;
}

.bt-theme-card a:is(:hover, :focus-visible) .bt-theme-card__name {
	text-decoration: underline;
	text-underline-offset: 0.18em;
}

.bt-theme-card__n {
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--small);
}

.bt-theme-card.is-current .bt-theme-card__media {
	outline: 3px solid var(--wp--preset--color--contrast);
	outline-offset: 3px;
}

.bt-themes__all {
	margin: 20px 0 0;
}

.bt-themes__all a {
	color: var(--wp--preset--color--contrast);
	font-weight: 600;
}

:root .bt-album__themes {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 14px !important;
	font-size: var(--wp--preset--font-size--small);
}

:root .bt-album__themes a {
	padding: 4px 12px;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 999px;
	color: var(--wp--preset--color--contrast-2);
	text-decoration: none;
}

:root .bt-album__themes a:is(:hover, :focus-visible) {
	border-color: var(--wp--preset--color--contrast);
	color: var(--wp--preset--color--contrast);
}

/* ================= gallery: an album with one photo (albums with more are the carousel: carousel.css) ===== */
.bt-album-one {
	--bt-show-ratio: 3 / 2;
}

/* an album with one photo (inc/Gallery.php): full content width at 3:2 on every screen, caption beneath.
   :not(#bt-one) matches the weight of core's own :not(#individual-image) gallery rules. */
:root .wp-block-gallery.has-nested-images.bt-album-one {
	display: block;
}

:root .wp-block-gallery.has-nested-images.bt-album-one figure.wp-block-image:not(#bt-one) {
	display: block;
	width: 100%;
	margin: 0;
	overflow: visible;
	border-radius: 0;
	background: none;
}

:root .wp-block-gallery.has-nested-images.bt-album-one figure.wp-block-image:not(#bt-one) img {
	width: 100%;
	background: var(--wp--preset--color--base-3);
	height: auto;
	aspect-ratio: var(--bt-show-ratio, 3 / 2);
	border-radius: var(--wp--custom--radius--media);
	object-fit: cover;
}

:root .wp-block-gallery.has-nested-images.bt-album-one figure.wp-block-image:not(#bt-one) figcaption {
	position: static;
	max-height: none;
	margin: 12px 0 0;
	padding: 0;
	overflow: visible;
	background: none;
	color: var(--wp--preset--color--contrast-2);
	font-size: var(--wp--preset--font-size--small);
	text-align: left;
	text-shadow: none;
}

:root .wp-block-gallery.bt-album-one + .bt-carousel__bar--one {
	justify-content: flex-end;
	margin-top: 4px;
}

/* ================= click-to-load video (atam-core/video) ================= */
:root .bt-watch__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
	align-items: start;
	gap: clamp(24px, 3vw, 40px);
}

@media (max-width: 781px) {
	:root .bt-watch__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	:root .bt-watch__grid .atam-video--facebook:first-child {
		max-width: 360px;
	}
}

.atam-video {
	margin: 0;
}

.atam-video__stage {
	position: relative;
	overflow: hidden;
	border-radius: var(--wp--custom--radius--media);
	background: var(--wp--preset--color--surface-dark);
	aspect-ratio: var(--atam-video-ratio, 16 / 9);
}

.atam-video__still,
.atam-video__frame {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
	object-fit: cover;
}

.atam-video__still--blank {
	background:
		radial-gradient(circle at 30% 20%, rgb(255 255 255 / 0.12), transparent 55%),
		linear-gradient(135deg, var(--wp--preset--color--primary-strong), var(--wp--preset--color--surface-dark));
}

.atam-video__play {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	color: #fff;
}

.atam-video__icon {
	display: grid;
	place-items: center;
	width: 72px;
	height: 72px;
	border-radius: 50%;
	background: rgb(255 255 255 / 0.94);
	box-shadow: 0 4px 18px rgb(0 0 0 / 0.25);
	transition: transform var(--wp--custom--motion--press) var(--wp--custom--motion--ease);
}

.atam-video__icon::before {
	content: "";
	width: 0;
	height: 0;
	margin-left: 6px;
	border-block: 12px solid transparent;
	border-left: 20px solid var(--wp--preset--color--contrast);
}

.atam-video__play:is(:hover, :focus-visible) .atam-video__icon {
	transform: scale(1.06);
}

.atam-video__play:focus-visible {
	outline: 3px solid #fff;
	outline-offset: -8px;
}

.atam-video__caption {
	display: grid;
	gap: 4px;
	margin-top: 12px;
}

.atam-video__title {
	font-weight: 600;
}

.atam-video__note {
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--small);
}

/* ================= Our Shared Home: how it began, pledges, first pledges ================= */
:root .bt-pledges {
	margin-top: 32px;
	padding: 24px;
	border-radius: 16px;
	background: var(--wp--preset--color--base);
}

:root .bt-pledges > * {
	margin-block: 0;
}

:root .bt-pledges__figures {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
	margin: 14px 0 16px !important;
}

:root .bt-pledges__figure {
	display: grid;
	gap: 2px;
	margin: 0;
}

:root .bt-pledges__figure strong {
	font-family: var(--wp--preset--font-family--display);
	font-size: clamp(1.75rem, 3vw, 2.5rem);
	font-weight: 400;
	line-height: 1.05;
	font-variant-numeric: lining-nums tabular-nums;
}

:root .bt-pledges__figure span {
	color: var(--wp--preset--color--contrast-2);
	font-size: var(--wp--preset--font-size--small);
}

:root .bt-pledges__note {
	margin-top: 12px !important;
	font-size: var(--wp--preset--font-size--small);
}

:root .bt-roll-first {
	max-width: 44em;
	margin-top: 40px;
	padding-top: 24px;
	border-top: 1px solid var(--wp--preset--color--line);
}

:root .bt-roll-first > * {
	margin-block: 0 8px;
}

/* ================= Our Shared Home brochure: A4 sheets on screen and in print ================= */
:root .bt-bro__bar {
	padding-block: clamp(32px, 4vw, 56px) 24px;
}

:root .bt-bro__bar-text > * {
	margin-block: 0 8px;
}

:root .bt-bro {
	--bt-sheet-w: min(210mm, calc(100vw - 32px));
	display: grid;
	justify-items: center;
	gap: 32px;
	padding: 0 16px clamp(48px, 6vw, 96px);
	background: var(--wp--preset--color--base-2);
	padding-top: 32px;
}

:root .bt-bro__sheet {
	position: relative;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	width: var(--bt-sheet-w);
	min-height: calc(var(--bt-sheet-w) * 1.4142);
	margin: 0;
	padding: clamp(24px, 6vw, 18mm);
	overflow: hidden;
	background: var(--wp--preset--color--base);
	box-shadow: 0 2px 24px rgb(35 33 43 / 0.12);
	font-size: clamp(0.875rem, 1.6vw, 1rem);
}

:root .bt-bro__sheet > * {
	margin-block: 0 12px;
}

:root .bt-bro__sheet h2 {
	margin-block: 4px 14px;
	font-size: clamp(1.5rem, 3vw, 2.125rem);
	line-height: 1.1;
}

:root .bt-bro__sheet h3 {
	margin-block: 0 6px;
	font-size: 1.125rem;
}

:root .bt-bro__sheet .bt-index {
	margin-top: 18px;
}

:root .bt-bro__folio {
	margin-top: auto !important;
	padding-top: 12px;
	border-top: 1px solid var(--wp--preset--color--line);
	color: var(--wp--preset--color--muted);
	font-size: 0.75rem;
}

/* cover */
:root .bt-bro__sheet--1 {
	padding: 0;
	background: var(--wp--preset--color--surface-dark);
	color: var(--wp--preset--color--on-dark);
}

:root .bt-bro__cover-photo {
	flex: 1 1 auto;
	margin: 0 !important;
}

:root .bt-bro__cover-photo img {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 55%;
	object-fit: cover;
}

:root .bt-bro__cover-text {
	padding: clamp(24px, 5vw, 16mm) clamp(24px, 6vw, 18mm);
}

:root .bt-bro__cover-text > * {
	margin-block: 0 12px;
}

:root .bt-bro__cover-text .is-style-eyebrow {
	color: var(--wp--preset--color--on-dark-2);
}

:root .bt-bro__logo img {
	width: 120px;
	height: auto;
}

:root .bt-bro__title {
	font-size: clamp(2rem, 5vw, 3.25rem) !important;
	line-height: 1.02 !important;
}

:root .bt-bro__lede {
	max-width: 32em;
	font-size: 1.0625rem;
}

:root .bt-bro__imprint {
	color: var(--wp--preset--color--on-dark-muted);
	font-size: 0.75rem;
}

:root .bt-bro__sheet:not(.bt-bro__sheet--1) .bt-bro__imprint {
	color: var(--wp--preset--color--muted);
}

:root .bt-bro__band {
	margin: calc(-1 * clamp(24px, 6vw, 18mm)) calc(-1 * clamp(24px, 6vw, 18mm)) 20px !important;
}

:root .bt-bro__band img {
	display: block;
	width: 100%;
	height: 52mm;
	object-fit: cover;
}

:root .bt-bro__lead {
	font-size: 1.125rem;
}

:root .bt-bro__priorities {
	display: grid;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

:root .bt-bro__priorities span {
	display: inline-block;
	min-width: 1.5em;
	margin-right: 4px;
	color: var(--wp--preset--color--primary-text);
	font-weight: 700;
}

:root .bt-bro__priorities strong {
	margin-right: 6px;
}

:root .bt-bro__gates,
:root .bt-bro__safes {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
	margin-bottom: 8px !important;
}

:root .bt-bro__gate,
:root .bt-bro__safe {
	padding: 14px;
	border-radius: 10px;
	background: var(--wp--preset--color--base-2);
	font-size: 0.875rem;
}

:root .bt-bro__gate > *,
:root .bt-bro__safe > * {
	margin-block: 0 6px;
}

:root .bt-bro__fm {
	padding: 18px;
	border-radius: 12px;
	background: var(--wp--preset--color--base-2);
}

:root .bt-bro__fm > * {
	margin-block: 0 8px;
}

:root .bt-bro__big {
	font-family: var(--wp--preset--font-family--display);
	font-size: 2.5rem;
	line-height: 1;
}

:root .bt-bro__benefits {
	columns: 2;
	column-gap: 24px;
	margin: 0;
	padding-left: 1.1em;
}

:root .bt-bro__help {
	margin-top: 8px;
	padding: 18px;
	border-radius: 12px;
	background: var(--wp--preset--color--surface-dark);
	color: var(--wp--preset--color--on-dark);
}

:root .bt-bro__help > * {
	margin-block: 0 8px;
}

:root .bt-bro__thanks {
	color: var(--wp--preset--color--on-dark-2);
}

@media (max-width: 600px) {
	:root .bt-bro__gates,
	:root .bt-bro__safes {
		grid-template-columns: minmax(0, 1fr);
	}

	:root .bt-bro__benefits {
		columns: 1;
	}
}

@page {
	size: a4;
	margin: 0;
}

@media print {
	:root .bt-utility-part,
	:root .bt-header-part,
	:root .bt-footer-part,
	:root .bt-action-bar-part,
	:root .bt-bro__bar,
	:root #wpadminbar,
	:root .skip-link {
		display: none !important;
	}

	:root body {
		background: #fff;
	}

	:root .bt-bro {
		--bt-sheet-w: 210mm;
		display: block;
		padding: 0;
		background: none;
	}

	:root .bt-bro__sheet {
		width: 210mm;
		height: 297mm;
		min-height: 0;
		padding: 18mm;
		box-shadow: none;
		font-size: 12pt;
		line-height: 1.5;
		break-after: page;
		print-color-adjust: exact;
		-webkit-print-color-adjust: exact;
	}

	:root .bt-bro__sheet:last-child {
		break-after: auto;
	}

	:root .bt-bro__sheet--1 {
		padding: 0;
	}

	:root .bt-bro__sheet h2 {
		font-size: 24pt;
	}

	:root .bt-bro__sheet :is(p, li) {
		font-size: inherit;
	}

	:root .bt-bro__sheet h3 {
		font-size: 13pt;
	}

	:root .bt-bro__lead,
	:root .bt-bro__lede {
		font-size: 14pt !important;
	}

	:root .bt-bro__gate,
	:root .bt-bro__safe {
		font-size: 10.5pt;
	}

	:root .bt-bro__sheet :is(.bt-bro__folio, .bt-bro__imprint, .bt-pledges__note) {
		font-size: 8.5pt;
	}

	:root .bt-bro__sheet .bt-bro__big {
		font-size: 34pt;
	}

	:root .bt-pledges--bro .bt-pledges__figure strong {
		font-size: 30pt;
	}

	:root .bt-bro__title {
		font-size: 36pt !important;
	}

	:root .bt-bro__band {
		margin: -18mm -18mm 16px !important;
	}

	:root .bt-bro__gates,
	:root .bt-bro__safes {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	:root .bt-bro__benefits {
		columns: 2;
	}

	:root .bt-reveal-on .bt-reveal {
		opacity: 1 !important;
		transform: none !important;
	}
}

/* ================= scroll effects ================= */
/* Large photos drift slowly against the page as it scrolls (transform only: no layout shift). The same list
   is in content.js, which sets --bt-scroll where scroll-driven animations are not supported. */
@media (prefers-reduced-motion: no-preference) {
	:root :is(.bt-wide-figure, .bt-figure, .bt-camp__chapter) .bt-media,
	:root .bt-ph__media {
		overflow: hidden;
	}

	@supports (animation-timeline: view()) {
		:root :is(.bt-wide-figure, .bt-figure, .bt-camp__chapter) .bt-media img,
		:root .bt-ph__media img {
			animation: bt-drift linear both;
			animation-timeline: view();
			animation-range: cover 0% cover 100%;
		}

		/* cards, dishes, sponsors and videos rise into place as they enter */
		:root :is(.bt-theme-card, .atam-sponsor, .atam-supporter, .bt-dish, .bt-person, .atam-video, .bt-carousel--single, .bt-bro__sheet) {
			animation: bt-rise linear both;
			animation-timeline: view();
			animation-range: entry 0% entry 70%;
		}
	}

	:root.bt-parallax-js :is(.bt-wide-figure, .bt-figure, .bt-camp__chapter) .bt-media img,
	:root.bt-parallax-js .bt-ph__media img {
		transform: translate3d(0, calc((var(--bt-scroll, 0.5) - 0.5) * 7%), 0) scale(1.08);
		will-change: transform;
	}
}

@keyframes bt-drift {
	from {
		transform: translate3d(0, -3.5%, 0) scale(1.08);
	}

	to {
		transform: translate3d(0, 3.5%, 0) scale(1.08);
	}
}

@keyframes bt-rise {
	from {
		opacity: 0.001;
		transform: translate3d(0, 28px, 0);
	}

	to {
		opacity: 1;
		transform: none;
	}
}

@media print {
	:root :is(.bt-wide-figure, .bt-figure, .bt-camp__chapter) .bt-media img,
	:root .bt-ph__media img,
	:root :is(.bt-theme-card, .atam-sponsor, .atam-supporter, .bt-dish, .bt-person, .atam-video, .bt-carousel--single, .bt-bro__sheet) {
		animation: none !important;
		opacity: 1 !important;
		transform: none !important;
	}
}

/* ================= photos added through the pages (Sprint 8a) ================= */
:root .bt-sec > .alignwide > .bt-figure {
	margin-top: clamp(40px, 5vw, 64px);
}

:root .bt-figure--narrow {
	max-width: min(100%, 560px);
	margin-inline-start: auto;
}

:root .bt-bro__photo {
	margin-top: 8px !important;
}

:root .bt-bro__photo img {
	display: block;
	width: 100%;
	height: 62mm;
	border-radius: 10px;
	object-fit: cover;
}

/* ================= photo rows (Sprint 9): Our Table, the About milestones, volunteers ================= */
:root .bt-photo-row {
	display: grid;
	grid-template-columns: repeat(var(--bt-row-cols, 3), minmax(0, 1fr));
	gap: clamp(16px, 2vw, 28px);
	margin-top: clamp(28px, 3.4vw, 48px);
}

:root .bt-photo-row--2 {
	--bt-row-cols: 2;
}

:root .bt-photo-row--4 {
	--bt-row-cols: 4;
}

:root .bt-photo-row > .wp-block-image {
	margin: 0;
}

:root .bt-photo-row .bt-media img {
	display: block;
	width: 100%;
	border-radius: var(--wp--custom--radius--media);
	background: var(--wp--preset--color--base-2);
}

:root .bt-photo-row figcaption {
	margin: 10px 0 0;
	color: var(--wp--preset--color--contrast-2);
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.45;
	text-align: left;
}

@media (max-width: 1023px) {
	:root .bt-photo-row--4 {
		--bt-row-cols: 2;
	}
}

@media (max-width: 781px) {
	:root .bt-photo-row--3 {
		--bt-row-cols: 1;
	}
}

@media (max-width: 480px) {
	:root .bt-photo-row--2 {
		--bt-row-cols: 1;
	}
}
