.today-menu-container {
  max-width: 960px;
  margin: 0 auto;
  padding: 1rem;
}

.today-main {
  text-align: center;
  margin-bottom: 2rem;
}

.today-main img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.today-caption {
  margin-top: 0.75rem;
  font-size: 1rem;
  color: #333;
  line-height: 1.5;
}

.past-slider {
  display: flex;
  overflow-x: auto;
  gap: 1rem;
  scroll-snap-type: x mandatory;
}

.past-slider::-webkit-scrollbar {
  display: none;
}

.past-item {
  min-width: 48%;
  scroll-snap-align: start;
  border: 1px solid #ddd;
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
}

.past-item img {
  width: 100%;
  height: auto;
  display: block;
}

.more-button {
  display: block;
  text-align: center;
  margin-top: 2rem;
}

@media (min-width: 768px) {
  .past-item {
    min-width: 22%;
  }
}


/* 모달 백그라운드 */
.image-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

/* 큰 이미지 박스 */
.image-modal-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  background: white;
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 0 30px rgba(0,0,0,0.5);
  animation: fadeIn 0.2s ease-out;
}

/* 이미지 스타일 */
.image-modal-content img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: 6px;
}

/* 닫기 버튼 */
.image-modal-close {
  position: absolute;
  top: 0.5rem;
  right: 0.75rem;
  font-size: 1.5rem;
  color: #333;
  cursor: pointer;
}

/* 등장 애니메이션 */
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to   { opacity: 1; transform: scale(1); }
}



.slider-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.slider-track {
  display: flex;
  transition: transform 0.3s ease-in-out;
  gap: 1rem;
}

.past-item {
  flex: 0 0 calc(100% / 2 - 1rem); /* 기본 2개 */
  border: 1px solid #ddd;
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
}

.nav-btn {
  background: none;
  border: none;
  font-size: 2rem;
  color: #333;
  cursor: pointer;
  padding: 0 1rem;
  user-select: none;
}

@media (min-width: 768px) {
  .past-item {
    flex: 0 0 calc(100% / 4 - 1rem); /* PC에서는 4개 */
  }
}

.past-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 2rem;
  padding: 0 1rem; /* ✅ 좌우 여백 추가 */
}

.past-item {
  border: 1px solid #ddd;
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
  text-align: center;
  font-size: 0.9rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  padding-bottom: 0.5rem;
}

.past-item img {
  width: 100%;
  height: auto;
  display: block;
  border-bottom: 1px solid #eee;
}


@media (min-width: 768px) {
  .past-gallery {
    grid-template-columns: repeat(4, 1fr);
  }
}

.more-button {
  text-align: center;
  margin-top: 2rem;
}

.btn-white {
  display: inline-block;
  background: #ffffff;
  color: #333;
  border: 1px solid #ccc;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.2s ease-in-out;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.btn-white:hover {
  background: #f5f5f5;
  border-color: #999;
}

.btn-green {
  display: inline-block;
  background-color: #38a169; /* 그린 계열 */
  color: white;
  padding: 0.6rem 1.2rem;
  font-size: 1rem;
  border: none;
  border-radius: 6px;
  text-decoration: none;
  transition: background-color 0.2s ease-in-out;
}

.btn-green:hover {
  background-color: #2f855a;
}


.past-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 2rem;
  padding: 0 1rem;
}

@media (min-width: 768px) {
  .past-gallery {
    grid-template-columns: repeat(4, 1fr);
  }
}

.pagination ul {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 2rem 0;
}

.pagination li a {
  display: inline-block;
  padding: 0.5rem 0.8rem;
  background-color: #f2f2f2;
  color: #333;
  text-decoration: none;
  border-radius: 4px;
  font-size: 0.95rem;
  transition: background-color 0.2s ease;
}

.pagination li a:hover {
  background-color: #ddd;
}

.pagination li a.active,
.pagination li a.font-bold.underline {
  background-color: #38a169; /* 초록색 */
  color: white;
  font-weight: bold;
  text-decoration: none;
}

.go-today-menu {
  margin-top: 2rem;
  text-align: center;
}

.btn-outline-green {
  display: inline-block;
  padding: 10px 20px;
  font-size: 1rem;
  color: #38a169;
  border: 2px solid #38a169;
  border-radius: 6px;
  background-color: #fff;
  text-decoration: none;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

.btn-outline-green:hover {
  background-color: #38a169;
  color: #fff;
}