/**
 * [포스터 히어로] 메인홈(Mist Blue)·전시홈(Gallery Beige) 공용
 * - 마크업: artnet/bbs/_inc/hero_posters.php
 * - 작성/수정일: 2026-11-30
 * - 수정일: 2026-12-01 — 배경·글자색을 추천 조합(Mist Blue #E7EFF5 / Gallery Beige #EDE6DA)으로
 */
.an-hp {
  --hp-bg: #dce8f4;    /* Mist Blue 를 한 단계 푸르게(흰 칸과 경계가 보이게) */
  --hp-fg: #191919;    /* 제목·아래로 버튼 */
  --hp-lead: #596773;  /* 설명 */
  --hp-name: #222222;  /* 전시 제목 */
  --hp-meta: #596773;  /* 전시 일정 — 바탕 대비 4.68 */
  background: var(--hp-bg);
  color: var(--hp-fg);
  text-align: center;
}
.an-hp--beige {
  --hp-bg: #ede6da;
  --hp-lead: #6b6258;
  --hp-meta: #6b6258;  /* 표의 #756E64 는 작은 글자 대비 4.06 — 설명색으로 맞춤(4.82) */
}
html.dark .an-hp {
  --hp-bg: #1b2229;
  --hp-fg: #f1f4f7;
  --hp-lead: #a9b4bf;
  --hp-name: #e9edf1;
  --hp-meta: #98a3ad;
}
html.dark .an-hp--beige {
  --hp-bg: #24211d;
  --hp-fg: #f3eee5;
  --hp-lead: #bdb4a8;
  --hp-name: #ece6dc;
  --hp-meta: #aaa195;
}
.an-hp__in {
  max-width: 1340px;
  margin: 0 auto;
  padding: 72px 16px 64px;
}
html body .an-hp__title {
  margin: 0;
  font-size: 44px;
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--hp-fg);
  word-break: keep-all;
}
html body .an-hp__lead {
  margin: 14px 0 0;
  font-size: 17px;
  line-height: 1.5;
  color: var(--hp-lead);
  word-break: keep-all;
}
.an-hp__row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 300px));
  gap: 36px;
  justify-content: center;
  margin: 48px 0 0;
}
html body .an-hp__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  color: var(--hp-fg);
  text-decoration: none;
}
.an-hp__ph {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 100%;
  aspect-ratio: 300 / 420;
}
/* 포스터 틀(300:420). 비율이 크게 다른 포스터(광고·지정분)는 자르지 않고 가운데·흰 바탕, 맞는 포스터는 아래 is-fit 으로 꽉 채움 */
.an-hp__img {
  position: relative;
  display: flex;
  width: 100%;
  height: 100%;
  background: #fff;
  /* 메인홈·전시홈 같은 그림자 — 벽에 건 액자처럼: 가장자리에 붙는 얇은 그림자 + 아래로 짧게 떨어지는 그림자 */
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.18),
    0 3px 6px rgba(0, 0, 0, 0.1),
    0 12px 16px -8px rgba(0, 0, 0, 0.28);
  transition: transform 0.25s ease;
}
.an-hp__img img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
}
/* 틀과 비율이 맞는 포스터(가로÷세로 0.62~0.80)는 카드에 꽉 채움 — 잘리는 부분이 아주 적음 */
.an-hp__img.is-fit img {
  object-fit: cover;
}
/* 사이트 공통 a:hover { opacity:.65 } 를 끔 — 포스터가 배경과 섞여 탁해 보임. 대신 살짝 떠오르기만 */
html body .an-hp__card:hover,
html body .an-hp__card:focus-visible,
html body .an-hp__more:hover,
html body .an-hp__more:focus-visible {
  opacity: 1;
}
.an-hp__card:hover .an-hp__img,
.an-hp__card:focus-visible .an-hp__img {
  transform: translateY(-4px);
}
/* 전시 제목은 한 줄 — 넘치면 … (사이트 공통 규칙이 display 를 덮어써서 줄 자르기 대신 nowrap) */
html body .an-hp__name {
  display: block;
  width: 100%;
  max-width: 100%;
  margin-top: 16px;
  overflow: hidden;
  font-size: 16px;
  font-weight: 600;
  color: var(--hp-name);
  white-space: nowrap;
  text-overflow: ellipsis;
}
.an-hp__meta {
  margin-top: 4px;
  font-size: 13px;
  color: var(--hp-meta);
}
/* 아래로 더 보기 — 목록으로 넘어가지 않고 아래 칸으로 내려감 */
html body .an-hp__more {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  margin-top: 28px;
  padding: 4px;
  border: 0;
  background: none;
  color: var(--hp-fg);
  cursor: pointer;
}
.an-hp__more-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  animation: an-hp-bob 2s ease-in-out infinite;
}
.an-hp__more:hover .an-hp__more-icon,
.an-hp__more:focus-visible .an-hp__more-icon {
  background: var(--hp-fg);
  color: var(--hp-bg);
}
@keyframes an-hp-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}
@media (prefers-reduced-motion: reduce) {
  .an-hp__more-icon { animation: none; }
}

@media (max-width: 991.98px) {
  .an-hp__row {
    gap: 20px;
  }
  html body .an-hp__title {
    font-size: 34px;
  }
}

@media (max-width: 767.98px) {
  .an-hp__in {
    padding: 44px 0 40px;
  }
  html body .an-hp__title {
    padding: 0 16px;
    font-size: 26px;
  }
  html body .an-hp__lead {
    padding: 0 16px;
    font-size: 14px;
  }
  .an-hp__row {
    display: flex;
    justify-content: flex-start;
    gap: 16px;
    margin-top: 28px;
    padding: 0 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding: 0 16px;
    scrollbar-width: none;
  }
  .an-hp__row::-webkit-scrollbar {
    display: none;
  }
  .an-hp__card {
    flex: 0 0 72%;
    scroll-snap-align: start;
  }
  .an-hp__ph {
    aspect-ratio: auto;
    height: 360px;
  }
  html body .an-hp__more {
    margin-top: 16px;
  }
}
