/* ============================================
   레이어 팝업 (notice-layers)
   - 화면 전체를 덮는 풀스크린 오버레이
   - 이미지 권장 비율: 3:4 또는 1:1 (세로형)
   ============================================ */

.notice-layers {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 9999;
	background: rgba(0, 0, 0, 0.6);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	align-items: center;
	justify-content: center;
}

.notice-layers.on {
	display: flex;
}

/* 팝업 내부 컨테이너 */
.notice-layers .popup-inner {
	position: relative;
	max-width: 70vw;
	max-height: 80vh;
	display: flex;
	flex-direction: column;
	align-items: center;
}

/* PC: 그리드 배치 (Swiper 비활성) */
.notice-layers .popup-list {
	display: flex;
	justify-content: center;
	gap: 16px;
	list-style: none;
	margin: 0;
	padding: 0;
	max-height: 80vh;
}

.notice-layers .popup-list .swiper-wrapper {
	display: contents;
}

.notice-layers .popup-list.swiper-active .swiper-wrapper {
	display: flex;
}

.notice-layers .swiper-active .popup-dots {
	display: flex;
	justify-content: center;
	margin-top: 12px;
}

.notice-layers .swiper-active .popup-dots .swiper-pagination-bullet {
	background: rgba(255, 255, 255, 0.5);
	opacity: 1;
}

.notice-layers .swiper-active .popup-dots .swiper-pagination-bullet-active {
	background: #fff;
}

.notice-layers .swiper-active .popup-prev,
.notice-layers .swiper-active .popup-next {
	display: flex;
	color: #fff;
}

.notice-layers .popup-dots {
	display: none;
}

.notice-layers .popup-prev,
.notice-layers .popup-next {
	display: none;
	color: #fff;
}

/* 개별 팝업 아이템 */
.notice-layers .popup-item {
	width: calc(100% / 3.5);
	background: transparent;
	overflow: hidden;
}

.notice-layers .popup-item a {
	display: block;
	position: relative;
}

.notice-layers .popup-badge {
	position: absolute;
	top: 8px;
	right: 8px;
	background: rgba(0, 0, 0, 0.7);
	color: #fff;
	font-size: 14px;
	padding: 6px 12px;
	border-radius: 4px;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
}
.notice-layers .popup-badge > i {
	font-size: 1.5em;
}

/* 이미지 — 원본 비율 유지 */
.notice-layers .popup-item img {
	display: block;
	width: 100%;
	height: auto;
	max-height: 70vh;
	object-fit: contain;
	border-radius: 8px;
}

/* 하단 컨트롤 영역 */
.notice-layers .popup-controls {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
	margin-top: 16px;
}

.notice-layers .popup-controls button {
	border: none;
	cursor: pointer;
	font-size: 14px;
	padding: 8px 20px;
	border-radius: 4px;
	transition: opacity 0.2s;
}

.notice-layers .popup-controls button:hover {
	opacity: 0.85;
}

.notice-layers .btn-not-today {
	background: transparent;
	color: #fff;
	border: 1px solid rgba(255, 255, 255, 0.6) !important;
}

.notice-layers .btn-close-all {
	background: #fff;
	color: #333;
}

/* ============================================
   반응형
   ============================================ */

/* 태블릿 */
@media (max-width: 1024px) {
	.notice-layers .popup-list {
		grid-template-columns: repeat(2, 1fr);
		gap: 12px;
	}
	.notice-layers .popup-item {
		width: 300px;
	}
}

/* 모바일 — Swiper 활성 */
@media (max-width: 600px) {
	.notice-layers .popup-inner {
		max-width: 95vw;
		max-height: 95vh;
	}
	.notice-layers .popup-list {
		display: block;
		overflow: visible;
		width: 85vw;
	}
	.notice-layers .popup-list .swiper-wrapper {
		display: flex;
	}
	.notice-layers .popup-item {
		width: 85vw;
	}
	.notice-layers .popup-dots {
		display: flex;
		justify-content: center;
		margin-top: 12px;
	}
	.notice-layers .popup-dots .swiper-pagination-bullet {
		background: rgba(255, 255, 255, 0.5);
		opacity: 1;
	}
	.notice-layers .popup-dots .swiper-pagination-bullet-active {
		background: #fff;
	}
	.notice-layers .popup-controls {
		margin-top: 12px;
	}
	.notice-layers .popup-controls button {
		font-size: 13px;
		padding: 6px 14px;
	}
}
