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

body {
  background-color: #f4f4f4; /* 배경은 살짝 회색 */
  font-family: 'Noto Sans KR', sans-serif;
  color: #111;
  display: flex;
  justify-content: center; /* 오타 수정됨 (- 하이픈) */
  min-height: 100vh;
  padding: 40px 20px;
}

/* 전체를 감싸는 영양성분표 프레임 */
.wrap {
  width: 100%;
  max-width: 1400px;
  background: white;
  border: 4px solid black;
  padding: 40px;
  box-shadow: 10px 10px 0px rgba(0,0,0,0.2);
  margin: 0 auto;
}

header {
  margin-bottom: 30px;
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-bottom: 10px solid black;
  padding-bottom: 10px;
}

h1 {
  font-size: 5rem;
  font-weight: 900;
  letter-spacing: -2px;
  line-height: 1;
}

.sub-title {
  font-family: 'Oswald', sans-serif;
  font-size: 3rem;
  font-weight: 700;
}

.header-info {
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  padding: 10px 0;
  display: flex;
  justify-content: space-between;
  border-bottom: 2px solid black;
}

.thick-line {
  width: 100%;
  height: 8px;
  background-color: black;
  margin: 20px 0;
}

/* 그리드 레이아웃 */
.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.grid-item {
  position: relative;
  border-bottom: 1px solid #ccc;
  padding-bottom: 20px;
  transition: all 0.3s ease;
}

.grid-container img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 1px solid #000;
  filter: grayscale(100%);
  transition: all 0.3s ease;
  display: block;
}

.grid-container img:hover {
  filter: grayscale(0%);
  transform: translateY(-5px);
  box-shadow: 5px 5px 0px black;
  cursor: crosshair;
}

/* 캡션 박스 스타일 수정됨 (흰색 박스, 검정 글씨, 검정 그림자) */
#captionBox {
  position: fixed;
  display: none;
  background-color: white; /* 박스 배경: 흰색 */
  color: black; /* 글자색: 검정 */
  padding: 15px;
  font-size: 1.1rem;
  font-weight: 700;
  border: 2px solid black;
  box-shadow: 4px 4px 0px black; /* 그림자: 검정 (직사각형 겹친 느낌) */
  max-width: 300px;
  z-index: 1000;
  pointer-events: none;
  line-height: 1.5;
}

footer {
  font-size: 0.9rem;
  font-weight: 500;
  color: #666;
}

/* 라이트박스 (팝업) 스타일 */
.lightbox-overlay {
  display: none;
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  justify-content: center;
  align-items: center;
}

.lightbox-overlay img {
  max-width: 90%;
  max-height: 90%;
  border: 4px solid white;
  box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

.close-btn {
  position: absolute;
  top: 20px;
  right: 40px;
  color: white;
  font-size: 60px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}

.close-btn:hover {
  opacity: 0.7;
}

