body.exhibition-page {
  background-color: var(--background-color); 
}

.exhibition-layout {
  box-sizing: border-box;
  display: grid;
  grid-template-columns: 1fr 3fr;
  width: 100%;
  height: 100%;
  gap: var(--space-16);
  overflow: hidden;
  padding-bottom: var(--space-32);
}

@media only screen and (max-width: 768px) {
  .exhibition-layout {
    grid-template-columns: 1fr;
    overflow-y: visible;
    height: auto;
  }
  
  .exhibition-content {
    display: none !important;
  }
  
  .exhibition-images {
    overflow-y: visible;
    height: auto;
  }
}

.exhibition-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-16);
  color: var(--text-color);
  overflow-y: scroll;
  height: 100%;
}

.exhibition-header {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  padding-bottom: var(--space-8);
  margin-bottom: var(--space-8);
  border-bottom: var(--border);
}

@media only screen and (max-width: 768px) {
  .exhibition-header {
    grid-template-columns: 1fr;
    gap: var(--space-8);
    text-align: center;
  }
}

.exhibition-title {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.exhibition-title > div {
  margin: 0;
  color: var(--text-color);
  font-size: 1.4rem;
}

@media only screen and (max-width: 768px) {
  .exhibition-title > div {
    font-size: 1rem;
  }
}

.exhibition-bio {
  word-spacing: 0.05em;
  text-indent: var(--space-16);
  color: var(--text-color);
}

.exhibition-bio > div {
  text-indent: var(--space-16);
}

.exhibition-bio p {
  display: block;
  margin: 0 0 var(--space-8) 0;
  text-indent: var(--space-16);
}

.exhibition-bio p:first-child {
  margin-top: 0;
}

.exhibition-bio p:last-child {
  margin-bottom: 0;
}

.exhibition-thumbnails {
  width: 100%;
  margin: 0;
  padding: 0;
}

.exhibition-thumbnail {
  width: 100%;
  margin: 0;
  padding: 0;
}

.exhibition-thumbnail--kr {
  display: block !important;
}

.exhibition-thumbnail--en {
  display: none !important;
}

body.eng .exhibition-thumbnail--kr {
  display: none !important;
}

body.eng .exhibition-thumbnail--en {
  display: block !important;
}


.exhibition-thumbnails .grid {
  grid-template-columns: 1fr !important;
}

.exhibition-thumbnails .grid > .column {
  grid-column: span 1 !important;
}

.exhibition-meta {
  display: flex;
  flex-direction: column;
  gap: 0;
  align-items: flex-end;
  justify-content: flex-start;
}

@media only screen and (max-width: 768px) {
  .exhibition-meta {
    align-items: center;
  }
}

.exhibition-meta-item {
  display: flex;
  gap: 0;
  text-align: right;
  justify-content: flex-end;
}

.exhibition-meta-value {
  color: var(--text-color);
}

.exhibition-images {
  overflow-y: scroll;
  height: 100%;
  position: relative;
}

.exhibition-images__scroll-indicator {
  position: fixed;
  bottom: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  z-index: 10;
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.3s ease, visibility 0.3s ease, left 0.3s ease;
}

.exhibition-images__scroll-indicator.hidden {
  opacity: 0;
  visibility: hidden;
}

.exhibition-images__scroll-indicator span {
  font-size: var(--font-size-small);
  color: var(--text-color);
}

.exhibition-images__scroll-indicator .kr {
  display: block !important;
}

.exhibition-images__scroll-indicator .eng {
  display: none !important;
}

body.eng .exhibition-images__scroll-indicator .kr {
  display: none !important;
}

body.eng .exhibition-images__scroll-indicator .eng {
  display: block !important;
}

.exhibition-images__scroll-indicator svg {
  width: 1rem;
  height: 1rem;
  stroke: var(--main-color);
  fill: none;
  animation: scrollDown 1.5s ease-in-out infinite;
}

@keyframes scrollDown {
  0%, 100% {
    transform: rotate(90deg) translateX(0);
  }
  50% {
    transform: rotate(90deg) translateX(-5px);
  }
}

.exhibition-images .text {
  line-height: 1.3 !important;
}

.exhibition-images .text .kr,
.exhibition-images .text .eng {
  line-height: 1.3 !important;
}

.exhibition-images .grid {
  margin: 0;
  padding: 0;
}

.exhibition-images figure {
  margin: var(--space-8) 0 0 0;
  padding: 0;
}

.exhibition-images figure:last-child {
  margin-bottom: 0;
}

.exhibition-images img {
  width: 100%;
  display: block;
}

.exhibition-bio--korean.kr {
  display: block !important;
}

.exhibition-bio--english.eng {
  display: none !important;
}

body.eng .exhibition-bio--korean.kr {
  display: none !important;
}

body.eng .exhibition-bio--english.eng {
  display: block !important;
}

.exhibition-title .kr {
  display: block !important;
}

.exhibition-title .eng {
  display: block !important;
}

body.eng .exhibition-title .kr {
  display: block !important;
}

body.eng .exhibition-title .eng {
  display: block !important;
}

.text {
  color: var(--text-color);
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: var(--space-16);
}

.text a {
  text-decoration: underline;
  text-underline-offset: var(--underline-offset);
  color: var(--main-color);
}

.text :first-child {
  margin-top: 0;
}

.text :last-child {
  margin-bottom: 0;
}

.text p,
.text ul,
.text ol {
  margin: var(--space-8) 0 0 0;
  padding: 0;
}

.text ul,
.text ol {
  margin-left: 0;
}

.text ul p,
.text ol p {
  margin-bottom: 0;
}

.text ul > li {
  list-style: disc;
}

.text ol > li {
  list-style: decimal;
}

.text ul ol,
.text ul ul,
.text ol ul,
.text ol ol {
  margin-bottom: 0;
}

.text h1 {
  margin: var(--space-8) 0 0 0;
  padding: 0;
}

.text h2 {
  font-weight: 600;
  margin: var(--space-8) 0 0 0;
  padding: 0;
}

.text h3 {
  font-weight: 600;
  margin: var(--space-8) 0 0 0;
  padding: 0;
}

.text code {
  padding: 0;
  margin: 0;
  display: inline-block;
}

.text pre {
  margin: var(--space-8) 0 0 0;
  padding: var(--space-8) 0 0 0;
  overflow-x: scroll;
  overflow-y: hidden;
}

.text pre code {
  padding: 0;
  background: none;
  color: inherit;
}

.text hr {
  margin: var(--space-8) 0 0 0;
  padding: 0;
}

.text dt {
  font-weight: 600;
}

.text blockquote {
  margin: var(--space-8) 0 0 0;
  padding: 0;
  max-width: 25em;
}

.text blockquote footer {
  font-style: italic;
}

.text figure {
  margin: var(--space-8) 0 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  width: auto;
  height: 100%;
}

.text figure img {
  width: 100%;
  object-fit: cover;
}

.text figcaption {
  margin: var(--space-8) 0 0 0;
  padding: 0;
}

.text figure ul {
  line-height: 0;
  display: grid;
  gap: var(--space-8);
  margin: 0;
  grid-template-columns: repeat(auto-fit, minmax(10em, 1fr));
}

.text figure ul li {
  list-style: none;
}

.video,
.img {
  position: relative;
  display: block;
  --w: 1;
  --h: 1;
  padding-bottom: calc(100% / var(--w) * var(--h));
  background: var(--main-color);
}

.img img,
.video iframe {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
}

.img[data-contain] img {
  object-fit: contain;
}

.img-caption,
.video-caption {
  margin: var(--space-8) 0 0 0;
  padding: 0;
    line-height: 1.3em;
  }

video {
  width: 100%;
  height: auto;
}

hr {
  border: 0;
  background: currentColor;
  height: 2px;
  margin: var(--space-8) 0 0 0;
  padding: 0;
}

.grid {
  --columns: 12;
  --gutter: var(--space-16);
  display: grid;
  grid-template-columns: 1fr;
  grid-gap: var(--gutter);
  margin: 0;
  padding: 0;
  align-items: stretch;
}

.grid > .column {
  margin: var(--space-16) 0 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

/* 영문(두 번째 컬럼)만 행간 1.2 */
.exhibition-images .grid > .column:nth-child(2) .text {
  line-height: 1.1 !important;
}

@media screen and (min-width: 1024px) {
  .grid {
    grid-template-columns: repeat(12, 1fr);
  }
  .grid > .column {
    grid-column: span var(--columns);
}
}



/* duplicate: same rule is defined again below
@media only screen and (max-width: 768px) {
  body.exhibition-page {
  overflow-y: scroll;
}
}
*/




@media only screen and (max-width: 768px) {
  body.exhibition-page {
    overflow-y: scroll;
  }
}

@media only screen and (min-width: 768px) and (max-width: 1024px) {
  body.exhibition-page {
    overflow-y: scroll;
  }
}

/* ========== Print styles (work.php) ========== */
@media print {
  .exhibition-layout {
    grid-template-columns: 1fr;
    overflow: visible;
    height: auto;
    gap: 0;
  }

  .exhibition-content {
    display: block !important;
    width: 100%;
    overflow: visible;
    height: auto;
  }

  /* 2단·3단 배치 그대로 유지 */
  .exhibition-content .grid.margin-xl,
  .exhibition-images .grid {
    grid-template-columns: repeat(12, 1fr) !important;
  }

  .exhibition-content .grid > .column,
  .exhibition-images .grid > .column {
    grid-column: span var(--columns) !important;
  }

  .exhibition-images {
    overflow: visible;
    height: auto;
  }

  .exhibition-images__scroll-indicator {
    display: none !important;
  }

  /* 영상: print 시 썸네일만 표시 */
  .exhibition-images .video iframe,
  .exhibition-images .video video,
  .exhibition-content .video iframe,
  .exhibition-content .video video {
    display: none !important;
  }

  .exhibition-images .video,
  .exhibition-content .video {
    padding-bottom: 0 !important;
    min-height: 0;
  }

  .exhibition-images .video img.video-print-thumbnail,
  .exhibition-content .video img.video-print-thumbnail {
    display: block !important;
    position: static !important;
    width: 100%;
    height: auto;
    object-fit: cover;
  }
}