/* USP Block with Images */

.usp-block-with-images {
	padding: 2rem 0;
}

.usp-block-with-images__container {
	max-width: 1200px;
}

.usp-block-with-images__grid {/* gap: 20px; */}

/* 3 Column Layout */
.usp-block-with-images__grid--col-3 {

}

/* 4 Column Layout */
.usp-block-with-images__grid--col-4 {

}

/* Auto-center when fewer items */
.usp-block-with-images__grid--col-3 {
	justify-items: center;
}

.usp-block-with-images__grid--col-4 {
	justify-items: center;
}

.usp-block-with-images__item {
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1rem;
}

/* ===== Image Wrapper ===== */
.usp-block-with-images__image-wrapper {
	width: 100%;
	max-height: 250px;
	overflow: hidden;
	border-radius: 8px;
	/* background-color: #f5f5f5; */
	display: flex;
	align-items: center;
	justify-content: center;
}

/* Alignment variants */
.usp-block-with-images__image-wrapper--left {
	justify-content: flex-start;
}

.usp-block-with-images__image-wrapper--center {
	justify-content: center;
}

.usp-block-with-images__image-wrapper--right {
	justify-content: flex-end;
}

.usp-block-with-images__image {
	width: 190px;
	height: 190px;
	object-fit: contain;
	/* object-position: center; */
}

/* ===== Subheader ===== */
.usp-block-with-images__subheader {
  line-height: 1;
  margin: 0;
  max-width: 200px;
}

.usp-block-with-images__subheader--left {
	text-align: left;
	align-self: flex-start;
}

.usp-block-with-images__subheader--center {
	text-align: center;
	align-self: center;
}

.usp-block-with-images__subheader--right {
	text-align: right;
	align-self: flex-end;
}

/* ===== Responsive Design ===== */
@media (max-width: 1024px) {
	.usp-block-with-images__grid--col-3 {
		grid-template-columns: repeat(2, 1fr);
	}

	.usp-block-with-images__grid--col-4 {
		grid-template-columns: repeat(2, 1fr);
	}

	.usp-block-with-images__image-wrapper {
		max-height: 220px;
	}
}

@media (max-width: 768px) {
	.usp-block-with-images {
		padding: 1.5rem 0;
	}

	.usp-block-with-images__grid {
		gap: 1.5rem;
	}

	.usp-block-with-images__grid--col-3,
	.usp-block-with-images__grid--col-4 {
		grid-template-columns: 1fr;
	}

	.usp-block-with-images__image-wrapper {
		max-height: 280px;
	}

	.usp-block-with-images__subheader {
		font-size: 0.9rem;
		max-width: 100%;
	}
}

@media (max-width: 480px) {
	.usp-block-with-images {
		padding: 1rem 0;
	}

	.usp-block-with-images__grid {
		gap: 1rem;
	}

	.usp-block-with-images__image-wrapper {
		max-height: 200px;
	}

	.usp-block-with-images__subheader {
		font-size: 0.85rem;
	}
}
