.heritage-gallery-page {
  min-height: 100vh;
  overflow-y: auto; /* 내부 스크롤 허용 */
  padding: 40px 20px;
}


/* Title & Subtitle */
.heritage-title {
  font-family: 'Dancing Script', cursive;
  font-size: 3rem;
  text-align: center;
  color: #b22222;
  text-shadow: 0 0 6px gold, 0 0 12px #ff6347;
  animation: heritageGlow 3s ease-in-out infinite;
}

.heritage-subtitle {
  font-family: 'Dancing Script', cursive;
  font-size: 1.4rem;
  text-align: center;
  color: #ffd700;
  text-shadow: 0 0 6px #000, 0 0 12px #444;
  margin-bottom: 40px;
  animation: fadeInSub 2s ease forwards;
}

/* Year Block Card */
.year-block {
  background: rgba(255,255,255,0.85);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 40px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.year-block h3 {
  font-size: 28px;
  margin-bottom: 10px;
  font-family: 'Dancing Script', cursive !important;
}


.year-block img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 10px;
}

.year-block p {
  font-size: 16px;
  color: #444;
  font-family: 'Dancing Script', cursive !important;
}

/* Swiper */
.swiper {
  width: 100%;
  position: relative;
  margin-bottom: 20px;
}

.swiper-wrapper {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.swiper-wrapper::-webkit-scrollbar { display: none; }
.swiper-slide { flex: 0 0 100%; scroll-snap-align: start; }

.swiper-button-prev,
.swiper-button-next {
  position: absolute;
  top: 45%;
  z-index: 2;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255,255,255,.8);
  border-radius: 50%;
  background: rgba(0,0,0,.55);
  color: white;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.swiper-button-prev { left: 12px; }
.swiper-button-next { right: 12px; }
.swiper-button-prev::after { content: "‹"; font-size: 28px; line-height: 1; }
.swiper-button-next::after { content: "›"; font-size: 28px; line-height: 1; }
.swiper-pagination { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; padding-top: 8px; }
.gallery-carousel-dot { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%; background: #777; cursor: pointer; }
.gallery-carousel-dot[aria-current="true"] { background: #b22222; }

.swiper-slide img {
  width: 100%;
  border-radius: 8px;
}

/* Footer */
.page-footer {
  text-align: center;
  margin-top: 40px;
  padding: 20px;
  font-family: 'Dancing Script', cursive !important;
}

/* Animations */
@keyframes heritageGlow {
  0%   { color: #b22222; text-shadow: 0 0 6px #ff6347; }
  50%  { color: #ffd700; text-shadow: 0 0 12px gold, 0 0 24px #ff4500; }
  100% { color: #b22222; text-shadow: 0 0 6px #ff6347; }
}

@keyframes fadeInSub {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.lang-select {
  position: relative;
  display: inline-block;
  margin: 20px auto;
}

.lang-select select {
  appearance: none;
  font-size: 1.2rem;       /* Hero/Info와 동일 */
  padding: 10px 40px 10px 16px; /* Hero/Info와 동일 */
  border: 2px solid #ccc;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  transition: all 0.3s ease;
}

.lang-select::after {
  content: "▼";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  font-size: 0.9rem;
  color: #666;
}

html, body {
  min-height: 100%;      /* 높이를 고정하지 말고 최소 높이만 */
  overflow-y: auto;      /* 기본 스크롤 허용 */
}

body {
  background: url('/gallery/background.jpg') no-repeat center center fixed;
  background-size: cover;
  font-family: 'Noto Sans KR', sans-serif;
  color: #222;
}

.heritage-gallery-page {
  min-height: 100vh;
  overflow-y: auto;              /* 내부 스크롤 허용 */
  -webkit-overflow-scrolling: touch;
  padding: 40px 20px;
}

