html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: 'Pretendard', sans-serif;
  overflow-y: auto;
}

body {
  background-color: #000;
  color: #fff;
  font-family: 'Pretendard', sans-serif;
}


header {
  display: flex;
  align-items: center;          /* 수직 중앙 정렬 */
  justify-content: space-between; /* 좌우 최대 간격 띄우기 */
  padding: 30px 20px 10px;      /* 기존 패딩 유지 */
  font-weight: bold;
  letter-spacing: -0.5px;
}

/* 세부설명 */

h2 {
    padding: 0px 20px;
    margin: 0 0 4px 0; 
}

.description {
  font-size: 0.9rem;
  margin: 0 20px;
  max-width: 600px;
  word-break: normal; /* 글자 중간에서 줄바꿈 방지 */
  overflow-wrap: normal;
}

@media (max-width: 600px) {

  .description {
    font-size: 1rem;
  }

  table {
    font-size: 0.9rem;
  }
}

.description p {
  text-align: justify;
  font-size: clamp(0.9rem, 2vw, 1rem);
  line-height: 1.9; /* 행간 더 넓게 */
  margin-bottom: 0.8em;
}


/* 라벨 */

.text-label {
  display: inline-block;
  font-size: clamp(0.8rem, 2vw, 11pt);  /* 반응형 폰트 */
  padding: 0.2em 0.5em;
  background-color: #e0e0e0;
  color: #333;
  border-radius: 2px;
  line-height: 1.2;
  white-space: nowrap; /* 텍스트 자체 줄바꿈 방지 */
}

.text-label-group {
  display: flex;
  flex-wrap: nowrap;         /* 줄바꿈 금지 */
  gap: 6px;
  margin: 0 20px;
  overflow: hidden;          /* 넘친 콘텐츠 감춤 */
  white-space: nowrap;       /* 줄바꿈 금지 */
  text-overflow: ellipsis;   /* 넘칠 경우 말줄임표 (...) */
}

.label-yellow {
  background-color: #ffff00;
  color: #000000;
}

.label-blue {
  background-color: #00ffff;
  color: #000000;
}

.label-white {
  background-color: #ffffff;
  color: #000000;
}

.label-green {
  background-color: #00ff00;
  color: #000000;
}

.photo-item.collage {
  display: flex;
  gap: 8px; /* 2열 사이 간격 */
  width: 100%;
  height: 0;
  padding-top: 56.25%; /* 16:9 비율 유지 */
  position: relative;
}

.photo-item.collage .collage-half {
  flex: 1;
  position: absolute;
  top: 0;
  bottom: 0;
  width: calc(50% - 4px); /* gap/2 만큼 줄임 */
  overflow: hidden;
}

.photo-item.collage .collage-half:first-child {
  left: 0;
}

.photo-item.collage .collage-half:last-child {
  right: 0;
}

.photo-item.collage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

 .site-header {
  font-family: 'Bebas Neue', sans-serif;  /* 여기만 웹폰트 적용 */
  display: flex;
  font-size: clamp(3rem, 8vw, 5rem); /* 최소 3rem, 최대 5rem, 화면 너비 8% 비율 */
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  color: white;
  position: sticky;
  top: 0;
  z-index: 1000;

}

.site-title {
  margin-top: 20px;  /* 위로 5px 당김, 숫자 조절 가능 */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis; /* ← 말줄임표 적용 */
  font-family: "Bebas Neue", sans-serif;
  font-style: normal;
  font-size: clamp(3rem, 8vw, 5rem); /* 최소 3rem, 최대 5rem, 화면 너비 8% 비율 */
  color: white;
  letter-spacing: -0.5px; /* 추가 */
  margin: 0;
  transition: font-size 0.3s ease; /* 크기 변할 때 부드럽게 */
}

.site-title-link {
  color: inherit; /* 부모의 색상 상속 */
  text-decoration: none;
  transition: color 0.3s ease;
}

.site-title-link:hover {
  color: #ccc;
}

.site-nav .nav-list {
  display: flex;
  flex-wrap: nowrap;        /* 줄 바꿈 금지 */
  overflow-x: auto;         /* 넘침 시 가로 스크롤 허용 */
  gap: clamp(12px, 2vw, 25px);
  justify-content: flex-end;
  padding: 0;
  margin: 0;
  list-style: none;
  -webkit-overflow-scrolling: touch; /* 부드러운 모바일 스크롤 */
}

.site-nav .nav-list li a {
  font-size: clamp(1.5rem, calc(3rem * (100vw / 1200)), 3rem);
  font-weight: 200; 
  white-space: nowrap;      /* 한 줄 고정 */
  flex-shrink: 0;           /* 크기 고정 */
  text-overflow: clip;      /* 말줄임 없이 잘림 */
  overflow: hidden;
  color: white;
  text-decoration: none;
  transition: color 0.3s ease;
}

.site-nav .nav-list li a:hover {
  color: #ccc;
}

@media (max-width: 430px) {
  .site-nav {
    display: none;
  }
}


.photo-column {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  padding: 0 20px;       /* 좌우 여백 고정 */
  margin: 0 auto;         /* 가운데 정렬 */
  box-sizing: border-box;
}


.photo-item {
  display: block;
  width: 100%;
}

/* 16:9 비율 박스 */
.ratio-16x9 {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 */
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  transition: transform 0.2s ease;
}

.ratio-16x9 a {
  position: absolute;
  top: 0; left: 0;
  width: 100%; 
  height: 100%;
  display: block;
  overflow: hidden;
}

/* 이미지 스타일 */
.ratio-16x9 img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}


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


/* 설명 텍스트 블록 */
.text-block {
  padding: 10px 4px 20px;
  font-family: 'Pretendard', sans-serif;
  line-height: 1.6;
}

.text-block h2 {
  margin: 0 0 10px;
  font-size: 1rem;
}

.text-block p {
  margin: 0;
  font-size: 1rem;
  color: #ccc;
}

.accordion-wrapper {
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;            /* 사진 컬럼과 동일한 좌우 여백 */
  color: #fff;
  font-family: 'Pretendard', sans-serif;
  box-sizing: border-box;    /* 패딩 포함한 전체 너비 계산 */
}

.accordion-toggle {
  width: 100%;
  padding: 1rem;
  background-color: #111;
  color: #fff;
  font-weight: 700;
  border: none;
  text-align: left;
  cursor: pointer;
  font-size: 1.2rem;
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  border-bottom: 1px solid #333;
}

.accordion-wrapper.active .accordion-content {
  max-height: 300px;
  overflow-y: auto;
}


.table-header,
.table-row {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  padding: 0.5rem 1rem; /* 세로 간격 줄임 */
  border-top: 1px solid #333;
  border-bottom: 1px solid #333;
}

.table-header {
  background-color: #111;
  font-weight: bold;
}

.table-row:nth-child(odd) {
  background-color: #1a1a1a;
}

.table-row:nth-child(even) {
  background-color: #222;
}

.table-row > div,
.table-header > div {
  border-right: 1px solid #444;
  padding: 0.25rem 0.5rem; /* 셀 내부 패딩도 작게 조절 */
  
  /* 텍스트 2줄 제한 */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
}

.table-row > div:last-child,
.table-header > div:last-child {
  border-right: none;
}


