/* =========================
   RESET
========================= */

*{
  margin:0;
  padding:0;
  box-sizing:border-box;
   cursor:none !important;
}
:root{
  --font-size:14px;
  --line-height:20px;

  --side-width:300px;
  --center-width:700px;
  --chip-size:15px;
  --column-gap:clamp(20px, 5vw, 80px);
}

html, body{
  height:100%;
  font-family:Helvetica, Arial, sans-serif;
  font-size:var(--font-size);
  line-height:var(--line-height);
}

body,
a,
button,
summary,
details{
  font-family:inherit;
  font-size:inherit;
  line-height:inherit;
}
a,
a:visited,
a:hover,
a:active,
.site-name button{
  color:#000;
}

.site-name button{
  border:0;
  background:transparent;
  padding:0;
  margin:0;
  cursor:pointer;
  font:inherit;
  line-height:var(--line-height);
}



.site-name button.is-active{
  text-decoration:underline;
}

/* =========================
   COLOR CHIP
========================= */

.chip-bar{
  width:100%;
  box-sizing:border-box;
   margin-bottom:6px;
}

.thumb-strip{
  display:grid;
  grid-template-columns:repeat(auto-fill, var(--chip-size));
  width:100%;
}

.thumb-btn{
  border:0;
  background:transparent;
  padding:0;
  cursor:pointer;
  line-height:0;
}

.thumb{
  width:var(--chip-size);
  height:var(--chip-size);
  object-fit:cover;
  display:block;
}

/* =========================
   BODY
========================= */

body{
  padding:30px;
}


.cursor-ant{
  position:fixed;
  width:var(--chip-size);
  height:var(--chip-size);
  background:#000;
  pointer-events:none;
  z-index:99999;
  transform:translate(-50%, -50%);

}
/* =========================
   LAYOUT
========================= */

.layout{
  display:grid;
  grid-template-columns:
    var(--side-width)
    minmax(0, var(--center-width))
    var(--side-width);
  column-gap:var(--column-gap);
  justify-content:center;
  align-items:start;
  height:calc(100vh - 90px);
}

/* =========================
   LEFT
========================= */

.side-left{
  width:var(--side-width);
  min-width:0;
}

.site-name,
.menu{
  line-height:var(--line-height);
}

/* =========================
   CENTER
========================= */

.stage{
  width:100%;
  max-width:var(--center-width);
  min-width:0;
  height:100%;
  overflow-y:auto;

  scrollbar-width:none;
  -ms-overflow-style:none;
}

.stage::-webkit-scrollbar{
  display:none;
}

.work-detail{
  display:flex;
  flex-direction:column;
  padding-bottom:60px;
}

.meta{
  position:sticky;
  top:0;
  background:white;
  z-index:10;
  padding-bottom:0;
  margin-bottom:0;
  line-height:var(--line-height);
}


.work-detail > .meta:only-child{
  padding-top:var(--line-height);
}

.work-content{
  display:flex;
  flex-direction:column;
  gap:0px;
  margin-top:0px;
}

.work-detail img{
  width:100%;
  height:auto;
  display:block;
}
.work-detail:has(#workCurrentImage),
.work-detail:has(#publicationCurrentImage){
  height:100%;
  padding-bottom:0;
  overflow:hidden;
}

.work-image-frame,
.publication-image-frame{
  flex:1 1 auto;
  min-height:0;
  padding-bottom:var(--line-height);
  display:flex;
  align-items:flex-start;
  justify-content:flex-start;
  overflow:hidden;
     width:100%;
}


.work-image-frame img#workCurrentImage,
.publication-image-frame img#publicationCurrentImage{
  width:auto;
  height:100%;
  max-width:100%;
  max-height:100%;
  object-fit:contain;
  object-position:left top;
}
.publication-image-count{
  line-height:var(--line-height);
}

/* =========================
   DETAIL META
========================= */

.detail-meta{
  display:block;
}

.detail-back{
  display:block;
  margin-bottom:0;
}

.detail-meta-title{
  display:block;
}

/* =========================
   RIGHT
========================= */

.side-right{
  width:var(--side-width);
  min-width:0;
  line-height:var(--line-height);
}

.related-title,
.related-list{
  line-height:var(--line-height);
}

.related-list .related-item,
.related-list .ex-link{
  display:block;
}

.is-hidden{
  visibility:hidden;
}

/* =========================
   CV
========================= */

.cv-section{
  margin-bottom:16px;
}

.cv-title{
   text-decoration:underline;
   line-height:var(--line-height);
}
.cv-line{
  line-height:var(--line-height);
}

/* =========================
   WORKS LIST
========================= */

.work-row{
  margin-bottom:0;
  line-height:var(--line-height);
}

.work-year{
  margin-top:0;
}

.work-year-gap{
  height:16px;
}

.work-image-count{
  line-height:var(--line-height);
}
/* =========================
   EXHIBITION DETAIL
========================= */
.work-detail:has(#exCurrentImage){
  height:auto;
  padding-bottom:60px;
  overflow:visible;
}

.ex-detail-layout{
  display:block;
  overflow:visible;
}

.ex-image-frame{
  width:100%;
  margin-bottom:calc(var(--line-height) / 4);
  overflow:visible;
}

.ex-image-frame img#exCurrentImage{
  width:auto;
  max-width:100%;
  height:auto;
  max-height:calc(100vh - 160px);
  object-fit:contain;
  object-position:left top;
  display:block;
}

.ex-text-flow{
  margin-top:0;
}


.ex-image-frame{
  cursor:none !important;
}

.ex-image-count{
  line-height:var(--line-height);
}

/* ===== TEXT BLOCK ===== */
.ex-text,
.ex-text-note{
    word-break: keep-all;
    overflow-wrap: break-word;
}

.ex-text-details,
.ex-text-block{

  margin:0;

  padding:0;

  line-height:var(--line-height);

}

/* 내용 있는 블록 아래에만 한 줄 간격 */

.ex-text-details:has(.ex-text),

.ex-text-details:has(.ex-text-note),

.ex-text-block:has(.ex-text),

.ex-text-block:has(.ex-text-note){

  margin-bottom:var(--line-height);

}

/* 마지막 블록은 아래 여백 제거 */

.ex-text-details:last-child,

.ex-text-block:last-child{

  margin-bottom:0;

}

/* 닫힌 드롭다운 제목끼리는 붙임 */

.ex-text-details:not([open]){

  margin-bottom:0;

}

/* ===== SUMMARY ===== */

.ex-text-details summary{
  display:block;
  cursor:pointer;
  list-style:none;
  margin:0;
  padding:0;
  line-height:var(--line-height);
  text-decoration:underline;
}

.ex-text-details summary::-webkit-details-marker{
  display:none;
}

.ex-text-details[open] > .ex-text{
  margin-top:calc(var(--line-height) / 8);
}

/* ===== BODY ===== */

.ex-text{
  margin:0;
  padding:0;
  line-height:var(--line-height);
}

/* ===== NOTE ===== */

.ex-text-note{
  margin-top:var(--line-height);
  line-height:var(--line-height);
}

.note-line{
  display:grid;
  grid-template-columns:2.2em 1fr;
  column-gap:0.4em;
  align-items:start;
  line-height:var(--line-height);
}

.note-num{
  text-align:right;
}

.note-text{
  min-width:0;
}

.note-plain{
  margin-left:2.6em;
  line-height:var(--line-height);
}

/* ===== SUP ===== */

sup{
  font-size:0.72em;
  line-height:0;
  vertical-align:super;
}

/* =========================

   MOBILE

========================= */

@media (max-width:1000px){

  body{
    padding:20px;
  }

  .layout{
    display:flex;
    flex-direction:column;
    gap:0;
    height:auto;
  }

  .side-left{
    width:100%;
    margin-bottom:16px;
  }

  .stage{
    width:100%;
    max-width:100%;
    height:auto;
    overflow:visible;
    margin-bottom:16px;
  }

  .side-right{
    width:100%;
    padding-bottom:40px;
  }

  .meta{
    position:static;
  }

  .work-detail{
    padding-bottom:0;
  }

.layout:has(#workCurrentImage),
.layout:has(#publicationCurrentImage){
  height:calc(100dvh - 40px);
  overflow:hidden;
}

.layout:has(#workCurrentImage) .stage,
.layout:has(#publicationCurrentImage) .stage{
  flex:1 1 0;
  min-height:0;
  height:auto;
  overflow:hidden;
  margin-bottom:0;
}


.work-detail:has(#workCurrentImage),
.work-detail:has(#publicationCurrentImage){
  height:100%;
  overflow:hidden;
}

}


