.fw-popup-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba( 0, 0, 0, 0.6 );
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	box-sizing: border-box;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.25s ease;
}

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

.fw-popup-overlay.fw-popup-visible {
	opacity: 1;
	visibility: visible;
}

.fw-popup-box {
	position: relative;
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 10px 40px rgba( 0, 0, 0, 0.25 );
	max-width: 600px;
	width: 100%;
	max-height: 85vh;
	overflow: auto;
	padding: 40px 30px 30px;
	box-sizing: border-box;
}

.fw-popup-close {
	position: absolute;
	top: 10px;
	right: 10px;
	width: 36px;
	height: 36px;
	border: none;
	background: transparent;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
	color: #333;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
}

.fw-popup-close:hover,
.fw-popup-close:focus {
	background: rgba( 0, 0, 0, 0.08 );
}

.fw-popup-content {
	word-wrap: break-word;
}

.fw-popup-content img {
	max-width: 100%;
	height: auto;
}

@media ( max-width: 600px ) {
	.fw-popup-box {
		max-height: 90vh;
		padding: 36px 20px 20px;
	}
}

@media ( prefers-reduced-motion: reduce ) {
	.fw-popup-overlay {
		transition: none;
	}
}
