.notice-dialog{padding:0;border:0;width:min(440px,calc(100vw - 28px),calc((100dvh - 156px)*.693));max-width:none;max-height:calc(100dvh - 24px);overflow:auto;background:#fffaf8;color:#35292c;box-shadow:0 24px 100px #0005;margin:auto}.notice-dialog::backdrop{background:rgba(23,13,17,.72);backdrop-filter:blur(4px)}.notice-head{display:flex;align-items:center;justify-content:space-between;padding:8px 16px;background:#893843;color:white}.notice-head h2{font:500 13px 'Noto Sans KR',sans-serif;letter-spacing:1px;margin:0}.notice-close{border:0;background:none;color:white;font-size:26px;line-height:1;min-width:36px;min-height:36px}.notice-stage{aspect-ratio:800/1154;position:relative;background:#f4eeed;touch-action:pan-y}.notice-slide{display:none;width:100%;height:100%;object-fit:contain}.notice-slide.active{display:block}.notice-controls{display:flex;align-items:center;justify-content:space-between;padding:6px 10px;border-bottom:1px solid #ded3d1;gap:5px}.notice-controls button{border:0;background:transparent;min-width:34px;min-height:36px;color:#893843}.notice-dots{display:flex;gap:3px}.notice-dots button{min-width:25px;min-height:36px;font-size:12px;position:relative}.notice-dots button[aria-current=true]{font-weight:600;background:#893843;color:white;border-radius:3px}.notice-count{font:12px Arial;color:#79666b}.notice-footer{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:10px 14px;font-size:12px}.notice-footer label{display:flex;align-items:center;gap:7px;cursor:pointer}.notice-footer input{accent-color:#893843;width:16px;height:16px}.notice-footer button{background:none;border:0;font-size:13px;padding:4px 8px}.notice-reopen{border:1px solid #893843;color:#893843;background:none;padding:5px 12px;font-size:12px}.notice-dialog button:focus-visible{outline:2px solid #b5858f;outline-offset:-2px}@media(max-width:480px){.notice-dialog{width:min(calc(100vw - 28px),calc((100dvh - 146px)*.693))}.notice-footer{padding:8px 10px;font-size:11px}}
.notice-dialog{width:min(500px,calc(100vw - 28px),calc((100dvh - 120px)*.707));background:transparent;color:white;box-shadow:none;overflow:visible;max-height:none}
.notice-dialog::backdrop{background:rgba(15,12,12,.76);backdrop-filter:none}
.notice-head{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);padding:0}
.notice-head .notice-close{display:none}
.notice-stage{aspect-ratio:800/1132;background:#fff;overflow:hidden}
.notice-controls{background:#fff;padding:0;gap:0;position:relative;border:0;display:block}
.notice-dots{display:grid;grid-template-columns:repeat(5,1fr);gap:0}
.notice-dots button{padding:10px 4px;min-width:0;min-height:56px;border:0;border-right:1px solid #e9e2e2;border-radius:0!important;color:#342a2b;font-size:12px;line-height:1.45;word-break:keep-all;background:#fff}
.notice-dots button[aria-current=true]{background:#893843;color:#fff}
.notice-count{display:none}
.notice-controls #notice-prev,.notice-controls #notice-next{position:absolute;bottom:76px;background:#21181c88;color:#fff;min-width:32px;width:32px;height:38px;border-radius:0;font-size:24px;opacity:0;transition:opacity .2s}
.notice-controls #notice-prev{left:0}.notice-controls #notice-next{right:0}
.notice-dialog:hover #notice-prev,.notice-dialog:hover #notice-next,.notice-controls #notice-prev:focus-visible,.notice-controls #notice-next:focus-visible{opacity:1}
.notice-controls #notice-pause{position:absolute;right:8px;bottom:68px;background:#21181c99;color:#fff;min-width:28px;min-height:28px;height:28px;font-size:12px;transform:translateY(-44px);opacity:0}
.notice-dialog:hover #notice-pause,#notice-pause:focus-visible{opacity:1}
.notice-footer{padding:10px 0 0;color:#fff;background:transparent;font-size:13px;min-height:38px}.notice-footer button{color:white;font-weight:500;font-size:14px}.notice-footer input{accent-color:#893843}.notice-dialog:focus{outline:none}
@media(max-width:480px){.notice-dialog{width:min(calc(100vw - 24px),calc((100dvh - 116px)*.707))}.notice-dots button{font-size:10px;min-height:54px;padding:8px 3px}.notice-footer{padding:9px 0 0;font-size:12px}.notice-controls #notice-pause{opacity:1}.notice-controls #notice-prev,.notice-controls #notice-next{opacity:1}}

/* Fit the image, fixed tabs and dismiss row into one viewport. */
.notice-dialog{box-sizing:border-box;width:min(530px,calc(100vw - 24px),calc((100dvh - 120px)*.707));height:min(870px,calc(100dvh - 24px),calc((100vw - 24px)*1.415 + 96px));max-height:calc(100dvh - 24px);overflow:hidden}
.notice-dialog[open]{display:grid;grid-template-rows:minmax(0,1fr) 56px 40px}
.notice-stage{min-height:0;aspect-ratio:auto;width:100%;height:100%;overflow:hidden}
.notice-slide{position:absolute;inset:0;width:100%;height:100%;max-height:100%;object-fit:contain}
.notice-slide[hidden]{display:none!important}
.notice-controls{min-height:0;overflow:hidden}
.notice-dots{width:100%;height:56px;grid-template-columns:repeat(var(--notice-tabs,5),minmax(0,1fr));overflow:hidden}
.notice-dots button{height:56px;min-height:0;padding:6px 3px;font-size:11px;overflow-wrap:normal;word-break:keep-all;line-height:1.4}
.notice-dots button[aria-selected=true]{background:#893843;color:#fff;font-weight:600}
.notice-footer{box-sizing:border-box;min-height:0;height:40px;padding:4px 0 0;font-size:12px}
.notice-controls #notice-prev,.notice-controls #notice-next,.notice-controls #notice-pause{display:none}
@media(max-width:480px){.notice-dots button{font-size:10px}.notice-footer{font-size:11px}}
/* [261201] 마지막 탭 오른쪽 구분선 제거(선택 시 흰 줄 보임) */
.notice-dots button:last-child{border-right:0}
