/* 기본 레이아웃 */
html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans KR", sans-serif;
}

.pb-100 {
  padding-bottom: 100px;
}

/* 헤더 */
.header {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 40px;
  box-sizing: border-box;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #fff;
}

.logo-box a img {
  width: 100%;
  height: auto;
  max-width: 250px;
}

.title-box {
  font-size: 20px;
  font-weight: 700;
  text-align: right;
  color: #333;
}

.highlight {
  color: #ceac60;
}

/* 메인 비주얼 배너 */
.main-visual {
  width: 100%;
  background-image: url('../images/20th/sample1_bg_v2.png');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  text-align: center;
}

.main-visual .content {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 220px 0 240px;
  box-sizing: border-box;
}

.main-visual .content img {
  display: block;
  max-width: 500px;
  width: 100%;
  height: auto;
  margin: 20px auto;
}

/* 버튼 공통 그림자 */
.btn-shadow {
  box-shadow:
    4px 4px 10px rgba(0, 0, 0, 0.18),
    -3px -3px 8px rgba(255, 255, 255, 0.5);
  transition: all 0.2s ease;
}

.btn-shadow:hover {
  box-shadow:
    2px 2px 6px rgba(0, 0, 0, 0.14),
    -2px -2px 6px rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
}

.btn-shadow:active {
  box-shadow:
    1px 1px 3px rgba(0, 0, 0, 0.2),
    -1px -1px 3px rgba(255, 255, 255, 0.3);
  transform: translateY(1px);
}

/* 메인 버튼 섹션 */
.btn-section {
  width: 100%;
  background-image: url('../images/20th/btn-section_bg.png');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  text-align: center;
  padding: 80px 0 120px;
  box-sizing: border-box;
}

.btn-section h1 {
  color: #ceac60;
  font-weight: 700;
  font-size: 30px;
  margin: 40px 0 10px;
}

.btn-section img {
  max-width: 40px;
  height: auto;
}

.btn-box {
  /* width: 100%; */
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 20px;
}

/* 버튼 타입 공통 */
.btn,
.btn2,
.btn3 {
  background: linear-gradient(145deg, #e4c98a, #c9a156);
  border-radius: 7px;
  flex: 1 1 160px;
  max-width: 220px;
  box-sizing: border-box;
}

.btn > a,
.btn2 > a,
.btn3 > a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 14px 16px;
  text-decoration: none;
  color: #fff;
  line-height: 1.4;
  text-align: center;
  box-sizing: border-box;
}

.btn-margin{
  margin-top: 5px;
}

.btn2 > a > img,
.btn3 > a > img {
  width: 34px;
  height: auto;
  margin-bottom: 8px;
}

.btn > a > p,
.btn2 > a > p,
.btn3 > a > p {
  margin: 0;
  font-weight: 700;
  font-size: 20px;
}

/* 섹션 공통 */
/* 타이틀 영역 왼쪽 정렬 */
.section-title {
  max-width: 100%;
  width: 100%;
  display: flex;
  justify-content: flex-start; /* 왼쪽 정렬 */
  align-items: center;
  border-bottom: 2px solid #ceac60;
  padding-left: 0; /* 보더와 텍스트 사이 적당히 띄우기 */
  box-sizing: border-box;
}

.section-title img {
  width: 32px;
  margin-right: 10px;
}

.section-title h1 {
  margin: 0;
  font-size: 28px;
  color: #4d4d4d;
  text-align: left;
}


/* 영상 섹션 */
.video-content {
  max-width: 900px;
  margin: 30px auto 0;
  /* padding: 0 20px; */
  box-sizing: border-box;
  text-align: center;
}

/* 영상 iframe – PC 기본 */
.video-content iframe {
  width: 100%;
  max-width: 900px;   /* 가운데 있는 영상 폭 */
  height: 600px;      /* 예전이랑 비슷한 높이 */
  border: 0;
}

@media (max-width: 768px) {
  .video-content iframe {
    height: 320px;
  }
}

@media (max-width: 450px) {
  .video-content iframe {
    height: 260px;
  }
}


/* 브로슈어 섹션 */
.brochure-content {
  max-width: 900px;
  margin: 30px auto 0;
  padding: 0 20px;
  box-sizing: border-box;
  text-align: center;
}

.brochure-content img {
  max-width: 100%;
  height: auto;
}

.brochure-content p {
  font-size: 14px;
  line-height: 1.6;
}

/* 갤러리 정적 그리드 (위쪽) */
.gallery-content {
  margin: 50px 0;
}

.gallery-box {
  display: flex;
  width: 100%;
  justify-content: space-between;
  overflow-x: hidden;
}

.gallery-box img {
  width: 24.5%;
  margin: 0 10px 10px 0;
}

/* 자동 스크롤 갤러리 */
.gallery-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  text-align: center;
  box-sizing: border-box;
}

.gallery-wrapper {
  overflow: hidden;
}

.gallery-row {
  overflow: hidden;
  margin-bottom: 10px;
}

.gallery-track {
  display: flex;
  animation: scroll-horizontal 15s linear infinite;
}

.gallery-track img {
  width: 470px;
  height: auto;
  margin-right: 10px;
  object-fit: cover;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

@keyframes scroll-horizontal {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ----------------------- */
/*   768px 이하 반응형     */
/* ----------------------- */

@media (max-width: 768px) {

  .header {
    max-width: 100%;
    padding: 16px 20px;
    flex-direction: column;
    /* align-items: flex-start; */
    gap: 8px;
  }

  .title-box {
    font-size: 16px;
    text-align: left;
  }

  .main-visual .content {
    padding: 160px 0 180px;
  }

  .main-visual .content img {
    max-width: 400px;
  }

  .btn-section {
    padding: 50px 0 90px;
  }

  .btn-section h1 {
    font-size: 24px;
  }

  .btn-box {
    max-width: 100%;
    padding: 0 20px;
    /* /* flex-direction: column; */
    align-items: center; */
    gap: 12px;
  }

  .btn,
  .btn2,
  .btn3 {
    max-width: 320px;
    width: 100%;
  }

  .btn > a,
  .btn2 > a,
  .btn3 > a {
    padding: 12px 14px;
  }

  .btn > a > p,
  .btn2 > a > p,
  .btn3 > a > p {
    font-size: 15px;
  }

  .section-title {
    max-width: 90%;
    padding: 0;
  }

  .section-title h1 {
    font-size: 22px;
  }

  .video-content,
  .brochure-content {
    max-width: 100%;
    padding: 0 16px;
  }

  .gallery-track img {
    width: 80vw;
  }
}

@media (max-width: 650px) {
  .btn-box {
    max-width: 100%;
    padding: 0 20px;
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
  .btn,
  .btn2,
  .btn3 {
    background: linear-gradient(145deg, #e4c98a, #c9a156);
    border-radius: 7px;
    flex: 1 1 0px;
    max-width: 220px;
    box-sizing: border-box;
  }
}

/* ----------------------- */
/*   450px 이하 반응형     */
/* ----------------------- */

@media (max-width: 450px) {

  .header {
    align-items: center;
    text-align: center;
  }

  .title-box {
    font-size: 14px;
    text-align: center;
  }

  .main-visual .content {
    padding: 130px 0 150px;
  }

  .main-visual .content img {
    max-width: 90%;
  }

  .btn-section h1 {
    font-size: 20px;
  }

  .btn-box {
    padding: 0 12px;
  }

  .btn,
  .btn2,
  .btn3 {
    max-width: 260px;
  }

  .btn > a,
  .btn2 > a,
  .btn3 > a {
    padding: 10px 12px;
  }

  .btn > a > img,
  .btn2 > a > img,
  .btn3 > a > img {
    width: 30px;
    margin-bottom: 6px;
  }

  .btn > a > p,
  .btn2 > a > p,
  .btn3 > a > p {
    font-size: 14px;
  }

  .section-title h1 {
    font-size: 18px;
  }

  .gallery-track img {
    width: 85vw;
  }

  /* 갤러리 마지막 버튼도 다른 버튼과 동일하게 축소 */
  #gallery .btn3 a p {
    font-size: 14px !important;
  }
}

/* ----------------------- */
/*   380px 이하 반응형     */
/* ----------------------- */

@media (max-width: 380px) {

  .btn,
  .btn2,
  .btn3 {
    max-width: 230px;
  }

  .btn > a > p,
  .btn2 > a > p,
  .btn3 > a > p {
    font-size: 13px;
  }

  .section-title h1 {
    font-size: 16px;
  }

  #gallery .btn3 a p {
    font-size: 13px !important;
  }
}

/* ----------------------- */
/*   320px 이하 반응형     */
/* ----------------------- */

@media (max-width: 320px) {

  .main-visual .content {
    padding: 110px 0 120px;
  }

  .btn,
  .btn2,
  .btn3 {
    max-width: 210px;
  }

  .btn > a > p,
  .btn2 > a > p,
  .btn3 > a > p {
    font-size: 12px;
  }

  #gallery .btn3 a p {
    font-size: 12px !important;
  }
}

/* 섹션 타이틀 PC 정렬 보정 */
.section-title {
  display: flex;
  align-items: center;
  /* justify-content: center; */
  gap: 8px;                  /* 아이콘-텍스트 간격 일정하게 */
  width: 95%;
  max-width: 900px;
  margin: 0 auto 0 auto;
  padding: 0;
  box-sizing: border-box;
  border-bottom: 2px solid #ceac60;
}

.section-title img {
  width: 45px;
  height: auto;
  flex-shrink: 0;
}

.section-title h1 {
  margin: 0;
  padding: 0;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.4;
  color: #4d4d4d;
  text-align: center;
}

/* 모바일에서 이미 쓰던 설정 유지하면서 살짝만 줄이기 */
@media (max-width: 768px) {
  .section-title {
    max-width: 100%;
    padding: 0 16px 10px;
  }

  .section-title h1 {
    font-size: 20px;
  }
}

@media (max-width: 450px) {
  .section-title h1 {
    font-size: 18px;
  }
}

@media (max-width: 380px) {
  .section-title h1 {
    font-size: 16px;
  }
}

/* PC에서 버튼 4개 일렬 + 아이콘 크게 */
@media (min-width: 769px) {

  .btn-section .btn-box {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    gap: 0;
  }

  .btn-section .btn {
    flex: 0 0 23%;
    max-width: 20%;
    min-width: 230px;
    height: 80px;
  }

  .btn-section .btn > a {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    padding: 16px 18px;
    gap: 14px;
  }

  /* 🔥 아이콘 크게 (기존 34px → 48px로 증가) */
  .btn-section .btn > a > img {
    width: 48px;
    height: auto;
  }

  .btn-section .btn > a > p {
    font-size: 18px;
    line-height: 1.35;
    margin: 0;
    text-align: left;
    white-space: nowrap;
  }
}

/* 갤러리 – "20주년 기념행사 사진 더보기" 버튼 정리 */
#gallery .btn-box {
  width: 100%;
  max-width: 320px;
  margin: 30px auto 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  box-sizing: border-box;
}

#gallery .btn3 {
  flex: 0 0 auto;
  width: 100%;
  max-width: 320px;
}

#gallery .btn3 a {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 14px 18px;
}

#gallery .btn3 a p {
  margin: 0;
  font-size: 18px !important;  /* 인라인 25px 덮어쓰기 */
  line-height: 1.4;
  text-align: center;
  white-space: nowrap;
}

/* 모바일에서 조금 더 작게 */
@media (max-width: 480px) {
  #gallery .btn-box {
    max-width: 260px;
    margin-top: 24px;
  }

  #gallery .btn3 a p {
    font-size: 15px !important;
    white-space: normal;
  }
  .section-title {
  width: 93%;
}
}

@media (max-width: 450px) {
    .section-title {
  width: 93%;
}
}

@media (max-width: 400px) {
    .section-title {
  width: 92%;
}
}

@media (max-width: 350px) {
    .section-title {
      width: 90%;
    }
    .section-title h1 {
        font-size: 15px;
    }

}
 
/* 768px 이하 – 버튼은 세로로 쌓이고, 버튼 안의 이미지+텍스트는 가로 정렬 유지 */
@media (max-width: 768px) {

  /* 첫 번째 버튼 4개 영역 – 이미 세로로 쌓이는 건 그대로 두고, 내부만 정리 */
  .btn-section .btn-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .btn-section .btn {
    width: 100%;
    max-width: 320px;
  }

  /* 🔥 버튼 내부: 이미지 + 텍스트 가로 정렬 고정 */
  .btn-section .btn > a {
    display: flex;
    flex-direction: row;      /* 가로 정렬 유지 */
    align-items: center;
    /* justify-content: flex-start; */
    padding: 10px 12px;
    gap: 10px;
  }

  .btn-section .btn > a > img {
    flex-shrink: 0;
    width: 30px;              /* 필요하면 26~34px 사이로 조정 가능 */
    height: auto;
    margin: 0;
  }

  .btn-section .btn > a > p {
    margin: 0;
    font-size: 14px;
    line-height: 1.4;
    text-align: left;
    white-space: normal;      /* 줄바꿈 허용 */
  }

  .btn-margin {
    padding-top: -3px;
  }
}