/**
 * [메인홈]
 * - 역할: / 허브 시안 레이아웃 · DS 토큰
 * - 작성/수정일: 2026-08-20
 * - 수정일: 2026-08-20 — 전역 --fs-* · 다크 색 토큰 · 991.98/575 그리드
 * - 수정일: 2026-08-21 — iOS 스포트라이트·커뮤니티 텍스트 접힘 수정
 * - 수정일: 2026-08-21 — 미디어쿼리 Bootstrap/DS 표준(575.98·767.98·991.98) 통일
 */

body.an-main-home {
  --hub-page-bg: #f4f1ea;
  --hub-paper: #fbfaf7;
  --hub-works: #e7e1d5;
  --hub-gold: #9b7940;
  --hub-ink: #171714;
  --hub-deep: #1b1b18;
  --hub-line: #d7d1c5;
  --hub-muted: #8a8378;
  --hub-fill: #d8d2c7;
  --hub-map: #e7e3da;
  --hub-ad: #f1e9da;
  --hub-btn: #f3eee5;
  --hub-house-line: #3c3b36;
  overflow-x: hidden;
}

html.dark body.an-main-home,
body.dark.an-main-home {
  --hub-page-bg: var(--section-bg-color);
  --hub-paper: var(--white-color);
  --hub-works: var(--section-bg-color2);
  --hub-gold: #d1ae6e;
  --hub-ink: var(--title-color);
  --hub-deep: var(--cta-surface);
  --hub-line: var(--divider-color);
  --hub-muted: var(--muted-color);
  --hub-fill: var(--chip-color);
  --hub-map: var(--section-bg-color2);
  --hub-ad: var(--section-bg-color2);
  --hub-btn: var(--on-dark);
  --hub-house-line: var(--border-color);
}

body.an-main-home .an-page-main {
  padding: 0;
  background: var(--hub-page-bg);
}

body.an-main-home .an-page-main__body {
  max-width: none;
  margin-inline: 0;
  padding-inline: 0;
  overflow: visible;
}

body.an-main-home .an-hub .an-container {
  max-width: var(--container-max);
  width: 100%;
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.an-hub {
  background: var(--hub-page-bg);
  color: var(--title-color);
}

.an-hub a {
  color: inherit;
  text-decoration: none;
}

.an-hub img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.an-hub-tag {
  display: inline-block;
  font-size: var(--fs-micro);
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted-color);
}

.an-hub-tag:before {
  content: "";
  display: inline-block;
  width: 25px;
  height: 1px;
  margin: 0 10px 3px 0;
  background: currentColor;
}

.an-hub-tag--gold {
  color: var(--hub-gold);
}

.an-hub-section {
  padding: clamp(72px, 8vw, 120px) 0;
}

.an-hub-section--now,
.an-hub-section--paper,
.an-hub-section--community {
  background: var(--white-color);
}

/* [메인홈 갤러리] 하단 여백을 상단보다 넓게 — 작성/수정일: 2026-08-20 */
.an-hub-section--galleries {
  padding-bottom: clamp(108px, 12vw, 180px);
}

.an-hub-section--spot {
  background: var(--hub-deep);
  color: var(--on-dark);
}

.an-hub-section--spot .an-hub-tag,
.an-hub-section--spot .an-hub-head h2 {
  color: var(--on-dark);
}

/* .an-hub-section--works {
  background: var(--hub-works);
} */

.an-hub-section--regions {
  text-align: center;
  background: var(--bg-color);
}

.an-hub-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--space-30);
  margin-bottom: var(--space-40);
}

.an-hub-head h2,
.an-hub-section--regions h2 {
  margin: 12px 0 0;
  font-size: var(--fs-h2);
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 1.12;
}

.an-hub-head__en {
  font-family: Poppins, Pretendard, sans-serif;
}

.an-hub-head__aside {
  display: flex;
  align-items: center;
  gap: 16px;
}

.an-hub-more {
  font-size: var(--fs-micro);
  font-weight: 500;
  letter-spacing: 0.06em;
  border-bottom: 1px solid currentColor;
  padding-bottom: 7px;
}

.an-hub-link {
  display: inline-block;
  margin-top: 24px;
  padding-bottom: 7px;
  border-bottom: 1px solid currentColor;
  font-size: var(--fs-caption);
}

.an-hub-slider-nav {
  display: flex;
  gap: 8px;
}

.an-hub-slider-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin: 0;
  padding: 0;
  border: 1px solid var(--divider-color);
  border-radius: 50%;
  background: var(--hub-paper);
  color: var(--title-color);
  cursor: pointer;
}

.an-hub-slider-btn.swiper-button-disabled {
  opacity: 0.35;
  cursor: default;
  pointer-events: none;
}

/*
 * [메인홈 now 네비]
 * - 역할: 슬라이드가 적을 때 Swiper watchOverflow 가 lock(display:none) 해도
 *         툴바 좌우 버튼은 유지하고 disabled 톤만 적용 (모바일 탭 전환 시 버튼 소실 방지)
 * - 작성/수정일: 2026-08-21
 */
.an-hub-now-toolbar .an-hub-slider-btn.swiper-button-lock {
  display: inline-flex;
  opacity: 0.35;
  cursor: default;
  pointer-events: none;
}

/* 히어로 — 시안 스플릿 (크림 배경 · 일정/장소 · 이미지 화살표) */
.an-hub-hero {
  height: 566px;
  min-height: 566px;
  overflow: hidden;
  background: var(--hub-page-bg);
}

.an-hub-hero__track,
.an-hub-hero__swiper {
  position: relative;
  height: 100%;
  max-width: 1920px;
  margin-inline: auto;
}

.an-hub-hero .swiper-wrapper,
.an-hub-hero .swiper-slide {
  width: 100%;
  height: 100%;
}

.an-hub-hero-slide {
  display: grid;
  grid-template-columns: minmax(280px, 40%) minmax(0, 60%);
  align-items: stretch;
  width: 100%;
  height: 100%;
  min-height: 0;
  background: var(--hub-page-bg);
}

.an-hub-hero-slide__copy {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  padding: 48px clamp(28px, 3vw, 48px) 64px clamp(36px, 4.5vw, 80px);
}

.an-hub-hero-slide__visual {
  position: relative;
  align-self: stretch;
  min-width: 0;
  min-height: 100%;
}

.an-hub-hero-slide__media {
  position: absolute;
  inset: 0;
}

.an-hub-hero-slide__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.an-hub-hero-slide__idx {
  position: absolute;
  left: clamp(36px, 4.5vw, 80px);
  bottom: 32px;
  margin: 0;
  color: var(--hub-ink);
  font-size: var(--fs-sm);
  font-variant-numeric: tabular-nums;
}

.an-hub-hero-slide__label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--hub-gold);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.an-hub-hero-slide__label:before {
  content: "";
  display: block;
  width: 22px;
  height: 1px;
  background: currentColor;
}

.an-hub-hero-slide__copy h2 {
  margin: 22px 0 0;
  max-width: 16em;
  color: var(--hub-ink);
  font-size: var(--fs-h1);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.22;
  word-break: keep-all;
}

.an-hub-hero-slide__en {
  display: block;
}

.an-hub-hero-slide__desc {
  max-width: 34em;
  margin: 22px 0 0;
  color: var(--hub-ink);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.75;
  word-break: keep-all;
}

.an-hub-hero-slide__facts {
  display: grid;
  gap: 10px;
  max-width: 34em;
  margin: 28px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--hub-line);
}

.an-hub-hero-slide__facts div {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  align-items: baseline;
}

.an-hub-hero-slide__facts dt {
  margin: 0;
  color: var(--hub-muted);
  font-size: var(--fs-caption);
  font-weight: 500;
}

.an-hub-hero-slide__facts dd {
  margin: 0;
  color: var(--hub-ink);
  font-size: var(--fs-sm);
  line-height: 1.45;
}

.an-hub-hero__nav {
  position: absolute;
  z-index: 5;
  top: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--white-color);
  color: var(--title-color);
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.08);
  transform: translateY(-50%);
  cursor: pointer;
}

.an-hub-hero__nav--prev {
  right: 62px;
}

.an-hub-hero__nav--next {
  right: 16px;
}

/* 지역 칩 · 전시 카드 (전시홈 모듈 재사용) */
.an-hub-now-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: -12px calc(var(--container-pad) * -1) 28px;
  padding: 0 var(--container-pad);
}

.an-hub .an-hub-now-toolbar .an-ex-home-filters {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  padding: 4px 0;
}

.an-hub-now-toolbar .an-hub-slider-nav {
  flex: 0 0 auto;
}

.an-hub .an-ex-home-filters {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  margin: -12px calc(var(--container-pad) * -1) 28px;
  padding: 4px var(--container-pad);
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
}

.an-hub .an-ex-home-filters::-webkit-scrollbar {
  display: none;
}

.an-hub .an-ex-home-filter {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  margin: 0;
  border: 1px solid var(--divider-color);
  border-radius: var(--radius-pill);
  padding: 9px 15px;
  background: transparent;
  color: var(--title-color);
  font-family: inherit;
  font-size: var(--fs-xs);
  white-space: nowrap;
  cursor: pointer;
  appearance: none;
}

.an-hub .an-ex-home-filter.is-active {
  background: var(--ink);
  color: var(--on-dark);
  border-color: var(--ink);
}

.an-hub .an-ex-home-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.an-hub-now-swiper {
  overflow: hidden;
}

.an-hub-now-swiper .swiper-slide {
  height: auto;
  min-width: 0;
}

.an-hub-now-swiper.is-loading {
  opacity: 0.45;
  pointer-events: none;
}

.an-hub-now-swiper .an-empty {
  flex: 0 0 100%;
  width: 100%;
  max-width: 100%;
}

.an-hub .an-ex-home-grid.is-loading {
  opacity: 0.45;
  pointer-events: none;
}

.an-hub .an-ex-home-grid > .an-empty {
  grid-column: 1 / -1;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.an-hub .an-empty::before {
  display: none;
}

.an-hub .an-ex-home-card {
  position: relative;
  min-width: 0;
  display: block;
}

.an-hub a.an-ex-home-card:hover,
.an-hub a.an-ex-home-card:focus-visible {
  opacity: 1;
}

.an-hub .an-ex-home-card__pic {
  aspect-ratio: var(--ex-poster-ratio, 480 / 679);
  overflow: hidden;
  background: var(--chip-color);
}

.an-hub .an-ex-home-card__pic img {
  transform: scale(1);
  transition: transform 0.4s ease;
}

.an-hub .an-ex-home-card:hover .an-ex-home-card__pic img,
.an-hub .an-ex-home-card:focus-visible .an-ex-home-card__pic img {
  transform: scale(1.05);
}

.an-hub .an-ex-home-card h3 {
  margin: 16px 0 7px;
  font-size: var(--fs-h6);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.an-hub .an-ex-home-card p {
  margin: 0;
  font-size: var(--fs-caption);
  line-height: 1.55;
  color: var(--muted-color);
}

.an-hub .an-ex-home-card__meta {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  padding-top: 0;
  font-size: var(--fs-micro);
  color: var(--muted-color);
}

.an-hub .an-ex-home-badge {
  position: absolute;
  z-index: 2;
  top: 11px;
  left: 11px;
  padding: 7px 9px;
  background: var(--hub-gold);
  color: var(--on-dark);
  font-size: var(--fs-micro);
  font-weight: 500;
  letter-spacing: 0.12em;
}

/* 스포트라이트 */
.an-hub-promo {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  grid-template-rows: 260px 260px;
  gap: 15px;
}

.an-hub-promo__card {
  position: relative;
  overflow: hidden;
  background: var(--hub-deep);
  color: var(--on-dark);
}

/* [메인홈 스포트라이트] iOS에서 카드 너비가 접히지 않도록 이미지를 절대배치 — 작성/수정일: 2026-08-21 */
.an-hub-promo__card img {
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.an-hub-promo__card:first-child {
  grid-row: span 2;
}

.an-hub-promo__card:last-child {
  grid-column: span 2;
}

.an-hub-promo__card:after {
  content: "";
  position: absolute;
  inset: 18% 0 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.82));
}

.an-hub-promo__copy {
  position: absolute;
  z-index: 3;
  left: 20px;
  right: 20px;
  bottom: 20px;
  width: auto;
  max-width: calc(100% - 40px);
  box-sizing: border-box;
  color: var(--on-dark);
  writing-mode: horizontal-tb;
  text-orientation: mixed;
}

.an-hub-promo__copy small {
  display: block;
  font-family: Poppins, sans-serif;
  font-size: var(--fs-micro);
  color: var(--hub-gold);
  letter-spacing: 0.12em;
  white-space: normal;
}

.an-hub-promo__copy h3 {
  margin: 8px 0 0;
  max-width: 100%;
  color: var(--on-dark);
  font-size: var(--fs-h4);
  font-weight: 600;
  line-height: 1.25;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: keep-all;
}

.an-hub-promo__copy p {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  margin: 8px 0 0;
  max-width: 100%;
  color: var(--on-dark);
  font-size: var(--fs-caption);
  font-weight: 400;
  line-height: 1.5;
  opacity: 0.9;
  white-space: normal;
  writing-mode: horizontal-tb;
}

.an-hub-promo__card:first-child .an-hub-promo__copy p {
  -webkit-line-clamp: 3;
  line-clamp: 3;
}

/* [메인홈 아티스트] 4:3 작품 + 원형 프로필 오버랩 · PC 5열 슬라이더 — 작성/수정일: 2026-08-20 */
.an-hub-artists {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.an-hub-artists-swiper {
  overflow: hidden;
}

.an-hub-artists-swiper .swiper-slide {
  height: auto;
  min-width: 0;
}

.an-hub-artist {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--white-color);
  border: 0;
}

.an-hub-artist:hover,
.an-hub-artist:focus-visible {
  opacity: 1;
}

.an-hub-artist__pic {
  position: relative;
  z-index: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--chip-color);
}

.an-hub-artist__pic img {
  transition: transform 0.35s ease;
}

@media (hover: hover) {
  .an-hub-artist:hover .an-hub-artist__pic img,
  .an-hub-artist:focus-visible .an-hub-artist__pic img {
    transform: scale(1.03);
  }
}

.an-hub-artist__thumb {
  position: relative;
  z-index: 1;
  display: block;
  width: 72px;
  height: 72px;
  margin: -36px auto 0;
  overflow: hidden;
  border: 3px solid var(--white-color);
  border-radius: 50%;
  background: var(--chip-color);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.04);
}

.an-hub-artist__body {
  padding: 12px 12px 20px;
  text-align: center;
}

.an-hub-artist__body h2.an-list-title {
  margin: 0;
  letter-spacing: -0.03em;
  color: var(--title-color);
}

.an-hub-artist__body p {
  margin: 4px 0 0;
  font-size: var(--fs-caption);
  font-style: italic;
  font-weight: 400;
  color: var(--muted-color);
}

/* 작품 메이슨리 */
.an-hub-works-swiper {
  overflow: hidden;
}

.an-hub-masonry {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: repeat(12, 42px);
  gap: 14px;
  height: 658px;
}

.an-hub-work {
  position: relative;
  display: block;
  min-height: 0;
  overflow: hidden;
  background: var(--hub-fill);
}

.an-hub-masonry .an-hub-work:nth-child(1) {
  grid-column: 1;
  grid-row: 1 / span 6;
}
.an-hub-masonry .an-hub-work:nth-child(2) {
  grid-column: 2;
  grid-row: 1 / span 4;
}
.an-hub-masonry .an-hub-work:nth-child(3) {
  grid-column: 3;
  grid-row: 1 / span 6;
}
.an-hub-masonry .an-hub-work:nth-child(4) {
  grid-column: 4;
  grid-row: 1 / span 6;
}
.an-hub-masonry .an-hub-work:nth-child(5) {
  grid-column: 1;
  grid-row: 7 / span 6;
}
.an-hub-masonry .an-hub-work:nth-child(6) {
  grid-column: 2;
  grid-row: 5 / span 8;
}
.an-hub-masonry .an-hub-work:nth-child(7) {
  grid-column: 3;
  grid-row: 7 / span 6;
}
.an-hub-masonry .an-hub-work:nth-child(8) {
  grid-column: 4;
  grid-row: 7 / span 6;
}

.an-hub-work > img {
  transition: transform 0.5s ease;
}

/* [메인홈 작품 호버] 하단만 스크림 · 사진은 선명 유지 — 작성/수정일: 2026-08-20 */
.an-hub-work__info {
  position: absolute;
  z-index: 3;
  inset: auto 0 0;
  padding: 72px 14px 14px;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.58) 0%,
    rgba(0, 0, 0, 0.28) 52%,
    transparent 100%
  );
  color: #fff;
  pointer-events: none;
}

.an-hub-work__info .an-list-title {
  margin: 0;
  color: #fff;
}

.an-hub-work__meta {
  margin: 6px 0 0;
  color: #fff;
  font-size: var(--fs-sm);
  font-weight: 500;
  line-height: 1.2;
}

.an-hub-work__artist {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  color: #fff;
  font-size: var(--fs-caption);
  font-weight: 600;
}

/* [메인홈 작품 호버] 원형 아바타 — .an-hub img(100%)보다 우선 — 작성/수정일: 2026-08-20 */
.an-hub img.an-hub-work__avatar {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border-radius: 50%;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.2);
}

@media (hover: hover) {
  .an-hub-work:hover,
  .an-hub-work:focus-visible {
    opacity: 1;
  }

  .an-hub-work__info {
    opacity: 0;
    transition: opacity 0.3s ease;
  }

  .an-hub-work:hover > img,
  .an-hub-work:focus-visible > img {
    transform: scale(1.025);
  }

  .an-hub-work:hover .an-hub-work__info,
  .an-hub-work:focus-visible .an-hub-work__info {
    opacity: 1;
  }
}

/* 지역 */
.an-hub-regions__lead {
  max-width: 520px;
  margin: 12px auto 0;
  color: var(--muted-color);
}

.an-hub-region-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 30px 0;
}

.an-hub-region-tab {
  padding: 10px 16px;
  border: 1px solid var(--divider-color);
  border-radius: var(--radius-pill);
  background: var(--hub-paper);
  font-size: var(--fs-xs);
}

.an-hub-region-tab.is-active {
  background: var(--ink);
  color: var(--on-dark);
  border-color: var(--ink);
}

.an-hub-map {
  position: relative;
  height: 430px;
  overflow: hidden;
  background:
    linear-gradient(
      150deg,
      transparent 49%,
      rgba(155, 121, 64, 0.28) 50%,
      transparent 51%
    ),
    var(--hub-map);
}

/* [메인홈 지역 지도] 카카오 타일이 .an-hub img 100%에 깨지지 않게 — 작성/수정일: 2026-08-20 */
.an-hub-map__canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.an-hub-map img {
  width: auto;
  height: auto;
  max-width: none;
  object-fit: unset;
  display: inline;
}

.an-hub-map .an-ex-map-ov__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.an-hub-map__panel {
  position: absolute;
  z-index: 3;
  top: 16px;
  left: 16px;
}

.an-hub-map__cta {
  display: inline-flex;
  padding: 11px 14px;
  background: #fee500;
  color: #191919;
  font-size: var(--fs-xs);
  font-weight: 600;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
}

.an-hub-map__caption {
  position: absolute;
  z-index: 3;
  right: 16px;
  bottom: 16px;
  padding: 12px 15px;
  background: #fff;
  color: #171714;
  text-align: left;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
  pointer-events: none;
}

.an-hub-map__caption b {
  display: block;
  font-size: var(--fs-sm);
}

.an-hub-map__caption span {
  font-size: var(--fs-micro);
  color: #8a8378;
}

/* [메인홈 지역 지도] 전시 지도와 같은 마커 오버레이 — 작성/수정일: 2026-08-20 */
.an-hub-map .an-ex-map-ov {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  width: max-content;
  max-width: min(360px, 92vw);
  background: #fff;
  border-radius: 14px;
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.08),
    0 12px 32px rgba(0, 0, 0, 0.16);
  color: #171714;
  text-align: left;
  text-decoration: none;
  white-space: normal;
  transform: translateY(-6px);
  padding: 4px 4px 4px 8px;
}

.an-hub-map .an-ex-map-ov:hover,
.an-hub-map .an-ex-map-ov:focus-visible {
  color: #171714;
  text-decoration: none;
}

.an-hub-map .an-ex-map-ov__media {
  flex: 0 0 72px;
  width: 72px;
  height: 90px;
  overflow: hidden;
  margin: 0;
  background: #f0f0f0;
}

.an-hub-map .an-ex-map-ov__body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-width: 148px;
  max-width: 220px;
  padding: 10px 14px 10px 12px;
  text-align: left;
}

.an-hub-map .an-ex-map-ov__badge {
  display: inline-flex;
  align-self: flex-start;
  margin: 0 0 6px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #171714;
  color: #fff;
  font-size: var(--fs-xs);
  font-weight: 700;
  line-height: 1.4;
}

.an-hub-map .an-ex-map-ov__name {
  display: block;
  margin: 0;
  font-size: var(--fs-label);
  font-weight: 700;
  line-height: 1.35;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.an-hub-map .an-ex-map-ov__meta,
.an-hub-map .an-ex-map-ov__ex {
  margin: 5px 0 0;
  font-size: var(--fs-caption);
  color: #6b6b6b;
  line-height: 1.4;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.an-hub-map .an-ex-map-ov__cta {
  display: inline-flex;
  align-self: flex-start;
  margin-top: 8px;
  font-size: var(--fs-caption);
  font-weight: 700;
  color: #171714;
}

.an-hub-map .an-ex-map-ov__cta::after {
  content: "→";
}

.an-hub-map .an-ex-map-ov__tail {
  position: absolute;
  left: 50%;
  bottom: -7px;
  width: 14px;
  height: 14px;
  margin-left: -7px;
  background: #fff;
  transform: rotate(45deg);
  border-radius: 2px;
}

.an-hub-map__caption b {
  display: block;
  font-size: var(--fs-sm);
}

.an-hub-map__caption span {
  font-size: var(--fs-micro);
  color: var(--muted-color);
}

/* [메인홈 갤러리] 왼쪽은 타이틀과 맞추고 오른쪽은 화면 끝까지 — 작성/수정일: 2026-08-20 */
.an-hub-gallery-bleed {
  width: 100%;
  padding-left: max(
    var(--container-pad),
    calc((100% - var(--container-max)) / 2 + var(--container-pad))
  );
  overflow: hidden;
}

.an-hub-gallery-swiper {
  width: 100%;
  overflow: hidden;
}

@media (min-width: 992px) {
  .an-hub-gcard__head {
    gap: 8px;
    margin-top: 12px;
  }

  .an-hub-gcard__id span {
    font-size: var(--fs-micro);
  }

  .an-hub-gcard__follow {
    height: 26px;
    padding: 0 10px;
    font-size: var(--fs-micro);
    line-height: 24px;
  }

  .an-hub-gcard__fallback {
    font-size: var(--fs-body);
  }
}

.an-hub-gcard__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
}

.an-hub-gcard__id {
  min-width: 0;
  flex: 1 1 auto;
}

.an-hub-gcard__id .an-list-title {
  display: block;
  overflow: hidden;
  color: var(--title-color);
  letter-spacing: -0.03em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.an-hub-gcard__id span {
  display: block;
  overflow: hidden;
  margin-top: 4px;
  color: var(--muted-color);
  font-size: var(--fs-sm);
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.an-hub-gcard__follow {
  flex: 0 0 auto;
  height: 32px;
  padding: 0 16px;
  border: 1px solid var(--hub-line);
  border-radius: 999px;
  background: transparent;
  color: var(--hub-muted);
  font-family: inherit;
  font-size: var(--fs-sm);
  font-weight: 500;
  line-height: 30px;
  white-space: nowrap;
  cursor: pointer;
}

.an-hub-gcard__follow:hover {
  border-color: var(--hub-muted);
  color: var(--hub-ink);
}

.an-hub-gcard__follow.is-on {
  background: transparent;
  border-color: var(--hub-muted);
  color: var(--hub-ink);
}

.an-hub-gcard__follow:disabled {
  opacity: 0.6;
  cursor: wait;
}

.an-hub-gcard__pic {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--hub-fill);
}

.an-hub-gcard__pic img {
  transition: transform 0.5s ease;
}

.an-hub-gcard__fallback {
  display: grid;
  place-items: center;
  height: 100%;
  color: var(--hub-ink);
  font-size: clamp(22px, 2vw, 32px);
  font-weight: 500;
  letter-spacing: 0.04em;
}

.an-hub-gcard:hover .an-hub-gcard__id .an-list-title {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.an-hub-gcard:hover .an-hub-gcard__pic img {
  transform: scale(1.025);
}

/* [메인홈 커뮤니티] 좌·우 리스트 + 가운데 1:1 피처 — 작성/수정일: 2026-08-20 */
.an-hub-community {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) minmax(0, 1fr);
  grid-template-areas: "left feature right";
  gap: var(--space-30);
  align-items: stretch;
}

.an-hub-community__col--left {
  grid-area: left;
}

.an-hub-community__col--right {
  grid-area: right;
}

.an-hub-community__col {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border-top: 1px solid var(--divider-color);
}

.an-hub-community__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 72px;
  align-items: start;
  gap: var(--space-15);
  flex: 0 0 auto;
  min-width: 0;
  padding: var(--space-20) 0;
  border-bottom: 1px solid var(--divider-color);
}

.an-hub-community__row.is-ad {
  padding-inline: var(--space-10);
  background: var(--hub-ad);
}

.an-hub-community__copy {
  min-width: 0;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: 6px;
  writing-mode: horizontal-tb;
  text-orientation: mixed;
}

.an-hub-community__copy small {
  font-size: var(--fs-micro);
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--hub-gold);
}

.an-hub-community__copy .an-list-title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  margin: 0;
  width: 100%;
  max-width: 100%;
  flex: 0 0 auto;
  color: var(--title-color);
  letter-spacing: var(--letter-tight);
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: keep-all;
  writing-mode: horizontal-tb;
}

.an-hub-community__copy em {
  color: var(--muted-color);
  font-size: var(--fs-micro);
  font-style: normal;
  line-height: 1.3;
}

.an-hub-community__thumb {
  display: block;
  width: 72px;
  height: 72px;
  overflow: hidden;
  background: var(--hub-fill);
}

.an-hub-community__feature {
  grid-area: feature;
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  min-height: 0;
  background: var(--hub-deep);
}

.an-hub-community__feature:after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 42% 0 0;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(0, 0, 0, 0.35) 40%,
    rgba(0, 0, 0, 0.72) 100%
  );
}

.an-hub-community__feature:before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 42% 0 0;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(0, 0, 0, 0.18) 40%,
    rgba(0, 0, 0, 0.4) 100%
  );
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

@media (hover: hover) {
  .an-hub-community__feature:hover,
  .an-hub-community__row:hover {
    opacity: 1;
  }

  .an-hub-community__feature:hover:before {
    opacity: 1;
  }
}

.an-hub-community__feature-copy {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: var(--space-10);
  padding: var(--space-25);
  color: #fff;
  writing-mode: horizontal-tb;
  text-orientation: mixed;
}

.an-hub-community__feature-copy small {
  color: #fff;
  font-size: var(--fs-micro);
  font-weight: 500;
  letter-spacing: 0.12em;
}

.an-hub-community__feature-copy .an-list-title {
  margin: 0;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  flex: 0 0 auto;
  color: #fff;
  letter-spacing: var(--letter-tight);
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: keep-all;
  writing-mode: horizontal-tb;
}

.an-hub-community__byline {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  font-size: var(--fs-caption);
}

.an-hub-community__avatar {
  display: block;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  overflow: hidden;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}

.an-hub-community__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.an-hub-community__byline b {
  min-width: 0;
  overflow: hidden;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.an-hub-community__byline i {
  margin-left: auto;
  font-size: var(--fs-sm);
  opacity: 0.9;
}

.an-hub-community__byline em {
  font-style: normal;
  font-variant-numeric: tabular-nums;
}

.an-hub-community__row:hover .an-list-title,
.an-hub-community__feature:hover .an-list-title {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* [메인홈 커뮤니티] PC에서만 피처 높이에 행을 균등 분배. 모바일은 콘텐츠 높이 유지 — 작성/수정일: 2026-08-21 */
@media (min-width: 992px) {
  .an-hub-community__row {
    flex: 1 1 0;
    min-height: 0;
  }
}

/* [메인홈 하우스] 시네마틱 스플릿 · 에디토리얼 인덱스 — 작성/수정일: 2026-08-20 */
.an-hub-house {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(340px, 0.8fr);
  min-height: 620px;
  overflow: hidden;
  /* height: min(78vh, 740px); */
  background: #12110f;
  color: #f3eee6;
}

.an-hub-house__media {
  position: relative;
  overflow: hidden;
  background: #1a1916;
}

.an-hub-house__media img {
  transition: transform 1.2s ease;
  filter: saturate(0.92) contrast(1.04);
}

@media (hover: hover) {
  .an-hub-house:hover .an-hub-house__media img {
    transform: scale(1.03);
  }
}

.an-hub-house__media:after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(18, 17, 15, 0.18) 0%,
      transparent 32%,
      rgba(18, 17, 15, 0.78) 100%
    ),
    linear-gradient(90deg, transparent 70%, rgba(18, 17, 15, 0.28) 100%);
}

.an-hub-house__kicker,
.an-hub-house__brand,
.an-hub-house__brand strong,
.an-hub-house__brand span {
  color: #fff;
}

.an-hub-house__kicker {
  position: absolute;
  z-index: 2;
  top: 36px;
  left: 36px;
  font-family: Poppins, sans-serif;
  font-size: var(--fs-micro);
  font-weight: 500;
  letter-spacing: 0.22em;
}

.an-hub-house__brand {
  position: absolute;
  z-index: 2;
  left: 36px;
  right: 36px;
  bottom: 36px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.an-hub-house__brand strong {
  font-family: Poppins, sans-serif;
  font-size: clamp(36px, 4.2vw, 64px);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: -0.045em;
}

.an-hub-house__brand span {
  flex: 0 0 auto;
  margin-bottom: 6px;
  font-family: Poppins, sans-serif;
  font-size: var(--fs-micro);
  letter-spacing: 0.16em;
  opacity: 0.78;
}

.an-hub-house__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(44px, 5.5vw, 88px) clamp(36px, 4.2vw, 72px);
  color: #f3eee6;
}

.an-hub-house__copy .an-hub-tag,
.an-hub-house__copy .an-hub-tag--gold {
  color: #c4a36a;
}

.an-hub-house__copy h2 {
  max-width: 11.2em;
  margin: 22px 0 16px;
  color: #f3eee6;
  font-size: clamp(28px, 2.6vw, 42px);
  font-weight: 500;
  line-height: 1.22;
  letter-spacing: -0.035em;
}

.an-hub-house__copy > p {
  max-width: 34em;
  margin: 0;
  color: #b7b0a4;
  font-size: var(--fs-body);
  line-height: 1.7;
}

.an-hub-house__index {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgba(243, 238, 230, 0.14);
}

.an-hub-house__index li {
  display: grid;
  grid-template-columns: 2.2em 1fr;
  grid-template-rows: auto auto;
  column-gap: 4px;
  row-gap: 4px;
  padding: 20px 28px 20px 0;
  border-bottom: 1px solid rgba(243, 238, 230, 0.12);
}

.an-hub-house__index li:nth-child(odd) {
  padding-right: 28px;
  border-right: 1px solid rgba(243, 238, 230, 0.12);
}

.an-hub-house__index li:nth-child(even) {
  padding-left: 28px;
}

.an-hub-house__index em {
  grid-row: 1 / span 2;
  font-family: Poppins, sans-serif;
  font-size: var(--fs-micro);
  font-style: normal;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: #c4a36a;
}

.an-hub-house__index b {
  color: #f3eee6;
  font-family: Poppins, sans-serif;
  font-size: var(--fs-body);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.an-hub-house__index span {
  color: #9a9388;
  font-size: var(--fs-caption);
  line-height: 1.4;
}

/* [메인홈 하우스] 비회원 그리드 링크 — 작성/수정일: 2026-08-23 */
.an-hub-house__index-link {
  display: grid;
  grid-template-columns: 2.2em 1fr;
  grid-template-rows: auto auto;
  column-gap: 4px;
  row-gap: 4px;
  width: 100%;
  color: inherit;
  text-decoration: none;
}

.an-hub-house__index-link:hover {
  opacity: 0.88;
}

.an-hub-house__index-link:focus-visible {
  outline: 2px solid #c4a36a;
  outline-offset: 2px;
}

.an-hub-house__action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 36px;
}

.an-hub-house__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border: 1px solid rgba(243, 238, 230, 0.55);
  background: transparent;
  color: #f3eee6;
  font-family: Poppins, sans-serif;
  font-size: var(--fs-caption);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.an-hub-house__cta:hover,
.an-hub-house__cta:focus-visible {
  background: #f3eee6;
  border-color: #f3eee6;
  color: #12110f;
}

.an-hub-house__action small {
  font-family: Poppins, sans-serif;
  font-size: var(--fs-micro);
  letter-spacing: 0.14em;
  color: #8a8378;
}

.an-hub-btn {
  display: inline-flex;
  padding: 11px 17px;
  background: var(--hub-btn);
  color: var(--ink);
  font-size: var(--fs-micro);
  font-weight: 600;
}

@media (max-width: 991.98px) {
  .an-hub-artists {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }

  .an-hub-promo {
    grid-template-columns: 1fr 1fr;
  }

  .an-hub-promo__card:first-child,
  .an-hub-promo__card:last-child {
    grid-column: span 2;
  }

  .an-hub-community {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "feature feature"
      "left right";
  }

  .an-hub-house {
    grid-template-columns: 1fr;
    height: auto;
    min-height: 0;
  }

  .an-hub-house__media {
    min-height: 280px;
    height: 42vw;
    max-height: 380px;
  }

  .an-hub-house__brand strong {
    font-size: clamp(32px, 8vw, 48px);
  }

  .an-hub-house__copy {
    min-height: 0;
    padding: 40px var(--container-pad) 48px;
  }

  .an-hub-house__index li:nth-child(odd) {
    border-right: 0;
    padding-right: 16px;
  }

  .an-hub-house__index li:nth-child(even) {
    padding-left: 0;
  }
}

@media (max-width: 991.98px) {
  .an-hub-hero {
    height: auto;
    min-height: 0;
    overflow: hidden;
  }

  .an-hub-hero__track,
  .an-hub-hero__swiper,
  .an-hub-hero .swiper-wrapper,
  .an-hub-hero .swiper-slide {
    height: auto;
  }

  .an-hub-hero .swiper-wrapper {
    height: auto !important;
  }

  .an-hub-hero-slide {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
    min-height: 0;
    height: clamp(460px, 48dvh, 560px);
  }

  .an-hub-hero-slide__visual,
  .an-hub-hero-slide__copy {
    grid-column: 1;
    grid-row: 1;
  }

  .an-hub-hero-slide__visual {
    z-index: 0;
    position: relative;
    min-height: 0;
    height: 100%;
    padding: 0;
  }

  .an-hub-hero-slide__media {
    position: absolute;
    inset: 0;
    display: block;
    height: 100%;
  }

  .an-hub-hero-slide__media img {
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    object-fit: cover;
    object-position: center;
  }

  .an-hub-hero-slide__copy {
    z-index: 2;
    position: relative;
    align-self: stretch;
    justify-content: center;
    min-height: 0;
    padding: 56px var(--container-pad)
      calc(56px + env(safe-area-inset-bottom, 0px));
    background: linear-gradient(
      180deg,
      rgba(23, 23, 20, 0.08) 0%,
      rgba(23, 23, 20, 0.72) 100%
    );
    color: var(--on-dark);
    overflow: auto;
  }

  .an-hub-hero-slide__copy h1 {
    margin-top: 12px;
  }

  .an-hub-hero-slide__desc {
    margin-top: 12px;
  }

  .an-hub-hero-slide__facts {
    margin-top: 16px;
    padding-top: 12px;
    gap: 8px;
  }

  .an-hub-hero-slide__copy h2,
  .an-hub-hero-slide__desc,
  .an-hub-hero-slide__facts dd {
    color: var(--on-dark);
  }

  .an-hub-hero-slide__facts {
    border-top-color: rgba(255, 255, 255, 0.28);
  }

  .an-hub-hero-slide__facts dt {
    color: rgba(255, 255, 255, 0.72);
  }

  .an-hub-hero-slide__idx {
    display: none;
  }

  .an-hub-hero__nav--prev {
    right: calc(var(--container-pad) + 52px);
  }

  .an-hub-hero__nav--next {
    right: var(--container-pad);
  }

  .an-hub-hero__nav {
    top: auto;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    transform: none;
  }
}

@media (max-width: 767.98px) {
  .an-hub .an-ex-home-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .an-hub-masonry {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(24, 28px);
    height: 994px;
  }

  .an-hub-masonry .an-hub-work:nth-child(1) {
    grid-column: 1;
    grid-row: 1 / span 6;
  }
  .an-hub-masonry .an-hub-work:nth-child(2) {
    grid-column: 2;
    grid-row: 1 / span 5;
  }
  .an-hub-masonry .an-hub-work:nth-child(3) {
    grid-column: 1;
    grid-row: 7 / span 7;
  }
  .an-hub-masonry .an-hub-work:nth-child(4) {
    grid-column: 2;
    grid-row: 6 / span 7;
  }
  .an-hub-masonry .an-hub-work:nth-child(5) {
    grid-column: 1;
    grid-row: 14 / span 6;
  }
  .an-hub-masonry .an-hub-work:nth-child(6) {
    grid-column: 2;
    grid-row: 13 / span 5;
  }
  .an-hub-masonry .an-hub-work:nth-child(7) {
    grid-column: 1;
    grid-row: 20 / span 5;
  }
  .an-hub-masonry .an-hub-work:nth-child(8) {
    grid-column: 2;
    grid-row: 18 / span 7;
  }
}

@media (max-width: 575.98px) {
  .an-hub-head {
    display: block;
  }

  .an-hub-more {
    display: inline-block;
    margin-top: 16px;
  }

  /* [메인홈] 모바일 좌우 버튼을 더보기 오른쪽 — 작성/수정일: 2026-08-20 */
  .an-hub-section--galleries .an-hub-head__aside,
  .an-hub-section--works .an-hub-head__aside,
  .an-hub-section--paper .an-hub-head__aside {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-top: 16px;
  }

  .an-hub-section--galleries .an-hub-more,
  .an-hub-section--paper .an-hub-more {
    margin-top: 0;
  }

  .an-hub .an-ex-home-card__meta {
    display: none;
  }

  .an-hub-promo {
    display: block;
  }

  .an-hub-promo__card {
    height: 360px;
    min-height: 360px;
    margin-bottom: 12px;
    display: block;
  }

  .an-hub .an-ex-home-grid,
  .an-hub-artists {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .an-hub-map {
    height: 340px;
  }

  .an-hub-map__caption {
    display: none;
  }

  .an-hub-community {
    grid-template-columns: 1fr;
    grid-template-areas:
      "feature"
      "left"
      "right";
  }

  .an-hub-house__index {
    grid-template-columns: 1fr;
  }

  .an-hub-house__index li:nth-child(odd) {
    padding-right: 0;
  }

  .an-hub-gcard__follow {
    height: 28px;
    padding: 0 12px;
    font-size: var(--fs-micro);
    line-height: 26px;
  }
}
