.hw-banner[hidden],
.hw-modal[hidden] {
	display: none !important;
}

.site-header,
.site-header-sub {
	top: var(--hw-banner-offset, 0px);
}

.site-header.is-scrolled, .site-header-sub.is-scrolled {
	top: 0;
}

.hw-banner {
	position: relative;
	z-index: 1600;
	max-height: 0;
	overflow: hidden;
	background: var(--wp--preset--color--secondary);
	color: #fff;
	opacity: 0;
	transform: translateY(-12px);
	transition: max-height 250ms ease, opacity 250ms ease, transform 250ms ease;
}

.hw-banner.is-visible {
	max-height: 24rem;
	opacity: 1;
	transform: translateY(0);
}

.hw-banner__content {
	position: relative;
	width: min(100% - 3rem, 90rem);
	margin-inline: auto;
	padding: .65rem 3rem .65rem 0;
        display: flex;
    align-items: center;
    justify-content: center;
}

.hw-banner__content p{margin-bottom:0;}

.hw-banner__close,
.hw-modal__close {
	position: absolute;
	top: 0.25rem;
	right: 0;
	display: grid;
	width: 2.5rem;
	height: 2.5rem;
	place-items: center;
	border: 0;
	background: transparent;
	color: inherit;
	cursor: pointer;
	font: inherit;
	font-size: 1.75rem;
	line-height: 1;
}

.hw-banner__close:hover,
.hw-modal__close:hover {
	opacity: 0.72;
}

.hw-modal {
	position: fixed;
	inset: 0;
	z-index: 1100;
	display: grid;
	align-items: center;
	justify-items: center;
	padding: 1.25rem;
	visibility: hidden;
	opacity: 0;
	transition: opacity 250ms ease, visibility 250ms ease;
}

.hw-modal.is-open {
	visibility: visible;
	opacity: 1;
}

.hw-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgb(0 0 0 / 65%);
}

.hw-modal__dialog {
	position: relative;
	z-index: 1;
	width: min(100%, 42rem);
	max-height: min(90vh, 55rem);
	overflow: auto;
	padding: clamp(1.5rem, 5vw, 3rem);
	background: #fff;
	color: #222;
	box-shadow: 0 1.5rem 5rem rgb(0 0 0 / 25%);
	transform: translateY(1rem);
	transition: transform 250ms ease;
}

.hw-modal.is-open .hw-modal__dialog {
	transform: translateY(0);
}

.hw-modal__close {
	top: 0.5rem;
	right: 0.5rem;
}

.hw-modal__image {
	display: block;
	max-width: 100%;
	height: auto;
	margin: 0 auto 1.25rem;
}

.hw-modal__title {
	margin: 0 2rem 1rem 0;
}

.hw-modal__content > :last-child {
	margin-bottom: 0;
}

.hw-modal__link {
	display: inline-block;
	margin-top: 1.25rem;
}

body.hw-modal-open {
	overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
	.hw-banner,
	.hw-modal,
	.hw-modal__dialog {
		transition-duration: 0.01ms;
	}
}