@font-face {
  font-family: "SUIT Variable";
  src: url("./SUIT-Variable.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

* { -webkit-tap-highlight-color: transparent; }

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
  overflow: hidden;
  background: transparent;
  color: #fff;
  font-family: "SUIT Variable", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
}


#exhibition-wrapper {
  height: 100vh;
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
}

.panel {
  height: 100vh;
  flex: 0 0 auto;
}

.panel-hero {
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}


.hero-container {
  width: 100%;
  max-width: 1440px;
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 24px;
}

.hero-left {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-poster {
  height: 100%;
  max-height: 100vh;
  width: auto;
  object-fit: contain;
}

.hero-right {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 48px;
}

.hero-text {
  max-width: 420px;
}

.hero-lead {
  font-size: 14px;
  font-weight: 400;
  margin-bottom: 20px;
}

.hero-body {
  font-size: 12px;
  line-height: 1.8;
  margin-bottom: 28px;
  opacity: 0.9;
  font-weight: 200;
   letter-spacing: 0.01em;
}

.hero-quote {
  font-size: 12px;
  font-weight: 200;
  letter-spacing: 0.2em;
}

@media (max-width: 768px) {
  .hero-lead {
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 10px;
    letter-spacing: 0.1em;
  }

  .hero-body {
    font-size: 11px;
    line-height: 1.5;
    margin-bottom: 16px;
    letter-spacing: 0.1em;
  }

  .hero-quote {
    font-size: 9px;
    letter-spacing: 0.16em;
  }
}

/* 모바일 & 태블릿 — 세로 배치 */
@media (max-width: 1023px) {
  .hero-container {
    flex-direction: column;
    justify-content: center;
  }

  .hero-poster {
    width: 100%;
    height: auto;
    max-height: 65vh;
  }

  .hero-right {
    padding-left: 0;
    padding-top: 24px;
    text-align: center;
  }
}

/* 데스크톱 — hero */
@media (min-width: 1024px) {
  .hero-container {
    flex-direction: row;
  }

  .hero-left {
    padding-left: 120px;
    flex: 0 0 auto;
  }

  .hero-right {
    flex: 1;
  }
    .hero-text {
    max-width: 520px;
  }

  .hero-lead {
    font-size: 18px;
    margin-bottom: 28px;
  }

  .hero-body {
    font-size: 15px;
    line-height: 1.9;
    margin-bottom: 36px;
    opacity: 0.85;
    letter-spacing: 0.015em;
  }

  .hero-quote {
    font-size: 14px;
    letter-spacing: 0.22em;
  }
}

/* gallery */
.panel-gallery {
  width: 100vw;
  height: 100vh;
  background: #fff;
  color: #111;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-wall {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 110px;
  padding: 0 140px;
}
/* pc 사진 간격 조정 */
@media (min-width: 1024px) {
  .panel-gallery {
    width: max-content;
    min-width: 100vw;
    justify-content: flex-start;
  }

  .gallery-wall {
    width: max-content;
    min-width: 100vw;
    padding-left: 320px;
    padding-right: 320px;
    gap: 180px;
  }

  .gallery-wall::after {
    content: "";
    flex: 0 0 320px;
  }
}


.gallery-item {
  flex: 0 0 auto;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.gallery-item img {
  height: 58vh;
  width: auto;
  display: block;
  object-fit: cover;
}

.gallery-num {
  margin-top: 14px;
  font-size: 12px;
  letter-spacing: 0.18em;
  color: #111;
}

.item-06 img {
  height: 64vh;
}

@media (max-width: 1023px) {
  #exhibition-wrapper {
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
  }

  .panel {
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  .panel-gallery {
    overflow: hidden;
  }

  .gallery-wall {
    height: 100vh;
    width: 100vw;
    display: flex;
    align-items: center;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 0 50vw;
    gap: 110px;
    scrollbar-width: none;
  }

  .gallery-wall::-webkit-scrollbar {
    display: none;
  }

  .gallery-item {
    flex: 0 0 auto;
    scroll-snap-align: center;
    scroll-snap-stop: always;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .gallery-item img {
    width: min(86vw, 520px);
    height: auto;
    max-height: 62vh;
    object-fit: contain;
    display: block;
  }

  .gallery-num {
    margin-top: 14px;
    font-size: 12px;
    letter-spacing: 0.18em;
    color: #111;
  }
}

/* 뒤로가기버튼 */
.back-button {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 1000;

  background: transparent;
  border: none;
  padding: 0;

  font-family: "SUIT Variable", system-ui, sans-serif;
  font-size: 14px;
  letter-spacing: 0.02em;

  cursor: pointer;
}

.back-button.is-hero {
  color: #fff;
}

.back-button.is-gallery {
  color: #111;
}


@media (min-width: 1024px) {
  .gallery-next {
    position: fixed;
    right: 28px;
    bottom: 24px;
    z-index: 3000;
    opacity: 0;
    pointer-events: none;
    transform: translateY(6px);
    transition: opacity .2s ease, transform .2s ease;
  }

  .gallery-next.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .gallery-next .next-link {
    display: inline-block;
    font-family: "SUIT Variable", system-ui, sans-serif;
    font-size: 13px;
    letter-spacing: 0.12em;
    color: #111;
    text-decoration: none;
    background: transparent;
    padding: 10px 12px;
    border-radius: 50px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
  }
}


@media (max-width: 1023px) {
  .gallery-next {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 3000;
    opacity: 0;
    pointer-events: none;
    transform: translateY(6px);
    transition: opacity .2s ease, transform .2s ease;
  }

  .gallery-next.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .gallery-next .next-link {
    display: inline-block;
    font-family: "SUIT Variable", system-ui, sans-serif;
    font-size: 12px;
    letter-spacing: 0.12em;
    color: #111;
    text-decoration: none;
    background: transparent;
    padding: 10px 12px;
    border-radius: 50px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
  }
}

/* 스크롤안내 */
.hint-blur .panel-hero .hero-container {
  filter: blur(10px);
  transform: scale(1.02);
  transition: filter .25s ease, transform .25s ease;
}

.panel-hero .hero-container {
  transition: filter .25s ease, transform .25s ease;
}

.scroll-hint {
  position: fixed;
  inset: 0;
  z-index: 4000;
  display: grid;
  place-items: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity .25s ease;
}

.scroll-hint.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.scroll-hint__btn {
  position: absolute;
  right: 28px;
  top: 50%;
  transform: translateY(-50%);

  font-family: "SUIT Variable", system-ui, sans-serif;
  font-size: 15px;
  letter-spacing: 0.14em;
  color: #fff;

  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  padding: 16px 22px;
  border-radius: 999px;

  cursor: pointer;
  transition: opacity .25s ease, transform .25s ease;
}

.scroll-hint__btn:hover {
  opacity: 0.7;
}

@media (max-width: 1023px) {
  .scroll-hint__btn {
    right: 18px;
    font-size: 14px;
    padding: 14px 20px;
  }
}

/* lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5000;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}

.lightbox.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-inner {
  position: relative;
  display: inline-block;
  max-width: 90vw;
  max-height: 90vh;
}

.lightbox-img {
  display: block;
  max-width: 90vw;
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
}

.lightbox-credit {
  position: absolute;
  right: 14px;
  bottom: 14px;
  font-family: "SUIT Variable", system-ui, sans-serif;
  font-size: 10px;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.7);
  writing-mode: vertical-rl;
  text-orientation: mixed;

  pointer-events: none;
  user-select: none;
}

