/* 팝업 — 카드형 1장 슬라이드(충북TP 레이아웃 참조, 2026-11-04 재작업). main.html 전용 로드. 자동재생 없음.
   폭 46rem, 화면이 낮으면 높이에 맞춰 줄어든다. 이미지 상자는 4:5 — 비율이 다른 이미지는
   같은 이미지를 뒤에 cover+blur(.bg)로 깔아 흰 여백 없이 채운다(농정원 방식) */
.popupzone { position: fixed; inset: 0; z-index: 999999; display: flex; justify-content: center; align-items: center; padding: 1.6rem; background-color: var(--black60); }
.popupzone:focus { outline: 0; } /* 프로그램 포커스용 컨테이너 — 전면 오버레이에 포커스 링이 둘러지는 것만 방지(내부 조작 요소는 표준 링 유지) */
.popup-inner { width: min(46rem, calc((100vh - 12rem) * .8)); width: min(46rem, calc((100dvh - 12rem) * .8)); min-width: 28rem; max-width: 100%; background-color: #fff; border-radius: 1.6rem; overflow: hidden; box-shadow: 0 1rem 3rem var(--black30); }
.popup-body { position: relative; }
.popup-swiper .swiper-slide .img-wrap { position: relative; height: 0; padding-bottom: 125%; background-color: var(--gray-f5); overflow: hidden; } /* 4:5 상자 */
.popup-swiper .swiper-slide .img-wrap img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.popup-swiper .swiper-slide .img-wrap .bg { object-fit: cover; filter: blur(1.8rem); transform: scale(1.12); } /* 블러 채움 배경 — scale 로 블러 가장자리 번짐을 상자 밖으로 밀어낸다 */
/* 관리자 노출 방식 선택(개발 바인딩): 기본(클래스 없음) = 원본 비율 유지 + 블러 채움 / .swiper-slide.img-fill = 잘라서 꽉 채움 */
.popup-swiper .swiper-slide.img-fill .img-wrap img { object-fit: cover; }
.popup-swiper .swiper-slide.img-fill .img-wrap .bg { display: none; }
.popup-swiper .swiper-slide a { display: block; }
.popup-swiper .swiper-slide a:focus { outline-offset: -0.4rem; box-shadow: var(--krds-box-shadow-outline-inset); } /* overflow:hidden 상자 안 — 바깥 링이 잘리는 곳만 안쪽 링 예외 */
.popup-ctrl { position: absolute; left: 50%; bottom: 1.4rem; z-index: 2; display: flex; align-items: center; height: 3.4rem; padding: 0 .4rem; background-color: var(--black70); border-radius: 1.7rem; transform: translateX(-50%); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.popup-ctrl button { display: flex; align-items: center; justify-content: center; width: 3rem; height: 3rem; color: #fff; border-radius: 50%; }
.popup-ctrl button:hover,
.popup-ctrl button:focus-visible { background-color: var(--white10); }
.popup-ctrl button i::before { font-weight: 700 !important; }
.popup-ctrl .num { min-width: 4.4rem; line-height: 1; font-size: 14px; color: var(--white70); text-align: center; white-space: nowrap; }
.popup-ctrl .num .current { font-weight: 700; color: #fff; }
/* 버튼 줄 — 오늘 하루 열지 않기는 테두리 버튼, 닫기는 네이비 채움 버튼 */
.popup-foot { display: flex; gap: .8rem; padding: 1.2rem; background-color: #fff; border-top: 1px solid var(--gray-e9); }
.popup-foot button { display: flex; align-items: center; justify-content: center; gap: .6rem; height: 4.8rem; padding: 0 1.8rem; line-height: 1.4; font-weight: 600; font-size: 1.6rem; white-space: nowrap; border-radius: .8rem; transition: background-color .2s, border-color .2s, color .2s; }
.popup-foot .today { flex: 1; color: var(--gray-44); background-color: #fff; border: 1px solid var(--gray-cc); }
.popup-foot .close { flex-shrink: 0; min-width: 11rem; color: #fff; background-color: var(--primary500); }
.popup-foot .today:hover,
.popup-foot .today:focus-visible { color: var(--primary600); background-color: var(--primary50); border-color: var(--primary500); }
.popup-foot .close:hover,
.popup-foot .close:focus-visible { background-color: var(--primary600); }

@media only screen and (max-width: 767px) {
	.popup-inner { border-radius: 1.2rem; }
	.popup-foot { padding: 1rem; }
	.popup-foot button { height: 4.4rem; padding: 0 1.2rem; font-size: 15px; }
	.popup-foot .close { min-width: 8.8rem; }
}
