/* ==========================================================================
   By Their Side campaign page
   Hand-coded (no Fusion Builder) so it survives the eventual Avada migration.
   ========================================================================== */

/* Avada wraps #content in #main .fusion-row, capped at the site width
   option (1400px), and adds its own side padding on #main. Scoped to this
   page's body class so full-bleed sections can reach the edges here only. */
body.page-template-page-by-their-side #main .fusion-row {
	max-width: 100% !important;
}

body.page-template-page-by-their-side #main {
	padding-left: 0 !important;
	padding-right: 0 !important;
}

.bts-page {
	--bts-pink: #d41568;
	--bts-pink-dark: #b31058;
	--bts-pink-tint: #fdf0f6;
	--bts-pink-tint-2: #fbe1ec;
	--bts-text: #4a4e57;
	--bts-hover-scale: 1.025;
	font-family: Arial, Helvetica, sans-serif;
	color: var(--bts-text);
	padding-bottom: 100px;
}

.bts-page h1,
.bts-page h2,
.bts-page h3 {
	font-family: "Jost", Arial, Helvetica, sans-serif;
	font-weight: 500;
	color: var(--bts-pink);
	line-height: 1.2;
}

.bts-page h1 {
	font-size: 3rem;
	font-weight: 700;
	margin: 40px 0 20px;
	color: #222;
	text-align: center;
}

.bts-page h2 {
	font-size: 2.125rem;
	margin: 0 0 20px;
	text-align: center;
}

.bts-page p {
	font-size: 1.125rem;
	line-height: 1.6;
	margin: 0 0 22px;
}

.bts-section {
	padding: 60px 20px;
}

.bts-inner {
	max-width: 1200px;
	margin: 0 auto;
}

/* ---------- Hero banner ---------- */
.bts-hero img {
	display: block;
	width: 100%;
	height: auto;
}

/* ---------- Logo + intro ---------- */
.bts-intro {
	text-align: center;
}

.bts-logo {
	width: 200px;
	height: auto;
	margin: 0 auto 30px;
	display: block;
	mix-blend-mode: multiply;
}

.bts-intro .bts-lead {
	max-width: 760px;
	margin: 0 auto 30px;
	font-size: 1.3rem;
	font-weight: 700;
	text-wrap: balance;
}

/* ---------- Buttons ---------- */
.bts-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	background: var(--bts-pink);
	color: #fff;
	font-family: "Jost", Arial, Helvetica, sans-serif;
	font-weight: 500;
	font-size: 14px;
	line-height: 17px;
	letter-spacing: 0;
	text-transform: uppercase;
	text-decoration: none;
	padding: 13px 29px;
	border-radius: 15px;
	border: 7px solid var(--bts-pink);
	box-shadow: none;
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.bts-btn:hover,
.bts-btn:focus {
	background: var(--bts-pink);
	border-color: var(--bts-pink);
	color: #fff;
	transform: translateY(-2px);
}

.bts-btn-wrap {
	text-align: center;
	margin: 10px 0 20px;
}

.bts-btn-wrap-left {
	text-align: left;
	margin: 20px 0 0;
}

.bts-accent-text {
	color: var(--bts-pink);
	font-weight: 700;
}

.bts-brand {
	font-style: italic;
	font-weight: 700;
}

.bts-page h1 .bts-brand,
.bts-page h2 .bts-brand {
	font-weight: inherit;
}

/* ---------- Copy + image blocks ---------- */
.bts-copy {
	max-width: 760px;
	margin: 0 auto;
}

.bts-highlight {
	background: var(--bts-pink-tint);
}

.bts-highlight .bts-flex {
	margin-top: 0;
	margin-bottom: 0;
}

.bts-flex {
	display: flex;
	align-items: center;
	gap: 50px;
	max-width: 1200px;
	margin: 50px auto;
}

.bts-flex-reverse {
	flex-direction: row-reverse;
}

.bts-flex-img {
	flex: 0 0 42%;
}

.bts-highlight .bts-flex-img {
	flex: 0 1 52.5%;
}

.bts-highlight .bts-flex-text {
	flex: 1 1 0%;
}

.bts-flex-img a {
	display: block;
	overflow: hidden;
	border-radius: 6px;
}

.bts-flex-img img {
	display: block;
	width: 100%;
	height: 320px;
	object-fit: cover;
	border-radius: 6px;
	transition: transform 0.3s ease;
}

.bts-flex-img a:hover img {
	transform: scale(var(--bts-hover-scale));
}

.bts-highlight .bts-flex-img img {
	height: auto;
	aspect-ratio: 1 / 1;
	object-position: center 75%;
}

.bts-flex-text {
	flex: 1;
}

.bts-flex-text p:last-child {
	margin-bottom: 0;
}

.bts-img-pair {
	display: flex;
	gap: 50px;
	max-width: 1200px;
	margin: 50px auto 0;
}

.bts-img-pair a {
	display: block;
	flex: 1;
	overflow: hidden;
	border-radius: 6px;
}

.bts-img-pair img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: 6px;
	transition: transform 0.3s ease;
}

.bts-img-pair a:hover img {
	transform: scale(var(--bts-hover-scale));
}

/* ---------- Betty quote ---------- */
.bts-quote {
	background: #f7f7f7;
	padding: 60px 20px;
	text-align: center;
}

.bts-quote-photo-frame {
	display: block;
	width: 120px;
	height: 120px;
	margin: 0 auto;
	border-radius: 50%;
	overflow: hidden;
}

.bts-quote-photo {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.3s ease;
}

.bts-quote-photo-frame:hover .bts-quote-photo {
	transform: scale(var(--bts-hover-scale));
}

.bts-quote-photo-bottom {
	margin-top: 24px;
}

.bts-quote blockquote {
	max-width: 780px !important;
	margin: 0 auto 24px !important;
	padding: 0 !important;
	border: none !important;
	background: none !important;
	font-family: "Jost", Arial, Helvetica, sans-serif !important;
	font-style: italic !important;
	font-weight: 500 !important;
	font-size: 2.125rem !important;
	line-height: 1.45 !important;
	color: var(--bts-pink) !important;
	text-align: center !important;
}

.bts-quote cite {
	display: block !important;
	margin-top: 12px !important;
	text-align: center !important;
	font-style: normal !important;
	font-weight: 700 !important;
	font-size: 1rem !important;
	color: #666 !important;
}

/* ---------- Donation tiers ---------- */
.bts-tiers {
	background: var(--bts-pink-tint);
}

.bts-tiers-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
	margin-top: 40px;
}

.bts-tier-card {
	display: block;
	background: #fff;
	border-radius: 8px;
	padding: 28px 26px;
	box-shadow: 0 4px 16px rgba(212, 21, 104, 0.08);
	border-top: 4px solid var(--bts-pink);
	text-decoration: none;
	color: inherit;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.bts-tier-card:hover,
.bts-tier-card:focus {
	transform: translateY(-4px);
	box-shadow: 0 10px 24px rgba(212, 21, 104, 0.162);
}

p.bts-tier-amount {
	font-family: "Jost", Arial, Helvetica, sans-serif;
	font-weight: 500;
	font-size: 3rem;
	line-height: 1;
	color: var(--bts-pink);
	margin: 0 0 8px;
}

.bts-tier-card p:not(.bts-tier-amount) {
	font-size: 1rem;
	line-height: 1.5;
	margin: 0;
}

/* ---------- Gallery ---------- */
.bts-gallery-section {
	background: #f7f7f7;
}

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

.bts-gallery-grid a {
	display: block;
	overflow: hidden;
	border-radius: 6px;
}

.bts-gallery-grid img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.bts-gallery-grid a:hover img {
	transform: scale(var(--bts-hover-scale));
}

/* ---------- Trust logos ---------- */
.bts-trust-logos {
	background: #fff;
	padding-top: 120px;
}

.bts-trust-logos-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 96px;
	max-width: 1200px;
	margin: 0 auto;
}

.bts-trust-logos-row a {
	display: block;
}

.bts-trust-logos-row img {
	display: block;
	height: 92px;
	width: auto;
	max-width: 100%;
}

/* ---------- Responsive ---------- */
@media only screen and (max-width: 782px) {
	.bts-tiers-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.bts-tier-card {
		padding: 20px 16px;
	}

	p.bts-tier-amount {
		font-size: 2.5rem;
	}

	.bts-trust-logos-row {
		gap: 56px;
	}

	.bts-trust-logos-row img {
		height: 72px;
	}

	.bts-page h1 {
		font-size: 1.75rem;
		text-wrap: balance;
	}

	.bts-page h2 {
		font-size: 1.6rem;
	}

	.bts-section {
		padding: 40px 20px;
	}

	.bts-intro {
		padding: 8px 20px;
	}

	.bts-trust-logos {
		padding-top: 80px;
	}

	.bts-quote {
		padding: 40px 20px;
	}

	.bts-flex,
	.bts-flex-reverse {
		flex-direction: column;
		gap: 24px;
		margin: 30px auto;
	}

	.bts-flex-img {
		flex: none;
		width: 100%;
	}

	.bts-flex-img img {
		height: 240px;
	}

	.bts-highlight .bts-flex-img img {
		height: auto;
		aspect-ratio: 1 / 1;
		object-position: center 75%;
	}

	.bts-img-pair {
		flex-direction: column;
		gap: 16px;
		margin-top: 30px;
	}

	.bts-img-pair img {
		height: auto;
		aspect-ratio: 4 / 3;
	}

	.bts-quote blockquote {
		font-size: 1.6rem !important;
	}

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

	.bts-gallery-grid img {
		height: auto;
		aspect-ratio: 1 / 1;
	}
}

/* ---------- Lightbox ---------- */
.bts-lightbox-overlay {
	display: none;
	position: fixed;
	inset: 0;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, 0.9);
	padding: 60px;
	z-index: 100000;
}

.bts-lightbox-overlay.is-active {
	display: flex;
}

.bts-lightbox-image {
	display: block;
	max-width: 90vw;
	max-height: 90vh;
	border-radius: 4px;
}

.bts-lightbox-close,
.bts-lightbox-prev,
.bts-lightbox-next {
	position: fixed;
	background: none;
	border: none;
	color: #fff;
	line-height: 1;
	cursor: pointer;
	padding: 10px;
}

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

.bts-lightbox-prev,
.bts-lightbox-next {
	top: 50%;
	transform: translateY(-50%);
	font-size: 3rem;
}

.bts-lightbox-prev {
	left: 20px;
}

.bts-lightbox-next {
	right: 20px;
}

body.bts-lightbox-open {
	overflow: hidden;
}

@media only screen and (max-width: 600px) {
	.bts-lightbox-overlay {
		padding: 20px;
	}

	.bts-lightbox-prev,
	.bts-lightbox-next {
		font-size: 2rem;
	}
}

@media only screen and (max-width: 480px) {
	.bts-tiers-grid {
		grid-template-columns: 1fr;
	}
}
