/**
 * Image Grid with CTA (inc/blocks-layout/image-grid-with-cta.php) — a
 * fixed-position Images grid (one large image + a small 2×2 grid + an
 * optional full-width bottom image) plus an optional heading + button CTA
 * row underneath.
 *
 * .igc-grid is 75rem wide but has NO side padding — unlike every other
 * 75rem block in this build — so it runs edge-to-edge with the viewport
 * below 1200px, per chat. .igc-cta-row is also 75rem wide, and only picks
 * up 2rem of side padding below 1280px (see the media query at the
 * bottom) so its heading/button don't sit flush against the screen edge.
 *
 * The grid gap scales fluidly rather than jumping at one breakpoint:
 * clamp(10px, 2.5vw, 30px) — 2.5vw equals 30px exactly at a 1200px
 * viewport and 10px exactly at 400px, so it's a smooth linear scale
 * between those two, clamped flat outside that range. Per chat: "I'd
 * like the gap to slowly get smaller... as the width shrinks."
 *
 * Mobile (below 900px) uses a 2-column grid — image 1 spans both columns
 * on its own row, images 2–5 fill two 2-column rows below it, image 6 (if
 * present) spans both columns on the last row. Desktop (900px+) uses 4
 * columns — image 1 spans the left 2 columns across both grid rows,
 * images 2–5 fill the remaining 2×2 on the right, image 6 spans all 4
 * columns on its own row.
 *
 * Image 1 and images 2–5 all use aspect-ratio 1/1 — with 4 equal columns,
 * that makes image 1's height (2 columns + 1 gap) come out exactly equal
 * to the 2×2 grid's total height (2 rows + 1 gap), so no manual row-height
 * math is needed. Image 6 uses a wider 2/1 ratio — not specified in chat,
 * easy to change.
 */

.image-grid-with-cta-block {
	width: 100%;
  margin: 5rem 0;
}

.igc-grid {
	max-width: 75rem;
	margin: 0 auto;
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: clamp(10px, 2.5vw, 30px);
}

.igc-img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.igc-item-1 {
	grid-column: 1 / 3;
	grid-row: 1;
	aspect-ratio: 1 / 1;
}

.igc-item-2 {
	grid-column: 1;
	grid-row: 2;
	aspect-ratio: 1 / 1;
}

.igc-item-3 {
	grid-column: 2;
	grid-row: 2;
	aspect-ratio: 1 / 1;
}

.igc-item-4 {
	grid-column: 1;
	grid-row: 3;
	aspect-ratio: 1 / 1;
}

.igc-item-5 {
	grid-column: 2;
	grid-row: 3;
	aspect-ratio: 1 / 1;
}

.igc-item-6 {
	grid-column: 1 / 3;
	grid-row: 4;
	aspect-ratio: 2 / 1;
}

@media (min-width: 900px) {
	.igc-grid {
		grid-template-columns: repeat(4, 1fr);
	}

	.igc-item-1 {
		grid-column: 1 / 3;
		grid-row: 1 / 3;
	}

	.igc-item-2 {
		grid-column: 3;
		grid-row: 1;
	}

	.igc-item-3 {
		grid-column: 4;
		grid-row: 1;
	}

	.igc-item-4 {
		grid-column: 3;
		grid-row: 2;
	}

	.igc-item-5 {
		grid-column: 4;
		grid-row: 2;
	}

	.igc-item-6 {
		grid-column: 1 / 5;
		grid-row: 3;
	}
}

.igc-cta-row {
	max-width: 75rem;
	margin: 2rem auto 0;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 1.5rem;
}

.igc-cta-heading {
	margin: 0;
	font-family: var(--font-primary);
	font-weight: var(--font-weight-regular);
	font-style: normal;
	font-size: 1.6255rem;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: var(--room-ink);
}

.igc-cta-button {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	padding: 0.75rem 1.5rem;
	background: var(--goldHex);
	color: #000000;
	font-family: var(--font-primary);
	font-weight: var(--font-weight-regular);
	font-style: normal;
	font-size: 0.95rem;
	text-decoration: none;
}

.igc-cta-button:hover,
.igc-cta-button:focus-visible {
	background: #000000;
	color: #ffffff;
  border-radius: 10px;
}

@media (max-width: 1279.98px) {
	.igc-cta-row {
		padding-left: 2rem;
		padding-right: 2rem;
	}
}