/* 광명장애인보호작업장 — site.css : 퍼블리싱 CSS 에 없던 동적 화면 요소 (빈 목록 · 폼 안내 · 답변 · 팝업). 퍼블리싱 css 는 손대지 않는다 */

/* 목록 비었을 때 */
.mlist li.none, .mgal li.none { display: block; padding: 48px 0; text-align: center; color: #888; font-size: 15px; grid-column: 1 / -1; }

/* 폼 안내 · 오류 */
.mdone { margin: 0 0 20px; padding: 14px 18px; border-radius: 10px; background: #effaf3; color: #1b7a3f; font-size: 15px; }
.mdone.big { padding: 36px 24px; text-align: center; }
.mdone.big b { display: block; font-size: 20px; margin-bottom: 8px; }
.mdone.big p { margin: 0; color: #2f6b45; }
.merror { margin: 0 0 20px; padding: 14px 18px; border-radius: 10px; background: #fff1f2; color: #b42332; font-size: 15px; }
.mhint { display: block; margin-top: 6px; color: #888; font-size: 13px; }
.mform .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.mform #f4c { margin-top: 8px; }

/* 비밀글 행 — 링크 없음 */
.mlist li > a:not([href]) { cursor: default; }

/* Q&A 답변 */
.mview .mans { margin: 28px 0 8px; padding: 22px 24px; border-radius: 12px; background: #f6f7fb; border-left: 4px solid #F27F9D; }
.mview .mans header { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-size: 14px; color: #666; }
.mview .mans .body { padding: 0; border: 0; }
.mview .mans.wait { background: #fafafa; border-left-color: #cfd3da; color: #777; }
.mview .mans.wait p { margin: 0; }

/* 메인 팝업 */
.popup-layer { position: absolute; z-index: 90; background: #fff; border-radius: 12px; box-shadow: 0 12px 40px rgba(0, 0, 0, .22); overflow: hidden; max-width: calc(100vw - 32px); }
.popup-layer.hide { display: none; }
.popup-body img { display: block; width: 100%; height: auto; }
.popup-body a { display: block; color: inherit; text-decoration: none; }
.popup-content { padding: 18px 20px; font-size: 15px; line-height: 1.65; }
.popup-content img { max-width: 100%; }
.popup-foot { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; background: #1f2430; color: #fff; font-size: 13px; }
.popup-foot label { display: flex; align-items: center; gap: 6px; cursor: pointer; }
.popup-foot button { background: none; border: 0; color: #fff; font-size: 13px; cursor: pointer; padding: 4px 6px; }
@media (max-width: 768px) {
  .popup-layer { position: fixed; top: 50% !important; left: 50% !important; transform: translate(-50%, -50%); width: min(92vw, 420px) !important; }
}

/* 갤러리 상세 — 글 아래 사진 여러 장(라이트박스), 목록 카드의 장수 배지 */
.mview.mgview .body { min-height: 0; padding: 32px 8px; }
.mview.mgview .mphotos { max-width: none; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 8px; padding-top: 32px; border-top: 1px solid var(--line); }
.mview.mgview .mphotos li { opacity: 1; transform: none; }
.mview.mgview .mphotos b, .mview.mgview .mphotos span { display: none; }   /* 라이트박스 캡션용 — 사진 아래엔 안 보인다 */
.mview.mgview .mphotos.none { display: block; padding: 48px 0; text-align: center; color: #888; font-size: 15px; }
@media (max-width: 768px) { .mview.mgview .mphotos { grid-template-columns: 1fr 1fr; gap: 12px; } }
