/* nFinity Popup — front-end styles */

.nfp-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.6);
	z-index: 99998;
}

.nfp-overlay[hidden] {
	display: none;
}

body.nfp-open {
	overflow: hidden;
}

.nfp-popup {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.nfp-popup[hidden] {
	display: none;
}

.nfp-popup__box {
	position: relative;
	width: 100%;
	max-width: 800px;
	max-height: 90vh;
	overflow: auto;
	padding: 40px 32px 32px;
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
	font-family: inherit;
}

.nfp-popup__close {
	position: absolute;
	top: 8px;
	right: 12px;
	padding: 4px 10px;
	border: 0;
	background: none;
	font-size: 30px;
	line-height: 1;
	color: #003399;
	cursor: pointer;
}

.nfp-popup__close:hover {
	color: #001f5c;
}

.nfp-popup__close:focus {
	outline: 3px solid #003399;
	outline-offset: 2px;
	border-radius: 4px;
	color: #001f5c;
}

.nfp-popup__content > :first-child {
	margin-top: 0;
}

.nfp-popup__content > :last-child {
	margin-bottom: 0;
}

.nfp-popup__content img,
.nfp-popup__content video {
	max-width: 100%;
	height: auto;
}

.nfp-popup__content iframe,
.nfp-popup__content .wp-block-embed__wrapper iframe {
	width: 100%;
	aspect-ratio: 16 / 9;
	height: auto;
	border: 0;
}
