/* 🔒 캡처/확대/복사 방지 (index.html 에서 guestbook.css 아래에 추가) */

html, body {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: pan-x pan-y; /* 두 손가락 확대 / 더블탭 확대 차단 (스크롤·가로 스와이프는 유지) */
}

/* 입력칸은 글자 입력/선택이 되어야 한다 (iOS 는 select none 이면 입력 자체가 안 됨) */
input, textarea {
  -webkit-user-select: text;
  user-select: text;
}

img {
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
  pointer-events: none; /* 이미지를 터치 대상에서 제외 → 카톡/삼성인터넷 등의 "이미지 저장" 길게누르기 메뉴가 안 뜬다 */
}

/* 지도는 자체 확대/이동을 쓴다 */
#map { touch-action: none; }

/* 앱 전환 화면 / PrintScreen 순간에 내용을 가리는 덮개 */
#protect-cover {
  position: fixed;
  inset: 0;
  z-index: 20000;
  display: none;
  align-items: center;
  justify-content: center;
  background: var(--bg-color, #faf7f2);
  color: var(--primary-color, #8a6552);
  font-size: 15px;
  text-align: center;
}
html.is-covered #protect-cover { display: flex; }
html.is-covered body > *:not(#protect-cover) { visibility: hidden; }

/* 인쇄 / PDF 저장 */
@media print {
  html, body { display: none !important; }
}
