/* 메인 화면 팝업 (2026-12-06 Kim) — app/Libraries/HomePopup.php 가 출력
 *  어두운 배경 위 가운데에 팝업(이미지 크기 그대로), 아래 줄: 오늘 하루 안보기 · 닫기
 *  여러 개면 순서대로 나란히(좁은 화면은 세로로), 화면보다 큰 이미지는 화면에 맞게 줄임
 *  이 사이트의 다른 CSS 와 섞이지 않게 모든 이름은 bbhp 로 시작
 */
.bbhp[hidden] { display: none; }
.bbhp {
	position: fixed; inset: 0; z-index: 2147483000;
	display: flex; align-items: center; justify-content: center;
	padding: 16px; box-sizing: border-box;
	overflow: auto; -webkit-overflow-scrolling: touch;
	background: rgba(0, 0, 0, .55);
	font-family: "Noto Sans KR", "Malgun Gothic", "맑은 고딕", sans-serif;
}
.bbhp *, .bbhp *::before, .bbhp *::after { box-sizing: border-box; }
.bbhp__list {
	display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: center; gap: 16px;
	max-width: 100%; margin: auto;
}
.bbhp__box {
	display: flex; flex-direction: column;
	width: max-content; max-width: calc(100vw - 32px);
	overflow: hidden; border-radius: 8px;
	background: #fff; box-shadow: 0 18px 50px rgba(0, 0, 0, .45);
	animation: bbhp-in .18s ease-out;
}
.bbhp__body { line-height: 0; background: #fff; }
.bbhp__link { display: block; line-height: 0; }
.bbhp__img {   /* 크기 = width · height 속성(이미지 × 표시 크기). 화면보다 크면 home-popup.js 가 비율대로 줄임 */
	display: block; max-width: 100%; height: auto;
	margin: 0 auto; border: 0;
}
.bbhp__foot {
	display: flex; align-items: center; justify-content: space-between; gap: 12px;
	min-height: 44px; padding: 6px 12px;
	background: #222; color: #fff; font-size: 14px; line-height: 1.3;
}
.bbhp__today { display: inline-flex; align-items: center; gap: 6px; margin: 0; color: #fff; font-size: 14px; cursor: pointer; user-select: none; }
.bbhp__chk { width: 16px; height: 16px; margin: 0; accent-color: #fff; cursor: pointer; }
.bbhp__close {
	flex: none; margin: 0; padding: 5px 14px;
	border: 1px solid rgba(255, 255, 255, .55); border-radius: 4px;
	background: transparent; color: #fff; font: inherit; font-size: 14px; line-height: 1.2; cursor: pointer;
}
.bbhp__close:hover, .bbhp__close:focus-visible { background: #fff; color: #222; outline: none; }
.bbhp__today:focus-within { outline: 2px solid rgba(255, 255, 255, .6); outline-offset: 2px; }
html.bbhp-open, html.bbhp-open body { overflow: hidden; }

@media (max-width: 640px) {
	.bbhp { align-items: flex-start; padding: 12px; }
	.bbhp__list { flex-direction: column; align-items: center; gap: 12px; }
	.bbhp__box { max-width: calc(100vw - 24px); }
	.bbhp__foot { font-size: 13px; }
	.bbhp__today, .bbhp__close { font-size: 13px; }
}
@keyframes bbhp-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .bbhp__box { animation: none; } }
