/* Popup Layer — 공지 팝업 (권장 450×300) */

.hec-front-popup-layer {
	position: fixed;
	top: 120px;
	left: 100px;
	z-index: 99999;
	width: 450px;
	max-width: calc(100vw - 48px);
	box-sizing: border-box;
	background-color: #fff;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
	overflow: hidden;
}

.hec-front-popup-layer-inner {
	position: relative;
	display: flex;
	flex-direction: column;
}

.hec-front-popup-main {
	position: relative;
	width: 100%;
}

.hec-front-popup-main .hec-front-popup-close-x {
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 2;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 2px solid #fff;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.35);
	color: #fff;
	font-size: 1.25rem;
	line-height: 1;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s, color 0.2s;
}

.hec-front-popup-main .hec-front-popup-close-x:hover {
	background: rgba(0, 0, 0, 0.5);
	color: #fff;
}

.hec-front-popup-main .hec-front-popup-close-icon {
	display: block;
	width: 1.125rem;
	height: 1.125rem;
	flex-shrink: 0;
}

.hec-front-popup-image-wrap {
	width: 450px;
	max-width: 100%;
	height: 300px;
	margin: 0 auto;
	overflow: hidden;
	line-height: 0;
	background: #f3f3f3;
}

.hec-front-popup-image-link {
	display: block;
	width: 100%;
	height: 100%;
	text-decoration: none;
	color: inherit;
}

.hec-front-popup-image-link[href="#"] {
	cursor: default;
	pointer-events: none;
}

.hec-front-popup-image-wrap img.hec-front-popup-image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.hec-front-popup-dots {
	position: absolute;
	left: 50%;
	bottom: 12px;
	z-index: 2;
	transform: translateX(-50%);
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 8px;
	padding: 6px 10px;
	border-radius: 999px;
	background: rgba(0, 0, 0, 0.45);
}

.hec-front-popup-dots .hec-front-popup-dot {
	width: 10px;
	height: 10px;
	padding: 0;
	background-color: rgba(255, 255, 255, 0.35);
	border: 0;
	border-radius: 50%;
	cursor: pointer;
	transition: background-color 0.2s, transform 0.15s;
	flex-shrink: 0;
}

.hec-front-popup-dots .hec-front-popup-dot:hover,
.hec-front-popup-dots .hec-front-popup-dot:focus-visible {
	background-color: rgba(255, 255, 255, 1);
	outline: none;
}

.hec-front-popup-dots .hec-front-popup-dot.is-active {
	background-color: rgba(255, 255, 255, 1);
	transform: scale(1.1);
}

.hec-front-popup-buttons {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0;
}

.hec-front-popup-buttons .hec-front-popup-btn {
	padding: 12px;
	background-color: #1a1a1a;
	border: 0;
	border-radius: 0;
	color: #eee;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.2s;
}

.hec-front-popup-buttons .hec-front-popup-btn:hover {
	background-color: #333;
}

.hec-front-popup-hide-today {
	border-right: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
	.hec-front-popup-layer {
		left: 50%;
		transform: translateX(-50%);
		top: 100px;
		width: 90vw;
		max-width: 450px;
	}

	.hec-front-popup-image-wrap {
		width: 100%;
		height: auto;
		min-height: 200px;
		aspect-ratio: 450 / 300;
		max-height: 70vh;
	}

	.hec-front-popup-image-wrap img.hec-front-popup-image {
		height: 100%;
		object-fit: cover;
	}
}
