/*=========================
	IMAGE COPY BLOCK
=========================*/

/* About Us (Arabic) — RTL. Right-align all block text and put list bullets on
   the right, matching live. Scoped to the Arabic page only (page-id 6270); the
   text column flips to rtl while the block's image/content column order is
   untouched. */
body.page-id-6270 .block-image-copy .content {
	direction: rtl;
	text-align: right;
}
body.page-id-6270 .block-image-copy .content .title,
body.page-id-6270 .block-image-copy .content .top-title,
body.page-id-6270 .block-image-copy .content .copy,
body.page-id-6270 .block-image-copy .content .copy * {
	text-align: right;
}
body.page-id-6270 .block-image-copy .content .copy ul,
body.page-id-6270 .block-image-copy .content .copy ol {
	direction: rtl;
	padding-left: 0;
	padding-right: 0;
}
/* Custom bullet is a ::before pinned to left:0 — flip it to the right for RTL. */
body.page-id-6270 .block-image-copy .content .copy li {
	padding-left: 0;
	padding-right: 25px;
}
body.page-id-6270 .block-image-copy .content .copy li::before {
	left: auto;
	right: 0;
}
/* Keep the "Back to English" button in its normal LTR styling (don't inverse the
   arrow/sweep) and align it to the LEFT of the content column. In the rtl flex
   column, align-self:flex-end resolves to the left edge. */
body.page-id-6270 .block-image-copy .content a.c-btn {
	direction: ltr;
	align-self: flex-end;
	text-align: left;
}

.block-image-copy .container {
	display: grid;
	grid-template-columns: 1fr 1fr;
}
/* Video-embed blocks: no media column — content (title + video) spans full width. */
.block-image-copy .container:has(.video-embed) {
	grid-template-columns: 1fr;
}
.block-image-copy .container:has(.video-embed) .image {
	display: none;
}
.block-image-copy .container:has(.video-embed) .content {
	grid-column: 1;
}
/* No image/graphic selected: the .image column isn't rendered at all — collapse
   to one column instead of leaving a blank grid track + aspect-ratio box. */
.block-image-copy .container:not(:has(.image)) {
	grid-template-columns: 1fr;
}
.block-image-copy .container:not(:has(.image)) .content {
	grid-column: 1;
	padding-right: 0;
	padding-left: 0;
}
.block-image-copy .video-embed {
	margin-top: var(--space-4);
	border-radius: 8px;
	overflow: hidden;
}
.block-image-copy .container.container.switchSides {
	grid-template-columns: 1fr 1fr;
}
.block-image-copy .container.switchSides .image {
	grid-column: 1;
}
.block-image-copy .container.switchSides .content {
	grid-column: 2;
	position: relative;
}
.block-image-copy .background-image {
	z-index: 0;
}
.block-image-copy .image {
	grid-column: 2;
	grid-row: 1;
	position: relative;
	width: 100%;
	aspect-ratio: 1 / 1;
	height: auto;
	overflow: hidden;
}
.block-image-copy .image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	display: block;
}
.block-image-copy .image.image-align-top {
	align-self: start;
}
.block-image-copy .image.image-align-top img {
	object-position: top;
}
.block-image-copy .image.image-align-center {
	align-self: center;
}
.block-image-copy .image.has-graphic {
	aspect-ratio: unset;
	height: 100%;
}
.block-image-copy .graphic {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	/* graphic in the RIGHT column → align to the right (outward) */
	justify-content: flex-end;
}
/* switched layout: graphic sits in the LEFT column → align to the left (outward) */
.block-image-copy .container.switchSides .graphic {
	justify-content: flex-start;
}
.block-image-copy .graphic svg {
	/* size by height so the svg takes its natural width — this leaves horizontal
	   room for the .graphic flex alignment (flex-end / flex-start) to actually
	   push the graphic to the outer edge of its column */
	width: auto;
	max-width: 100%;
	height: 100%;
}
/* Per-graphic max-heights — image-copy specific overrides */
.block-image-copy .graphic--chevron-right-double {
	max-height: 270px;
}
.block-image-copy .graphic--triangle-right-double-horizontal {
	max-height: 280px;
}
.block-image-copy .graphic--2-and-a-half-circles {
	max-height: 220px;
}
.block-image-copy .graphic--stairs-down-left {
	max-height: 560px;
}
.block-image-copy .graphic--triangle {
	max-height: 400px;
}
.block-image-copy .content {
	grid-column: 1;
	grid-row: 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding-right: var(--space-7);
	height: 100%;
	position: relative;
}
.block-image-copy .container.content-align-top .content {
	justify-content: flex-start;
}
/* Graphic selected: no padding between graphic and content */
.block-image-copy .container:has(.has-graphic) .content {
	padding-right: 0;
}
.block-image-copy .container.switchSides:has(.has-graphic) .content {
	padding-left: 0;
}
/* Switched layout: image on left, content on right → flip to left padding */
.block-image-copy .container.switchSides .content {
	padding-right: 0;
	padding-left: var(--space-6);
}
/* Testimonial + switched: wider left padding */
.block-image-copy .container.switchSides.is-testimonial .content {
	padding-left: var(--space-8);
}
/* Testimonial layout: center the image vertically + remove fixed min-height */
.block-image-copy .container.is-testimonial .image {
	align-self: center;
}
.block-image-copy .container.is-testimonial {
	min-height: 0;
}
/* Testimonial layout: text column is WIDER than the image/graphic column, and the
   graphic sits CENTERED in its (narrower) column. Double .container for specificity
   so these win over the base 1fr 1fr switched grid. */
/* Only when the testimonial uses an SVG GRAPHIC do we go 2:1 (graphic narrower).
   Image/photo testimonials keep the default 1fr 1fr (like the homepage). */
.block-image-copy .container.container.is-testimonial:has(.has-graphic) {
	grid-template-columns: 2fr 1fr; /* content (col 1, left) wide · graphic (col 2, right) narrow */
}
.block-image-copy .container.container.is-testimonial.switchSides:has(.has-graphic) {
	grid-template-columns: 1fr 2fr; /* graphic (col 1, left) narrow · content (col 2, right) wide */
}
.block-image-copy .container.is-testimonial .graphic {
	justify-content: center;
}
/* Narrow testimonial: the graphic aligns OUTWARD by column (right col → right,
   left col → left) rather than centred. */
.block-image-copy .container.is-testimonial.is-narrow .graphic {
	justify-content: flex-end;
}
.block-image-copy .container.is-testimonial.is-narrow.switchSides .graphic {
	justify-content: flex-start;
}
/* Narrow testimonial: cap the box at 1200px (matches live) and centre it. */
.block-image-copy .container.container.is-testimonial.is-narrow {
	max-width: 1200px;
	margin-left: auto;
	margin-right: auto;
}
/* Below the 1200px cap the box would otherwise run edge-to-edge (we zeroed its
   padding). Give it the page gutter as MARGIN so the coloured box never touches
   the page corners — matching live. */
@media only screen and (max-width: 1199.98px) {
	.block-image-copy .container.container.is-testimonial.is-narrow {
		width: auto;
		margin-left: var(--container-px);
		margin-right: var(--container-px);
	}
}
/* Narrow testimonial content: reduce the (large) inner-side padding and add
   breathing room on the outer edge so the text isn't flush to the box edge. */
.block-image-copy .container.is-testimonial.is-narrow.switchSides .content {
	padding-left: var(--space-6);
	padding-right: var(--space-8);
}
/* Narrow testimonial: the background colour fills ONLY the container (o-container
   width) and nothing outside it — the full-bleed section colour is removed and
   re-applied to the container box. The container keeps its normal size. */
.block-image-copy:has(.container.is-testimonial.is-narrow) {
	background-color: transparent !important;
}
.block-image-copy.bg-color-light-blue  .container.is-testimonial.is-narrow { background-color: #a4dbde; }
.block-image-copy.bg-color-grey        .container.is-testimonial.is-narrow { background-color: #e2dedd; }
.block-image-copy.bg-color-light-grey  .container.is-testimonial.is-narrow { background-color: #f1f1f3; }
.block-image-copy.bg-color-peach       .container.is-testimonial.is-narrow { background-color: #f8a087; }
.block-image-copy.bg-color-pink        .container.is-testimonial.is-narrow { background-color: #fcbbe0; }
.block-image-copy.bg-color-p           .container.is-testimonial.is-narrow { background-color: var(--color-p); }
.block-image-copy.bg-color-s           .container.is-testimonial.is-narrow { background-color: var(--color-s); }
.block-image-copy.bg-color-t           .container.is-testimonial.is-narrow { background-color: var(--color-t); }
.block-image-copy.bg-color-a           .container.is-testimonial.is-narrow { background-color: var(--color-a); }
/* Below md (≤ 991.98px): drop the switched-layout content's left padding so it sits
   flush against the container edge */
@media (max-width: 991.98px) {
	.block-image-copy .container.switchSides .content {
		padding-left: 0;
	}
}
/* Tablet (992-1199.98px): adjust content-to-image gap */
@media (min-width: 992px) and (max-width: 1199.98px) {
	.block-image-copy .content {
		padding-right: var(--space-8);
	}
	.block-image-copy .container.switchSides .content {
		padding-right: 0;
		padding-left: var(--space-8);
	}
}

.block-image-copy .content .top-title {
	font-size: 20px;
}
.block-image-copy .content .title {
	margin-bottom: var(--space-4);
}

.block-image-copy .content .copy {
	margin-bottom: var(--space-4);
}
.block-image-copy .content .copy p {
	margin-bottom: var(--space-4);
}
.block-image-copy .content .copy p:last-child {
	margin-bottom: 0;
}
/* Pull-quote: a <blockquote> inside .copy renders as a large bold quote with
   decorative curly quote marks, followed by a small bold caption paragraph.
   Mirrors the live "For more than 65 years, GDV…" block on Our Patron. */
.block-image-copy .content .copy blockquote {
	margin: 0 0 var(--space-4);
	padding: 0;
	quotes: "\201C" "\201D" "\2018" "\2019";
}
.block-image-copy .content .copy blockquote p {
	font-size: 30px;
	line-height: 1.25;
	font-weight: 700;
	margin: 0;
}
.block-image-copy .content .copy blockquote p:first-child::before {
	content: open-quote;
}
.block-image-copy .content .copy blockquote p:last-child::after {
	content: close-quote;
}
/* Caption directly after the quote (attribution) — small + bold */
.block-image-copy .content .copy blockquote + figcaption,
.block-image-copy .content .copy blockquote + p {
	font-size: 16px;
	line-height: 1.4;
	font-weight: 700;
	margin-top: var(--space-4);
	margin-bottom: 0;
}

.block-image-copy .content .copy a {
	color: var(--color-n-black, #282829);
	font-weight: 600;
	text-decoration: underline;
}
.block-image-copy .content .copy a:hover,
.block-image-copy .content .copy a:focus {
	color: var(--color-n-black, #282829);
	text-decoration: underline;
}
/* White-text sections (e.g. charcoal bg): links follow the white font colour. */
.block-image-copy.font-color-n-white .content .copy a,
.block-image-copy.font-color-n-white .content .copy a:hover,
.block-image-copy.font-color-n-white .content .copy a:focus {
	color: var(--color-n-white, #fff);
}

.block-image-copy .content .c-btn {
	align-self: flex-start;
}

/* ---------- Testimonial layout ---------- */
/* Small accent line under the top title in testimonial mode */
.block-image-copy .container.is-testimonial .content .top-title {
	margin-bottom: var(--space-3);
	padding-bottom: var(--space-2);
	width: 100%;
}

/* Blockquote with decorative curly opening and closing quotes */
.block-image-copy .testimonial-figure {
	margin: 0;
}
.block-image-copy .testimonial-quote {
	margin: 0 0 var(--space-4);
	padding: 0;
	position: relative;
	quotes: "\201C" "\201D" "\2018" "\2019";
}
.block-image-copy .testimonial-quote:last-child {
	margin-bottom: 0;
}
.block-image-copy .testimonial-quote::before {
	content: none;
}
.block-image-copy .testimonial-quote::after {
	content: none;
}
.block-image-copy .testimonial-quote p {
	display: inline;
}
.block-image-copy .testimonial-quote p:not(:last-child)::after {
	content: "";
	display: block;
	margin-bottom: var(--space-3);
}
/* Author block: circular avatar + name & company stacked */
.block-image-copy .testimonial-author {
	display: flex;
	align-items: center;
	gap: var(--space-2);
	margin-top: var(--space-3);
}
.block-image-copy .testimonial-author__avatar {
	width: 50px;
	height: 50px;
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;
	margin-right: 20px;
}
.block-image-copy .testimonial-author__info {
	display: flex;
	flex-direction: column;
	justify-content: center;
	line-height: 1.25;
}
.block-image-copy .testimonial-author__name {
	font-weight: 400;
	font-style: normal;
	font-size: 2rem;
}
/* Testimonial with a button: space the button away from the quote/author */
.block-image-copy .container.is-testimonial .content .testimonial-figure + .c-btn {
	margin-top: var(--space-5);
}
.block-image-copy .testimonial-author__company {
	font-size: 2rem;
	color: var(--color-n-black, #282829);
}

.block-image-copy .content .c-btn--primary {
	--c-btn-bg-hover: transparent;
}

.block-image-copy .link-standard:hover,
.block-image-copy .link-standard:focus,
.block-image-copy a:not([class]):hover,
.block-image-copy a:not([class]):focus {
	background: none !important;
	box-shadow: none !important;
}

@media only screen and (max-width: 991.98px) {
	.block-image-copy .container,
	.block-image-copy .container.container.switchSides {
		display: grid;
		grid-template-columns: 1fr;
		gap: 60px;
	}
	.block-image-copy .image {
		grid-column: 1 !important;
		grid-row: 2 !important;
		/* Default (not switched): image breaks out to the viewport's RIGHT edge,
       with 15vw of blank space on the LEFT. */
		/* margin-left: 15vw;
    margin-right: calc(var(--container-px) * -1); */
		margin-left: 0;
		margin-right: 0;
		width: auto;
		max-width: none;
		aspect-ratio: 1 / 1;
		height: auto;
		min-height: 0;
	}
	/* Switched: image breaks out to the viewport's LEFT edge, 15vw on the RIGHT */
	.block-image-copy .container.switchSides .image {
		/* margin-left: calc(var(--container-px) * -1);
		margin-right: 15vw; */
		margin-left: 0;
		margin-right: 0;
	}
	/* Testimonial layout: image stays INSIDE the container, fixed 600px square */
	.block-image-copy .container.is-testimonial .image,
	.block-image-copy .container.is-testimonial.switchSides .image {
		margin-left: 0;
		margin-right: 0;
		max-width: 600px;
		width: 100%;
	}
	.block-image-copy .content {
		grid-column: 1 !important;
		grid-row: 1 !important;
		padding: 0 30px 0 15px;
	}
	.block-image-copy .content .copy {
		margin-bottom: var(--space-5);
	}
	.block-image-copy .content .title {
		font-size: 24px !important;
	}
	.block-image-copy .graphic {
		display: none;
	}
	.block-image-copy .container.switchSides.is-testimonial .content {
		padding-left: 0 !important;
	}
}

@media only screen and (max-width: 767.98px) {
}

/* ===== Narrow testimonial (with graphic) — responsive, copied from live =====
   Live keeps the blockquote as a ROW (icon ~33% + content) down to the small
   breakpoint, only dropping the icon on phones. Override the generic image-copy
   stacking (which collapses to 1 col + hides the graphic at ≤991) for THIS rule
   only: narrow + testimonial + graphic. */
@media only screen and (max-width: 991.98px) {
	/* all narrow testimonials: drop the generic 60px stack gap + strip the pt-/pb-
	   top/bottom padding (the content's 30px handles the spacing) */
	.block-image-copy .container.container.is-testimonial.is-narrow {
		gap: 0;
		padding-top: 0 !important;
		padding-bottom: 0 !important;
	}
	/* GRAPHIC narrow testimonials: keep the 2-col row; image ones fall back to
	   the generic stacking (and default 1fr 1fr on desktop) */
	.block-image-copy .container.container.is-testimonial.is-narrow:has(.has-graphic) {
		grid-template-columns: 2fr 1fr; /* content wide · graphic narrow */
	}
	.block-image-copy .container.container.is-testimonial.is-narrow.switchSides:has(.has-graphic) {
		grid-template-columns: 1fr 2fr; /* graphic narrow · content wide */
	}
	/* graphic stays visible, in its column, top row */
	.block-image-copy .container.is-testimonial.is-narrow .graphic {
		display: flex;
	}
	.block-image-copy .container.is-testimonial.is-narrow .image {
		grid-row: 1 !important;
		grid-column: 2 !important;
	}
	.block-image-copy .container.is-testimonial.is-narrow.switchSides .image {
		grid-column: 1 !important;
	}
	/* content back in its column, top row, with 30px padding all around */
	.block-image-copy .container.is-testimonial.is-narrow .content {
		grid-row: 1 !important;
		grid-column: 1 !important;
		padding: 30px !important;
	}
	.block-image-copy .container.is-testimonial.is-narrow.switchSides .content {
		grid-column: 2 !important;
		padding: 30px !important;
	}
}
/* Phones: drop the graphic and let the content span full width (like live < sm). */
@media only screen and (max-width: 575.98px) {
	.block-image-copy .container.container.is-testimonial.is-narrow,
	.block-image-copy .container.container.is-testimonial.is-narrow.switchSides {
		grid-template-columns: 1fr;
	}
	.block-image-copy .container.is-testimonial.is-narrow .graphic,
	.block-image-copy .container.is-testimonial.is-narrow .image {
		display: none !important;
	}
	.block-image-copy .container.is-testimonial.is-narrow .content,
	.block-image-copy .container.is-testimonial.is-narrow.switchSides .content {
		grid-column: 1 !important;
		padding: 30px !important;
	}
}
