/**
 * [갤러리]
 * - 역할: DS 목록(사이드 필터·카드) + 상세 프로필(커버·sticky 탭)
 * - 작성/수정일: 2026-08-08
 */

.an-gl-list,
.an-gl-profile {
  color: var(--title-color, #171717);
}

/* ========== 목록 ========== */
.an-gl-list__layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: var(--space-40, 40px);
  align-items: start;
}

.an-gl-sidebar {
  position: sticky;
  top: 100px;
  max-height: calc(100dvh - 124px);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: auto;
  -webkit-overflow-scrolling: touch;
  padding-right: 6px;
  padding-bottom: 24px;
  box-sizing: border-box;
  scrollbar-gutter: stable;
}

.an-gl-sidebar__head {
  display: none;
}

/* [필터] 작가·아트워크와 동일 구분선·타이포 — 작성/수정일: 2026-08-09 */
.an-gl-filter + .an-gl-filter {
  margin-top: var(--space-30, 30px);
  padding-top: var(--space-25, 24px);
  border-top: 1px solid var(--border-color, #e5e5e5);
}

.an-gl-filter__title {
  margin: 0 0 14px;
  font-size: var(--fs-label, 14px);
  font-weight: 700;
  color: var(--title-color, #171717);
}

.an-gl-filter__search {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 46px;
  padding: 0 14px;
  border: 1px solid var(--border-color, #e5e5e5);
  border-radius: var(--radius-sm, 6px);
  background: var(--white-color, #fff);
}

.an-gl-filter__search i {
  color: var(--muted-color, #7c7c7c);
  font-size: var(--fs-body, 16px);
}

.an-gl-filter__search input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--title-color, #171717);
  font-size: var(--fs-label, 14px);
  outline: none;
}

.an-gl-filter__checks {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.an-gl-filter__checks li {
  margin: 0;
}

.an-gl-check {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: var(--fs-label, 14px);
  color: var(--text-color, #444);
}

.an-gl-check input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--primary-color, #171717);
}

.an-gl-filter__more {
  margin-top: 12px;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--muted-color, #7c7c7c);
  font-size: var(--fs-caption, 12px);
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.an-gl-filter__actions {
  display: grid;
  gap: 10px;
  margin-top: var(--space-30, 30px);
}

.an-gl-filter__actions .primary-btn2,
.an-gl-filter__actions .secondary-btn {
  width: 100%;
  justify-content: center;
}

.an-gl-mapview__panel .an-gl-filter__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.an-gl-mapview__panel .an-gl-filter__actions .primary-btn2,
.an-gl-mapview__panel .an-gl-filter__actions .secondary-btn {
  flex: 1 1 calc(50% - 4px);
  width: auto;
  min-width: 0;
}

.an-gl-mapview__panel .an-gl-filter__actions--solo .secondary-btn {
  flex: 1 1 100%;
  width: 100%;
}

/**
 * [목록 필터 칩]
 * - 역할: 활성 필터 칩을 툴바 위에 배치. 비어 있으면 숨김
 * - 작성/수정일: 2026-08-20
 */
.an-gl-chips-wrap {
  display: none;
  margin: 0 0 14px;
}

.an-gl-chips-wrap:has(.an-gl-chip) {
  display: block;
}

.an-gl-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/**
 * [목록 필터 칩]
 * - 역할: DS 뱃지(추천)와 동일 — chip-color 알약. 초기화만 primary 채움
 * - 작성/수정일: 2026-08-20
 */
.an-gl-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill, 999px);
  background: var(--chip-color, #f2f2f2);
  color: var(--title-color, #171717);
  font-size: var(--fs-caption, 12px);
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
}

.an-gl-chip:hover {
  opacity: 0.82;
}

.an-gl-chip:focus-visible {
  outline: 2px solid var(--primary-color, #171717);
  outline-offset: 2px;
}

.an-gl-chip__label {
  max-width: 16em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.an-gl-chip__x {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  line-height: 1;
  opacity: 0.55;
}

.an-gl-chip__x .bi {
  font-size: 12px;
  line-height: 1;
}

.an-gl-chip--reset {
  background: var(--primary-color, #171717);
  color: var(--white-color, #fff);
}

.an-gl-chip--reset .bi {
  font-size: 12px;
  line-height: 1;
}

.an-gl-list .an-gl-filter__apply {
  display: none !important;
}

.an-gl-list.is-loading [data-an-gl-body] {
  opacity: 0.45;
  pointer-events: none;
}

.an-gl-main {
  scroll-margin-top: 72px;
}

.an-gl-main__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  margin-bottom: var(--space-25, 24px);
  min-height: 42px;
}

.an-gl-main__count {
  margin: 0;
  font-size: var(--fs-body, 15px);
  line-height: 1.3;
}

.an-gl-main__count-all {
  color: var(--muted-color, #7c7c7c);
  font-size: var(--fs-caption, 12px);
}

.an-gl-main__tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.an-gl-main__filter-btn {
  display: none;
  align-items: center;
  gap: 6px;
  height: 42px;
  box-sizing: border-box;
  border: 1px solid var(--border-color, #e5e5e5);
  border-radius: var(--radius-sm, 6px);
  background: var(--white-color, #fff);
  padding: 0 12px;
  font-size: var(--fs-caption, 12px);
  font-weight: 600;
  cursor: pointer;
}

/**
 * [목록 툴바] 작가·아트워크와 동일 톤 (연한 활성·라운드) — 작성/수정일: 2026-08-09
 */
.an-gl-main__tools .an-gl-mode-toggle {
  border: 1px solid var(--border-color, #e5e5e5);
  border-radius: var(--radius-sm, 6px);
  overflow: hidden;
  background: var(--white-color, #fff);
}

.an-gl-main__tools .an-gl-mode-toggle__btn {
  height: 42px;
  box-sizing: border-box;
  padding: 0 12px;
  font-size: var(--fs-caption, 12px);
  color: var(--muted-color, #7c7c7c);
}

.an-gl-main__tools .an-gl-mode-toggle__btn.is-active {
  background: var(--chip-color, #ececec);
  color: var(--title-color, #171717);
}

.an-gl-main__tools .an-gl-sort .an-sort__toggle {
  min-height: 42px;
  height: 42px;
  box-sizing: border-box;
  border-radius: var(--radius-sm, 6px);
  padding: 0 12px;
}

.an-gl-view-toggle {
  display: inline-flex;
  border: 1px solid var(--border-color, #e5e5e5);
  border-radius: var(--radius-sm, 6px);
  overflow: hidden;
  height: 42px;
  box-sizing: border-box;
}

.an-gl-view-toggle button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 100%;
  border: 0;
  background: var(--white-color, #fff);
  color: var(--muted-color, #7c7c7c);
  cursor: pointer;
}

.an-gl-view-toggle button.is-active {
  /* [보기 토글] 라이트 활성 톤다운 — 작성/수정일: 2026-08-09 */
  background: var(--chip-color, #ececec);
  color: var(--title-color, #171717);
}

.an-gl-mode-toggle__label {
  display: inline;
}

/* Featured */
.an-gl-featured {
  margin-bottom: var(--space-40, 40px);
}

.an-gl-featured__title {
  margin: 0 0 16px;
  font-size: var(--fs-h5, 18px);
  font-weight: 700;
}

.an-gl-featured__strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(200px, 240px);
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x mandatory;
}

.an-gl-featured__card {
  display: block;
  text-decoration: none;
  color: inherit;
  scroll-snap-align: start;
}

.an-gl-featured__media {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg-soft, #f0f0f0);
}

.an-gl-featured__media img,
.an-gl-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.an-gl-featured__ph,
.an-gl-profile__cover-ph,
.an-gl-ex-card__ph {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--chip-color, #ececec), #d8d8d8);
}

.an-gl-featured__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 10px;
}

.an-gl-featured__body strong {
  font-size: var(--fs-body, 15px);
}

.an-gl-featured__body span {
  font-size: var(--fs-caption, 12px);
  color: var(--muted-color, #7c7c7c);
}

/* Cards grid */
.an-gl-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px 20px;
}

.an-gl-grid.is-list {
  grid-template-columns: 1fr;
  gap: 16px;
}

/* [갤러리 리스트]
 * - 역할: 썸네일 | 본문(제목·지역·stats). 본문은 세로 중앙, 행 간격 밀착
 * - 작성/수정일: 2026-08-20
 */
.an-gl-grid.is-list .an-gl-card {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  column-gap: 16px;
  align-items: center;
}

.an-gl-grid.is-list .an-gl-card__body {
  padding-top: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
}

.an-gl-grid.is-list .an-gl-card__name {
  margin: 0;
}

.an-gl-grid.is-list .an-gl-card__stats {
  margin-top: 4px;
  padding: 0;
}

.an-gl-card__link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.an-gl-card__copy {
  display: block;
  text-decoration: none;
  color: inherit;
}

.an-gl-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  box-sizing: border-box;
  background: var(--chip-color, #f2f2f2);
  border: 1px solid var(--border-color, #eeeeee);
}

.an-gl-card__media:has(img) {
  background: var(--white-color, #fff);
}

.an-gl-card__media img {
  position: relative;
  z-index: 1;
}

.an-gl-card__body {
  padding-top: 12px;
}

.an-gl-card__name {
  margin: 0 0 4px;
}

.an-gl-card__meta {
  margin: 0;
  font-size: var(--fs-label);
  color: var(--muted-color, #7c7c7c);
}

/* [좋아요] 카드 stats — 전시 목록과 동일. 아이콘 fs-label · 숫자 fs-caption — 작성/수정일: 2026-08-20 */
.an-gl-card__stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  padding: 0 4px 4px;
  margin-top: 8px;
}

.an-gl-card__stat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  font-family: inherit;
  font-size: var(--fs-label, 14px);
  font-weight: 600;
  line-height: 1;
  color: var(--muted-color);
  cursor: default;
}

button.an-gl-card__stat {
  cursor: pointer;
}

button.an-gl-card__stat:hover,
button.an-gl-card__stat.is-active {
  color: var(--title-color);
}

.an-gl-card__stat i {
  display: inline-block;
  width: 1em;
  line-height: 1;
  text-align: center;
}

.an-gl-card__stat em {
  font-style: normal;
  font-size: var(--fs-caption);
  font-weight: inherit;
  line-height: 1;
  color: var(--title-color);
  font-variant-numeric: tabular-nums;
}

/* [갤러리 Empty] 평문 플레이스홀더만 — .an-empty와 겹치면 전역 DS 유지 — 작성/수정일: 2026-08-15 */
.an-gl-empty:not(.an-empty) {
  padding: 48px 16px;
  text-align: center;
  color: var(--muted-color, #7c7c7c);
}

.an-gl-map .an-empty {
  position: absolute;
  inset: 0;
  height: 100%;
  min-height: 0;
  border: 0;
  border-radius: 0;
}

.an-gl-list__paging {
  margin-top: var(--space-40, 40px);
}

.an-gl-sidebar__backdrop {
  display: none;
}

/* ========== 상세 프로필 (아티스트형 레일) — 작성/수정일: 2026-08-15 ========== */
.an-gl-profile {
  color: var(--title-color, #171717);
}

.an-gl-profile__layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: var(--space-40, 40px);
  align-items: start;
}

.an-gl-profile__rail {
  position: sticky;
  top: 100px;
}

.an-gl-profile__identity {
  text-align: left;
}

.an-gl-profile__logo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--light-color, #f5f5f5);
  border: 1px solid var(--border-color, #e5e5e5);
  margin-bottom: var(--space-20, 20px);
}

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

.an-gl-profile__logo-fallback {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  font-weight: 700;
  color: var(--muted-color, #7c7c7c);
}

.an-gl-profile__name {
  margin: 0;
  font-size: var(--fs-h4, 24px);
  font-weight: 700;
  letter-spacing: var(--letter-tight, -0.02em);
  line-height: 1.3;
}

.an-gl-profile__meta {
  margin: 10px 0 0;
  font-size: var(--fs-caption, 12px);
  color: var(--muted-color, #7c7c7c);
}

.an-gl-profile__tagline {
  margin: 14px 0 0;
  font-size: var(--fs-body, 15px);
  line-height: 1.6;
  color: var(--text-color, #444);
}

.an-gl-profile__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: var(--space-25, 24px) 0 0;
  padding: 14px 0;
  border-top: 1px solid var(--border-color, #e5e5e5);
  border-bottom: 1px solid var(--border-color, #e5e5e5);
}

.an-gl-profile__stats > div {
  text-align: center;
}

.an-gl-profile__stats dt {
  margin: 0;
  font-size: var(--fs-xs, 11px);
  color: var(--muted-color, #7c7c7c);
}

.an-gl-profile__stats dd {
  margin: 4px 0 0;
  font-size: var(--fs-label, 14px);
  font-weight: 700;
  color: var(--title-color, #171717);
}

.an-gl-profile__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: var(--space-25, 24px);
}

/* [갤러리 액션] 팔로우·문의·공유·좋아요 — 작성/수정일: 2026-08-15 */
.an-gl-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  min-height: 40px;
  padding: 0 14px;
  border-radius: var(--radius-sm, 6px);
  font-family: inherit;
  font-size: var(--fs-label, 14px);
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    opacity 0.2s ease;
}

.an-gl-action i {
  font-size: 16px;
  line-height: 1;
}

.an-gl-action--follow {
  border: 1px solid var(--primary-color, #171717);
  background: var(--primary-color, #171717);
  color: var(--white-color, #fff);
}

.an-gl-action--follow:hover {
  opacity: 0.88;
}

.an-gl-action--follow.is-on {
  background: transparent;
  color: var(--title-color, #171717);
  border-color: var(--border-color, #eeeeee);
}

.an-gl-action--follow.is-on:hover {
  opacity: 1;
  background: var(--chip-color, #f2f2f2);
}

.an-gl-action--share {
  border: 1px solid var(--border-color, #eeeeee);
  background: var(--surface-color, #fff);
  color: var(--title-color, #171717);
}

.an-gl-action--share:hover {
  background: var(--chip-color, #f2f2f2);
}

.an-gl-action--share.is-liked,
.an-gl-action--share.is-active {
  background: var(--surface-color, #fff);
  border-color: var(--border-color, #eeeeee);
  color: var(--title-color, #171717);
}

.an-gl-action:disabled {
  opacity: 0.55;
  cursor: wait;
}

html.dark .an-gl-action--follow,
body.dark .an-gl-action--follow {
  background: var(--cta-surface, #2a2a2a);
  border-color: var(--border-color, #333);
  color: var(--on-dark, #f5f5f5);
}

html.dark .an-gl-action--follow.is-on,
body.dark .an-gl-action--follow.is-on {
  background: transparent;
  color: var(--title-color, #f5f5f5);
}

html.dark .an-gl-action--share,
body.dark .an-gl-action--share {
  background: var(--surface-color, #1c1c1c);
  border-color: var(--border-color, #333);
  color: var(--title-color, #f5f5f5);
}

html.dark .an-gl-action--share.is-liked,
html.dark .an-gl-action--share.is-active,
body.dark .an-gl-action--share.is-liked,
body.dark .an-gl-action--share.is-active {
  background: var(--surface-color, #1c1c1c);
  border-color: var(--border-color, #333);
  color: var(--title-color, #f5f5f5);
}

html.dark .an-gl-profile__logo,
body.dark .an-gl-profile__logo,
html.dark .an-gl-profile__manage-btn,
body.dark .an-gl-profile__manage-btn,
html.dark .an-gl-profile__manage-menu,
body.dark .an-gl-profile__manage-menu {
  border-color: var(--border-color, #333);
}

html.dark .an-gl-profile__manage-menu,
body.dark .an-gl-profile__manage-menu {
  background: var(--white-color, #1a1a1a);
}

.an-gl-profile__manage {
  position: relative;
  margin-top: 16px;
}

.an-gl-profile__manage-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border-color, #e5e5e5);
  border-radius: var(--radius-sm, 6px);
  background: transparent;
  color: var(--title-color, #171717);
  cursor: pointer;
}

.an-gl-profile__manage-menu {
  position: absolute;
  left: 0;
  top: calc(100% + 6px);
  z-index: 20;
  margin: 0;
  padding: 6px 0;
  list-style: none;
  min-width: 128px;
  background: var(--surface-color, #fff);
  border: 1px solid var(--border-color, #eeeeee);
  border-radius: var(--radius-sm, 6px);
  box-shadow: var(--shadow-md, 0 8px 24px rgba(0, 0, 0, 0.08));
}

.an-gl-profile__manage-menu a {
  display: block;
  padding: 8px 14px;
  color: var(--title-color, #171717);
  text-decoration: none;
  font-size: var(--fs-label, 14px);
}

.an-gl-profile__manage-menu a:hover {
  background: var(--chip-color, #f2f2f2);
}

/* [갤러리 탭] 메인 컬럼 밑줄 — 작성/수정일: 2026-08-15 */
.an-gl-profile__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  margin-bottom: var(--space-30, 30px);
  border-bottom: 1px solid var(--border-color, #e5e5e5);
}

.an-gl-profile__tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 2px 14px;
  color: var(--muted-color, #7c7c7c);
  text-decoration: none;
  font-size: var(--fs-label, 14px);
  font-weight: 600;
}

.an-gl-profile__tab.is-active {
  color: var(--title-color, #171717);
}

.an-gl-profile__tab.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--title-color, #171717);
}

.an-gl-profile__tab-count {
  font-size: var(--fs-xs, 11px);
  font-weight: 500;
  color: var(--muted-color, #7c7c7c);
}

.an-gl-profile__hero {
  margin: 0 0 var(--space-30, 30px);
  border-radius: var(--radius-md, 10px);
  overflow: hidden;
  background: var(--light-color, #f5f5f5);
}

.an-gl-profile__hero img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 480px;
  object-fit: cover;
}

.an-gl-profile__panels {
  padding: 0 0 40px;
}

.an-gl-profile__panel[hidden] {
  display: none !important;
}

.an-gl-profile__block {
  margin-bottom: 36px;
}

.an-gl-profile__block-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.an-gl-profile__block-head .an-gl-profile__block-title {
  margin: 0;
}

.an-gl-profile__block-head a {
  font-size: var(--fs-caption, 12px);
  color: var(--muted-color, #7c7c7c);
}

.an-gl-profile__block-title {
  margin: 0 0 14px;
  font-size: var(--fs-h5, 18px);
  font-weight: 700;
}

.an-gl-profile__year {
  margin: 20px 0 10px;
  font-size: var(--fs-body, 15px);
  font-weight: 700;
  color: var(--muted-color, #7c7c7c);
}

.an-gl-profile__summary {
  margin: 0;
  font-size: var(--fs-body, 15px);
  line-height: 1.7;
  color: var(--text-color, #444);
}

/* [갤러리 소개] gurumi 본문은 에디터 CSS가 전담 — 스킨 타이포 제외 — 작성/수정일: 2026-08-12 */
.an-gl-profile__prose:not(.g5-gurumi-view) {
  font-size: var(--fs-body, 15px);
  line-height: 1.75;
  color: var(--text-color, #444);
}

.an-gl-profile__empty {
  margin: 0;
  color: var(--muted-color, #7c7c7c);
}

.an-gl-profile__more-link {
  margin: 12px 0 0;
}

.an-gl-profile__more-link a {
  color: var(--title-color, #171717);
  text-decoration: none;
  font-size: var(--fs-caption, 12px);
}

.an-gl-profile__more-cta {
  margin: 24px 0 0;
  text-align: center;
}

/* [뒤로가기] 전시 상세(an-ex-detail__back)와 동일 — 작성/수정일: 2026-08-10 */
/* [뒤로가기] 브레드크럼 하단 · 커버 직전 — 작성/수정일: 2026-08-10 */
.an-gl-profile__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 var(--space-16, 16px);
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--title-color, #171717);
  font-size: var(--fs-label, 14px);
  font-weight: 500;
  line-height: 1.4;
  text-decoration: none;
  transition: color var(--duration-base, 0.2s);
}

.an-gl-profile__back i {
  font-size: var(--fs-h6, 18px);
  line-height: 1;
}

.an-gl-profile__back:hover {
  color: var(--muted-color, #7c7c7c);
}

.an-gl-profile__back:hover span {
  text-decoration: underline;
  text-underline-offset: 0.14em;
}

/* Info / links */
.an-gl-info {
  margin: 0;
  display: grid;
  gap: 12px;
}

.an-gl-info > div {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 12px;
  font-size: var(--fs-body, 15px);
}

.an-gl-info dt {
  margin: 0;
  color: var(--muted-color, #7c7c7c);
}

.an-gl-info dd {
  margin: 0;
}

.an-gl-info a {
  color: inherit;
}

.an-gl-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.an-gl-links li {
  margin: 0 0 8px;
}

.an-gl-links a {
  color: var(--title-color, #171717);
  word-break: break-all;
}

/* [지도] 카카오맵 — 작성/수정일: 2026-08-08 */
.an-gl-map {
  position: relative;
  margin-top: 16px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-soft, #f0f0f0);
}

.an-gl-map__canvas {
  width: 100%;
  height: 100%;
}

.an-gl-map__card {
  position: absolute;
  left: 16px;
  bottom: 48px;
  z-index: 2;
  box-sizing: border-box;
  max-width: min(280px, calc(100% - 32px));
  padding: 12px 14px;
  background: var(--white-color, #fff);
  border: 1px solid var(--line-color, #e5e5e5);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  color: var(--title-color, #171717);
}

.an-gl-map__card.is-overlay {
  position: relative;
  left: auto;
  bottom: auto;
  margin: 0;
  width: min(280px, 78vw);
  max-width: min(280px, 78vw);
  /* 기본 마커(~40px) + 간격 — 핀 바로 위에 카드 — 작성/수정일: 2026-08-08 */
  transform: translateY(-48px);
  pointer-events: auto;
}

.an-gl-map__card strong {
  display: block;
  font-size: var(--fs-body, 15px);
  overflow-wrap: anywhere;
  word-break: keep-all;
}

/* [지도 오버레이] 주소 박스 안 줄바꿈 — 작성/수정일: 2026-08-09 */
.an-gl-map__card p {
  margin: 4px 0 0;
  font-size: var(--fs-caption, 12px);
  color: var(--muted-color, #7c7c7c);
  line-height: 1.45;
  overflow-wrap: anywhere;
  word-break: keep-all;
  white-space: normal;
}

.an-gl-map__link {
  position: absolute;
  top: 12px;
  right: 12px;
  bottom: auto;
  z-index: 8;
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  background: var(--white-color, #fff);
  border: 1px solid var(--line-color, #e5e5e5);
  color: var(--title-color, #171717);
  text-decoration: none;
  font-size: var(--fs-caption, 12px);
  font-weight: 600;
}

/* [지도 컨트롤] 우하단 — 작성/수정일: 2026-08-09 */
.an-gl-map .an-map-ctrls {
  bottom: 12px;
}

/* Exhibition cards */
.an-gl-ex-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.an-gl-ex-card {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 14px;
  text-decoration: none;
  color: inherit;
}

.an-gl-ex-card__media {
  aspect-ratio: var(--ex-poster-ratio, 480 / 679);
  overflow: hidden;
  background: var(--bg-soft, #f0f0f0);
}

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

.an-gl-ex-card__body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.an-gl-ex-card__status {
  align-self: flex-start;
  font-size: var(--fs-xs, 11px);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--muted-color, #7c7c7c);
}

.an-gl-ex-card__status.is-ongoing,
.an-gl-ex-card__status.is-current {
  color: #0a7a3e;
}

.an-gl-ex-card__meta {
  font-size: var(--fs-caption, 12px);
  color: var(--muted-color, #7c7c7c);
  line-height: 1.5;
}

.an-gl-ex-list {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  border-top: 1px solid var(--line-color, #e5e5e5);
}

.an-gl-ex-list li {
  border-bottom: 1px solid var(--line-color, #e5e5e5);
}

.an-gl-ex-list a {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 16px;
  padding: 12px 0;
  text-decoration: none;
  color: inherit;
}

.an-gl-ex-list span {
  color: var(--muted-color, #7c7c7c);
  font-size: var(--fs-caption, 12px);
}

/* Artists */
.an-gl-artist-chips {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}

.an-gl-artist-chips button {
  border: 1px solid var(--line-color, #e5e5e5);
  background: var(--white-color, #fff);
  padding: 8px 14px;
  font-size: var(--fs-caption, 12px);
  cursor: default;
  opacity: 0.55;
}

.an-gl-artist-chips button.is-active {
  opacity: 1;
  border-color: var(--title-color, #171717);
  font-weight: 700;
}

.an-gl-artist-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.an-gl-artist-grid.is-full {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.an-gl-artist-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 12px;
  text-align: center;
  text-decoration: none;
  color: inherit;
  border: 1px solid transparent;
}

.an-gl-artist-card:hover {
  border-color: var(--line-color, #e5e5e5);
}

.an-gl-artist-card__avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--bg-soft, #f0f0f0);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.an-gl-artist-card__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.an-gl-artist-card strong {
  font-size: var(--fs-body, 15px);
}

.an-gl-artist-card em {
  font-style: normal;
  font-size: var(--fs-caption, 12px);
  color: var(--muted-color, #7c7c7c);
}

.an-gl-artist-card > span:last-child {
  font-size: var(--fs-caption, 12px);
  color: var(--muted-color, #7c7c7c);
}

/**
 * [갤러리 아티스트 목록]
 * - 역할: 아바타 + 국/영문명 + 작품 썸네일 행
 * - 작성/수정일: 2026-08-15
 */
.an-gl-artist-list {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
}

.an-gl-artist-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line-color, #e5e5e5);
}

.an-gl-artist-row:first-child {
  padding-top: 4px;
}

.an-gl-artist-row:last-child {
  border-bottom: 0;
}

.an-gl-artist-row__avatar {
  flex: 0 0 72px;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--bg-soft, #f0f0f0);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--title-color, #171717);
  text-decoration: none;
}

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

.an-gl-artist-row__body {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 2px;
}

.an-gl-artist-row__names {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-decoration: none;
  color: inherit;
}

.an-gl-artist-row__names strong {
  font-size: var(--fs-body, 15px);
  font-weight: 700;
  color: var(--title-color, #171717);
  line-height: 1.35;
}

.an-gl-artist-row__names em {
  font-style: italic;
  font-size: 13px;
  font-weight: 400;
  color: #8a8a8a;
  line-height: 1.35;
}

.an-gl-artist-row__thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.an-gl-artist-row__thumbs a {
  display: block;
  width: 52px;
  height: 52px;
  border-radius: 4px;
  overflow: hidden;
  background: var(--bg-soft, #f0f0f0);
}

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

@media (max-width: 575.98px) {
  .an-gl-artist-row {
    gap: 12px;
    padding: 18px 0;
  }

  .an-gl-artist-row__avatar {
    flex-basis: 56px;
    width: 56px;
    height: 56px;
  }

  .an-gl-artist-row__thumbs a {
    width: 44px;
    height: 44px;
  }
}

/* Works */
.an-gl-works-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.an-gl-works-grid.is-full {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* [갤러리 사진 그리드] — 작성/수정일: 2026-08-12 */
.an-gl-photo-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.an-gl-photo-card {
  margin: 0;
  min-width: 0;
}

.an-gl-photo-card__link {
  display: block;
  aspect-ratio: 1;
  border-radius: 10px;
  overflow: hidden;
  background: var(--section-bg-color, #f3f3f3);
}

.an-gl-photo-card__thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.an-gl-photo-card__caption {
  margin-top: 8px;
  font-size: var(--fs-sm, 13px);
  line-height: 1.45;
  color: var(--muted-color, #666);
}

.an-gl-work {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

.an-gl-work__thumb {
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--bg-soft, #f0f0f0);
}

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

.an-gl-work__title {
  font-size: var(--fs-body, 15px);
  font-weight: 600;
}

.an-gl-work__meta {
  font-size: var(--fs-caption, 12px);
  color: var(--muted-color, #7c7c7c);
}

/* ========== Responsive ========== */
@media (max-width: 991.98px) {
  .an-gl-profile__layout {
    grid-template-columns: 1fr;
    gap: var(--space-30, 30px);
  }

  .an-gl-profile__rail {
    position: static;
  }

  .an-gl-profile__identity {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    column-gap: 16px;
    align-items: center;
  }

  .an-gl-profile__logo {
    width: 88px;
    height: 88px;
    margin: 0;
    grid-row: 1 / span 3;
  }

  .an-gl-profile__name {
    font-size: var(--fs-h5, 18px);
  }

  .an-gl-profile__stats {
    margin-top: 18px;
  }

  .an-gl-profile__actions {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .an-gl-action {
    width: auto;
    flex: 1 1 calc(50% - 5px);
  }
}

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

  .an-gl-artist-grid.is-full,
  .an-gl-works-grid,
  .an-gl-works-grid.is-full,
  .an-gl-photo-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  .an-gl-list__layout {
    grid-template-columns: 1fr;
  }

  .an-gl-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 80;
    width: min(88vw, 320px);
    /* [필터 드로어] 큰 뷰포트(100dvh) 대신 보이는 높이 — 작성/수정일: 2026-08-20 */
    height: 100svh;
    max-height: 100svh;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding: 20px 16px calc(48px + env(safe-area-inset-bottom, 0px));
    box-sizing: border-box;
    background: var(--white-color, #fff);
    transform: translateX(-105%);
    transition: transform 0.25s ease;
    box-shadow: 8px 0 24px rgba(0, 0, 0, 0.12);
  }

  .an-gl-list.is-filter-open .an-gl-sidebar {
    transform: translateX(0);
  }

  .an-gl-sidebar__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
  }

  .an-gl-sidebar__close {
    border: 0;
    background: none;
    padding: 8px;
    cursor: pointer;
  }

  .an-gl-sidebar__backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 70;
    background: rgba(0, 0, 0, 0.35);
  }

  /* [갤러리 목록 툴바]
   * - 역할: 전시 목록과 동일. 1행(필터·목록/지도·보기) + 2행(정렬 전폭)
   * - 작성/수정일: 2026-08-20
   */
  .an-gl-main__bar {
    align-items: stretch;
    gap: 10px;
  }

  .an-gl-main__count {
    width: 100%;
  }

  .an-gl-main__tools {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas:
      "filter mode view"
      "sort sort sort";
    gap: 8px;
    width: 100%;
  }

  .an-gl-main__filter-btn {
    display: inline-flex;
    grid-area: filter;
    height: 40px;
    padding: 0 10px;
  }

  .an-gl-main__tools .an-gl-mode-toggle-wrap {
    grid-area: mode;
    display: flex;
    width: 100%;
    min-width: 0;
  }

  .an-gl-main__tools .an-gl-mode-toggle {
    display: flex;
    width: 100%;
    min-width: 0;
  }

  .an-gl-main__tools .an-gl-mode-toggle__btn {
    flex: 1 1 0;
    min-width: 0;
    height: 40px;
    padding: 0 8px;
    justify-content: center;
    gap: 4px;
    flex-wrap: nowrap;
    white-space: nowrap;
  }

  .an-gl-mode-toggle__rest {
    display: none;
  }

  .an-gl-view-toggle {
    grid-area: view;
    height: 40px;
  }

  .an-gl-view-toggle button {
    width: 40px;
    height: 40px;
  }

  .an-gl-main__tools .an-gl-sort {
    grid-area: sort;
    display: block;
    width: 100%;
    min-width: 0;
  }

  .an-gl-main__tools .an-sort__toggle {
    width: 100%;
    min-height: 40px;
    height: 40px;
    justify-content: space-between;
    box-sizing: border-box;
  }

  .an-gl-grid,
  .an-gl-grid.is-list {
    grid-template-columns: 1fr;
  }

  .an-gl-grid.is-list .an-gl-card {
    grid-template-columns: 120px minmax(0, 1fr);
  }

  .an-gl-profile__tabs {
    gap: 4px 14px;
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
  }

  .an-gl-profile__tab {
    white-space: nowrap;
  }

  .an-gl-ex-grid,
  .an-gl-artist-grid,
  .an-gl-artist-grid.is-full,
  .an-gl-works-grid,
  .an-gl-works-grid.is-full,
  .an-gl-photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .an-gl-ex-card {
    grid-template-columns: 1fr;
  }

  .an-gl-info > div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

/* ========== Map + List Split — 작성/수정일: 2026-08-09 ========== */
.an-gl-mode-toggle {
  display: inline-flex;
  border: 1px solid var(--line-color, #e5e5e5);
  background: var(--white-color, #fff);
}

.an-gl-mode-toggle__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  font-size: var(--fs-caption, 12px);
  font-weight: 600;
  color: var(--muted-color, #7c7c7c);
  text-decoration: none;
}

.an-gl-mode-toggle__btn.is-active {
  color: var(--title-color, #171717);
  background: var(--bg-soft, #f6f6f6);
}

.an-gl-mapview {
  color: var(--title-color, #171717);
  position: relative;
}

/**
 * [지도 플로팅] 앱형 검색·모드 칩 — 작성/수정일: 2026-08-09
 */
.an-gl-mapview__floats {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  z-index: 35;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  pointer-events: none;
}

.an-gl-mapview__float {
  pointer-events: auto;
}

.an-gl-mapview__float--search {
  display: flex;
  align-items: stretch;
  gap: 0;
  position: relative;
  max-width: min(520px, calc(100% - 140px));
  background: var(--white-color, #fff);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
  overflow: visible;
}

.an-gl-mapview__search {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 auto;
  min-width: 0;
  max-width: none;
  padding: 0 14px;
  border: 0;
  background: transparent;
  height: 44px;
}

.an-gl-mapview__search i {
  color: var(--muted-color, #7c7c7c);
  flex-shrink: 0;
}

.an-gl-mapview__search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  /* [지도 검색] 헤더·필터 검색과 동일 14px — 작성/수정일: 2026-08-09 */
  font-size: var(--fs-label, 14px);
  color: var(--title-color, #171717);
  background: transparent;
  height: 100%;
}

.an-gl-mapview__search input::placeholder {
  color: var(--muted-color, #7c7c7c);
}

.an-gl-mapview__filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  border: 0;
  border-left: 1px solid var(--line-color, #e5e5e5);
  background: var(--white-color, #fff);
  padding: 0 14px;
  height: 44px;
  font-size: var(--fs-caption, 12px);
  font-weight: 600;
  color: var(--title-color, #171717);
  cursor: pointer;
  white-space: nowrap;
}

.an-gl-mapview__filter-btn:hover,
.an-gl-mapview__filter-btn.is-active {
  background: var(--bg-soft, #f6f6f6);
}

.an-gl-mapview__filter-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--title-color, #171717);
  color: var(--on-dark, #fff);
  font-size: var(--fs-xs, 11px);
  font-weight: 700;
  line-height: 1;
}

.an-gl-mapview__float--mode {
  flex-shrink: 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
  background: var(--white-color, #fff);
}

.an-gl-mapview__float--mode .an-gl-mode-toggle {
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.an-gl-mapview__float--mode .an-gl-mode-toggle__btn {
  height: 44px;
  padding: 0 14px;
  box-sizing: border-box;
}

.an-gl-mapview__float--mode .an-gl-mode-toggle__btn.is-active {
  background: var(--title-color, #171717);
  color: var(--on-dark, #fff);
}

/*
 * [지도 필터] 패널·backdrop — mapview 루트/body 포털용 fixed
 * - map-wrap(z:1) 안에 있으면 side(z:6)에 가림 → DOM을 스택 밖으로
 * - 작성/수정일: 2026-08-09
 */
.an-gl-mapview__panel {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 220;
  display: flex;
  flex-direction: column;
  width: min(360px, calc(100vw - 48px));
  max-height: min(70vh, 520px);
  overflow: hidden;
  padding: 16px;
  background: var(--white-color, #fff);
  border: 1px solid var(--line-color, #e5e5e5);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.14);
  box-sizing: border-box;
}

.an-gl-mapview__panel-head {
  flex: 0 0 auto;
}

.an-gl-mapview__panel-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.an-gl-mapview__panel .an-gl-filter__actions {
  flex: 0 0 auto;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line-color, #e5e5e5);
}

.an-gl-mapview__panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.an-gl-mapview__panel-head button {
  border: 0;
  background: none;
  padding: 6px;
  cursor: pointer;
}

/* [지도 필터] viewport fixed — 바텀시트·맵 스택과 분리 — 작성/수정일: 2026-08-09 */
.an-gl-mapview__backdrop {
  position: fixed;
  inset: 0;
  z-index: 210;
  background: rgba(0, 0, 0, 0.25);
}

.an-gl-mapview__split {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.55fr);
  height: calc(100dvh - 220px);
  min-height: 480px;
  border-top: 0;
}

.an-gl-mapview__map-wrap {
  position: relative;
  min-height: 0;
  background: var(--border-color, var(--border-color, #eee));
}

.an-gl-mapview__canvas {
  width: 100%;
  height: 100%;
}

.an-gl-mapview__no-key {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 12px;
  color: var(--muted-color, #7c7c7c);
}

.an-gl-mapview__bounds-btn {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  border: 0;
  padding: 10px 18px;
  background: var(--title-color, #171717);
  color: var(--on-dark, #fff);
  font-size: var(--fs-caption, 12px);
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

.an-gl-mapview__side {
  display: flex;
  flex-direction: column;
  min-height: 0;
  border-left: 1px solid var(--line-color, #e5e5e5);
  background: var(--white-color, #fff);
}

.an-gl-mapview__sheet-handle {
  display: none;
}

.an-gl-mapview__side-head {
  flex: 0 0 auto;
  padding: 14px 16px 8px;
  border-bottom: 1px solid var(--line-color, #e5e5e5);
}

.an-gl-mapview__side-count {
  margin: 0;
  font-size: var(--fs-body, 15px);
}

.an-gl-mapview__cards {
  /* [지도 목록] flex 자식 축소 허용 — 작성/수정일: 2026-08-09 */
  flex: 1 1 0;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 8px;
}

.an-gl-map-card {
  border: 1px solid transparent;
  margin-bottom: 8px;
}

.an-gl-map-card.is-active,
.an-gl-map-card.is-hover {
  border-color: var(--title-color, #171717);
  background: var(--bg-soft, #f9f9f9);
}

.an-gl-map-card__link {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 12px;
  padding: 8px;
  text-decoration: none;
  color: inherit;
}

.an-gl-map-card__media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  align-self: center;
  box-sizing: border-box;
  background: var(--chip-color, #f2f2f2);
  border: 1px solid var(--border-color, #eeeeee);
}

.an-gl-map-card__media:has(img) {
  background: var(--white-color, #fff);
}

html.dark .an-gl-map-card__media,
body.dark .an-gl-map-card__media {
  background: var(--chip-color, #2e2e2e);
}

html.dark .an-gl-map-card__media:has(img),
body.dark .an-gl-map-card__media:has(img) {
  background: var(--white-color, #171717);
}

.an-gl-map-card__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.an-gl-map-card__ph {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--chip-color, #f2f2f2);
}

.an-gl-map-card__body {
  display: flex;
  flex-direction: column;
  gap: 0px;
  min-width: 0;
}

.an-gl-map-card__name {
  font-size: var(--fs-body, 15px);
  font-weight: 700;
}

.an-gl-map-card__region,
.an-gl-map-card__ongoing,
.an-gl-map-card__ex-title {
  font-size: var(--fs-caption, 12px);
  color: var(--muted-color, #7c7c7c);
}

.an-gl-map-card__ex-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.an-gl-mapview__empty {
  padding: 32px 12px;
}

@media (max-width: 991.98px) {
  /* [지도 모바일 바텀시트]
   * - 역할: 스냅 3단(min/mid/max) · 시트에 컨트롤 가림 · 드래그는 JS
   * - 작성/수정일: 2026-08-09
   */
  .an-gl-mapview__floats {
    top: 8px;
    left: 8px;
    right: 8px;
    flex-wrap: wrap;
    gap: 8px;
  }

  .an-gl-mapview__float--search {
    width: 100%;
    max-width: none;
    order: 1;
  }

  .an-gl-mapview__float--mode {
    order: 0;
    margin-left: auto;
  }

  .an-gl-mapview__split {
    display: block;
    position: relative;
    height: calc(100dvh - 180px);
    min-height: 520px;
    border-top: 0;
  }

  .an-gl-mapview__map-wrap {
    position: absolute;
    inset: 0;
    z-index: 1;
  }

  /* 맵 컨트롤: min에서만 표시(시트 위), mid/max는 숨김 — 작성/수정일: 2026-08-09 */
  .an-gl-mapview__map-wrap .an-map-ctrls {
    right: 10px;
    bottom: calc(var(--an-gl-sheet-h, 120px) + 12px);
    z-index: 4;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }

  .an-gl-mapview[data-sheet="min"] .an-gl-mapview__map-wrap .an-map-ctrls {
    opacity: 1;
    visibility: visible;
    pointer-events: none; /* 래퍼 — 자식만 auto (artnet-map-chrome) */
  }

  .an-gl-mapview[data-sheet="min"]
    .an-gl-mapview__map-wrap
    .an-map-ctrls
    .an-map-ctrls__zoom,
  .an-gl-mapview[data-sheet="min"]
    .an-gl-mapview__map-wrap
    .an-map-ctrls
    .an-map-ctrls__type {
    pointer-events: auto;
  }

  .an-gl-mapview__side {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 6;
    /* 높이는 JS(data-sheet / inline)가 스냅·드래그로 제어 */
    height: 38%;
    max-height: 85%;
    overflow: hidden;
    border-left: 0;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -8px 28px rgba(0, 0, 0, 0.12);
    transition:
      height 0.28s ease,
      max-height 0.28s ease;
  }

  .an-gl-mapview__side.is-dragging {
    transition: none;
    touch-action: none;
  }

  .an-gl-mapview__sheet-handle {
    display: flex;
    justify-content: center;
    flex: 0 0 auto;
    padding: 10px 0 4px;
    cursor: grab;
    touch-action: none;
  }

  .an-gl-mapview__side.is-dragging .an-gl-mapview__sheet-handle {
    cursor: grabbing;
  }

  .an-gl-mapview__sheet-handle span {
    width: 40px;
    height: 4px;
    border-radius: 2px;
    background: var(--divider-color, #cfcfcf);
  }

  .an-gl-mapview__side-head {
    flex: 0 0 auto;
    touch-action: none;
  }

  /* 목록 스크롤은 카드 영역만 — 작성/수정일: 2026-08-09 */
  .an-gl-mapview__cards {
    touch-action: pan-y;
  }

  .an-gl-mapview__float--mode .an-gl-mode-toggle__btn {
    padding: 0 12px;
  }

  /*
   * [지도 필터] 오픈 시 바텀시트 숨김
   * - 패널/backdrop은 body 포털(fixed z:210+)이라 시트보다 항상 위
   * - 시트는 시각적으로도 숨겨 하단 회색 바가 비치지 않게 함
   * - 작성/수정일: 2026-08-09
   */
  .an-gl-mapview.is-filter-open .an-gl-mapview__side {
    pointer-events: none;
    visibility: hidden;
  }
}

/**
 * [지도] PC 스플릿 복구
 * - 역할: 모바일 absolute 시트·인라인 height 잔존으로 맵 드래그 차단 방지
 * - 작성/수정일: 2026-08-09
 */
.an-gl-mapview.is-desktop-split .an-gl-mapview__split {
  display: grid;
}

.an-gl-mapview.is-desktop-split .an-gl-mapview__map-wrap {
  position: relative !important;
  top: auto !important;
  right: auto !important;
  bottom: auto !important;
  left: auto !important;
  inset: auto !important;
  z-index: auto !important;
  width: auto;
  height: auto !important;
  max-height: none !important;
  min-height: 0;
  align-self: stretch;
}

.an-gl-mapview.is-desktop-split .an-gl-mapview__side {
  position: relative !important;
  top: auto !important;
  right: auto !important;
  bottom: auto !important;
  left: auto !important;
  z-index: auto !important;
  width: auto !important;
  /* 모바일 인라인 height(px) 무력화 후 그리드 stretch — 작성/수정일: 2026-08-09 */
  height: auto !important;
  max-height: none !important;
  min-height: 0 !important;
  align-self: stretch;
  overflow: hidden;
  border-radius: 0;
  box-shadow: none;
  touch-action: auto;
}

.an-gl-mapview.is-desktop-split .an-gl-mapview__sheet-handle {
  display: none;
}

.an-gl-mapview.is-desktop-split .an-gl-mapview__map-wrap .an-map-ctrls {
  opacity: 1 !important;
  visibility: visible !important;
  bottom: 12px !important;
  pointer-events: none;
}

.an-gl-mapview.is-desktop-split
  .an-gl-mapview__map-wrap
  .an-map-ctrls
  .an-map-ctrls__zoom,
.an-gl-mapview.is-desktop-split
  .an-gl-mapview__map-wrap
  .an-map-ctrls
  .an-map-ctrls__type {
  pointer-events: auto;
}

@media (min-width: 992px) {
  .an-gl-mapview__map-wrap {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    inset: auto !important;
    z-index: auto !important;
    height: auto !important;
    max-height: none !important;
    min-height: 0;
    align-self: stretch;
  }

  .an-gl-mapview__side {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    z-index: auto !important;
    width: auto !important;
    height: auto !important;
    max-height: none !important;
    min-height: 0 !important;
    align-self: stretch;
    overflow: hidden;
    border-radius: 0;
    box-shadow: none;
    touch-action: auto;
  }

  .an-gl-mapview__sheet-handle {
    display: none;
  }

  .an-gl-mapview__map-wrap .an-map-ctrls {
    opacity: 1 !important;
    visibility: visible !important;
    bottom: 12px !important;
    pointer-events: none;
  }

  .an-gl-mapview__map-wrap .an-map-ctrls .an-map-ctrls__zoom,
  .an-gl-mapview__map-wrap .an-map-ctrls .an-map-ctrls__type {
    pointer-events: auto;
  }
}

/* [지도 목록 UX] 이중 액션·오버레이 — 작성/수정일: 2026-08-09 */
.an-gl-map-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: stretch;
  padding: 8px;
  border-bottom: 1px solid var(--line-color, #e5e5e5);
}

.an-gl-map-card__focus {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 12px;
  border: 0;
  padding: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  color: inherit;
  min-width: 0;
}

.an-gl-map-card__detail {
  align-self: center;
  flex-shrink: 0;
  padding: 6px 8px;
  border: 1px solid var(--line-color, #e5e5e5);
  font-size: var(--fs-xs, 11px);
  font-weight: 700;
  color: var(--title-color, #171717);
  text-decoration: none;
  white-space: nowrap;
}

.an-gl-map-card__detail:hover {
  background: var(--bg-soft, #f6f6f6);
}

.an-gl-map-card__link {
  display: contents;
}

.an-gl-mapview__more {
  padding: 8px 0 16px;
  text-align: center;
}

.an-gl-mapview__loading {
  margin: 0;
  font-size: var(--fs-caption, 12px);
  color: var(--muted-color, #7c7c7c);
}

.an-gl-mapview__sentinel {
  height: 1px;
}

/* [지도 오버레이] 전역 a:hover opacity 무력화 — 작성/수정일: 2026-08-09 */
.an-gl-map-ov {
  display: block;
  min-width: 180px;
  max-width: 260px;
  padding: 12px 14px;
  background: var(--white-color, #fff);
  border: 1px solid var(--line-color, #e5e5e5);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  color: var(--title-color, #171717);
  text-decoration: none;
  transform: translateY(-8px);
  opacity: 1;
}

.an-gl-map-ov:hover,
.an-gl-map-ov:focus,
.an-gl-map-ov:focus-visible {
  opacity: 1;
  color: var(--title-color, #171717);
  text-decoration: none;
}

.an-gl-map-ov__name {
  display: block;
  font-size: var(--fs-label, 14px);
  font-weight: 700;
}

.an-gl-map-ov__meta,
.an-gl-map-ov__ex {
  margin: 4px 0 0;
  font-size: var(--fs-caption, 12px);
  color: var(--muted-color, #7c7c7c);
  line-height: 1.4;
}

.an-gl-map-ov__ex {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.an-gl-map-ov__cta {
  display: inline-block;
  margin-top: 8px;
  font-size: var(--fs-xs, 11px);
  font-weight: 700;
  color: var(--title-color, #171717);
  text-decoration: underline;
}

/**
 * [갤러리 지도] full-bleed — 브라우저 가로 전체 · 헤더 아래 세로 채움
 * - 작성/수정일: 2026-08-09
 */
body.an-galleries-map {
  display: flex;
  flex-direction: column;
  height: 100dvh;
  overflow: hidden;
}

body.an-galleries-map .an-header {
  flex: 0 0 auto;
}

body.an-galleries-map .an-page-main--map {
  flex: 1 1 auto;
  min-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  display: flex;
  flex-direction: column;
}

body.an-galleries-map .an-page-main__body--map {
  max-width: none;
  width: 100%;
  margin-inline: 0;
  padding-inline: 0;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

body.an-galleries-map .an-gl-mapview {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

body.an-galleries-map .an-gl-mapview__split {
  flex: 1 1 auto;
  height: auto;
  min-height: 0;
}

@media (max-width: 991.98px) {
  body.an-galleries-map .an-gl-mapview__split {
    height: auto;
    min-height: 0;
  }
}
