* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

@font-face {
  font-family: 'ArittaDodum';
  src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_one@1.0/Arita-dotum-Medium.woff') format('woff');
  font-weight: normal;
  font-display: swap;
}

body {
  font-family: 'ArittaDodum', sans-serif;
  overflow-x: hidden;
  background: #11112d;
  color: #cdcdd3;
}

/* ===== (1) 인트로 화면 ===== */
#introScreen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 24px;
}

.intro-inner {
  text-align: center;
  max-width: 720px;
}

.intro-title {
  font-weight: 700;
  font-size: 3em;
  margin-bottom: 16px;
  color: #fcfcfc;
}

.intro-desc {
  font-size: 1.1em;
  line-height: 1.5;
  margin-bottom: 24px;
  color: #cdcdd3;
}

.intro-btn {
  font-weight: 600;
  font-size: 1em;
  padding: 10px 16px;
  border: 1.5px solid #cdcdd3;
  background: transparent;
  color: #cdcdd3;
  cursor: pointer;
}

.intro-name {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.95em;
  color: #cdcdd3;
}

/* 화면 토글용 */
.hidden {
  display: none;
}

/* ===== 갤러리 ===== */
header {
  width: 100%;
  height: 80px;
  font-weight: 600;
  font-size: 2em;
  position: fixed;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  color: #cdcdd3;
  background: #11112d;
}

.container {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* ✅ 5열 -> 4열 */
  padding: 80px 20px 20px;
  row-gap: 30px;
  height: auto;
}

.container img {
  width: 70%;
  height: auto;
  display: block;
  margin: 0 auto;
  cursor: pointer;
}

#captionBox {
  position: fixed;
  display: none;
  background-color: #cdcdd3;
  color: #11112d;
  padding: 8px 12px;
  font-size: 1em;
  border: 1.5px solid #11112d;
  pointer-events: none;
  z-index: 999;
  max-width: 250px;
  white-space: pre-wrap;
  word-break: keep-all;
}

#introScreen.hidden,
#galleryScreen.hidden {
  display: none;
}

#captionBox {
  line-height: 1.6; /* 전체 줄간격 */
}

#captionBox .cap-title {
  font-weight: 800;   /* 더 진하게 */
  font-size: 1.15em;  /* 더 크게 */
  margin-bottom: 8px; /* title-본문 사이 간격 */
}

#captionBox .cap-text {
  font-size: 1em;
  line-height: 1.7; /* 본문 줄간격 따로 더 늘리고 싶으면 */
}