.countries__group:last-child {
	margin-bottom: 0;
}

.countries__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	column-gap: 1.875rem;
	row-gap: 5rem;
}

.country-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	height: 100%;
}

.country-card__image-wrapper {
	width: 100%;
	height: 21.875rem;
	overflow: hidden;
	border-radius: 0.5rem;
	margin-bottom: 0.75rem;
	position: relative;
}

.country-card__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.country-card__title {
	margin-bottom: 0.5rem;
	font-weight: 600;
	color: var(--primary-16);
}

.country-card__description {
	line-height: 1.4;
	color: var(--primary-12);
	flex-grow: 1;
	margin-bottom: 0.75rem;
}

.country-card__link {
	margin-top: auto;
}

@media (max-width: 74.99875rem) {
	.countries__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 47.99875rem) {
	.countries__grid {
		grid-template-columns: 1fr;
		gap: 1.5rem;
	}
}

@media (max-width: 20em) {
	.countries__group {
		margin-bottom: 1.5rem;
	}
	.countries__label {
		margin-bottom: 1.5rem;
	}
	.country-card__title {
		font-size: 1.5rem;
	}
	.country-card__description {
		font-size: 1rem;
	}
}

@media (min-width: 20em) and (max-width: 120em) {
	.countries__group {
		margin-bottom: clamp(1.5rem, 0.8rem + 3.5vw, 5rem);
	}
	.countries__label {
		margin-bottom: clamp(1.5rem, 1.3rem + 1vw, 2.5rem);
	}
	.country-card__title {
		font-size: clamp(1.5rem, 1.4rem + 0.5vw, 2rem);
	}
	.country-card__description {
		font-size: clamp(1rem, 0.975rem + 0.125vw, 1.125rem);
	}
}

@media (min-width: 120em) {
	.countries__group {
		margin-bottom: 5rem;
	}
	.countries__label {
		margin-bottom: 2.5rem;
	}
	.country-card__title {
		font-size: 2rem;
	}
	.country-card__description {
		font-size: 1.125rem;
	}
}
