/* Minimal, theme-agnostic popup styling */
.ap-popup{
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: none;
}
.ap-popup.is-open{ 
	display: grid;
	justify-content: center;
	align-content: center
}

.ap-popup__overlay{
	position:absolute;
	inset:0;
	background: rgba(0,0,0,0.55);
}

.ap-popup__dialog{
	position: relative;
	overflow: hidden;
	background: #111;
	color: #fff;
	box-shadow: 0 20px 80px rgba(0,0,0,0.45);
	aspect-ratio: 1/1;
	display: grid;
	justify-content: center;
	align-content: center;
	padding: 4rem;
	max-height: 555px;
	width: 50vw;
	max-width: 555px;
}

.ap-popup__close{
	position: absolute;
	top: 0;
	right: 0;
	z-index: 3;
	background: none;
	color: #fff;
	border: 0;
	border-radius: 999px;
	width: 40px;
	height: 40px;
	cursor: pointer;
	font-size: 26px;
	line-height: 40px;
	text-align: center;
}

.ap-popup__bg{
	position:absolute;
	inset:0;
	background-position:center;
	background-size: cover;
}

.ap-popup__content{
	position: relative;
	z-index: 2;
	text-align:center;
	background: rgba(73, 93, 91, .9);
	width: 100%;
	height: 100%;
	margin: 0 auto;
	padding: 2rem;
	border: 4px solid white;
	aspect-ratio: 1/1;
}

.ap-popup__title > *{
	font-size: 3rem !important;
	line-height: 1.05;
	margin: 0 0 18px;
	font-family: "Chronicle Display A", "Chronicle Display B";
	font-weight: 100;
  	text-transform: uppercase;
}

.ap-popup__description,
.ap-popup__description > *{
	color: white;
	text-align: center;
	line-height: 1.5;
	margin: 0 auto 22px;
	max-width: 720px;
	font-size: 1rem;
}

.ap-popup__subdescription,
.ap-popup__subdescription > *,
.ap-popup__subdescription a {
	color: white !important;
	text-align: center;
	line-height: 1.45;
	max-width: 720px;
	opacity: 0.9;
		font-size: 1rem;
}

.ap-popup__subdescription p {
	margin: 0 0 .25rem;
}

.ap-popup__subdescription p:last-child {
	margin-bottom: 0;
}

.ap-popup__form{
	margin: 12px auto 34px;
}

/* Make the dependency form a bit more responsive */
.ap-popup__form .ap-email-signup {
	display: flex;
	flex-wrap: nowrap;
	justify-content: center;
	align-items: stretch;
	gap: 8px;
}

.ap-popup__form .ap-email-signup #apms_email {
	margin-bottom: 0;
	width: auto;
}

.ap-popup__form .ap-email-signup #apms_submit {
	padding: .5rem 1rem;
}

/* Prevent body scroll when open */
body.ap-popup-open{
	overflow: hidden;
}
