/* Museum images retain their full composition, separate from generated portraits. */
.detail-tabs { gap: 14px; padding-inline: 19px; }
.detail-tabs button { font-size: 10px; }
.art-teaser { display: flex; width: 100%; gap: 12px; align-items: center; text-align: left; border: 1px solid #e4dfcd; background: #f8f6ed; border-radius: 4px; padding: 9px; margin: 0 0 17px; }
.art-teaser:hover { background: #f0edde; border-color: #b8a777; }
.art-teaser img { width: 58px; height: 64px; object-fit: contain; background: #e9e5d8; flex-shrink: 0; }
.art-teaser span { min-width: 0; }
.art-teaser small { display: block; color: #7c7259; font-size: 9px; line-height: 1.6; }
.art-teaser strong { display: block; color: #4d5945; font-family: var(--serif); font-size: 13px; line-height: 1.7; font-weight: 400; }
.art-teaser em { display: block; font-style: normal; font-size: 10px; color: #6e775d; margin-top: 3px; }
.gallery-intro { display: flex; justify-content: space-between; gap: 35px; align-items: center; padding: 25px 30px; border: 1px solid #e1dfcf; border-radius: 6px; background: linear-gradient(120deg, #f5f2e7, #f8f9f1); margin-bottom: 23px; }
.gallery-intro .tiny-label { color: #8b7751; letter-spacing: 2px; font-size: 8px; }
.gallery-intro h3 { font: 400 25px/1.55 var(--serif); margin: 9px 0; letter-spacing: -.7px; color: #46543d; }
.gallery-intro p { font-size: 12px; line-height: 1.8; color: #6f7d63; margin: 0; }
.gallery-note { display: flex; align-items: flex-start; gap: 10px; max-width: 245px; padding-left: 25px; border-left: 1px solid #d8d9c9; }
.gallery-note > .icon { flex-shrink: 0; width: 20px; height: 20px; color: #8f8057; }
.gallery-note span { font-size: 10px; color: #7c836f; }
.gallery-hint { font-size: 10px; }
.art-search-tools { display: flex; align-items: end; gap: 18px; padding: 18px; border: 1px solid #e1e5d6; background: #fafbf6; border-radius: 5px; }
.art-search-label { display: flex; align-items: center; gap: 10px; min-width: 180px; flex: 1; background: white; border: 1px solid #d7dfcc; border-radius: 4px; padding: 12px; }
.art-search-label .icon { width: 16px; height: 16px; flex-shrink: 0; color: #7a8969; }
.art-search-label input { min-width: 0; width: 100%; border: 0; color: #45583b; font: inherit; font-size: 12px; background: transparent; }
.art-search-label:focus-within { outline: 2px solid #a1ad8d; outline-offset: 2px; }
.art-search-label input:focus { outline: 0; }
.art-selects { display: flex; gap: 10px; }
.art-selects label { min-width: 0; display: grid; gap: 7px; }
.art-selects label > span { font-size: 10px; color: #748166; }
.art-selects select { min-width: 105px; max-width: 165px; padding: 11px 7px; border: 1px solid #d7dfcc; color: #536746; background: white; border-radius: 4px; font-size: 11px; }
.art-result-bar { margin-top: 17px; }
.art-reset { font-size: 11px; color: #6b7c59; padding: 7px 0 7px 10px; }
.art-reset:hover { text-decoration: underline; }
.collection.art-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; gap: 21px; }
.art-card { min-width: 0; background: #fff; border: 1px solid #e0e3d6; border-radius: 5px; overflow: hidden; }
.art-image-button { position: relative; display: flex; align-items: center; justify-content: center; width: 100%; padding: 20px; height: 245px; background: #eeeade; border-bottom: 1px solid #e3dfd1; }
.art-image-button img { display: block; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 3px 5px #33271720); }
.art-image-button:hover { background: #e9e3d2; }
.art-image-button:focus-visible { outline-offset: -4px; }
.art-expand { position: absolute; right: 10px; bottom: 10px; width: 25px; height: 25px; border-radius: 50%; display: grid; place-items: center; background: #fafbf4e8; color: #536446; }
.art-card-copy { padding: 18px 19px 15px; }
.art-category { font-size: 9px; letter-spacing: 1px; color: #8e7957; }
.art-card h3 { margin: 8px 0; font: 400 18px/1.55 var(--serif); color: #3b4e36; word-break: keep-all; overflow-wrap: anywhere; }
.art-card h3 button { text-align: left; font: inherit; }
.art-card h3 button:hover { text-decoration: underline; text-underline-offset: 4px; }
.art-card p.art-byline { margin: 0 0 12px; font-size: 11px; color: #747d68; line-height: 1.7; }
.art-card p.art-connection { font-size: 12px; color: #626f56; line-height: 1.8; margin: 0 0 15px; }
.art-credit { display: flex; gap: 10px; flex-wrap: wrap; justify-content: space-between; padding-top: 11px; border-top: 1px solid #e9ebdf; font-size: 10px; line-height: 1.7; }
.art-credit a { color: #718061; text-decoration: none; text-underline-offset: 3px; }
.art-credit a:hover { text-decoration: underline; }
.detail-content .art-panel-intro { font-size: 11px; }
.art-panel-list { display: grid; gap: 16px; }
.art-card-compact .art-image-button { height: 185px; padding: 14px; }
.art-card-compact .art-card-copy { padding: 12px; }
.art-card-compact h3 { font-size: 16px; }
.art-card-compact .art-credit { font-size: 9px; }
.art-empty { padding: 20px 0; }
.art-empty button { color: #526f40; font-size: 12px; text-decoration: underline; text-underline-offset: 4px; }
dialog.art-dialog { max-width: 1090px; padding: 40px 32px 30px; }
.art-detail-layout { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 30px; align-items: start; }
.art-full-image { margin: 0; position: sticky; top: 0; min-width: 0; background: #eeeade; padding: 20px; }
.art-full-image img { display: block; width: 100%; height: auto; max-height: calc(85vh - 140px); object-fit: contain; }
.art-full-image figcaption { font-size: 10px; color: #746e60; line-height: 1.7; margin-top: 15px; text-align: center; }
.art-full-image .art-original-link { display: block; margin-top: 8px; color: #5a6c4c; }
.art-close-bottom { margin-top: 20px; border: 1px solid #ced8c2; border-radius: 4px; padding: 10px 17px; font-size: 12px; color: #5b704d; }
.art-close-bottom:hover { background: #edf1e4; }
.art-detail-copy { min-width: 0; }
.art-detail-copy > .tiny-label { font-size: 8px; letter-spacing: 1.5px; color: #8f7952; }
.art-detail-copy h2 { font: 400 27px/1.5 var(--serif); margin: 12px 0 7px; word-break: keep-all; overflow-wrap: anywhere; }
.art-detail-copy p { font-size: 13px; line-height: 1.9; }
.art-detail-copy .art-original-title { font: italic 13px/1.6 Georgia, serif; color: #87816f; margin: 0 0 12px; }
.art-detail-copy .art-author { color: #586a4a; font-size: 12px; margin-bottom: 20px; }
.art-facts { padding-block: 12px; border-block: 1px solid #dce1cf; margin: 0 0 23px; font-size: 11px; color: #6a785e; }
.art-facts div { display: grid; grid-template-columns: 68px 1fr; gap: 7px; padding: 5px 0; line-height: 1.7; }
.art-facts dt { color: #8c947e; }
.art-facts dd { margin: 0; overflow-wrap: anywhere; }
.art-detail-copy h3 { font-size: 13px; color: #506743; margin-top: 23px; }
.art-story-links { padding-top: 2px; }
.art-story-links button { display: flex; justify-content: space-between; align-items: center; gap: 12px; width: 100%; background: #edf1e4; border: 1px solid #dbe2ce; border-radius: 4px; padding: 12px 14px; margin: 7px 0; font-size: 12px; text-align: left; line-height: 1.7; }
.art-story-links button:hover { background: #e5ebd9; }
.art-god-links { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 15px 0 25px; }
.art-god-links > span { font-size: 10px; color: #7d886e; margin-right: 3px; }
.art-god-links button { padding: 6px 9px; border: 1px solid #dce2d2; border-radius: 3px; color: #647953; font-size: 11px; }
.art-god-links button:hover { background: #edf1e4; }
.art-rights { border-top: 1px solid #dce1d1; padding-top: 9px; }
.art-rights p { font-size: 11px; color: #77816b; }
.art-rights .dialog-links { gap: 7px 14px; }
.art-rights .dialog-links a { font-size: 10px; }
.art-rights .art-collection-credit { font-size: 10px; line-height: 1.7; }
.art-description-credit { padding: 10px 12px; background: #eff1e6; }
.art-description-credit a { display: block; }
@media (max-width: 1200px) {
  .art-search-tools { align-items: stretch; flex-direction: column; }
  .art-selects { justify-content: space-between; }
  .art-selects label { flex: 1; }
  .art-selects select { width: 100%; max-width: none; }
  .collection.art-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-tabs { gap: 12px; padding-inline: 15px; }
}
@media (max-width: 760px) {
  .art-search-tools { padding: 14px; gap: 14px; }
  .art-selects { flex-wrap: wrap; gap: 13px 10px; }
  .art-selects label { flex: 1 1 calc(50% - 10px); }
  .art-selects select { min-width: 0; }
  .art-selects label:last-child { flex-basis: 100%; }
  .sidebar nav { gap: 2px; }
  .nav-item { min-width: 33px; width: 33px; padding: 8px; }
  .detail-tabs { gap: 21px; padding-inline: 24px; }
  .detail-tabs button { font-size: 11px; }
  .art-teaser img { width: 68px; height: 72px; }
  .art-teaser strong { font-size: 15px; }
  .art-teaser small { font-size: 10px; }
  .art-teaser em { font-size: 11px; }
  .gallery-intro { padding: 22px; display: block; }
  .gallery-intro h3 { font-size: 24px; }
  .gallery-intro p { font-size: 12px; }
  .gallery-note { padding: 14px 0 0; border-left: 0; border-top: 1px solid #dedfce; margin-top: 18px; max-width: none; }
  .gallery-note p { font-size: 11px; }
  .gallery-hint { display: none; }
  .collection.art-grid { grid-template-columns: 1fr; gap: 20px; }
  .art-image-button { height: 290px; padding: 22px; }
  .art-card-copy { padding: 18px 21px; }
  .art-card-compact .art-image-button { height: 240px; }
  .art-card-compact .art-card-copy { padding: 16px; }
  .art-credit, .art-card-compact .art-credit { font-size: 11px; }
  dialog.art-dialog { padding: 42px 20px 24px; width: calc(100% - 20px); max-height: 90dvh; }
  .art-detail-layout { grid-template-columns: 1fr; gap: 23px; }
  .art-full-image { position: static; padding: 15px; }
  .art-full-image img { max-height: 50dvh; }
  .art-detail-copy h2 { font-size: 25px; }
}
@media (max-width: 360px) {
  .sidebar { padding-inline: 12px; }
  .brand { gap: 3px; }
  .brand b { font-size: 15px; letter-spacing: 1px; }
  .brand small { letter-spacing: 1px; }
  .brand-icon { width: 24px; height: 24px; }
  .detail-tabs { gap: 16px; padding-inline: 20px; }
  .art-image-button { height: 250px; }
}
/* 2026-11-09 작품 크게 보기: 같은 페이지 안 전체 화면 뷰어 + 언제나 보이는 닫기 */
.art-zoom-trigger { display: block; width: 100%; padding: 0; cursor: zoom-in; }
.art-full-image .art-original-link { display: inline-block; margin-top: 8px; color: #5a6c4c; font-size: 12px; text-decoration: underline; text-underline-offset: 3px; }
dialog.art-dialog .dialog-close { position: sticky; top: -28px; float: right; margin: -28px -18px 0 0; z-index: 3; width: 40px; height: 40px; border-radius: 50%; background: #fafbf6ee; box-shadow: 0 1px 6px #10201e22; }
dialog.zoom-viewer { width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; border-radius: 0; background: #11160f; color: #eef0e6; display: none; flex-direction: column; }
dialog.zoom-viewer[open] { display: flex; }
dialog.zoom-viewer::backdrop { background: #11160f; }
.zoom-bar { display: flex; align-items: center; gap: 12px; padding: 10px 12px; padding-top: max(10px, env(safe-area-inset-top)); background: #11160fe6; border-bottom: 1px solid #ffffff1a; }
.zoom-back { color: #eef0e6; font-size: 14px; padding: 10px 14px; border: 1px solid #ffffff40; border-radius: 999px; white-space: nowrap; }
.zoom-back:hover, .zoom-x:hover { color: #fff; background: #ffffff14; }
.zoom-title { flex: 1; min-width: 0; font-size: 14px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zoom-x { margin-left: auto; flex: none; color: #eef0e6; width: 44px; height: 44px; font-size: 28px; border-radius: 50%; }
.zoom-stage { flex: 1; min-height: 0; overflow: auto; display: grid; place-items: center; padding: 12px; overscroll-behavior: contain; }
.zoom-stage img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; cursor: zoom-in; }
.zoom-viewer.is-actual .zoom-stage { place-items: start; place-items: safe center; }
.zoom-viewer.is-actual .zoom-stage img { max-width: none; max-height: none; cursor: zoom-out; }
.zoom-hint { margin: 0; padding: 10px 16px; padding-bottom: max(10px, env(safe-area-inset-bottom)); font-size: 12px; line-height: 1.6; color: #b9c0ad; text-align: center; }
.zoom-hint a { color: #d8c48f; }
@media (max-width: 760px) { .zoom-back { font-size: 13px; padding: 9px 12px; } .zoom-title { display: none; } }
.empty-illust { display: block; width: min(320px, 80%); height: auto; margin: 0 auto 4px; border-radius: 6px; mix-blend-mode: multiply; }
