@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard-dynamic-subset.min.css");

/* 1. Reset and document
-------------------------------------------------- */

::-moz-selection {
  color: white;
  background: black;
}

::selection {
  color: white;
  background: black;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-size: 100%;
}

html {
  font-size: clamp(16px, 1.25vw, 20px);
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  color: #000;
  background: #fff;
  font-family: Pretendard, Arial, Helvetica, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  word-break: keep-all;
  cursor: default;
}

html:has(dialog[open]),
body:has(dialog[open]) {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* 2. Site frame
-------------------------------------------------- */

.header {
  position: sticky;
  z-index: 999;
  top: 0;
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  transform: translateY(0);
  gap: .25rem;
  padding: 1rem 1.25rem;
  background: linear-gradient(
    to bottom,
    white 25%,
    transparent
  );
  -webkit-user-select: none;
  user-select: none;
}

@media (min-width: 900px) {
  .header {
    flex-wrap: nowrap;
    gap: 1rem;
    padding: 1rem 1.5rem;
  }
}

.header-title {
  font-weight: 700;
}

.header-nav-toggle {
  display: block;
  color: inherit;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

@media (min-width: 900px) {
  .header-nav-toggle {
    display: none;
  }
}

.header-nav-toggle .ri-close-line,
.header-nav-toggle[aria-expanded="true"] .ri-menu-line {
  display: none;
}

.header-nav-toggle[aria-expanded="true"] .ri-close-line {
  display: inline-block;
}

.header-nav {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: .25rem;
  flex-basis: 100%;
  width: 100%;
}

@media (min-width: 900px) {
  .header-nav {
    align-items: center;
    flex-direction: row;
    gap: 1rem;
    flex-basis: auto;
    width: auto;
  }
}

.header-nav[hidden] {
  display: none;
}

.header-nav a:hover,
.header-nav a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: .25em;
}

.main {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}

.footer {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  font-size: .875rem;
}

@media (min-width: 900px) {
  .footer {
    padding: 1rem 1.5rem;
  }
}

.footer-links {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: 1rem;
  line-height: 1;
}

/* 3. Page sections
-------------------------------------------------- */

.section {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 3rem 1.25rem;
}

@media (min-width: 900px) {
  .section {
    padding: 3rem 1.5rem;
  }
}

.section-header {
  display: flex;
  flex-direction: column;
  gap: .25rem;
}

.section-title {
  font-size: clamp(1.5rem, 3vw, 3rem);
  font-weight: 600;
}

/* @media (min-width: 900px) {
  .section-title {
    font-size: 3rem;
  }
} */

:lang(ko) .section-title {
  line-height: 1.375;
}

:lang(en) .section-title {
  line-height: 1.25;
}

.section-title a {
  text-decoration: underline;
  text-underline-offset: .25em;
  text-decoration-color: rgba(0, 0, 0, .1);
}

.section-title a:hover {
  text-decoration-color: currentColor;
}

.tabs {
  flex-direction: row;
  flex-wrap: wrap;
  gap: .25rem 1rem;
}

.tab {
  color: inherit;
  border: 0;
  background: transparent;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  opacity: .25;
}

.tab:hover,
.tab:focus-visible,
.tab[aria-selected="true"] {
  opacity: 1;
}

.columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 1.5rem;
}

@media (min-width: 900px) {
  .columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .columns > .cover,
  .columns > .content {
    position: sticky;
    top: 4rem;
  }

  .columns > .content {
    grid-column: 2;
  }
}

/* 4. Text content
-------------------------------------------------- */

.content {
  width: 100%;
  max-width: 40rem;
}

:lang(ko) .content {
  line-height: 1.625;
}

:lang(en) .content {
  line-height: 1.5;
}

.content > *:not(:last-child) {
  margin-bottom: 1em;
}

.content h2 + * {
  margin-top: -.875em;
}

.content ul,
.content ol {
  display: flex;
  flex-direction: column;
  gap: .125em;
  padding-left: 1.25em;
}

.content a {
  text-decoration: underline;
  text-underline-offset: .25em;
  text-decoration-color: rgba(0, 0, 0, .1);
}

.content a:hover {
  text-decoration-color: currentColor;
}

.content hr {
  border: 0;
  border-top: 1px solid rgba(0, 0, 0, .1);
  margin: 1.25em 0 !important;
}

.search-form {
  width: 100%;
}

.search-form input {
  width: 100%;
  padding: 1.5rem 0;
  font: inherit;
  color: inherit;
  background: transparent;
  border: 0;
  border-radius: 0;
  outline: 0;
}

.search-panel {
  position: fixed;
  inset: auto 0 0;
  width: 100%;
  max-width: none;
  padding: 1.5rem 1.25rem 0;
  color: inherit;
  border: 0;
  background: linear-gradient(
    to bottom,
    transparent,
    white 25%
  );
}

@media (min-width: 900px) {
  .search-panel {
    padding: 1.5rem 1.5rem 0;
  }
}

.search-panel[open] {
  display: flex;
}

.search-panel::backdrop {
  background: rgba(0, 0, 0, .25);
  -webkit-backdrop-filter: blur(.25rem);
  backdrop-filter: blur(.25rem);
}

/* 5. Media
-------------------------------------------------- */

.media {
  display: flex;
  flex-direction: column;
  gap: .25rem;
}

.media img {
  display: block;
  width: 100%;
  height: auto;
}

.media figcaption {
  font-size: .75rem;
}

.home-exhibition {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  min-height: 0;
}

.home-page {
  height: 100svh;
  overflow: hidden;
}

.home-page .main {
  min-height: 0;
}

.home-section {
  flex: 1 1 auto;
  min-height: 0;
}

.home-exhibition .media {
  width: 100%;
  height: 100%;
}

.home-exhibition img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.map {
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.map iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(1);
}

.gallery {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
}

@media (min-width: 600px) {
  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1200px) {
  .gallery {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.gallery-image {
  display: block;
  cursor: zoom-in;
}

.gallery .gallery-image {
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.gallery .gallery-image img {
  height: 100%;
  object-fit: cover;
}

.lightbox {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  padding: 1.5rem;
  color: #fff;
  border: 0;
  background: transparent;
}

.lightbox[open] {
  display: grid;
  place-items: center;
}

.lightbox::backdrop {
  background: rgba(0, 0, 0, .75);
  -webkit-backdrop-filter: blur(.25rem);
  backdrop-filter: blur(.25rem);
}

.lightbox-close,
.lightbox-navigation button {
  border: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.lightbox-close,
.lightbox-navigation {
  z-index: 1;
  color: white;
  mix-blend-mode: difference;
}

.lightbox-close {
  position: fixed;
  top: 1rem;
  right: 1rem;
}

.lightbox-navigation {
  position: fixed;
  top: 50%;
  right: 1rem;
  left: 1rem;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  transform: translateY(-50%);
}

.lightbox-navigation[hidden] {
  display: none;
}

.lightbox-navigation button {
  pointer-events: auto;
}

.lightbox-media {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .25rem;
  max-width: 100%;
  max-height: 100%;
}

.lightbox-zoom {
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.lightbox-image {
  display: block;
  width: auto;
  max-width: calc(100vw - 3rem);
  height: auto;
  max-height: calc(100dvh - 6rem);
  object-fit: contain;
}

.lightbox.is-zoomed {
  display: flex;
  align-items: flex-start;
  justify-content: safe center;
  overflow: auto;
}

.lightbox.is-zoomed .lightbox-media {
  width: max-content;
  max-width: none;
  max-height: none;
}

.lightbox.is-zoomed .lightbox-zoom {
  cursor: grab;
}

.lightbox.is-dragging .lightbox-zoom {
  cursor: grabbing;
}

.lightbox.is-zoomed .lightbox-image {
  max-width: none;
  max-height: none;
}

.lightbox-caption {
  align-self: flex-start;
  font-size: .75rem;
}

/* 6. Page lists
-------------------------------------------------- */

.list {
  list-style: none;
  display: flex;
  flex-direction: column;
  margin-top: -.75rem;
  font-size: clamp(1.5rem, 3vw, 3rem);
}

:lang(ko) .list {
  line-height: 1.375;
}

:lang(en) .list {
  line-height: 1.25;
}

.list li {
  border-bottom: 1px solid rgba(0, 0, 0, .1);
}

.list li:hover {
  border-bottom-color: currentColor;
}

.list a {
  display: grid;
  grid-template-columns: clamp(4rem, 12vw, 12rem) minmax(0, 1fr);
  align-items: center;
  gap: clamp(1rem, 2vw, 1.5rem);
  padding: .75rem 0;
}

.list-artist {
  font-size: clamp(1.25rem, 2vw, 2rem);
}

.list-artist a {
  grid-template-columns: clamp(4rem, 12vw, 6rem) minmax(0, 1fr);
}

.list-image {
  overflow: hidden;
  aspect-ratio: 1;
}

.list-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.list-content {
  display: flex;
  flex-direction: column;
  gap: .25rem;
}

.list-date {
  font-size: .75rem;
  font-variant-numeric: tabular-nums;
}
