/* 오버레이: 화면 전체 블러+어둡게 */
.hc-modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  z-index: 9999;
  opacity: 0; pointer-events: none;
  transition: opacity .18s ease;
}
.hc-modal-overlay.is-open { opacity: 1; pointer-events: auto; }

/* 모달 카드 */
.hc-modal {
  box-sizing: border-box;
  width: min(1296px, calc(100vw - 48px));
  height: min(900px, calc(100vh - 48px));
  background: rgba(0,0,0,0.40);
  border: 1px solid #CFCFCF;
  border-radius: 30px;
  box-shadow: 3px 4px 35.4px rgba(0,0,0,0.10);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: #fff;
  position: relative;
  display: grid;
  grid-template-columns: 1fr 320px;  /* 좌 정보 / 우 버튼열 */
  gap: 24px;
  padding: 24px;
  overflow: hidden;
  transform: translateY(8px) scale(.98);
  transition: transform .18s ease, opacity .18s ease;
  opacity: 0;
}
.hc-modal-overlay.is-open .hc-modal { transform: none; opacity: 1; }

/* 내부 스크롤 영역 */
.hc-modal__left  { overflow: auto; padding: 12px 16px 16px; }
.hc-modal__right { display: grid; gap: 16px; align-content: start; padding: 12px 8px 12px 0; }

/* 헤더 */
.hc-modal__title { font-size: 28px; font-weight: 700; margin: 4px 0 16px; }

/* 필드/태그 */
.hc-modal__meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 16px; }
.hc-meta__label { font-size: 13px; color: #cfcfcf; border-bottom: 1px solid rgba(255,255,255,.25); padding-bottom: 6px; margin-bottom: 6px; }
.hc-meta__val   { font-size: 14px; color: #e9e9e9; }

.hc-modal__tags { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0 20px; }
.hc-chip { padding: 8px 12px; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; font-size: 13px; }

/* 썸네일 큰 이미지 */
.hc-modal__hero { width: 100%; border-radius: 12px; overflow: hidden; background:#111; }
.hc-modal__hero img { width: 100%; height: auto; display: block; }

/* 우측 버튼 */
.hc-btn {
  display: inline-flex; justify-content: center; align-items: center;
  height: 48px; padding: 0 16px; border-radius: 12px;
  background: transparent; color: #fff;
  border: 1px solid rgba(255,255,255,.35); text-decoration: none;
}
.hc-btn--primary { background: #1a73e8; border-color:#1a73e8; }
.hc-btn--block { width: 100%; }

/* 닫기(X) */
.hc-modal__close {
  position: absolute; top: 12px; right: 12px;
  width: 44px; height: 44px; border-radius: 12px;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.35);
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.hc-modal__close::before {
  content: "✕"; font-size: 18px; line-height: 1;
}

/* 반응형: 좁을 때 단일 컬럼 */
@media (max-width: 1024px) {
  .hc-modal { grid-template-columns: 1fr; height: min(900px, calc(100vh - 24px)); }
  .hc-modal__right { grid-template-columns: repeat(3, 1fr); gap: 10px; }
}
