/* 작품 상세 and 작가 pages */

/* photo tools under the photo: 크게 보기 · 공유 */
.wk-tools { position: relative; display: flex; justify-content: center; gap: 16px; margin-top: 16px; }
.wk-tool { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 10px 16px 10px 14px; border-radius: 999px; font: 500 14px/20px var(--sans); color: #000; }
.wk-tool:hover span { text-decoration: underline; text-underline-offset: 3px; }
.wk-share-msg { position: absolute; top: 100%; left: 0; right: 0; margin-top: 4px; text-align: center; font: 400 14px/20px var(--sans); color: var(--grey); }
.wk-share-msg:empty { display: none; }

/* meta: rows with a bottom rule only; exhibition link row */
.w-meta > div:first-child { border-top: 0; }
.wk-ex { color: #000; text-underline-offset: 3px; }
.wk-ex:hover { color: var(--deep); }

/* 작품 해설 · 펼치기 */
.wk-acc { background: var(--white); border-radius: 16px; padding: 24px; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.wk-acc h2 { font: 600 17px/24px var(--sans); }
.wk-play { display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px 12px 16px; border-radius: 999px; background: var(--deep); color: var(--paper); font: 500 15px/20px var(--sans); cursor: default; }
.wk-play-g { width: 13.4px; height: 17.87px; margin: -1px -1px -1px -0.5px; flex: none; }
.wk-acc-btn { min-height: 44px; margin: -10px 0; font: 400 15px/24px var(--sans); color: var(--grey); text-align: left; }
.wk-acc-btn:hover { color: #000; }
.wk-acc-body { display: grid; grid-template-rows: 0fr; opacity: 0; visibility: hidden; margin-top: -14px; transition: grid-template-rows .22s ease-out, opacity .22s ease-out, margin-top .22s ease-out, visibility 0s linear .22s; }
.wk-acc-body > div { overflow: hidden; min-height: 0; }
.wk-acc-body p { font: 400 15px/24px var(--sans); color: var(--grey); }
.wk-acc.open .wk-acc-body { grid-template-rows: 1fr; opacity: 1; visibility: visible; margin-top: 0; transition: grid-template-rows .22s ease-out, opacity .22s ease-out, margin-top .22s ease-out, visibility 0s; }

/* long commentary: desktop keeps the work in view; mobile shows 6 lines + 해설 더 보기 */
@media (min-width: 900px) {
  .whero .g14 > div:first-child { position: sticky; top: 32px; align-self: start; }
}
.wk-more { display: none; min-height: 44px; margin: -10px 0; font: 500 15px/24px var(--sans); color: #000; text-decoration: underline; text-underline-offset: 3px; text-align: left; }
@media (max-width: 899px) {
  .wk-acc.long .wk-more { display: inline-block; }
  .wk-acc.long:not(.full) .wk-acc-body > div { max-height: 144px; -webkit-mask-image: linear-gradient(#000 96px, transparent 144px); mask-image: linear-gradient(#000 96px, transparent 144px); }
}

/* sales (Sales · 문의) */
.sales .lnk { font-size: 15px; line-height: 22px; }

/* divider · 점과 막대 패턴 · 16px */
.wk-div { display: block; width: 100%; height: 16px; background: url(../img/patterns/divider-d.svg) 0 0 / 1272px 16px repeat-x; }
.pn .in { gap: 32px; }

/* inquiry sent state */
.wk-done { margin-top: 0; gap: 18px; }
.wk-done h2 { font: 600 24px/32px var(--sans); }
.wk-done-sub { font: 400 15px/22px var(--sans); color: var(--grey); margin-top: 4px; }

@media (max-width: 899px) {
  .wk-tools { margin-top: 16px; gap: 16px; }
  .w-line { line-height: 22px; }
  .wk-exm { font: 400 15px/22px var(--sans); color: var(--grey); text-decoration: underline; text-underline-offset: 3px; }
  .wk-acc { width: 100%; }
  .pn .in { gap: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  .wk-acc-body, .wk-acc.open .wk-acc-body { transition: none; }
}

/* ---------- 작가 (artist) ---------- */
.ar-hero { overflow: hidden; }
.ar-pat { position: absolute; right: 0; bottom: 0; width: 420px; height: 394px; pointer-events: none; background: url(../img/patterns/artist-d.svg) 0 0 / 420px 394px no-repeat; }
.ar-hero .in { position: relative; }
.ar-title { gap: 20px; }
.ar-hd .kr { font: 600 36px/44px var(--sans); }

@media (max-width: 1180px) and (min-width: 900px) {
  .ar-pat { opacity: .5; }
}
@media (max-width: 899px) {
  .ar-pat { top: 0; bottom: auto; width: 110px; height: 140px; background-image: url(../img/patterns/artist-m.svg); background-size: 110px 140px; }
  .ar-title { gap: 24px; }
  .ar-title .gl-2 { --h: 96px; }
  .ar-lede { font: 400 22px/34px var(--sans); }
  .ar-exh .in, .ar-works .in { gap: 24px !important; }
  .ar-exh .arow { flex-direction: column; align-items: flex-start; flex-wrap: nowrap; gap: 8px; }
  .ar-exh .arow .dt { font-size: 15px; line-height: 22px; width: 100%; }
  .ar-exh .arow .tt { font: 600 20px/28px var(--sans); }
  .ar-exh .arow > .i { display: none; }
  .ar-exh .arows li + li .arow { margin-top: 8px; }
  .ar-works .wg-head { align-items: center; }
  .ar-works .wg-head h3 { font: 600 16px/30px var(--sans); }
  .ar-works .wg-head .lnk { font-size: 13px; line-height: 22px; }
  .ar-works .cap .t { font-size: 13px; }
  .ar-works .cap .m { font-size: 11px; }
}
