/* 이달의 행사 멤버 · 링크 모음 페이지 — 사진전 도록처럼 단정한 화면, 옆으로 넘김 (공개 페이지·대시보드 미리보기 공용) */
.mp-app { --mp-ink: #141414; --mp-sub: #7a7a76; --mp-line: #e3e3df; --mp-bg: #fafaf8; --mp-red: #d7263d;
  --mp-serif: "Noto Serif KR", "Nanum Myeongjo", serif;
  position: relative; height: 100%; overflow: hidden; color: var(--mp-ink); background: var(--mp-bg);
  font-family: Pretendard, "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif; -webkit-font-smoothing: antialiased; display: flex; flex-direction: column; }
.mp-app *, .mp-app *::before, .mp-app *::after { box-sizing: border-box; }
.mp-app a { color: inherit; text-decoration: none; }
.mp-app ::-webkit-scrollbar { display: none; }
.mp-amb { display: none; }
.mp-head, .mp-tabs, .mp-pager { position: relative; z-index: 1; }

/* 머리 */
.mp-head { display: flex; align-items: center; gap: 12px; padding: calc(16px + env(safe-area-inset-top, 0px)) 20px 12px; background: var(--mp-bg); }
.mp-logo { width: 36px; height: 36px; border-radius: 8px; background: #fff; overflow: hidden; display: grid; place-items: center; flex: none; border: 1px solid var(--mp-line); }
.mp-logo img { width: 100%; height: 100%; object-fit: contain; }
.mp-logo span { font-weight: 800; }
.mp-name { flex: 1; min-width: 0; font-size: 15px; font-weight: 700; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: .01em; }
.mp-name small { display: block; font-size: 11.5px; font-weight: 400; color: var(--mp-sub); margin-top: 1px; }
.mp-round { width: 36px; height: 36px; border-radius: 50%; background: transparent; border: 1px solid var(--mp-line); display: grid; place-items: center; cursor: pointer; color: var(--mp-ink); flex: none; transition: border-color .2s; }
.mp-round:hover { border-color: var(--mp-ink); }
.mp-round svg, .mp-ico { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* 탭: 글자 + 밑줄 */
.mp-tabs { display: flex; gap: 22px; overflow-x: auto; padding: 0 20px; border-bottom: 1px solid var(--mp-line); scrollbar-width: none; flex: none; background: var(--mp-bg); }
.mp-tab { flex: none; border: 0; background: none; color: var(--mp-sub); padding: 12px 0 11px; font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; white-space: nowrap; max-width: 220px; overflow: hidden; text-overflow: ellipsis; border-bottom: 2px solid transparent; margin-bottom: -1px; transition: color .2s, border-color .2s; }
.mp-tab.on { color: var(--mp-ink); font-weight: 700; border-bottom-color: var(--mp-ink); }

/* 옆으로 넘기는 칸 */
.mp-pager { flex: 1; min-height: 0; display: flex; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.mp-panel { flex: 0 0 100%; scroll-snap-align: start; scroll-snap-stop: always; overflow-y: auto; scrollbar-width: none; padding: 28px 20px 96px; overscroll-behavior-y: contain; }
.mp-panel .mp-blocks, .mp-panel .mp-ptitle { transition: opacity .5s ease; }
.mp-panel:not(.on) .mp-blocks, .mp-panel:not(.on) .mp-ptitle { opacity: .2; }
.mp-ptitle { margin: 0 0 24px; padding-bottom: 18px; border-bottom: 1px solid var(--mp-ink); }
.mp-ptitle small { display: block; font-size: 12px; font-weight: 600; color: var(--mp-red); letter-spacing: .12em; margin-bottom: 10px; font-variant-numeric: tabular-nums; }
.mp-ptitle h2 { margin: 0; font-family: var(--mp-serif); font-size: 27px; line-height: 1.35; font-weight: 700; letter-spacing: -.02em; word-break: keep-all; }
.mp-blocks { display: flex; flex-direction: column; gap: 18px; }

/* 아래: 쪽수 + 진행 막대 */
.mp-foot { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; display: flex; align-items: center; gap: 14px; padding: 12px 20px calc(12px + env(safe-area-inset-bottom, 0px)); background: rgba(250, 250, 248, .94); border-top: 1px solid var(--mp-line); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.mp-count { font-size: 12px; font-weight: 600; letter-spacing: .08em; font-variant-numeric: tabular-nums; min-width: 52px; }
.mp-count b { color: var(--mp-ink); }
.mp-count span { color: var(--mp-sub); font-weight: 400; }
.mp-dots { flex: 1; display: flex; gap: 3px; }
.mp-dots i { flex: 1; height: 2px; background: var(--mp-line); transition: background .3s; }
.mp-dots i.on { background: var(--mp-ink); }
.mp-arrow { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--mp-line); background: #fff; color: var(--mp-ink); display: grid; place-items: center; cursor: pointer; transition: border-color .2s, background .2s, color .2s; }
.mp-arrow:not(:disabled):hover { background: var(--mp-ink); border-color: var(--mp-ink); color: #fff; }
.mp-arrow:disabled { opacity: .3; cursor: default; }

/* 블록 */
.mp-b { position: relative; }
.mp-b.mp-hidden { opacity: .35; }
.mp-b.mp-hidden::after { content: "숨김"; position: absolute; top: 8px; left: 8px; background: var(--mp-ink); color: #fff; font-size: 11px; border-radius: 3px; padding: 2px 7px; }
.mp-img img { display: block; width: 100%; height: auto; border-radius: 4px; }
.mp-img.mp-card { background: #fff; border: 1px solid var(--mp-line); padding: 14px; border-radius: 4px; }
/* 홈 칸 첫 사진(포스터)은 화면 끝까지 */
.mp-panel.home { padding-top: 0; }
.mp-panel.home .mp-b:first-child .mp-img:not(.mp-card) { margin: 0 -20px; }
.mp-panel.home .mp-b:first-child .mp-img:not(.mp-card) img { border-radius: 0; }
.mp-heading { font-family: var(--mp-serif); font-size: 20px; font-weight: 700; margin: 14px 0 0; letter-spacing: -.02em; line-height: 1.4; }
.mp-text { white-space: pre-wrap; word-break: keep-all; line-height: 1.85; font-size: 15px; margin: 0; color: #3d3d3a; }
.mp-text.mp-l { font-family: var(--mp-serif); font-size: 20px; line-height: 1.65; color: var(--mp-ink); }
.mp-text.mp-bold { font-weight: 700; }
.mp-video { position: relative; aspect-ratio: 16 / 9; border-radius: 4px; overflow: hidden; background: #000; }
.mp-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.mp-link { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--mp-line); border-radius: 6px; min-height: 64px; padding: 10px 14px 10px 10px; transition: border-color .2s; }
.mp-link:not(.mp-has-th) { padding-left: 18px; }
a.mp-link:hover { border-color: var(--mp-ink); }
.mp-link .mp-th { width: 44px; height: 44px; flex: none; border-radius: 4px; overflow: hidden; background: #f0f0ec; }
.mp-link .mp-th img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mp-link .mp-tx { flex: 1; min-width: 0; font-size: 15px; font-weight: 600; line-height: 1.4; word-break: keep-all; }
.mp-link .mp-tx small { display: block; font-size: 12.5px; font-weight: 400; color: var(--mp-sub); margin-top: 2px; }
.mp-link .mp-go { flex: none; color: var(--mp-ink); display: grid; place-items: center; }
div.mp-link .mp-go { color: var(--mp-line); }
.mp-divider { border: 0; border-top: 1px solid var(--mp-line); margin: 8px 0; }
/* 사진 모음: 같은 크기 세로 사진 + 이름 */
.mp-gal { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 10px; }
.mp-fig { margin: 0; cursor: zoom-in; }
.mp-fig img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; display: block; border-radius: 3px; background: #ecece8; transition: filter .3s; }
.mp-fig:hover img { filter: brightness(1.05) contrast(1.03); }
.mp-fig figcaption { padding: 10px 2px 0; border-top: 0; }
.mp-fig figcaption b { display: block; font-family: var(--mp-serif); font-size: 16px; font-weight: 700; letter-spacing: -.01em; line-height: 1.3; }
.mp-fig figcaption small { display: block; font-size: 11.5px; color: var(--mp-sub); margin-top: 3px; letter-spacing: .04em; }
.mp-fig figcaption b::after { content: ""; display: block; width: 14px; height: 1px; background: var(--mp-red); margin-top: 7px; }
.mp-fig figcaption b:only-child::after { display: none; }
.mp-sch { display: flex; align-items: stretch; gap: 16px; background: #fff; border: 1px solid var(--mp-line); border-radius: 6px; padding: 16px 14px; }
.mp-sch .mp-date { flex: none; min-width: 64px; text-align: center; border-right: 1px solid var(--mp-line); padding-right: 14px; white-space: nowrap; }
.mp-sch .mp-date b { display: block; font-family: var(--mp-serif); font-size: 32px; line-height: 1; font-weight: 700; }
.mp-sch .mp-date small { display: block; font-size: 11.5px; color: var(--mp-sub); margin-top: 6px; }
.mp-sch .mp-info { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.mp-sch .mp-st { align-self: flex-start; font-size: 11px; font-weight: 700; letter-spacing: .06em; color: var(--mp-sub); display: inline-flex; align-items: center; gap: 6px; margin-bottom: 5px; }
.mp-sch .mp-st.on { color: var(--mp-red); }
.mp-sch .mp-st.on::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--mp-red); animation: mpPulse 1.6s infinite; }
.mp-sch .mp-st.soon { color: var(--mp-ink); }
.mp-sch .mp-when { color: var(--mp-sub); font-size: 12.5px; margin-top: 4px; }
.mp-sch b.mp-t { display: block; font-size: 16px; line-height: 1.4; word-break: keep-all; }
@keyframes mpPulse { 50% { opacity: .25; } }
.mp-empty { border: 1px dashed #cfcfca; border-radius: 4px; padding: 22px 10px; text-align: center; color: var(--mp-sub); font-size: 13px; }

/* 홈 칸: 목차 */
.mp-toc { display: flex; flex-direction: column; margin-top: 10px; border-top: 1px solid var(--mp-ink); }
.mp-toc-h { font-size: 11.5px; font-weight: 600; letter-spacing: .14em; color: var(--mp-sub); margin: 14px 0 0; }
.mp-toc button { display: flex; align-items: baseline; gap: 16px; width: 100%; text-align: left; font: inherit; color: var(--mp-ink); background: none; border: 0; border-bottom: 1px solid var(--mp-line); padding: 16px 2px; cursor: pointer; }
.mp-toc button em { font-style: normal; font-size: 12px; font-weight: 600; color: var(--mp-red); letter-spacing: .06em; font-variant-numeric: tabular-nums; width: 20px; }
.mp-toc button span { flex: 1; font-family: var(--mp-serif); font-size: 17px; font-weight: 600; line-height: 1.4; word-break: keep-all; transition: transform .25s; }
.mp-toc button .mp-ico { align-self: center; color: var(--mp-sub); transition: transform .25s, color .25s; }
.mp-toc button:hover span { transform: translateX(4px); }
.mp-toc button:hover .mp-ico { color: var(--mp-ink); transform: translateX(4px); }
.mp-hint { font-size: 12px; color: var(--mp-sub); margin: 14px 0 0; text-align: right; }

/* 사진 크게 보기 */
.mp-lb { position: fixed; inset: 0; z-index: 60; background: rgba(250, 250, 248, .97); display: none; align-items: center; justify-content: center; }
.mp-lb.on { display: flex; }
.mp-lb figure { margin: 0; text-align: center; }
.mp-lb img { max-width: 92vw; max-height: 78vh; box-shadow: 0 20px 50px rgba(0,0,0,.15); }
.mp-lb-cap { margin-top: 16px; }
.mp-lb-cap b { display: block; font-family: var(--mp-serif); font-size: 20px; color: #141414; }
.mp-lb-cap small { display: block; font-size: 12.5px; color: #7a7a76; margin-top: 4px; }
.mp-lb > button { position: absolute; width: 42px; height: 42px; border-radius: 50%; border: 1px solid #e3e3df; background: #fff; color: #141414; font-size: 22px; cursor: pointer; display: grid; place-items: center; z-index: 1; }
.mp-lb-x { top: calc(14px + env(safe-area-inset-top, 0px)); right: 14px; }
.mp-lb-p, .mp-lb-n { top: 50%; transform: translateY(-50%); }
.mp-lb-p { left: 10px; } .mp-lb-n { right: 10px; }
.mp-lb-c { position: absolute; top: calc(26px + env(safe-area-inset-top, 0px)); left: 50%; transform: translateX(-50%); font-size: 12px; letter-spacing: .1em; color: #7a7a76; font-variant-numeric: tabular-nums; }

.mp-toast { position: fixed; left: 50%; bottom: calc(80px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); background: #141414; color: #fff; padding: 10px 18px; border-radius: 4px; font-size: 13px; opacity: 0; transition: opacity .2s; pointer-events: none; z-index: 70; }
.mp-toast.on { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .mp-app * { transition: none !important; animation: none !important; } .mp-panel:not(.on) .mp-blocks, .mp-panel:not(.on) .mp-ptitle { opacity: 1; } }

/* 홈: 다가오는 행사 */
.mp-next { display: flex; align-items: center; gap: 16px; width: 100%; text-align: left; font: inherit; color: #fff; background: var(--mp-ink); border: 0; border-radius: 6px; padding: 16px 16px 16px 18px; cursor: pointer; margin-top: -2px; }
.mp-next-d { flex: none; font-family: var(--mp-serif); font-size: 26px; font-weight: 700; line-height: 1; letter-spacing: -.01em; min-width: 64px; padding-right: 16px; border-right: 1px solid rgba(255,255,255,.2); color: #fff; }
.mp-next-t { flex: 1; min-width: 0; }
.mp-next-t small { display: block; font-size: 11px; letter-spacing: .1em; color: #ff8a98; font-weight: 600; }
.mp-next-t b { display: block; font-size: 15px; font-weight: 700; margin-top: 4px; line-height: 1.35; word-break: keep-all; }
.mp-next-t em { display: block; font-style: normal; font-size: 12px; color: rgba(255,255,255,.6); margin-top: 3px; }
.mp-next .mp-ico { color: rgba(255,255,255,.7); flex: none; transition: transform .25s; }
.mp-next:hover .mp-ico { transform: translateX(3px); }
/* 일정: 캘린더에 추가 */
.mp-ics { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font: inherit; font-size: 12.5px; font-weight: 600; color: var(--mp-ink); background: #f3f3ef; border: 1px solid var(--mp-line); border-radius: 999px; padding: 6px 12px 6px 10px; cursor: pointer; transition: background .2s, color .2s; }
.mp-ics:hover { background: var(--mp-ink); color: #fff; }
.mp-ics .mp-ico { width: 15px; height: 15px; }
.mp-sch .mp-st.soon { color: var(--mp-red); }

/* 내 사진 조회 */
.mp-lk { background: #fff; border: 1px solid var(--mp-line); border-radius: 6px; padding: 20px 18px; }
.mp-lk-t { display: block; font-family: var(--mp-serif); font-size: 19px; font-weight: 700; letter-spacing: -.01em; }
.mp-lk-n { margin: 6px 0 14px; font-size: 13.5px; color: var(--mp-sub); line-height: 1.6; }
.mp-lk-p { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 8px; }
.mp-lk-p button { border: 1px solid var(--mp-line); background: #fff; border-radius: 6px; padding: 10px 0; font: inherit; font-size: 18px; font-weight: 800; color: var(--mp-ink); cursor: pointer; }
.mp-lk-p button.on { background: var(--mp-ink); border-color: var(--mp-ink); color: #fff; }
.mp-lk-f { display: flex; gap: 6px; }
.mp-lk-f input { flex: 1; min-width: 0; border: 1px solid var(--mp-line); border-radius: 6px; padding: 12px 14px; font: inherit; font-size: 20px; font-weight: 700; letter-spacing: .06em; font-variant-numeric: tabular-nums; }
.mp-lk-f input:focus { outline: none; border-color: var(--mp-ink); }
.mp-lk-go { border: 0; background: var(--mp-red); color: #fff; border-radius: 6px; padding: 0 22px; font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; }
.mp-lk-r:empty { display: none; }
.mp-lk-r { margin-top: 12px; }
.mp-lk-x { border-radius: 6px; padding: 14px 16px; background: #f3f3ef; font-size: 14px; line-height: 1.6; }
.mp-lk-x b { display: block; font-size: 15px; margin-bottom: 2px; }
.mp-lk-x span { display: block; }
.mp-lk-x small { display: block; font-size: 11.5px; opacity: .7; margin-top: 4px; }
.mp-lk-x.ok { background: #13a36b; color: #fff; }
.mp-lk-x.ok b { font-size: 17px; }
.mp-lk-x.wait { background: #eef3ff; color: #1d4fd8; }
.mp-lk-a { display: block; margin-top: 8px; text-align: center; border: 1px solid var(--mp-ink); border-radius: 6px; padding: 12px; font-size: 14px; font-weight: 700; }

/* 위쪽 '내 사진 조회' 아이콘과 창 */
.mp-round.mp-mine { background: var(--mp-red); border-color: var(--mp-red); color: #fff; }
.mp-round.mp-mine:hover { background: #b81f33; border-color: #b81f33; }
.mp-img { position: relative; }
.mp-mine-fab { position: absolute; right: 12px; bottom: 12px; z-index: 3; width: 52px; height: 52px; border: 2px solid rgba(255,255,255,.9); border-radius: 50%; padding: 0; display: grid; place-items: center; background: var(--mp-red); color: #fff; cursor: pointer; box-shadow: 0 8px 22px rgba(0,0,0,.3); }
.mp-mine-fab .mp-ico { width: 24px; height: 24px; }
.mp-mine-fab:hover { background: #b81f33; }
.mp-panel.home .mp-b:first-child .mp-img:not(.mp-card) .mp-mine-fab { right: 14px; bottom: 14px; }
.mp-md { position: absolute; inset: 0; z-index: 40; background: rgba(20,20,20,.5); display: flex; align-items: center; justify-content: center; padding: 16px; opacity: 0; pointer-events: none; transition: opacity .2s; }
.mp-md.on { opacity: 1; pointer-events: auto; }
.mp-md-b { position: relative; width: 100%; max-width: 400px; max-height: 100%; overflow-y: auto; background: var(--mp-bg); border-radius: 18px; padding: 18px 16px; box-shadow: 0 24px 60px rgba(0,0,0,.3); transform: scale(.96); transition: transform .2s ease; }
.mp-md.on .mp-md-b { transform: none; }
.mp-md-b .mp-lk { border: 0; padding: 6px 4px 4px; background: transparent; }
.mp-md-b .mp-lk-t { font-size: 22px; padding-right: 44px; }
.mp-md-x { position: absolute; top: 12px; right: 12px; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--mp-line); background: #fff; color: var(--mp-ink); display: grid; place-items: center; cursor: pointer; }
