/* HGC Popup - frontend */
.hgc-popup-overlay {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	background: rgba( 0, 0, 0, 0.65 );
	opacity: 0;
	transition: opacity 0.25s ease;
}
.hgc-popup-overlay.is-visible {
	opacity: 1;
}
.hgc-popup-box {
	position: relative;
	max-width: 90vw;
	max-height: 90vh;
	transform: scale( 0.95 );
	transition: transform 0.25s ease;
}
.hgc-popup-overlay.is-visible .hgc-popup-box {
	transform: scale( 1 );
}
.hgc-popup-img {
	display: block;
	max-width: 90vw;
	max-height: 90vh;
	width: auto;
	height: auto;
	border-radius: 6px;
	box-shadow: 0 10px 40px rgba( 0, 0, 0, 0.5 );
}
.hgc-popup-link {
	display: block;
	cursor: pointer;
}
.hgc-popup-close {
	position: absolute;
	top: -14px;
	right: -14px;
	width: 36px;
	height: 36px;
	line-height: 34px;
	text-align: center;
	font-size: 26px;
	color: #333;
	background: #fff;
	border: none;
	border-radius: 50%;
	cursor: pointer;
	box-shadow: 0 2px 8px rgba( 0, 0, 0, 0.3 );
	padding: 0;
	z-index: 2;
}
.hgc-popup-close:hover {
	background: #f0f0f0;
}
@media ( max-width: 600px ) {
	.hgc-popup-close {
		top: 6px;
		right: 6px;
	}
}
