@charset "utf-8";

/* 멀티팝업(팝업존) — bbs/newwin.multi.inc.php */
html.mpz_lock, html.mpz_lock body {overflow:hidden}

.mpz {--mpz-main:#00a3aa;--mpz-main-dark:#00767c;--mpz-btn:#00838a;--mpz-lime:#e7f04c;--mpz-soft:#e6f6f7;position:fixed;top:0;right:0;bottom:0;left:0;z-index:10001;display:flex;align-items:center;justify-content:center;padding:16px;background:rgba(16,40,42,.55);box-sizing:border-box;font-family:'Noto Sans KR','NotoSansKR','Malgun Gothic',sans-serif;animation:mpz_fade .25s ease}
.mpz *, .mpz *:before, .mpz *:after {box-sizing:border-box}

/* 패널 폭 = 카드 n장 + 간격 + 좌우 여백. 카드 폭은 최대 340px, 화면이 좁거나 낮으면 줄어든다 */
.mpz_panel {--mpz-n:3;--mpz-gap:20px;--mpz-pad:32px;
    --mpz-w:min(340px, calc((100vh - 370px) * .75), calc((100vw - 32px - var(--mpz-pad) * 2 - var(--mpz-gap) * (var(--mpz-n) - 1)) / var(--mpz-n)));
    position:relative;width:calc(var(--mpz-w) * var(--mpz-n) + var(--mpz-gap) * (var(--mpz-n) - 1) + var(--mpz-pad) * 2);max-width:100%;padding:28px var(--mpz-pad) 24px;border-radius:24px;background:#fff;box-shadow:0 24px 60px rgba(0,0,0,.25);animation:mpz_up .3s ease}
.mpz_n1 {--mpz-n:1}
.mpz_n2 {--mpz-n:2}

.mpz_head {position:relative;margin-bottom:20px;padding-right:48px}
.mpz_tag {margin:0 0 4px;font-size:12px;font-weight:700;letter-spacing:.18em;color:var(--mpz-main)}
.mpz_head h2 {margin:0;font-size:24px;font-weight:700;line-height:1.3;letter-spacing:-.5px;color:#222}
.mpz_head h2 em {display:inline-block;min-width:26px;margin-left:6px;padding:0 8px;border-radius:13px;background:var(--mpz-lime);font-size:14px;font-style:normal;line-height:26px;text-align:center;vertical-align:3px;color:#333}
.mpz_x {position:absolute;top:-4px;right:-8px;width:40px;height:40px;padding:0;border:0;border-radius:50%;background:none;font-size:28px;line-height:40px;color:#888;cursor:pointer;transition:background .2s,color .2s}
.mpz_x:hover, .mpz_x:focus {background:#f2f2f2;color:#222}

.mpz_view {position:relative}
.mpz_list {display:flex;gap:var(--mpz-gap);margin:0;padding:0;list-style:none;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;-webkit-overflow-scrolling:touch}
.mpz_list::-webkit-scrollbar {display:none}
.mpz_item {flex:0 0 var(--mpz-w);scroll-snap-align:start}
.mpz_link {display:block;color:inherit;text-decoration:none}

/* 모든 카드를 같은 크기(3:4)로 */
.mpz_card {display:block;position:relative;width:100%;padding-top:133.333%;border:1px solid #ececec;border-radius:16px;background:#fafafa;overflow:hidden;transition:transform .2s,box-shadow .2s}
a.mpz_link:hover .mpz_card, a.mpz_link:focus .mpz_card {transform:translateY(-4px);box-shadow:0 10px 24px rgba(0,0,0,.12)}
.mpz_img, .mpz_html {position:absolute;top:0;right:0;bottom:0;left:0}
.mpz_img img {display:block;width:100% !important;height:100% !important;max-width:none !important;object-fit:contain}
.mpz_html {padding:16px;overflow-y:auto;background:#fff;font-size:14px;line-height:1.6;color:#333}
.mpz_html img {max-width:100% !important;height:auto !important}
.mpz_cap {display:block;margin-top:10px;padding:0 2px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:15px;font-weight:500;color:#333}
a.mpz_link .mpz_cap:after {content:"\203A";margin-left:6px;color:var(--mpz-main)}

/* 한 화면에 다 안 들어갈 때만 좌우 버튼·점 표시 */
.mpz_arrow {display:none;position:absolute;top:calc(50% - 16px);width:44px;height:44px;margin-top:-22px;padding:0;border:1px solid #e3e3e3;border-radius:50%;background:#fff;box-shadow:0 4px 12px rgba(0,0,0,.12);font-size:28px;line-height:40px;color:var(--mpz-main);cursor:pointer}
.mpz_prev {left:-54px}
.mpz_next {right:-54px}
.mpz_arrow:disabled {opacity:0;pointer-events:none}
.mpz_dots {display:none;justify-content:center;gap:6px;margin-top:16px}
.mpz_dots span {width:7px;height:7px;border-radius:4px;background:#d6d6d6;transition:width .2s}
.mpz_dots span.on {width:20px;background:var(--mpz-main)}
.mpz_scroll .mpz_arrow {display:block}
.mpz_scroll .mpz_dots {display:flex}

.mpz_foot {display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:20px;padding-top:18px;border-top:1px solid #f0f0f0}
.mpz_today {display:inline-flex;align-items:center;gap:8px;padding:6px 0;border:0;background:none;font-size:15px;color:#666;cursor:pointer}
.mpz_today:before {content:"";width:18px;height:18px;border:1.5px solid #bbb;border-radius:50%;transition:border-color .2s,background .2s}
.mpz_today:hover, .mpz_today:focus {color:#222}
.mpz_today:hover:before, .mpz_today:focus:before {border-color:var(--mpz-main);background:var(--mpz-soft)}
.mpz_btn {min-width:96px;height:44px;padding:0 24px;border:0;border-radius:22px;background:var(--mpz-btn);font-size:15px;font-weight:700;color:#fff;cursor:pointer;transition:background .2s}
.mpz_btn:hover, .mpz_btn:focus {background:var(--mpz-main-dark)}

@keyframes mpz_fade {from {opacity:0}}
@keyframes mpz_up {from {opacity:0;transform:translateY(24px)}}

@media (max-width:1024px) {
    .mpz_panel {--mpz-n:2;--mpz-pad:28px}
    .mpz_n1 {--mpz-n:1}
    .mpz_prev {left:-20px}
    .mpz_next {right:-20px}
}

/* 모바일: 화면 아래에서 올라오는 시트, 다음 카드가 살짝 보이게 해 옆으로 넘길 수 있음을 알린다 */
@media (max-width:640px) {
    .mpz {align-items:flex-end;padding:0}
    .mpz_panel, .mpz_n2 {--mpz-n:1;--mpz-pad:20px;--mpz-gap:12px;--mpz-w:min(320px, calc(100vw - 76px), calc((100vh - 300px) * .75));width:100%;padding-top:24px;padding-bottom:calc(16px + env(safe-area-inset-bottom));border-radius:24px 24px 0 0}
    .mpz_n1 {--mpz-w:min(320px, calc(100vw - 40px), calc((100vh - 300px) * .75))}
    .mpz_n1 .mpz_list {justify-content:center}
    .mpz_list {margin:0 calc(var(--mpz-pad) * -1);padding:0 var(--mpz-pad);scroll-padding:0 var(--mpz-pad)}
    .mpz_head {margin-bottom:16px}
    .mpz_head h2 {font-size:20px}
    .mpz_x {top:-8px;right:-8px}
    .mpz_scroll .mpz_arrow {display:none}
    .mpz_cap {font-size:14px}
    .mpz_foot {margin-top:16px;padding-top:12px}
    .mpz_today {font-size:14px}
    .mpz_btn {height:40px;min-width:84px}
}
.mpz_panel:focus {outline:none}
