@font-face {
  font-family: 'DosMyungjo';
  src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_eight@1.0/DOSMyungjo.woff') format('woff');
  font-weight: normal;
    font-style: normal;
      font-display: swap;
}
@font-face {
    font-family: 'NanumSquareNeo';
    src: url(https://hangeul.pstatic.net/hangeul_static/webfont/NanumSquareNeo/NanumSquareNeoTTF-cBd.woff2);
    font-weight: 700;
      font-display: swap;}
@font-face {
    font-family: 'Pretendard';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/pretendard@1.0/Pretendard-Regular.woff2') format('woff2');
    font-weight: 400;
    font-display: swap;
}


* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  overflow-x: hidden;
}

header {
  width: 100%;
  height: 80px;
  font-family: 'DosMyungjo';
  font-weight: 600;
  font-size: 3em;
  position: fixed;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.container {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  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:#ffff00;
  color: black;
  padding: 10px 12px;
  font-family: 'Pretendard';
  font-size: 1em;
  border: 1.5px solid black;
  pointer-events: none;
  z-index: 999;
  max-width: 300px;
  white-space: pre-wrap;
  word-break: keep-all; /*하이픈 제거*/
  letter-spacing: 0.8px;
}



body {
  margin: 0; /* 브라우저 기본 여백 제거 */
}

.video-container {
  width: 100vw;      /* 화면 가로 꽉 */
}

.video-container iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;  /* 가로에 맞춰 세로도 커짐 */
  border: none;
}
