.main {
	width: 100%;
	padding: 32px 16px 64px 16px;
	display: flex;
	flex-direction: row; /* debug */
	align-items: center;
	justify-content: center;
}

.page-width {
	width: 100%;
	max-width: 768px;
	display: flex;
	flex-direction: column;
	gap: 64px;
}

.container-8, .container-16, .container-32 {
	width: 100%;
	display: flex;
	flex-direction: column;
}

.container-8 {
	gap: 8px;
}

.container-16 {
	gap: 16px;
}

.container-32 {
	gap: 32px;
}

.title {
	font-family: var(--title); 
}

.richtext {
	line-height: 1.8;
}

.text-small {
	font-size: 12px;
}

#site-header {
	position: sticky;
	z-index: 1;
	background: var(--backgroundColor);
}

.site-header {
	padding-top: 32px;
	background-color: var(--backgroundColor);
}

.site-header__inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
	max-width: 768px;
	margin: 0 auto;
}

.site-header__logo-image {
	display: block;
	width: 72px;
	height: auto;
}

.site-header__primary-list, .site-header__secondary-list {
	display: flex;
	align-items: center;
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-header__primary-link {
	font-size: 24px;
	color: var(--blue);
	text-decoration: none;
}

.site-header__secondary-link {
	font-size: 16px;
	color: var(--blue);
	text-decoration: none;
}

.site-header__primary-link.is-active, .site-header__secondary-link.is-active {
	color: var(--fontColor);
}

.external-link {
	color: var(--blue);
}

.hero {
	width: 100%;

}

.hero > img {
	width: 100%;
	height: auto;
	border-radius: 8px;
}

.banner {
	width: 100%;
	display: flex;
	flex-direction: row;
	gap: 16px;
}

.banner-content {
	min-width: 480px; /* hardcoded */
}

.banner-media {
	width: 100%;
	display: flex;
	flex-direction: column;
}

.banner-media > h3 {
	margin-bottom: 8px;
	font-size: 24px;
	text-align: center;
}

.banner-media > img {
	width: 100%;
	height: auto;
	border-top-right-radius: 8px;
	border-top-left-radius: 8px;
}

.banner-media__caption {
	width: 100%;
	display: flex;
	padding: 4px 8px;
	background-color: var(--grey);
	border-bottom-right-radius: 8px;
	border-bottom-left-radius: 8px;
}

.title-with-button {
	width: 100%;
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	align-items: center;
}

.catalogue {
	width: 100%;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
}

.card {
	width: 100%;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.card > img {
	width: 100%;
	height: auto;
	border-radius: 8px;
}

.card:hover span {
	text-decoration: underline;
	text-underline-offset: 2px;
	text-underline-thickness: 2px;
}

.card-content {
	width: 100%;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.card-content > span {
	color: var(--blue);
	font-size: 16px;
}

@media screen and (max-width: calc(768px + 32px)) {
	.main {
		padding: 32px 16px;
	}

	.page-width {
		gap: 32px;
	}

	.banner {
		flex-direction: column;
	}

	.banner-content {
		min-width: 100%; /* mitigation: line 62 */
	}

	.banner-media > h3 {
		margin-top: 8px;
	}

	.site-header__primary-link {
		font-size: 16px;
	}

	.site-header__secondary-link {
		font-size: 12px;
	}

	.catalogue {
		grid-template-columns: repeat(2, 1fr);
	}

	.title-with-button {
		flex-direction: reverse-column;
	}
}

