/* 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: 3rem;
	width: 40vw;
	max-width: 800px;
}

.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: 3rem;
	border: 4px solid white;
	aspect-ratio: 1/1;
	display: grid;
	justify-content: center;
	align-content: center;
	justify-items: center;
	align-items: center;
	gap: 2.5rem;
}

.ap-popup__title > *{
	font-size: 2rem !important;
	line-height: 1.05;
	margin: 0 auto;
	font-family: "Chronicle Display A", "Chronicle Display B";
	font-weight: 100;
  	text-transform: uppercase;
	width: 60%;
	text-align: center;
}

.ap-popup__description,
.ap-popup__description > *{
	color: white;
	text-align: center;
	line-height: 1.5;
	font-size: 14px;
	margin-bottom: 0;
}

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

.ap-popup__subdescription a {
	text-decoration: underline;
}

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

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

.ap-popup__form{
}

/* 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;
	margin-bottom: 0;
}

.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;
}

@media only screen and (max-width: 580px) {
	.ap-popup__dialog {
		width: 95vw;
		aspect-ratio: unset !important;
	}
	
	.ap-popup__content {
		padding: 2rem;
		aspect-ratio: unset !important;
	}
	
	.ap-popup__title > * {
		width: 100%;
	}
	
	.ap-popup__form .ap-email-signup {
		flex-direction: column;
	}
	
	.ap-popup__form .ap-email-signup #apms_submit {
		width: 100%;
	}
}