:root {
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-ui: "Manrope", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --font-ko: "Noto Serif KR", serif;
  --ink: #e9e5da;
  --ink-strong: #f5efde;
  --muted: rgba(233, 229, 218, .62);
  --faint: rgba(233, 229, 218, .12);
  --gold: #d9b774;
  --ground: #08080a;
  --panel: #0d0d10;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--ground);
}

body {
  min-height: 100%;
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-ui);
}

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

img {
  display: block;
  max-width: 100%;
}

.h2-home,
.h2-lightbox,
.h2-archive {
  min-height: 100svh;
  background:
    radial-gradient(ellipse 70% 55% at 50% 36%, rgba(255,255,255,.045), transparent 70%),
    #08080a;
  color: var(--ink);
}

.h2-home {
  display: grid;
  grid-template-rows: auto minmax(430px, 1fr) auto auto;
  gap: 24px;
  padding: 24px 56px 22px;
  overflow: hidden;
}

.h2-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: relative;
  z-index: 2;
}

.h2-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.h2-mark {
  width: 22px;
  height: 22px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  position: relative;
  flex: 0 0 auto;
}

.h2-mark::after {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 12px rgba(217,183,116,.5);
}

.h2-name {
  font-family: var(--font-display);
  font-size: 26px;
  color: var(--ink-strong);
  line-height: 1;
}

.h2-name em {
  color: var(--gold);
}

.h2-nav {
  display: flex;
  gap: 28px;
  align-items: center;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
}

.h2-nav a:hover {
  color: var(--ink-strong);
}

.h2-lang-switch {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  margin-left: 4px;
  padding: 3px 6px;
  border: 1px solid rgba(233,229,218,.18);
  border-radius: 999px;
  letter-spacing: .14em;
}

.h2-lang-separator {
  color: rgba(233,229,218,.28);
  margin-left: 2px;
}

.h2-lang-link {
  color: rgba(233,229,218,.42);
}

.h2-lang-link.is-active {
  color: var(--gold);
}

.h2-plate {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 20px;
  min-height: 0;
}

.h2-plate-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  overflow: hidden;
}

.h2-spot {
  position: absolute;
  left: 50%;
  top: -32px;
  transform: translateX(-50%);
  width: 70%;
  height: 30%;
  pointer-events: none;
  background: radial-gradient(ellipse 60% 100% at 50% 0%, rgba(255,222,164,.13), transparent 65%);
}

.h2-plate-frame,
.image-wrap {
  position: relative;
  max-width: 100%;
  max-height: 100%;
  background: #0a0a0c;
  box-shadow:
    0 80px 100px -40px rgba(0,0,0,.75),
    0 0 0 1px rgba(217,183,116,.10),
    inset 0 0 0 18px #0e0d10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.h2-plate-image {
  max-height: min(56svh, 620px);
  width: auto;
  object-fit: contain;
}

.h2-plate-label {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 28px;
}

.h2-label-rule {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(233,229,218,.18), transparent);
}

.h2-label-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
  text-align: center;
  min-width: min(560px, 70vw);
}

.h2-over {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .28em;
  color: var(--gold);
  text-transform: uppercase;
}

.h2-label-card h1,
.h2-lightbox-caption h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-style: italic;
  font-size: 28px;
  line-height: 1.12;
  margin: 4px 0 0;
  color: var(--ink-strong);
}

.h2-label-card h1 b,
.h2-lightbox-caption h1 b {
  color: var(--gold);
  font-style: normal;
  font-weight: 500;
}

.h2-ko {
  font-family: var(--font-ko);
  font-size: 13.5px;
  line-height: 1.7;
  color: rgba(233,229,218,.82);
  word-break: keep-all;
}

.h2-meta {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .16em;
  color: rgba(233,229,218,.5);
  text-transform: uppercase;
  display: flex;
  gap: 10px;
  align-items: center;
}

.h2-meta .sep {
  color: rgba(233,229,218,.22);
}

.h2-reveal {
  margin-top: 10px;
  font-family: var(--font-ui);
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(233,229,218,.68);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border: 1px solid rgba(233,229,218,.18);
  border-radius: 999px;
  background: transparent;
}

.h2-reveal:hover {
  color: var(--gold);
  border-color: var(--gold);
}

.h2-reveal .glyph {
  color: var(--gold);
  font-family: var(--font-mono);
}

.h2-halls {
  display: grid;
  grid-template-columns: minmax(280px, 420px) 1fr;
  gap: 48px;
  padding-top: 18px;
  border-top: 1px solid rgba(233,229,218,.08);
}

.h2-halls h2,
.archive-head h1 {
  margin: 10px 0 0;
  font-family: var(--font-display);
  font-size: clamp(44px, 7vw, 78px);
  line-height: 1;
  font-weight: 400;
  color: var(--ink-strong);
}

.h2-lang-ko .h2-halls h2 {
  font-family: var(--font-ko);
  font-size: clamp(28px, 3.5vw, 40px);
  line-height: 1.18;
  white-space: nowrap;
  word-break: keep-all;
}

.h2-halls h2 i {
  color: var(--gold);
}

.h2-halls p {
  max-width: 38ch;
  font-family: var(--font-ko);
  line-height: 1.85;
  color: rgba(233,229,218,.75);
  word-break: keep-all;
}

.h2-hall-list {
  border-top: 1px solid rgba(233,229,218,.10);
}

.h2-hall-row {
  display: grid;
  grid-template-columns: 42px 60px 1fr auto 28px;
  gap: 20px;
  align-items: center;
  padding: 14px 4px 14px 0;
  border-bottom: 1px solid rgba(233,229,218,.06);
}

.h2-hall-row:hover {
  background: linear-gradient(90deg, rgba(217,183,116,.06), transparent 40%);
}

.h2-hall-row .roman {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 22px;
  color: rgba(245,239,222,.55);
}

.h2-hall-row .cover {
  width: 60px;
  height: 44px;
  overflow: hidden;
  background: #0d0d10;
  box-shadow: 0 0 0 1px rgba(233,229,218,.1);
}

.h2-hall-row img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.h2-hall-row .name {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.h2-hall-row .title {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 22px;
  color: var(--ink-strong);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.h2-hall-row .summary {
  font-family: var(--font-ko);
  font-size: 12px;
  color: rgba(233,229,218,.55);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.h2-hall-row .count {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .14em;
  color: rgba(233,229,218,.45);
  text-transform: uppercase;
  white-space: nowrap;
}

.h2-hall-row .arrow {
  color: rgba(233,229,218,.5);
}

.h2-bottom {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 18px;
  align-items: center;
  padding-top: 14px;
  border-top: 1px solid rgba(233,229,218,.07);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .2em;
  color: rgba(233,229,218,.5);
  text-transform: uppercase;
}

.h2-bottom > :last-child {
  text-align: right;
}

.pulse {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-right: 10px;
  background: var(--gold);
  box-shadow: 0 0 8px rgba(217,183,116,.7);
}

.h2-lightbox {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  padding: 24px 0 22px;
  overflow: hidden;
  position: relative;
}

.h2-lightbox-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 56px;
  position: relative;
  z-index: 2;
}

.crumbs {
  display: flex;
  gap: 8px;
  align-items: baseline;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .2em;
  color: rgba(233,229,218,.55);
  text-transform: uppercase;
}

.crumbs strong {
  color: var(--gold);
  font-weight: 500;
}

.close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(233,229,218,.22);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(233,229,218,.72);
  font-size: 18px;
}

.h2-lightbox-stage {
  display: grid;
  grid-template-columns: 90px 1fr 90px;
  align-items: center;
  min-height: 0;
  padding: 12px 24px 18px;
}

.side-arrow {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid rgba(233,229,218,.18);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(233,229,218,.7);
  font-family: var(--font-display);
  font-size: 26px;
  justify-self: center;
}

.frame {
  position: relative;
  min-height: 0;
  height: 100%;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.h2-lightbox .image-wrap {
  width: 100%;
  height: min(78svh, calc(100svh - 178px));
  max-height: 100%;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.h2-photo-image {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.h2-lightbox-caption {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 30px;
  align-items: center;
  padding: 16px 56px 0;
  border-top: 1px solid rgba(233,229,218,.08);
}

.h2-lightbox-caption .h2-meta {
  justify-content: center;
}

.h2-lightbox-caption .h2-reveal {
  justify-self: end;
}

.h2-drawer {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(390px, 92vw);
  background: linear-gradient(180deg, #0d0d10, #08080a);
  border-left: 1px solid rgba(217,183,116,.18);
  transform: translateX(100%);
  transition: transform .35s cubic-bezier(.2,.7,.3,1);
  z-index: 5;
  padding: 40px 36px;
  overflow-y: auto;
  box-shadow: -40px 0 60px -20px rgba(0,0,0,.5);
}

.h2-lightbox[data-info="open"] .h2-drawer {
  transform: translateX(0);
}

.drawer-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(233,229,218,.18);
  background: transparent;
  color: rgba(233,229,218,.6);
  cursor: pointer;
}

.h2-drawer h2 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 30px;
  color: var(--ink-strong);
  margin: 14px 0;
}

.drawer-copy {
  font-family: var(--font-ko);
  font-size: 14px;
  line-height: 1.85;
  color: rgba(233,229,218,.85);
  word-break: keep-all;
}

.drawer-rule {
  width: 36px;
  height: 1px;
  background: var(--gold);
  margin: 22px 0 10px;
}

.h2-drawer dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0 18px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.h2-drawer dt,
.h2-drawer dd {
  margin: 0;
  padding: 8px 0;
  border-bottom: 1px solid rgba(233,229,218,.08);
}

.h2-drawer dt {
  color: rgba(233,229,218,.55);
}

.h2-drawer dd {
  color: var(--ink-strong);
  text-align: right;
}

.h2-archive {
  padding: 24px 56px 48px;
}

.archive-head {
  padding: 80px 0 26px;
}

.gallery-layout {
  display: block;
}

.gallery-layout.has-copy {
  display: grid;
  grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
  gap: 44px;
  align-items: start;
}

.gallery-copy {
  position: sticky;
  top: 24px;
  max-height: calc(100vh - 48px);
  overflow: auto;
  padding-right: 10px;
  color: rgba(233,229,218,.72);
  font-family: var(--font-ko);
  font-size: 15px;
  line-height: 1.85;
}

.gallery-copy p,
.gallery-copy ul,
.gallery-copy ol {
  margin: 0 0 18px;
}

.gallery-copy ul,
.gallery-copy ol {
  padding-left: 22px;
}

.gallery-copy strong {
  color: var(--ink-strong);
}

.gallery-notes {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid rgba(233,229,218,.12);
  color: rgba(233,229,218,.62);
}

.gallery-thumbs {
  min-width: 0;
}

.gallery-layout.layout-film-x,
.gallery-layout.layout-film-y {
  grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.archive-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.archive-card .image {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--panel);
}

.archive-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.archive-card .title {
  font-family: var(--font-display);
  font-size: 22px;
  font-style: italic;
  color: var(--ink-strong);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.archive-card .meta {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .14em;
  color: rgba(233,229,218,.5);
  text-transform: uppercase;
}

.gallery-layout.layout-masonry .gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  grid-auto-rows: 8px;
  grid-auto-flow: dense;
  gap: 20px;
  align-items: start;
}

.gallery-layout.layout-masonry .archive-card {
  display: flex;
  gap: 6px;
  width: 100%;
  min-width: 0;
}

.gallery-layout.layout-masonry .archive-card .image {
  aspect-ratio: auto;
  background: rgba(233,229,218,.04);
}

.gallery-layout.layout-masonry .archive-card img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.gallery-layout.layout-masonry .archive-card .title {
  font-size: 17px;
}

.gallery-layout.layout-masonry .archive-card .meta {
  font-size: 9px;
}

.gallery-layout.layout-masonry .archive-card.is-panoramic {
  grid-column: span 2;
}

.gallery-layout.layout-film-x .gallery-thumbs {
  display: flex;
  grid-template-columns: none;
  gap: 22px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0 0 18px;
  scroll-snap-type: x proximity;
}

.gallery-layout.layout-film-x .archive-card {
  flex: 0 0 min(76vw, 520px);
  scroll-snap-align: start;
}

.gallery-layout.layout-film-x .archive-card .image,
.gallery-layout.layout-film-y .archive-card .image {
  aspect-ratio: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(233,229,218,.12);
  background: #050505;
}

.gallery-layout.layout-film-x .archive-card .image {
  height: min(58vh, 520px);
}

.gallery-layout.layout-film-y .gallery-thumbs {
  display: block;
}

.gallery-layout.layout-film-y .archive-card {
  margin-bottom: 34px;
}

.gallery-layout.layout-film-y .archive-card .image {
  min-height: 260px;
  height: min(72vh, 760px);
}

.gallery-layout.layout-film-x .archive-card img,
.gallery-layout.layout-film-y .archive-card img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

@media (max-width: 920px) {
  .h2-home,
  .h2-archive {
    padding: 20px;
  }

  .gallery-layout.has-copy {
    display: block;
  }

  .gallery-copy {
    position: static;
    max-height: none;
    margin: 0 0 32px;
    padding-right: 0;
  }

  .h2-top,
  .h2-lightbox-top {
    align-items: flex-start;
  }

  .h2-nav {
    gap: 14px;
    flex-wrap: wrap;
    justify-content: flex-end;
    font-size: 10px;
  }

  .h2-plate-label,
  .h2-lightbox-caption,
  .h2-bottom {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .h2-label-rule {
    display: none;
  }

  .h2-halls {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .h2-hall-row {
    grid-template-columns: 34px 54px 1fr 20px;
    gap: 12px;
  }

  .h2-hall-row .count {
    display: none;
  }

  .h2-bottom > :last-child {
    text-align: center;
  }

  .h2-lightbox {
    padding: 20px 0;
  }

  .h2-lightbox-top,
  .h2-lightbox-caption {
    padding-left: 20px;
    padding-right: 20px;
  }

  .h2-lightbox-stage {
    grid-template-columns: 42px 1fr 42px;
    padding: 14px 8px;
  }

  .h2-lightbox .image-wrap {
    height: min(72svh, calc(100svh - 210px));
  }

  .side-arrow {
    width: 36px;
    height: 36px;
  }

  .h2-lightbox-caption .h2-reveal {
    justify-self: center;
  }

  .archive-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-layout.layout-masonry .gallery-thumbs {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  }

  .gallery-layout.layout-film-x .archive-card {
    flex-basis: min(88vw, 420px);
  }
}

@media (max-width: 560px) {
  .h2-home {
    grid-template-rows: auto auto auto auto;
  }

  .h2-top {
    flex-direction: column;
  }

  .h2-nav {
    justify-content: flex-start;
  }

  .h2-label-card {
    min-width: 0;
  }

  .h2-plate-image {
    max-height: 48svh;
  }

  .h2-halls h2,
  .archive-head h1 {
    font-size: 44px;
  }

  .archive-grid {
    grid-template-columns: 1fr;
  }

  .gallery-layout.layout-masonry .gallery-thumbs {
    grid-template-columns: 1fr;
  }

  .gallery-layout.layout-masonry .archive-card.is-panoramic {
    grid-column: span 1;
  }

  .crumbs {
    flex-wrap: wrap;
    line-height: 1.7;
  }
}
