.hc-source-carousel {
	min-width: 0;
}

.hc-source-carousel img {
	max-height: 310px;
	object-fit: contain;
}

.hc-sidebar-title--en a {
	font-size: 18px;
	letter-spacing: 0;
}

.hc-sidebar-tagline--en {
	font-size: 11px !important;
	max-width: 220px;
	margin-inline: auto;
	line-height: 1.35;
	text-align: center;
	white-space: normal;
}

.hc-responsive-embed {
	width: 100%;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: #f5f5f5;
}

.hc-responsive-embed iframe {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
}

/* Keep the paired homepage Query Loops behaving as one equal-height grid. */
.hc-home-event-query-grid {
	align-items: stretch !important;
}

.hc-home-event-query-grid > .wp-block-column {
	display: flex;
}

.hc-home-event-query-grid .wp-block-query,
.hc-home-event-query-grid .wp-block-post-template,
.hc-home-event-query-grid .wp-block-post,
.hc-home-event-card {
	height: 100%;
	box-sizing: border-box;
}

.hc-home-event-query-grid .wp-block-query {
	width: 100%;
}

@media (max-width: 600px) {
	.hc-home-event-query-grid .wp-block-query,
	.hc-home-event-query-grid .wp-block-post-template,
	.hc-home-event-query-grid .wp-block-post,
	.hc-home-event-card {
		height: auto;
	}

	.hc-home-event-card {
		min-height: 0 !important;
	}
}

@media (max-width: 781px) {
	.hc-source-carousel img {
		max-height: none;
	}
}

/* Heritage Connect — Contact Form 7 controls and behavior. */
.hc-contact-form .wpcf7-form {
	display: grid;
	gap: 20px;
}

.hc-contact-form .wpcf7-form > p {
	margin: 0;
}

.hc-contact-form label {
	display: block;
	color: var(--wp--preset--color--original-ink, #282f3d);
	font-weight: 700;
	line-height: 1.5;
}

.hc-contact-form .wpcf7-form-control-wrap {
	display: block;
	margin-top: 8px;
}

.hc-contact-form input[type="text"],
.hc-contact-form input[type="email"],
.hc-contact-form input[type="tel"],
.hc-contact-form input[type="url"],
.hc-contact-form input[type="number"],
.hc-contact-form input[type="date"],
.hc-contact-form select,
.hc-contact-form textarea {
	width: 100%;
	min-height: 48px;
	padding: 11px 14px;
	border: 1px solid #b9c9cc;
	border-radius: 6px;
	background: #ffffff;
	color: var(--wp--preset--color--original-text, #3b455a);
	font: inherit;
	line-height: 1.5;
	transition:
		border-color 160ms ease,
		background-color 160ms ease;
}

.hc-contact-form textarea {
	min-height: 48px;
	resize: vertical;
}

.hc-contact-form input::placeholder,
.hc-contact-form textarea::placeholder {
	color: #7c858f;
	opacity: 1;
}

.hc-contact-form input:focus,
.hc-contact-form select:focus,
.hc-contact-form textarea:focus {
	border-color: var(--wp--preset--color--original-accent, #0e8398);
	outline: 3px solid rgb(14 131 152 / 18%);
	outline-offset: 1px;
}

.hc-contact-form input[type="checkbox"],
.hc-contact-form input[type="radio"] {
	width: 18px;
	height: 18px;
	margin: 0 7px 0 0;
	accent-color: var(--wp--preset--color--original-accent, #0e8398);
	vertical-align: -3px;
}

.hc-contact-form .wpcf7-list-item {
	margin: 0 16px 8px 0;
}

.hc-contact-form .wpcf7-submit {
	min-height: 48px;
	padding: 12px 26px;
	border: 0;
	border-radius: 4px;
	background: var(--wp--preset--color--original-accent, #0e8398);
	color: #ffffff;
	font: inherit;
	font-weight: 700;
	line-height: 1.4;
	cursor: pointer;
	transition:
		background-color 160ms ease,
		transform 160ms ease;
}

.hc-contact-form .wpcf7-submit:hover {
	background: #0b6b7c;
	transform: translateY(-1px);
}

.hc-contact-form .wpcf7-submit:focus-visible {
	outline: 3px solid rgb(14 131 152 / 30%);
	outline-offset: 3px;
}

.hc-contact-form .wpcf7-submit:disabled {
	opacity: 0.6;
	cursor: wait;
	transform: none;
}

.hc-contact-form .wpcf7-not-valid {
	border-color: #b42318;
	background: #fff8f7;
}

.hc-contact-form .wpcf7-not-valid-tip {
	margin-top: 6px;
	color: #b42318;
	font-size: 14px;
	font-weight: 600;
}

.hc-contact-form .wpcf7-response-output {
	margin: 0 !important;
	padding: 12px 16px !important;
	border: 1px solid #b9c9cc !important;
	border-radius: 6px;
	background: #f5f5f5;
}

.hc-contact-form form.sent .wpcf7-response-output {
	border-color: #3a7d44 !important;
	background: #f2fbf3;
	color: #235c2b;
}

.hc-contact-form form.invalid .wpcf7-response-output,
.hc-contact-form form.unaccepted .wpcf7-response-output,
.hc-contact-form form.failed .wpcf7-response-output,
.hc-contact-form form.aborted .wpcf7-response-output {
	border-color: #b42318 !important;
	background: #fff8f7;
	color: #8f1f2c;
}

@media (max-width: 600px) {
	.hc-contact-form .wpcf7-submit {
		width: 100%;
	}
}
