/* =============================================================================
   ITS Network Core — Homepage Popup
   ============================================================================= */

#its-popup-overlay {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.50);
	z-index: 99999;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

#its-popup-overlay.its-popup-visible {
	display: flex;
}

#its-popup-box {
	position: relative;
	max-width: 80vw;
	max-height: 80vh;
	cursor: default;
	border-radius: 12px;
	overflow: hidden;
	background: #fff;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

#its-popup-box img {
	display: block;
	max-width: 100%;
	max-height: 80vh;
	width: auto;
	height: auto;
}

#its-popup-close {
	position: absolute;
	top: -14px;
	right: -14px;
	width: 28px;
	height: 28px;
	background: #fff;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	font-size: 16px;
	line-height: 1;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
	user-select: none;
	transition: background 0.15s ease;
}

#its-popup-close:hover {
	background: #f1f5f9;
}

#its-popup-link {
	display: block;
}

@media (max-width: 480px) {
	#its-popup-box {
		max-width: calc(100vw - 32px);
	}

	#its-popup-box img {
		max-height: 70vh;
	}
}
