@charset "utf-8";

/* -------------------------------------------------------------
   YOUR MOMENTS
   상단 띠는 interview.css 의 .hc-iv-band 를 쓰되, 레이아웃은 아래에서 archive.php 의 .hc-ap-band 와 같게 덮어쓴다.
   ------------------------------------------------------------- */

/* 상단 띠 : 위아래 간격 · 설명글은 interview.css 의 .hc-iv-band 그대로, 제목 크기와 칸 간격만 archive.css 의 .hc-ap-band 와 같은 값 */
.hc-mo-page .hc-iv-band__inner {
  column-gap: clamp(2.5rem, 8.2vw, 7.375rem);
}
.hc-mo-page .hc-iv-band__title {
  font-size: clamp(2rem, 3.05vw, 2.75rem);
  letter-spacing: -0.01em;
}
@media (max-width: 768px) {
  .hc-mo-page .hc-iv-band__inner {
    row-gap: 0.875rem;
    padding: clamp(2.5rem, 3.8vw, 3.375rem) 1.25rem clamp(2.5rem, 4.2vw, 3.75rem);
  }
}
.hc-mo-page {
  --hc-mo-text: #4a403d;
  --hc-mo-gray: #8f8682;
  --hc-mo-line: rgba(119, 49, 62, 0.3);
  --hc-mo-border: rgba(119, 49, 62, 0.55);
  --hc-mo-form: #e1dad4;
  --hc-mo-card: #ebe8e3;
  --hc-mo-wrap: 74.375rem;
  --hc-mo-dark: #5f2531;
}
/* display 를 지정한 요소에도 hidden 이 먹도록 */
.hc-mo-page [hidden] {
  display: none !important;
}
.hc-mo-blind {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* 아이디 : hand***** — 별표는 작게 */
.hc-mo-name {
  display: inline-flex;
  align-items: baseline;
  gap: 0.15em;
  min-width: 0;
}
.hc-mo-name__mask {
  font-size: 0.62em;
  letter-spacing: 0.04em;
}

/* =============================================================
   상단 이미지
   ============================================================= */
/* aspect-ratio 는 실제 이미지 비율과 맞춰야 잘리지 않는다 (시안 1440x361) */
.hc-mo-hero {
  position: relative;
  aspect-ratio: 1440 / 361;
  overflow: hidden;
  background: #4b3d3c;
}
.hc-mo-hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hc-mo-main {
  padding: clamp(3.5rem, 7vw, 6.25rem) 0 clamp(5rem, 10.4vw, 9.375rem);
}

/* =============================================================
   안내 · 이벤트
   ============================================================= */
.hc-mo-intro {
  text-align: center;
  color: var(--hc-ink);
  word-break: keep-all;
  text-wrap: balance;
}
.hc-mo-intro__lead {
  font-size: clamp(1rem, 1.25vw, 1.125rem);
  font-weight: 600;
  line-height: 1.8;
}
.hc-mo-intro__desc {
  font-size: clamp(1rem, 1.25vw, 1.125rem);
  line-height: 1.8;
}
/* 줄마다 따로 감싸 두어야 좁은 화면에서 줄이 넘칠 때 한 단어만 떨어지지 않고 고르게 나뉜다 */
.hc-mo-intro__desc span {
  display: block;
}
.hc-mo-intro__event {
  margin-top: clamp(1rem, 1.6vw, 1.375rem);
  font-size: clamp(1rem, 1.25vw, 1.125rem);
  line-height: 1.8;
}
.hc-mo-intro__period {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  font-size: clamp(1rem, 1.25vw, 1.125rem);
  line-height: 1.8;
}
.hc-mo-intro__gift {
  display: inline-flex;
  width: 1.0625rem;
  height: 1.0625rem;
  margin-right: 0.3125rem;
}
.hc-mo-intro__gift svg {
  width: 100%;
  height: 100%;
}
.hc-mo-intro__bar {
  margin: 0 0.625rem;
  color: var(--hc-mo-gray);
}
.hc-mo-intro__note {
  margin-top: 2px;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--hc-mo-text);
}

/* =============================================================
   나의 추억 남기기
   ============================================================= */
/* 수정 버튼으로 내려올 때 고정 헤더 뒤로 숨지 않게 */
.hc-mo-write {
  max-width: 64.375rem;
  margin: clamp(3rem, 6vw, 5.375rem) auto 0;
  scroll-margin-top: calc(var(--hc-header-h, 3.875rem) + 1rem);
}
.hc-mo-form {
  border-radius: 0.625rem;
  background: var(--hc-mo-form);
}
.hc-mo-form__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.375rem;
  padding: 0.625rem clamp(1.25rem, 4.5vw, 2.875rem);
  border-radius: 0.625rem 0.625rem 0 0;
  background: var(--hc-maroon);
  color: #fff;
}
.hc-mo-form__title {
  font-size: clamp(1rem, 1.4vw, 1.25rem);
  font-weight: 400;
  line-height: 1.4;
}
.hc-mo-form__date {
  flex: 0 0 auto;
  font-size: 1rem;
  font-weight: 300;
  line-height: 1;
  color: rgba(255, 255, 255, 0.55);
}
.hc-mo-form__body {
  padding: clamp(1.5rem, 2.6vw, 2.125rem) clamp(1.25rem, 4.5vw, 2.875rem)
    clamp(2rem, 3.4vw, 2.875rem);
}
.hc-mo-form__q {
  font-size: clamp(1rem, 1.4vw, 1.25rem);
  line-height: 1.5;
  color: var(--hc-maroon);
  word-break: keep-all;
}

/* 이야기 주제 : 라디오를 알약 버튼 모양으로 */
.hc-mo-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem 0.75rem;
  min-width: 0;
  margin: 1.375rem 0 0;
  padding: 0;
  border: 0;
}
.hc-mo-chip {
  position: relative;
  display: inline-flex;
  cursor: pointer;
}
.hc-mo-chip input {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
}
.hc-mo-chip span {
  display: inline-flex;
  align-items: center;
  height: 2.5rem;
  padding: 0 1.375rem;
  border: 1px solid var(--hc-mo-border);
  border-radius: 999px;
  font-size: clamp(1rem, 3vw, 1.125rem);
  line-height: 1;
  color: var(--hc-maroon);
  white-space: nowrap;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
}
.hc-mo-chip input:checked + span {
  border-color: var(--hc-maroon);
  background: var(--hc-maroon);
  color: #fff;
}
.hc-mo-chip input:focus-visible + span {
  outline: 2px solid var(--hc-maroon);
  outline-offset: 0.1875rem;
}
@media (hover: hover) {
  .hc-mo-chip:hover input:not(:checked) + span {
    background: rgba(119, 49, 62, 0.08);
  }
}
/* 데스크톱 : 주제 버튼이 한 줄을 꽉 채운다 (줄이 넘치면 줄마다 채운다) */
@media (min-width: 769px) {
  .hc-mo-chip {
    flex: 1 1 auto;
  }
  .hc-mo-chip span {
    justify-content: center;
    width: 100%;
  }
}

/* 입력 칸 : 글자 수는 오른쪽 아래 */
.hc-mo-field {
  position: relative;
  margin-top: 1.375rem;
}
.hc-mo-text {
  display: block;
  width: 100%;
  height: 16.25rem;
  margin: 0;
  padding: 1rem 1.25rem 2.125rem;
  border: 1px solid var(--hc-mo-border);
  border-radius: 0.375rem;
  background: rgba(255, 255, 255, 0.16);
  font: inherit;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--hc-ink);
  word-break: keep-all;
  resize: none;
  -webkit-appearance: none;
  appearance: none;
}
.hc-mo-text::placeholder {
  color: var(--hc-mo-gray);
  opacity: 1;
}
.hc-mo-text:focus {
  outline: none;
  border-color: var(--hc-maroon);
  box-shadow: 0 0 0 1px var(--hc-maroon);
}
.hc-mo-form.is-guest .hc-mo-text {
  cursor: pointer;
}
.hc-mo-count {
  position: absolute;
  right: 0.75rem;
  bottom: 0.5rem;
  padding: 0 0.25rem;
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--hc-mo-gray);
  pointer-events: none;
}
.hc-mo-count.is-short span {
  color: var(--hc-maroon);
}

/* 사진 : + 버튼과 같은 크기의 정사각형으로 이어 붙인다 */
.hc-mo-photos {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.125rem;
}
.hc-mo-photos > li {
  position: relative;
  width: 8.75rem;
  aspect-ratio: 1 / 1;
  border-radius: 0.375rem;
  overflow: hidden;
}
.hc-mo-add {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border: 1px solid var(--hc-mo-border);
  border-radius: 0.375rem;
  color: var(--hc-maroon-lt);
  transition:
    background-color 0.2s ease,
    opacity 0.2s ease;
}
.hc-mo-add svg {
  width: 1.625rem;
  height: 1.625rem;
}
.hc-mo-add:hover {
  background: rgba(119, 49, 62, 0.06);
}
.hc-mo-add:focus-visible {
  outline-offset: -2px;
}
.hc-mo-add.is-full {
  opacity: 0.4;
  cursor: default;
}
.hc-mo-add.is-full:hover {
  background: transparent;
}
.hc-mo-photo {
  background: rgba(119, 49, 62, 0.08);
}
.hc-mo-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* 마우스를 올리면 어두워지며 휴지통 */
.hc-mo-photo__del {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(34, 24, 21, 0.45);
  color: #fff;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.hc-mo-photo__del svg {
  width: 1.875rem;
  height: 1.875rem;
}
.hc-mo-photo:hover .hc-mo-photo__del,
.hc-mo-photo__del:focus-visible {
  opacity: 1;
}
.hc-mo-photo__del:focus-visible {
  outline-color: #fff;
  outline-offset: -0.1875rem;
}
/* 터치 기기는 마우스 올림이 없으므로 오른쪽 위에 작은 버튼으로 늘 보인다 */
@media (hover: none) {
  .hc-mo-photo__del {
    inset: 0.25rem 0.25rem auto auto;
    width: 1.625rem;
    height: 1.625rem;
    border-radius: 50%;
    background: rgba(34, 24, 21, 0.55);
    opacity: 1;
  }
  .hc-mo-photo__del svg {
    width: 1rem;
    height: 1rem;
  }
}
/* 변환 · 줄이는 중 */
.hc-mo-photo.is-busy img {
  opacity: 0;
}
.hc-mo-photo.is-busy::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1.375rem;
  height: 1.375rem;
  margin: -0.6875rem 0 0 -0.6875rem;
  border: 2px solid rgba(119, 49, 62, 0.2);
  border-top-color: var(--hc-maroon);
  border-radius: 50%;
  animation: hc-mo-spin 0.8s linear infinite;
  pointer-events: none;
}
@keyframes hc-mo-spin {
  to {
    transform: rotate(360deg);
  }
}

/* 활용 동의 : 체크박스를 동그라미 체크 모양으로 */
.hc-mo-agree {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  width: -moz-fit-content;
  width: fit-content;
  max-width: 100%;
  margin: clamp(1.75rem, 3vw, 2.5rem) auto 0;
  cursor: pointer;
}
.hc-mo-agree input {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
}
.hc-mo-agree__box {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.125rem;
  height: 1.125rem;
  margin-top: 2px;
  border: 1px solid var(--hc-mo-border);
  border-radius: 50%;
  color: transparent;
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}
.hc-mo-agree__box svg {
  width: 0.875rem;
  height: 0.875rem;
}
.hc-mo-agree input:checked + .hc-mo-agree__box {
  border-color: var(--hc-maroon);
  background: var(--hc-maroon);
  color: #fff;
}
.hc-mo-agree input:focus-visible + .hc-mo-agree__box {
  outline: 2px solid var(--hc-maroon);
  outline-offset: 2px;
}
.hc-mo-agree__txt {
  display: block;
  min-width: 0;
  letter-spacing: -0.03em;
}
.hc-mo-agree__label {
  display: block;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--hc-ink);
}
.hc-mo-agree__desc {
  display: block;
  margin-top: 0.25rem;
  font-size: clamp(0.8125rem, 2.4vw, 0.875rem);
  line-height: 1.65;
  color: var(--hc-mo-text);
  word-break: keep-all;
}

.hc-mo-form__foot {
  display: flex;
  justify-content: center;
  margin-top: clamp(1.5rem, 2.6vw, 2.125rem);
}
.hc-mo-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 12.5rem;
  height: 2.625rem;
  padding: 0 1.75rem;
  border-radius: 999px;
  background: var(--hc-maroon);
  font-size: 1.125rem;
  line-height: 1;
  color: #fff;
  transition:
    background-color 0.2s ease,
    opacity 0.2s ease;
}
.hc-mo-submit:hover {
  background: var(--hc-mo-dark);
}
.hc-mo-submit.is-busy,
.hc-mo-submit.is-sending {
  opacity: 0.6;
}
.hc-mo-submit.is-sending {
  cursor: progress;
}

/* =============================================================
   포스트 카드 목록
   ============================================================= */
.hc-mo-board {
  max-width: var(--hc-mo-wrap);
  margin: clamp(4rem, 8.5vw, 7.6875rem) auto 0;
  scroll-margin-top: calc(var(--hc-header-h, 3.875rem) + 1rem);
}
.hc-mo-minebtn {
  display: inline-flex;
  align-items: center;
  height: 2.25rem;
  padding: 0 1.125rem;
  border: 1px solid var(--hc-mo-border);
  border-radius: 999px;
  font-size: 0.9375rem;
  line-height: 1;
  color: var(--hc-maroon);
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}
.hc-mo-minebtn:hover {
  background: rgba(119, 49, 62, 0.08);
}
.hc-mo-minebtn.is-active {
  border-color: var(--hc-maroon);
  background: var(--hc-maroon);
  color: #fff;
}
.hc-mo-view {
  margin-top: clamp(1.25rem, 2.6vw, 2.3125rem);
}

/* 아래 줄 간격이 넓은 이유 : 카드 아래 테두리에 걸친 더보기 버튼 자리 */
.hc-mo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(4rem, 6.7vw, 6rem) clamp(1rem, 2.3vw, 2rem);
}
.hc-mo-item {
  display: flex;
  min-width: 0;
}

/* 카드 : 같은 줄의 카드는 높이가 같다. 본문은 5줄까지 보이고 말줄임 */
.hc-mo-card {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  padding-bottom: 2.75rem;
  border: 1px solid var(--hc-mo-border);
  border-radius: 0.625rem;
  background: var(--hc-mo-card);
}
.hc-mo-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  height: 3.25rem;
  margin: -1px -1px 0;
  padding: 0 1.25rem;
  border-radius: 0.625rem 0.625rem 0 0;
  background: var(--hc-maroon);
  color: #fff;
}
.hc-mo-card__head .hc-mo-name {
  font-size: 1.25rem;
  line-height: 1;
}
.hc-mo-card__date {
  flex: 0 0 auto;
  font-size: 1rem;
  line-height: 1;
  color: rgba(255, 255, 255, 0.55);
}
.hc-mo-card__thumb {
  position: relative;
  aspect-ratio: 375 / 340;
  overflow: hidden;
  background: var(--hc-tile);
  cursor: pointer;
}
.hc-mo-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.hc-mo-card.is-noimg .hc-mo-card__thumb {
  display: none;
}
@media (hover: hover) {
  .hc-mo-card__thumb:hover img {
    transform: scale(1.04);
  }
}
/* 관리자 고정 : 사진 오른쪽 위 압정 */
.hc-mo-pin {
  position: absolute;
  top: 4rem;
  right: 0.75rem;
  display: flex;
  width: 1.5rem;
  height: 1.5rem;
  color: #fff;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.4));
  pointer-events: none;
}
.hc-mo-pin svg {
  width: 100%;
  height: 100%;
}
.hc-mo-card.is-noimg .hc-mo-pin {
  color: var(--hc-maroon);
  filter: none;
}
.hc-mo-card.is-noimg.is-pinned .hc-mo-card__text {
  padding-right: 2.75rem;
}
/* 줄바꿈은 pre-line 으로 살린다. 카드가 늘어나도 6줄째가 비치지 않게 본문 자체는 늘리지 않는다 */
.hc-mo-card__text {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
  overflow: hidden;
  padding: 1.375rem 1.25rem 0;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--hc-mo-text);
  white-space: pre-line;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
.hc-mo-card.is-noimg .hc-mo-card__text {
  -webkit-line-clamp: 14;
}
.hc-mo-more {
  position: absolute;
  left: 50%;
  bottom: -1.0625rem;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  height: 2.125rem;
  padding: 0 1.25rem;
  border-radius: 999px;
  background: var(--hc-maroon);
  font-size: clamp(1rem, 3vw, 1.125rem);
  line-height: 1;
  color: #fff;
  white-space: nowrap;
  transform: translateX(-50%);
  transition: background-color 0.2s ease;
}
.hc-mo-more:hover {
  background: var(--hc-mo-dark);
}

.hc-mo-empty {
  padding: clamp(3.5rem, 7vw, 6rem) 0;
  font-size: clamp(1rem, 1.2vw, 1.125rem);
  font-weight: 500;
  line-height: 1.7;
  text-align: center;
  color: var(--hc-mo-dark);
}

/* 페이지 번호 */
.hc-mo-paging {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  margin-top: clamp(4rem, 8.5vw, 8rem);
}
.hc-mo-paging__num {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 2.375rem;
  height: 2.375rem;
  padding: 0 0.25rem;
  font-size: 1.0625rem;
  line-height: 1;
  color: var(--hc-mo-gray);
  transition: color 0.2s ease;
}
.hc-mo-paging__num:hover {
  color: var(--hc-maroon);
}
.hc-mo-paging__num.is-current {
  font-weight: 700;
  color: var(--hc-maroon);
}
.hc-mo-paging__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.375rem;
  height: 2.375rem;
  color: var(--hc-mo-gray);
  transition: color 0.2s ease;
}
.hc-mo-paging__arrow:first-child {
  margin-right: 0.75rem;
}
.hc-mo-paging__arrow:last-child {
  margin-left: 0.75rem;
}
.hc-mo-paging__arrow:hover {
  color: var(--hc-maroon);
}
.hc-mo-paging__arrow svg {
  width: 0.625rem;
  height: 1.25rem;
}
.hc-mo-paging__arrow.is-disabled {
  opacity: 0.35;
}
.hc-mo-paging__arrow.is-disabled:hover {
  color: var(--hc-mo-gray);
}

/* =============================================================
   더보기 오버레이
   데스크톱 : 왼쪽 사진 618 : 오른쪽 내용 459 (시안 기준), 바깥 좌우에 이전 / 다음 포스트 카드
   ============================================================= */
/* 내용이 화면보다 길면 오버레이 안에서 스크롤된다. 짧으면 margin:auto 로 가운데에 선다 */
.hc-mo-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 1.5rem 5.625rem;
  visibility: hidden;
  opacity: 0;
  transition:
    opacity 0.25s ease,
    visibility 0s linear 0.25s;
}
.hc-mo-modal.is-open {
  visibility: visible;
  opacity: 1;
  transition:
    opacity 0.25s ease,
    visibility 0s;
}
.hc-mo-modal__dim {
  position: fixed;
  inset: 0;
  background: rgba(52, 49, 44, 0.86);
}

.hc-mo-modal__box {
  position: relative;
  width: 100%;
  max-width: 74.4375rem;
  margin: auto;
  border-radius: 0.375rem;
  background: #e7e4dd;
  outline: none;
}
.hc-mo-modal__box.is-noimg {
  max-width: 45rem;
}
.hc-mo-modal__bar {
  display: flex;
  justify-content: flex-end;
  height: 2.375rem;
  border-radius: 0.375rem 0.375rem 0 0;
  background: var(--hc-maroon);
}
.hc-mo-modal__x {
  display: none;
}

/* 사진 칸 폭 : 618px · 전체의 54% · 화면 높이에 맞춘 폭 중 가장 작은 값 (세로가 짧은 화면에서도 한눈에 들어오게) */
.hc-mo-modal__grid {
  display: grid;
  grid-template-columns: min(38.625rem, 54%, calc((100vh - 11rem) * 0.856)) minmax(
      0,
      1fr
    );
  column-gap: clamp(1.5rem, 2.3vw, 2.0625rem);
  padding: 2.8125rem 2.5rem 2.75rem 2.5625rem;
}
.hc-mo-modal__box.is-noimg .hc-mo-modal__grid {
  grid-template-columns: minmax(0, 1fr);
}

/* 사진은 잘리지 않게 칸 안에 맞춘다 */
.hc-mo-modal__media {
  position: relative;
  aspect-ratio: 618 / 722;
  border-radius: 0.5rem;
  overflow: hidden;
  background: #d8d2ca;
}
.hc-mo-modal__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.2s ease;
}
.hc-mo-modal__inav {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  margin-top: -1.125rem;
  border-radius: 50%;
  background: rgba(80, 72, 68, 0.35);
  color: #fff;
  transition: background-color 0.2s ease;
}
.hc-mo-modal__inav:hover {
  background: rgba(80, 72, 68, 0.6);
}
.hc-mo-modal__inav:focus-visible {
  outline-color: #fff;
  outline-offset: 2px;
}
.hc-mo-modal__inav svg {
  width: 0.5rem;
  height: 0.9375rem;
}
.hc-mo-modal__inav--prev {
  left: 1.25rem;
}
.hc-mo-modal__inav--next {
  right: 1.25rem;
}

/* 내용 칸은 사진 높이에 맞추고, 넘치는 본문만 스크롤한다 (안쪽을 띄워서 칸 높이에 영향을 주지 않게) */
.hc-mo-modal__info {
  position: relative;
  min-width: 0;
}
.hc-mo-modal__in {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
}
.hc-mo-modal__box.is-noimg .hc-mo-modal__in {
  position: relative;
  height: min(35rem, calc(100vh - 11rem));
}
.hc-mo-modal__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.25rem 0.375rem 1.125rem 0.375rem;
  border-bottom: 1px solid var(--hc-mo-line);
  transition: opacity 0.2s ease;
}
.hc-mo-modal__head .hc-mo-name {
  font-size: 1.5rem;
  line-height: 1.2;
  color: var(--hc-ink);
}
.hc-mo-modal__date {
  flex: 0 0 auto;
  font-size: 1.125rem;
  line-height: 1.2;
  color: var(--hc-mo-gray);
}
/* 스크롤 바는 본문이 칸을 넘을 때만 나타난다 */
.hc-mo-modal__text {
  flex: 1 1 auto;
  min-height: 0;
  margin: 0.9375rem 0;
  padding: 0 1.25rem 0 0.5rem;
  overflow-y: auto;
  font-size: 1.125rem;
  line-height: 1.67;
  color: var(--hc-mo-text);
  white-space: pre-line;
  word-break: keep-all;
  overflow-wrap: anywhere;
  transition: opacity 0.2s ease;
}
.hc-mo-modal__text:focus {
  outline: none;
}
.hc-mo-modal__text:focus-visible {
  outline: 2px solid var(--hc-maroon);
  outline-offset: 2px;
}
.hc-mo-modal__text::-webkit-scrollbar {
  width: 0.5rem;
}
.hc-mo-modal__text::-webkit-scrollbar-track {
  border-radius: 0.25rem;
  background: #d9d8d3;
}
.hc-mo-modal__text::-webkit-scrollbar-thumb {
  border-radius: 0.25rem;
  background: #c4c1ba;
}
@supports not selector(::-webkit-scrollbar) {
  .hc-mo-modal__text {
    scrollbar-width: thin;
    scrollbar-color: #c4c1ba #d9d8d3;
  }
}
.hc-mo-modal__foot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  padding-top: clamp(1.5rem, 3.4vw, 2.75rem);
  border-top: 1px solid var(--hc-mo-line);
}

.hc-mo-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 5.25rem;
  height: 2.125rem;
  padding: 0 1.25rem;
  border: 1px solid var(--hc-maroon);
  border-radius: 999px;
  font-size: 1.0625rem;
  line-height: 1;
  color: var(--hc-maroon);
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}
.hc-mo-pill:hover {
  background: var(--hc-maroon);
  color: #fff;
}
.hc-mo-pill:disabled {
  opacity: 0.5;
  cursor: default;
}

/* 이전 / 다음 포스트 카드 : 상자 바깥 좌우 */
.hc-mo-modal__pnav {
  position: absolute;
  top: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 5rem;
  margin-top: -2.5rem;
  color: #fff;
  transition: opacity 0.2s ease;
}
.hc-mo-modal__pnav svg {
  width: 1.125rem;
  height: 2.125rem;
}
.hc-mo-modal__pnav--prev {
  right: 100%;
  margin-right: 1.0625rem;
}
.hc-mo-modal__pnav--next {
  left: 100%;
  margin-left: 1.0625rem;
}
.hc-mo-modal__pnav:disabled {
  opacity: 0.25;
  cursor: default;
}
.hc-mo-modal__pnav:focus-visible {
  outline-color: #fff;
}

/* 이전 / 다음으로 바뀌는 동안 잠깐 흐려진다 */
.hc-mo-modal__box.is-changing .hc-mo-modal__img,
.hc-mo-modal__box.is-changing .hc-mo-modal__head,
.hc-mo-modal__box.is-changing .hc-mo-modal__text {
  opacity: 0;
}

/* =============================================================
   로그인 안내 (비회원)
   시안 425 × 177 : 제목줄(닫기 X) → 문구 → 로그인 하기. 화면 크기와 상관없이 가운데
   ============================================================= */
.hc-mo-login {
  position: fixed;
  inset: 0;
  z-index: 210;
  display: flex;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 1.5rem 1.25rem;
  visibility: hidden;
  opacity: 0;
  transition:
    opacity 0.25s ease,
    visibility 0s linear 0.25s;
}
.hc-mo-login.is-open {
  visibility: visible;
  opacity: 1;
  transition:
    opacity 0.25s ease,
    visibility 0s;
}
.hc-mo-login__dim {
  position: fixed;
  inset: 0;
  background: rgba(52, 49, 44, 0.86);
}
.hc-mo-login__box {
  position: relative;
  width: 100%;
  max-width: 26.5625rem;
  margin: auto;
  border-radius: 0.375rem;
  background: #e0ddd7;
}
.hc-mo-login__bar {
  display: flex;
  justify-content: flex-end;
  height: 2.125rem;
  border-radius: 0.375rem 0.375rem 0 0;
  background: var(--hc-maroon);
}
.hc-mo-login__x {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.375rem;
  height: 2.125rem;
  color: #fff;
}
.hc-mo-login__x svg {
  width: 1.25rem;
  height: 1.25rem;
}
.hc-mo-login__x:focus-visible {
  outline-color: #fff;
  outline-offset: -0.25rem;
}
.hc-mo-login__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2.75rem 1.5rem 1.25rem;
  text-align: center;
}
.hc-mo-login__msg {
  font-size: clamp(1rem, 3vw, 1.25rem);
  font-weight: 500;
  line-height: 1.5;
  color: var(--hc-maroon);
  word-break: keep-all;
}
/* 모바일 규칙(.hc-mo-pill 축소)에 밀리지 않게 두 단계로 지정 */
.hc-mo-login .hc-mo-login__go {
	height: 2rem;
    margin-top: 1.25rem;
    padding: 0 0.75em;
    font-size: clamp(1rem, 3vw, 1.125rem);
    font-weight: 500;
}

/* =============================================================
   responsive
   ============================================================= */
@media (max-width: 1024px) {
  .hc-mo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hc-mo-photos > li {
    width: 7.5rem;
  }
}

@media (max-width: 768px) {
  .hc-mo-hero {
    aspect-ratio: 16 / 7;
  }
  .hc-mo-main {
    padding: 2.5rem 0 5rem;
  }

  .hc-mo-intro__lead {
    font-size: 0.9375rem;
  }
  .hc-mo-intro__desc,
  .hc-mo-intro__event,
  .hc-mo-intro__period {
    font-size: 0.875rem;
    line-height: 1.8;
  }
  .hc-mo-intro__note {
    font-size: 0.75rem;
  }

  /* 작성 칸 : 질문 · 주제를 가운데로, 동의 문구는 왼쪽 정렬 */
  .hc-mo-write {
    margin-top: 2.25rem;
  }
  .hc-mo-form__bar {
    min-height: 2.5rem;
    padding: 0.5rem 0.875rem;
  }
  .hc-mo-form__date {
    font-size: 0.8125rem;
  }
  .hc-mo-form__body {
    padding: 1.125rem 0.875rem 1.5rem;
  }
  .hc-mo-form__q {
    font-size: 0.9375rem;
    text-align: center;
  }
  .hc-mo-chips {
    justify-content: center;
    gap: 0.375rem;
    margin-top: 0.875rem;
  }
  .hc-mo-chip span {
    height: 1.875rem;
    padding: 0 0.75rem;
    font-size: 0.8125rem;
  }
  .hc-mo-field {
    margin-top: 0.875rem;
  }
  .hc-mo-text {
    height: 10.625rem;
    padding: 0.75rem 0.75rem 1.875rem;
    font-size: 0.875rem;
    line-height: 1.7;
  }
  .hc-mo-count {
    right: 0.5rem;
    bottom: 0.375rem;
    font-size: 0.75rem;
  }
  /* 한 줄에 4개 */
  .hc-mo-photos {
    gap: 0.375rem;
    margin-top: 0.625rem;
  }
  .hc-mo-photos > li {
    width: calc((100% - 1.125rem) / 4);
  }
  .hc-mo-add svg {
    width: 1.375rem;
    height: 1.375rem;
  }
  .hc-mo-photo__del svg {
    width: 1.375rem;
    height: 1.375rem;
  }
  .hc-mo-agree {
    margin: 1.25rem 0 0;
  }
  .hc-mo-agree__label {
    font-size: 0.875rem;
  }
  .hc-mo-agree__desc {
    font-size: 0.75rem;
  }
  .hc-mo-agree__desc br {
    display: none;
  }
  .hc-mo-form__foot {
    margin-top: 1.25rem;
  }
  .hc-mo-submit {
    min-width: 0;
    height: 2.375rem;
    padding: 0 1.625rem;
    font-size: 1rem;
  }

  .hc-mo-board {
    margin-top: 3.5rem;
  }
  .hc-mo-minebtn {
    height: 2rem;
    padding: 0 0.875rem;
    font-size: 0.875rem;
  }
  .hc-mo-view {
    margin-top: 1rem;
  }
  .hc-mo-grid {
    gap: 3rem 0.75rem;
  }
  .hc-mo-card {
    padding-bottom: 2.25rem;
  }
  .hc-mo-card__head {
    height: 2.75rem;
    padding: 0 0.875rem;
  }
  .hc-mo-card__head .hc-mo-name {
    font-size: 1.0625rem;
  }
  .hc-mo-card__date {
    font-size: 0.8125rem;
  }
  .hc-mo-pin {
    top: 3.375rem;
    right: 0.625rem;
    width: 1.25rem;
    height: 1.25rem;
  }
  .hc-mo-card__text {
    -webkit-line-clamp: 4;
    padding: 0.875rem 0.875rem 0;
    font-size: 0.875rem;
    line-height: 1.75;
  }
  .hc-mo-card.is-noimg .hc-mo-card__text {
    -webkit-line-clamp: 10;
  }
  .hc-mo-more {
    bottom: -0.9375rem;
    height: 1.875rem;
    padding: 0 1rem;
    font-size: 0.8125rem;
  }

  .hc-mo-paging {
    gap: 0;
    margin-top: 3.5rem;
  }
  .hc-mo-paging__num {
    min-width: 1.875rem;
    height: 2.125rem;
    font-size: 0.9375rem;
  }
  .hc-mo-paging__arrow {
    width: 1.875rem;
    height: 2.125rem;
  }
  .hc-mo-paging__arrow:first-child {
    margin-right: 0.25rem;
  }
  .hc-mo-paging__arrow:last-child {
    margin-left: 0.25rem;
  }

  /* 위로 가기(#hcTop) : 목록 맨 아래 오른쪽 'TOP' 버튼. 모양은 components/top_button.php 의 .hc-top-slot 규칙에 있다.
     목록 끝과의 간격(80px)이 빈 목록 문구 아래 여백을 대신한다 */
  .hc-mo-empty {
    padding-bottom: 0;
  }

  /* 오버레이 : 한 줄로 쌓는다. 제목줄(닫기 X) → 사진 → 이름 · 날짜 → 본문 → 아래 줄(이전 · 삭제 · 수정 · 다음) */
  .hc-mo-modal {
    padding: 0;
  }
  .hc-mo-modal__box,
  .hc-mo-modal__box.is-noimg {
    max-width: 92%;
    border-radius: 0;
  }
  .hc-mo-modal__bar {
    height: 2.25rem;
    border-radius: 0;
  }
  .hc-mo-modal__x {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.25rem;
    color: #fff;
  }
  .hc-mo-modal__x svg {
    width: 1rem;
    height: 1rem;
  }
  .hc-mo-modal__x:focus-visible {
    outline-color: #fff;
    outline-offset: -0.25rem;
  }
  .hc-mo-modal__grid {
    display: block;
    padding: 0.875rem 1rem 0;
  }
  .hc-mo-modal__media {
    aspect-ratio: 1 / 1;
    border-radius: 0.375rem;
  }
  .hc-mo-modal__inav {
    width: 1.625rem;
    height: 1.625rem;
    margin-top: -0.8125rem;
  }
  .hc-mo-modal__inav svg {
    width: 0.375rem;
    height: 0.6875rem;
  }
  .hc-mo-modal__inav--prev {
    left: 0.625rem;
  }
  .hc-mo-modal__inav--next {
    right: 0.625rem;
  }
  .hc-mo-modal__info,
  .hc-mo-modal__in,
  .hc-mo-modal__box.is-noimg .hc-mo-modal__in {
    position: static;
    display: block;
    height: auto;
  }
  .hc-mo-modal__head {
    margin-top: 1.25rem;
    padding: 0 0 0.375rem;
    border-bottom-color: rgba(119, 49, 62, 0.45);
  }
  .hc-mo-modal__head .hc-mo-name {
    font-size: 0.9375rem;
  }
  .hc-mo-modal__date {
    font-size: 0.75rem;
  }
  /* 본문 칸 높이 고정 : 짧은 글이어도 같은 크기, 넘치면 스크롤. 화면이 낮으면 줄어든다 */
  .hc-mo-modal__text {
    height: clamp(7.5rem, calc(100vh - min(100vw, 30rem) - 9.375rem), 13.75rem);
    margin: 0.625rem 0;
    padding: 0 0.75rem 0 2px;
    font-size: 0.875rem;
    line-height: 1.7;
  }
  .hc-mo-modal__box.is-noimg .hc-mo-modal__text {
    height: clamp(10rem, calc(100vh - 13.75rem), 26.25rem);
  }
  .hc-mo-modal__text::-webkit-scrollbar {
    width: 0.375rem;
  }
  .hc-mo-modal__foot {
    justify-content: center;
    height: 3.25rem;
    padding: 0 3rem;
    border-top-color: rgba(119, 49, 62, 0.45);
  }
  .hc-mo-modal__close {
    display: none;
  }
  .hc-mo-pill {
    min-width: 4rem;
    height: 1.75rem;
    padding: 0 1rem;
    font-size: 0.875rem;
  }
  .hc-mo-modal__pnav {
    top: auto;
    bottom: 0;
    width: 3rem;
    height: 3.25rem;
    margin: 0;
    color: var(--hc-maroon);
  }
  .hc-mo-modal__pnav--prev {
    right: auto;
    left: 0;
    margin: 0;
  }
  .hc-mo-modal__pnav--next {
    left: auto;
    right: 0;
    margin: 0;
  }
  .hc-mo-modal__pnav svg {
    width: 0.5625rem;
    height: 1.0625rem;
  }
  .hc-mo-modal__pnav:disabled {
    opacity: 0.3;
  }
  .hc-mo-modal__pnav:focus-visible {
    outline-color: var(--hc-maroon);
    outline-offset: -0.25rem;
  }
}

@media (max-width: 560px) {
  .hc-mo-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* 모바일 주소창 높이를 뺀 실제 화면 높이(dvh)를 아는 브라우저 */
@supports (height: 100dvh) {
  @media (min-width: 769px) {
    .hc-mo-modal__grid {
      grid-template-columns:
        min(38.625rem, 54%, calc((100dvh - 11rem) * 0.856))
        minmax(0, 1fr);
    }
    .hc-mo-modal__box.is-noimg .hc-mo-modal__in {
      height: min(35rem, calc(100dvh - 11rem));
    }
  }
  @media (max-width: 768px) {
    .hc-mo-modal__text {
      height: clamp(7.5rem, calc(100dvh - min(100vw, 30rem) - 9.375rem), 13.75rem);
    }
    .hc-mo-modal__box.is-noimg .hc-mo-modal__text {
      height: clamp(10rem, calc(100dvh - 13.75rem), 26.25rem);
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  .hc-mo-login,
  .hc-mo-login.is-open,
  .hc-mo-modal,
  .hc-mo-modal.is-open,
  .hc-mo-modal__img,
  .hc-mo-modal__head,
  .hc-mo-modal__text,
  .hc-mo-card__thumb img {
    transition: none;
  }
  .hc-mo-photo.is-busy::after {
    animation-duration: 2s;
  }
}
