.tile {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: var(--spacing-10);

	@media (width > 768px) {
		gap: var(--spacing-20);
	}
}

.tile__header-separator {
	font-size: var(--step--1);
	font-weight: 200;
}

.tile__link {
	color: inherit;
	text-decoration: none;
}

.tile__link--image {
	display: flex;
	flex-direction: column;
	height: 100%;
}

.tile__link--content {
	display: flex;
	align-items: baseline;
	gap: var(--spacing-10);
}

.tile__image {
	display: block;

	.image {
		height: 100%;
		width: 100%;
	}

	.tile__video {
		display: block;
		width: 100%;
		height: 100%;
		object-fit: cover;
		aspect-ratio: 1 / 1;
	}

	img {
		display: block;
		width: 100%;
		height: 100%;
		object-fit: cover;
		aspect-ratio: 1 / 1;
	}
}

.tile__content {
	display: flex;
	flex-direction: column;
	line-height: 1;

	@media (width > 768px) {
		/* to account if pipe or terms are missing. */
		min-height: 55px;
	}
}

.tile__header {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.4rem;
}

.tile__title {
	margin: 0;
	font-size: var(--step--1);
	font-weight: 700;

	&:hover,
	&:focus {
		color: var(--teal);
	}
}

.tile__terms {
	display: flex;
	flex-wrap: wrap;
	gap: 0;
	margin: 0;
	padding: 0;
	list-style: none;
}

.tile__term {
	white-space: nowrap;
}

.tile__term + .tile__term::before {
	content: ", ";
}

.tile__term-link {
	color: var(--black);
	text-decoration: none;
	font-size: var(--step--1);
	font-weight: 200;

	&:hover,
	&:focus {
		color: var(--teal);
	}
}

@media (width > 768px) {
	.tile--double {
		grid-column: span 2;
		grid-row: span 2;
	}

	.tile--double .tile__image {
		flex: 1 1 auto;
		min-height: 0;
	}

	.tile--double .tile__image img {
		height: 100%;
		aspect-ratio: auto;
	}
}

.tile__sub-text {
	font-size: var(--step--1);
	font-weight: 200;
	margin-block: var(--spacing-5);
}
