/* 사진 틀(대표 2026-11-06 「포스터·홍보 이미지가 틀에 안 맞으면 이상하다, 상하좌우 가운데로, 작품은 갤러리OS처럼」).
   원칙
   1) 틀에 비율이 안 맞는 그림은 자르지 않고 가운데에 둔다. 남는 자리는 사진 가장자리 색(띠처럼 보여 어색함) 대신 같은 옅은 회색 바탕.
   2) 틀과 비율이 거의 같은 그림(±9%)은 틀을 꽉 채운다 — 가는 회색 줄이 남지 않게(assets/site.js 가 .um-fill 을 붙임).
   3) 작품 그림은 갤러리OS 작품 목록처럼: 옅은 회색 칸 안에 여백을 두고 가운데 — 칸 끝까지 꽉 차거나 칸을 벗어나지 않게.
   4) 첫 화면 큰 슬라이드(포스터를 종이 색 바탕에 크게)는 그대로. */
:root { --frame: #f3f2ef; }

/* ── 1·2. 전시·아트페어·프로젝트 목록 카드 ── */
.ev-pic { align-items: stretch; }
.ev-pic .um-fig,
.ev-pic .um-fig:is(.is-tall, .is-poster) { background: var(--frame) !important; align-items: center !important; justify-content: center !important; overflow: hidden; }
.ev-pic .um-fig img { object-position: 50% 50% !important; max-width: 100%; max-height: 100%; }
.ev-pic .um-fig.um-fill img { width: 100% !important; height: 100% !important; max-width: none; max-height: none; object-fit: cover !important; }

/* 목록 작은 그림(아카이브·저널 줄·홈 카드·작가 화면 기록 표): 가장자리 색 띠 대신 같은 바탕 */
:is(.c-th, .rows, .k-item, .m-arc, .m-tile, .acard, .ax-moments, .j-open-pic, .j-strip-row) .um-fig:is(.is-tall, .is-poster) { background: var(--frame) !important; }
:is(.rows, .k-item, .m-arc, .m-tile, .acard, .ax-moments, .j-open-pic, .j-strip-row) .um-fig.um-fill img { object-fit: cover !important; }

/* ── 3. 작품 그림: 갤러리OS 작품 목록처럼 ── */
.wcard .um-fig,
.ar-pic .um-fig { aspect-ratio: 1 / 1; height: auto !important; width: 100%; background: var(--frame) !important; display: flex !important; align-items: center !important; justify-content: center !important; padding: 11%; box-sizing: border-box; overflow: hidden; }
.wcard .um-fig img,
.ar-pic .um-fig img { width: auto !important; height: auto !important; max-width: 100% !important; max-height: 100% !important; object-fit: contain !important; object-position: 50% 50% !important; margin: 0 !important; box-shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 6px 18px rgba(0, 0, 0, .06); }
.ar-pic { height: auto !important; display: block !important; }
.ar-blank { aspect-ratio: 1 / 1; height: auto; background: var(--frame); }
/* 작품 상세의 큰 그림도 같은 바탕·가운데(벗어나지 않게) */
.um-fig.is-lead { background: var(--frame); }

/* 휴대폰: 전시 카드 사진을 자르지 않고 같은 틀(4:5)에 가운데 */
@media (max-width: 599px) {
  .ev-pic { height: auto; aspect-ratio: 4 / 5; display: flex; }
  .ev-pic .um-fig { display: flex !important; height: 100%; }
  .ev-pic .um-fig img { width: auto !important; max-width: 100%; max-height: 100% !important; object-fit: contain !important; }
  .ev-pic .um-fig.um-fill img { width: 100% !important; height: 100% !important; object-fit: cover !important; }
}
