/**
 * Cards Image + Text (inc/blocks-layout/cards-image-text.php) — a
 * Headline + optional Intro line, then a fixed 5-column grid of Image +
 * Title + Text cards. Unlike Cards X-Up (Text), this one does NOT
 * rebalance short rows — a count that doesn't divide evenly into 5 (e.g.
 * 2, or 7 → 5 + 2) just leaves blank grid cells at the end of the last
 * row, confirmed as the intended look in chat. Stacks to one card per
 * line below 900px.
 */

.cards-image-text-block {
	max-width: 75rem;
	margin: 0 auto;
	padding: 4rem 2rem;
}

.cig-header {
	margin-bottom: 2rem;
}

.cig-headline {
	margin: 0 0 0.5rem;
	font-family: var(--font-primary);
	font-weight: var(--font-weight-light);
	font-style: normal;
	font-size: 1.75rem;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: var(--room-ink);
}

.cig-intro {
	margin: 0;
	max-width: 40rem;
	font-size: 1rem;
	line-height: 1.5;
	color: #333333;
}

.cig-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2rem;
}

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

.cig-card {
	display: flex;
	flex-direction: column;
}

.cig-card-link {
	display: flex;
	flex-direction: column;
	color: inherit;
	text-decoration: none;
}

.cig-card-image {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 4;
	object-fit: cover;
	margin-bottom: 1.25rem;
}

.cig-card-title {
	margin: 0 0 1.875rem;
	font-family: var(--font-primary);
	font-weight: var(--font-weight-regular);
	font-style: normal;
	font-size: 1.25rem;
	color: var(--room-ink);
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.cig-card-link:hover {
  .cig-card-title {
	  text-decoration: underline;
  }
  .cig-card-image {
    transform: translateY(-3px);
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.25);
  }
}

.cig-card-text {
	margin: 0;
	font-size: 1rem;
  font-weight: var(--font-weight-light);
	line-height: 1.5;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}