/* ===================== 전시 목록 · 전시 상세 ===================== */
/* decorative 점과 막대 layers (opacity baked into the files) */
.ex-pat { position: absolute; pointer-events: none; background: no-repeat 0 0 / 100% 100%; }
.ex-band { overflow: hidden; }
.ex-band .in { position: relative; }
.ex-pat-band { right: 0; bottom: 0; width: 420px; height: 338px; background-image: url(../img/patterns/exhibitions-band-d.svg); }
.ex-ptitle { gap: 24px; }
.ex-lede { max-width: 720px; color: var(--paper); }

/* 전시 중: full-bleed work + cream panel with a convex edge */
.ex-feat { position: relative; height: 600px; overflow: hidden; }
.ex-feat-bg { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.ex-panel { position: relative; z-index: 1; width: 411px; height: 100%; padding: 48px 55px; background: #FAF7E8; color: var(--deep); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 20px; }
.ex-panel-h { font: 600 18px/28px var(--sans); color: #000; }
.ex-panel-t { font: 600 48px/64px var(--sans); }
.ex-panel-a { font: 500 22px/32px var(--sans); }
.ex-panel-d { font: 400 20px/32px var(--sans); }
.ex-panel-x { font: 400 18px/30px var(--sans); }
.ex-edge { position: absolute; z-index: 1; left: 411px; top: 0; width: 56px; height: 100%; }

/* 관람 정보 띠 */
.ex-info { padding: 32px calc(52px + var(--rail)) 32px 52px; }
.ex-info-l { display: flex; gap: 16px; max-width: 1272px; margin-inline: auto; }
.ex-info-l li { flex: 1 1 0; display: flex; gap: 12px; align-items: flex-start; color: #000; }
.ex-info-l .i { --s: 24px; }
.ex-info-l li > span { display: flex; flex-direction: column; gap: 2px; width: 240px; max-width: 100%; }
.ex-info-l b { font: 600 14px/20px var(--sans); }
.ex-info-l li > span > span { font: 400 16px/24px var(--sans); }

/* 예정된 전시 carousel */
.ex-next .in, .ex-past .in { display: flex; flex-direction: column; gap: 32px; }
.ex-car { position: relative; }
.ex-track { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.ex-track::-webkit-scrollbar { display: none; }
.ex-slide { flex: 0 0 calc((100% - 16px) / 2); scroll-snap-align: start; min-width: 0; }
.ex-card { display: flex; flex-direction: column; gap: 14px; color: #000; }
.ex-card img { width: 100%; aspect-ratio: 628 / 470; object-fit: cover; }
.ex-ct { font: 600 28px/36px var(--sans); }
.ex-ca { font: 500 17px/24px var(--sans); }
.ex-cd { font: 400 15px/22px var(--sans); color: var(--grey); }
.ex-arrow { position: absolute; top: calc((100cqw - 16px) / 2 * 470 / 628 / 2); width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; color: var(--deep); border-radius: 999px; transform: translateY(-50%); }
.ex-arrow svg { width: 24px; height: 24px; }
.ex-arrow[aria-disabled="true"] { opacity: .25; cursor: default; }
.ex-prev { left: -48px; }
.ex-next-btn { right: -48px; }

/* 지난 전시 */
.ex-year h3 { font: 600 24px/32px var(--sans); padding-bottom: 12px; border-bottom: 1.5px solid #000; }
.ex-prow { display: flex; align-items: center; gap: 24px; padding: 24px 0; border-bottom: 1px solid var(--line); color: #000; }
.ex-prow > .ex-pt { flex: 1; min-width: 0; font: 600 20px/28px var(--sans); }
.ex-pa { width: 200px; flex: none; font: 400 17px/26px var(--sans); }
.ex-prow > .ex-pd { width: 260px; flex: none; font: 400 15px/22px var(--sans); color: var(--grey); }
.ex-pk { width: 120px; flex: none; font: 400 15px/22px var(--sans); color: var(--grey); }
.ex-prow .i { --s: 22px; }

@media (max-width: 899px) {
  .ex-pat-band { width: 150px; height: 224px; background-image: url(../img/patterns/exhibitions-band-m.svg); }
  .ex-ptitle { gap: 16px; }
  .ex-ptitle .gl-2 { --h: 96px; }
  .ex-lede { font: 400 17px/28px var(--sans); }
  .ex-info { padding: 24px 20px; }
  .ex-info-l { flex-direction: column; gap: 12px; max-width: 600px; }
  .ex-info-l li { gap: 10px; align-items: center; }
  .ex-info-l .i { --s: 20px; }
  .ex-info-l li > span { flex-direction: row; gap: 10px; width: auto; align-items: center; }
  .ex-info-l b { width: 40px; flex: none; }
  .ex-info-l li > span > span { font: 400 15px/22px var(--sans); }
  .ex-next .in { gap: 24px; }
  .ex-past .in { gap: 12px; }
  .ex-track { margin-right: -20px; padding-right: 20px; scroll-padding-left: 0; }
  .ex-slide { flex: 0 0 320px; }
  .ex-card { gap: 12px; }
  .ex-card img { aspect-ratio: 320 / 262; }
  .ex-ct { font: 600 21px/28px var(--sans); }
  .ex-arrow { display: none; }
  .ex-year h3 { font: 600 20px/28px var(--sans); padding-bottom: 0; border: 0; }
  .ex-prow { gap: 12px; padding: 20px 0; }
  .ex-ptx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
  .ex-ptx .ex-pt { font: 600 16px/22px var(--sans); }
  .ex-ptx .ex-pd { font: 400 13px/18px var(--sans); color: var(--grey); }
  .ex-prow .i { --s: 20px; }
}

/* ---------- 전시 상세 ---------- */
.ex-crumb { margin-bottom: 24px; }
.ex-tstack { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; margin-bottom: 32px; }
.ex-h1 { font: 600 56px/72px var(--sans); color: #000; }
.ex-meta { display: flex; flex-wrap: wrap; gap: 0 24px; font: 400 18px/28px var(--sans); color: #000; }
.ex-meta-a { font-weight: 500; }
.ex-headline { width: 100%; height: 620px; object-fit: cover; }

.ex-intro { overflow: hidden; }
.ex-intro .in { position: relative; }
.ex-pat-intro { left: calc(50% + 284px); top: 54px; width: 320px; height: 320px; background-image: url(../img/patterns/exhibition-intro-d.svg); }
.ex-intro-t { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 24px; padding-left: 10px; max-width: 870px; }
.ex-lede-i { font: 400 22px/36px var(--sans); }
.ex-body-i { font: 400 17px/29px var(--sans); }
.ex-essay { width: 628px; max-width: 100%; }

.ex-artist { overflow: hidden; }
.ex-pat-artist { right: 0; top: 0; width: 416px; height: 416px; background: url(../img/patterns/joinery-tr-light.svg) 0 0 / 100% 100% no-repeat; }
.ex-artist .in { position: relative; }
.ex-artist .t-18 { color: var(--paper); }

.ex-progs { background: #F4F3EF; }
.ex-progs .in { display: flex; flex-direction: column; gap: 40px; }
.ex-progs-h { font: 600 40px/52px var(--sans); color: #000; }
.ex-pcar { width: 840px; max-width: 100%; margin-inline: auto; }
.ex-ptrack { gap: 24px; }
.ex-pslide { flex: 0 0 408px; }
.ex-pslide .pcard { height: 100%; }
.ex-pslide .pcard .im { aspect-ratio: 408 / 275; }
.ex-pcar .ex-arrow { top: 50%; }
.ex-pcar .ex-prev { left: -68px; }
.ex-pcar .ex-next-btn { right: -68px; }

.ex-cat-t { max-width: 536px; }
.ex-visit .in { display: flex; flex-direction: column; gap: 28px; align-items: flex-start; }

@media (max-width: 899px) {
  /* 전시 중 (phone): big image, cream panel rising on a soft curve — same as 홈 */
  .ex-nowm { background: #FAF7E8; padding-bottom: 40px; }
  .ex-nowm-img { position: relative; width: 100%; height: min(calc(100vw * 600 / 390), 78svh); overflow: hidden; }
  .ex-nowm-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .ex-nowm-img::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 49px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 390 49' preserveAspectRatio='none'%3E%3Cpath d='M0 45C120 1 270 1 390 45V49H0Z' fill='%23FAF7E8'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat; }
  .ex-nowm-p { padding: 0 24px; display: flex; flex-direction: column; align-items: flex-start; }
  .ex-nowm-s { display: flex; align-items: center; gap: 8px; font: 500 14px/20px var(--sans); color: var(--deep); margin-bottom: 14px; }
  .ex-nowm-s::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #25A45B; }
  .ex-nowm-t { font: 600 40px/48px var(--sans); color: #000; margin-bottom: 8px; }
  .ex-nowm-m { display: flex; align-items: center; gap: 12px; font: 400 15px/22px var(--sans); color: var(--grey); margin-bottom: 16px; }
  .ex-nowm-m span:first-child { font: 500 16px/24px var(--sans); color: #000; }
  .ex-nowm-m span + span::before { content: ""; display: inline-block; width: 1px; height: 14px; background: currentColor; opacity: .4; margin-right: 12px; vertical-align: -2px; }
  .ex-nowm-x { font: 400 15px/24px var(--sans); color: var(--deep); margin-bottom: 20px; text-wrap: balance; }
  .ex-pat-artist { width: 132px; height: 132px; background-image: url(../img/patterns/joinery-tr-light-m.svg); }
  .ex-crumb { margin-bottom: 16px; font: 400 13px/18px var(--sans); }
  .ex-tstack { gap: 16px; margin-bottom: 16px; }
  .ex-h1 { font: 600 36px/48px var(--sans); }
  .ex-meta { flex-direction: column; gap: 16px; }
  .ex-meta-a { font: 500 20px/30px var(--sans); }
  .ex-meta-d { font: 400 16px/24px var(--sans); }
  .ex-headline { height: 250px; }
  .ex-pat-intro { display: none; }
  .ex-intro-t { gap: 18px; padding-left: 0; }
  .ex-lede-i { font: 400 19px/31px var(--sans); }
  .ex-body-i { font: 400 16px/27px var(--sans); }
  .ex-essay blockquote { font-size: 18px; line-height: 31px; }
  .ex-essay figcaption { font-size: 13px; line-height: 18px; }
  .ex-artist-t { --gap: 18px !important; }
  .ex-artist .gl-1 { --h: 50px; }
  .ex-artist .t-18 { font: 400 16px/27px var(--sans); }
  .ex-progs .in { gap: 24px; }
  .ex-progs-h { font: 600 26px/34px var(--sans); }
  .ex-pcar { width: auto; margin-inline: 0; }
  .ex-ptrack { gap: 16px; }
  .ex-pslide { flex: 0 0 320px; }
  .ex-pslide .pcard .im { aspect-ratio: 320 / 217; }
  .ex-visit .in { gap: 8px; }
  .ex-visit .btn { margin-top: 20px; }
}
