.he-page-hero--media {
	position: relative;
	min-height: 22rem;
	overflow: hidden;
	isolation: isolate;
}

.he-page-hero__media,
.he-page-hero__overlay {
	position: absolute;
	inset: 0;
	z-index: 0;
}

.he-page-hero__overlay {
	background: linear-gradient(180deg, rgba(17, 24, 39, 0.45) 0%, rgba(17, 24, 39, 0.55) 100%);
}

.he-page-hero__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.he-page-hero--media .he-page-hero__container {
	position: relative;
	z-index: 1;
}

.he-page-story {
	display: grid;
	gap: var(--he-space-24);
}

.he-page-story .he-page-section__text {
	margin: 0;
}

.he-page-section__toolbar,
.he-gallery-grid--plain,
.he-contact-stack,
.he-custom-form__grid {
	display: grid;
	gap: var(--he-space-24);
}

.he-page-section__toolbar {
	margin-bottom: var(--he-space-32);
}

.he-page-section__status,
.he-page-filter__utility {
	color: var(--he-color-text-secondary);
	font-size: var(--he-type-body-size);
	line-height: var(--he-type-body-line-height);
}

.he-page-filter__utility {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: var(--he-space-10) var(--he-space-16);
	border: 1px solid var(--he-color-border-light);
	border-radius: var(--he-space-6);
	background-color: var(--he-color-background);
	font-size: var(--he-type-body-small-size);
	font-weight: 500;
}

.he-catalog-card__quick-action,
.he-catalog-card__details {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: var(--he-space-6);
	font-size: var(--he-type-body-small-size);
	font-weight: 500;
}

.he-catalog-card__quick-action {
	position: absolute;
	top: var(--he-space-16);
	left: var(--he-space-16);
	padding: var(--he-space-8) var(--he-space-12);
	background-color: rgba(17, 24, 39, 0.78);
	color: var(--he-color-background);
}

.he-catalog-card__details {
	padding: var(--he-space-8) var(--he-space-12);
	border: 1px solid rgba(180, 83, 9, 0.4);
	color: var(--he-color-amber-dark);
}

.he-gallery-grid--plain .he-gallery-card {
	box-shadow: none;
}

.he-gallery-grid--plain .he-gallery-card__image {
	height: var(--he-media-card-height);
}

.he-gallery-grid--plain .he-gallery-card__caption {
	display: none;
}

.he-contact-layout {
	align-items: start;
}

.he-contact-stack {
	grid-template-columns: repeat(1, minmax(0, 1fr));
}

.he-contact-card {
	padding: var(--he-space-24);
	border: 1px solid var(--he-color-border-light);
	border-radius: var(--he-radius-base);
	background-color: var(--he-color-background);
	box-shadow: 0 16px 32px rgba(17, 24, 39, 0.06);
}

.he-contact-card__title,
.he-custom-form__title {
	margin-bottom: var(--he-space-12);
	color: var(--he-color-heading);
	font-family: var(--he-font-heading);
	font-size: var(--he-type-card-title-size);
	font-weight: 500;
	line-height: var(--he-type-card-title-line-height);
}

.he-contact-card__text,
.he-contact-card__link,
.he-contact-card__subtext {
	display: block;
	color: var(--he-color-text-secondary);
	font-size: var(--he-type-body-size);
	line-height: var(--he-type-body-line-height);
}

.he-contact-card__subtext {
	margin-top: var(--he-space-8);
	color: var(--he-color-text-muted);
	font-size: var(--he-type-body-small-size);
	line-height: var(--he-type-body-small-line-height);
}

.he-contact-card__meta {
	display: flex;
	flex-wrap: wrap;
	gap: var(--he-space-12);
	margin-top: var(--he-space-12);
}

.he-custom-form {
	display: grid;
	gap: var(--he-space-20);
}

.he-custom-form__grid--double {
	grid-template-columns: repeat(1, minmax(0, 1fr));
}

.he-custom-form__field {
	display: grid;
	gap: var(--he-space-8);
}

.he-custom-form__field label {
	color: var(--he-color-heading);
	font-size: var(--he-type-body-small-size);
	font-weight: 500;
	line-height: 1;
}

.he-custom-form__field input,
.he-custom-form__field textarea {
	width: 100%;
	padding: var(--he-space-12) var(--he-space-16);
	border: 1px solid var(--he-color-border-light);
	border-radius: var(--he-space-6);
	background-color: var(--he-color-background);
	color: var(--he-color-text-dark);
	font-family: var(--he-font-body);
	font-size: var(--he-type-body-small-size);
	line-height: var(--he-type-body-small-line-height);
}

.he-custom-form__field textarea {
	min-height: 10rem;
	resize: vertical;
}

.he-custom-form__actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--he-space-12);
}

.he-custom-form__submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: var(--he-space-12) var(--he-space-20);
	border: 1px solid var(--he-color-amber);
	border-radius: var(--he-space-6);
	background-color: var(--he-color-amber);
	color: var(--he-color-background);
	font-size: var(--he-type-body-size);
	font-weight: 500;
	line-height: var(--he-type-body-line-height);
}

.he-custom-form__submit--ghost {
	background-color: transparent;
	color: var(--he-color-amber);
}

.he-custom-form__note {
	color: var(--he-color-text-muted);
	font-size: var(--he-type-body-small-size);
	line-height: var(--he-type-body-small-line-height);
}

.he-form-notice {
	margin-bottom: var(--he-space-20);
	padding: var(--he-space-16) var(--he-space-18);
	border: 1px solid rgba(180, 83, 9, 0.16);
	border-radius: var(--he-radius-base);
	background-color: #fffaf2;
	color: var(--he-color-text-dark);
}

.he-form-notice--success {
	border-color: rgba(180, 83, 9, 0.22);
	background-color: #fff7e9;
}

.he-form-notice--error {
	border-color: rgba(185, 28, 28, 0.24);
	background-color: #fff1f2;
}

.he-process-card--program .he-process-card__index {
	margin-bottom: var(--he-space-16);
}

.he-scrim-panel {
	position: relative;
	overflow: hidden;
	display: grid;
	align-content: end;
	min-height: 18rem;
	padding: var(--he-space-32);
	border-radius: calc(var(--he-radius-base) * 1.5);
	background:
		linear-gradient(180deg, rgba(12, 15, 18, 0.12) 0%, rgba(12, 15, 18, 0.78) 100%),
		var(--he-scrim-image) center / cover no-repeat,
		var(--he-color-surface-soft);
}

.he-scrim-panel .he-page-section__title,
.he-scrim-panel .he-page-section__text {
	position: relative;
	z-index: 1;
	color: #fff;
}

.he-scrim-panel .he-page-section__text {
	max-width: 32rem;
}

.he-location-panel--map {
	min-height: 18rem;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	background: linear-gradient(180deg, rgba(249, 250, 251, 1) 0%, rgba(255, 255, 255, 1) 100%);
}

@media (min-width: 768px) {
	.he-page-section__toolbar {
		grid-template-columns: 1fr auto;
		align-items: center;
	}

	.he-contact-stack,
	.he-custom-form__grid--double {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1024px) {
	.he-page-filter__container {
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
	}

	.he-page-filter__controls {
		flex: 1;
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
	}

	.he-page-filter__copy {
		flex: 0 0 18rem;
	}

	.he-page-filter__search {
		max-width: 22rem;
	}

	.he-gallery-grid--plain {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.he-contact-stack {
		grid-template-columns: repeat(1, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	.he-page-hero--media {
		min-height: 20rem;
	}

	.he-gallery-grid--plain .he-gallery-card__image {
		height: var(--he-media-card-height);
	}
}
