@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css");
@font-face {
    font-family: 'KerisKeduLine';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2601-3@1.0/KERISKEDU_Line.woff2') format('woff2');
    font-weight: normal;
    font-display: swap;
}
@font-face {
  font-family: 'Hieroglyphs';
  src: url('../fonts/EgyptianHieroglyphsSilhouet.otf') format('woff');
  src: url('../fonts/EgyptianHieroglyphsSilhouet.otf') format('woff2');
  font-weight: normal;
  font-display: swap;
}
@font-face {
  font-family: 'SokchoBada';
  src: url('../fonts/SokchoBadaBatang.eot') format('eot');
  src: url('../fonts/SokchoBadaBatang.woff') format('woff');
  src: url('../fonts/SokchoBadaBatang.woff2') format('woff2');
  font-weight: normal;
  font-display: swap;

}

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

:root {
  --orange-color: #D36662 /*#D72F2A*/;
  --brown-color: #55362E;
}

html, body{
  width: 100%;
}

body{
  overflow-x: hidden;
  overflow-y: auto;
  height: auto;
}

h2{
  color: var(--orange-color);
  font-size: 24px;
  font-family: SokchoBada, 나눔명조, NanumMyeongjo;
  font-weight: 400;
  word-wrap: break-word;
}

h4{
  color: var(--brown-color);
  font-size: 16x;
  font-family: SokchoBada, 나눔명조;
  font-weight: normal;
  word-wrap: break-word;
}

section {
      text-align: center;
      margin: 0 auto;
      width:100%; 
      scroll-snap-align: none;
}

* { box-sizing: border-box; }

    body {
      margin: 0;
      font-family: 'SokchoBada', 나눔고딕;
      overflow-x: hidden;
      touch-action: pan-y;
    }

   
    .px16 {
      padding-left: 16px;
      padding-right: 16px;
    }

    h3 {
      font-size: 24px;
    }

    .title-col{
      display: flex;
      flex-direction: column;
      margin-bottom: 24px;
    }

    input[type=text], button {
      outline: none;
      border: 0;
      all: unset;
    }

/* 로딩 */

/* ── 1. 스크롤 잠금 ── */
body.locked {
  overflow: hidden; 
  height: 100dvh;
  touch-action: pan-y;
  overflow-x: hidden; 
  overscroll-behavior: none;
}

/* ── 2. 로딩 스크린 배경 ── */
#intro-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100dvh;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 1s ease-in-out, visibility 1s; 
}

#intro-loader.fade-out {
  opacity: 0;
  visibility: hidden;
}

/* ── 3. SVG 애니메이션 세팅 (JS 연동 버전) ── */
.cali-text {
  width: 80%;
  max-width: 400px;
  margin-bottom: 480px;
  margin-right:40px; 
}

.cali-text path {
  fill: transparent !important; 
  stroke: #ffffff !important;  
  stroke-width: 1px;
}

.cali-text path.filled {
  fill: #ffffff !important;     
  stroke-width: 0;             
  transition: fill 1s ease-in-out;
}

/* 날짜 카운트 */
.together-message,
.countdown-wrapper{
  text-align: center;
  font-family: 'SokchoBada', '나눔명조', serif; 
  color: rgba(255,255,255,0.7);
  gap: 8px;
}

.together-row{
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 12px;
}

.together-message .num {
  font-size: 28px;
  color: #fff;
}
.together-message .day{
  font-size: 20px; 
}

.timer-wrap{
  display: block;;
  background: #d53f3b;
  padding: 30px;
  margin: 20px;
  border-radius: 8px;
}

.timer-line{
  background: linear-gradient(0deg, #D72F2A 0%, #ffb4b4 50%, #D72F2A 100%);
  background: -webkit-linear-gradient(0deg, #D72F2A 0%, #ffb4b4 50%, #D72F2A 100%);
  width: 100%;
  height: 1px;
  margin: 28px 0;
}

.countdown-timer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px; /* 간격 */
    margin-top: 12px;
}

/* 개별 시간 박스 (위: 숫자, 아래: 라벨) */
.cd-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 50px; /* 고정 너비로 숫자가 바뀔 때 흔들림 방지 */
}

.cd-num {
    font-size: 28px; /* 숫자 크기 */
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: 1px;
    color: #fff; /*#55362E;*/
    font-family: 'SokchoBada',나눔명조;
}

.cd-label {
    font-size: 13px; /* '일, 시, 분, 초' 글자 크기 */
    color: rgba(255,255,255,0.7);
    margin-top: 3px;
}

.cd-colon {
    font-size: 24px;
    font-weight: bold;
    color: #ccc; /* 구분 기호 색상 */
    margin-bottom: 20px; /* 라벨 때문에 틀어지는 높이 보정 */
}

/* 하단 메시지 */
.countdown-wrapper,
p.cd-message{
    font-size: 16px;
    color: rgba(255,255,255,0.7); /*#55362E;*/
    font-family: 'SokchoBada', 나눔명조;
    font-weight: 400;
    margin-top: 10px;
}

.cd-message .heart {
    color: #e74c3c; /* 하트 색상 포인트 */
    font-size: 14px;
}


/* 갤러리 */

/* 숨김 처리를 위한 강제 클래스 */
.hidden-item {
    display: none !important;
}

/* 그리드 안에서 더보기/닫기 버튼이 가로 전체를 차지하게 만듦 */
.more-btn, .close-more-btn {
    grid-column: 1 / -1; 
    margin-top: 10px;
    padding: 12px;
    background-color: #fff;
    border: 3px solid #000;
    font-family: 'Mona12', monospace; /* 픽셀 폰트 적용 */
    font-size: 16px;
    cursor: pointer;
    box-shadow: 2px 2px 0px #000;
}
.more-btn:active, .close-more-btn:active {
    transform: translate(2px, 2px);
    box-shadow: none;
}

.pixel-modal {
    display: none;
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 100000;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.modal-close-btn {
    position: absolute; top: 10px; right: 10px;
    color: #fff; font-size: 40px; cursor: pointer;
    z-index: 10; font-family: sans-serif; 
}

/* 메인 이미지 뷰어 (좌우 버튼 포함) */
.modal-main-view {
    position: fixed; top: 0;
    display: flex; justify-content: space-between; align-items: center;
    width: 100%; height: 85vh;
    
}
#modal-image {
    max-width: 100vw; object-fit: contain;
    height: auto;
    /*max-height: 65vh;*/
}
.nav-btn {
    position: absolute;
    display: flex;
    align-items: center;
    background: none; border: none; cursor: pointer;
    justify-content: center;
    align-items: center;
    width: 40px; height: 40px;
    top:50%;
    transform:translateY(-50%);
    z-index:9999;
}
.nav-btn:hover{
    background-color: rgba(0,0,0,0.15);
}
.nav-btn.prev{
  left:0;
}
.nav-btn.next{
  right:0;
}
/* 하단 썸네일 리스트 (가로 스크롤) */
.modal-thumb-list {
    display: flex; gap: 4px; width: 100%; padding: 20px;
    margin-top: auto; margin-bottom: 0px; overflow-x: auto;
    white-space: nowrap; scrollbar-width: none;
    justify-content: center;
    position: absolute;
    bottom: 0px;
}
.modal-thumb-list::-webkit-scrollbar { display: none; }

/* 썸네일 박스 */
.thumb-box {
    flex: 0 0 60px; height: 60px; border: 2px solid #555;
    opacity: 0.5; cursor: pointer; transition: all 0.2s ease;
    overflow: hidden;
    display: flex;
    justify-content: center;
}
.thumb-box img { width: 100%; height: 100%; min-width: 100%; object-fit: cover; }
.thumb-box.active {
    opacity: 1; 
    border: 2px solid var(--orange-color);
}

/*------ 음악 컨트롤 ------*/
#music-container{
    position: fixed;
    top: 10px;
    right: 10px;
    z-index: 1000;
}
.bgm-toggle-btn {
    display: flex;
    align-items: center;
    gap: 4px; 
    padding: 3px 8px;
    background-color: rgba(255,255,255,0.5);
    border-radius: 30px; 
    font-family: 'Mona12', monospace;
    font-size: 10px;
    color: #000;
    cursor: pointer;
    transition: all 0.2s ease;
}

.bgm-toggle-btn .music-icon {
    display: inline-block;
    animation: spin 3s linear infinite;
    font-size: 16px;
}

@keyframes spin {
    100% { transform: rotate(360deg); }
}

.bgm-toggle-btn.off {
    color: #555;
}

.bgm-toggle-btn.off .music-icon {
    animation: none; 
    opacity: 0.5; 
}

#main-content{
  width: 100%;
  margin: 0;
  height: auto;
  /*display: flex;*/
  flex-direction: column;
  gap:0;
  overflow-y:auto;
  overflow-x:hidden;
  z-index: 1;
  position: relative;
  scroll-snap-type: y mandatory; 
  display: none;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
}


/* 히어로 */

.back-video{
   position: fixed;
   top:0px;
   left:50%;
   transform: translateX(-50%);
   width: 100%;
   max-width: 400px;
   margin: 0 auto;
   height: 100dvh;
   overflow: hidden;
   z-index: 0;
}
.back-video video{
  width:100%;
  max-width:400px;
  height:100dvh;
  min-height:700px;
  transform: scale(1.1);
  object-fit: cover;
}

.intro-section{
  position: relative;
  width: 100%;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap:30px;
  padding: 70px 11%;
  overflow: hidden;
}

.intro-bg-image{
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('../img/intro-pyramid.png') no-repeat center/cover;
  transform: scale(1); 
  will-change: transform;
  z-index: 1;
} 

.intro-text-wrap{
  position: absolute;
  width: 100%;
  height: 100%;
  padding: 15% 10%;
  z-index: 10000;
  pointer-events: none; 
  overflow:hidden;
}
.intro-text {
  width: 100%;
  z-index: 1000;
  fill: white;
  transition: fill 3s ease; 
  z-index: 10001;
}
.intro-text.enter {
  fill: #D72F2A;
}

.intro-name {
  position: relative;
  display: flex;
  justify-content: center;
  flex-direction: row;
  margin: 30px 0px;
  /*top: 270px;*/
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  justify-content: space-between;
  z-index: 3;
}

.intro-name svg{
  height: 22px;
}

.hero-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0;
    align-items: center;
    text-align: center;
    position: relative;
}

.hero-section .hero-content-info .couple {
  height: 120px;
  top: -115px;
  left: 50%;
  transform: translateX(-50%);
  position: absolute;
}

.hero-section .hero-content-info .parents{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 30px;
}

.hero-section .hero-content-info .parents .row{
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  color: var(--brown, #55362E);
  text-align: center;
  font-family: "SokchoBada", 나눔명조;
}

.hero-section .hero-content-info .parents .row span:first-of-type{
  font-size: 16px;
}
.hero-section .hero-content-info .parents .row span:nth-of-type(2){
  font-size: 20px;
}

.hero-section .hero-content-name{
  display: flex;
  justify-content: center;
  flex-direction: row;
  padding: 50px 0 0px;
  width: 100%;
  gap: 8px;
  background: #fff;
}
.hero-section .hero-arch{
  width:100%;
  height:auto;
  margin:0;
}
.hero-section .hero-content-info{
  position: relative;
  width: 100%;
  background: #fff;
  padding: 50px 0 60px;
  font-family: 'SokchoBada', 나눔명조;
  line-height: 150%;
}

.hero-content-info > p:nth-of-type(1){
  color: var(--orange-color);
  margin-bottom: 30px;
  font-size: 20px;
  line-height: 160%;
}
.hero-content-info > p:nth-of-type(2){
  color: var(--brown-color);
  font-family: 'pretendard', sans-serif;
  letter-spacing: -0.025em;
  font-size: 15px;
  line-height: 180%;
}

@keyframes blink {
    50% { opacity: 0; }
}

@keyframes bounce {
    from { transform: translateY(0); }
    to { transform: translateY(-10px); }
}

/* -----버블----- */
#water-section{
  width:100%; 
  max-width:400px; 
  height: 100vh;
  height: 100dvh; 
  max-height: 900px;
  scroll-snap-align: start; 
  overscroll-behavior-y: none;
  margin: 0;
  touch-action: none; 
  overflow:hidden;
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 99;
  transition: opacity 3s ease-in-out, visibility 3s; 
  background: #003463 url('../img/intro-underwater.png') no-repeat;
  background-size: cover;
}

#water-section.fade-out {
  opacity: 0;
  visibility: hidden;
}

#water-section canvas {
  display: block;   
}

#water-section .water-des{
  position: fixed;
  display: flex;
  justify-content: center;
  bottom: 17%;
  left: 50%;
  transform: translate(-50%);
  color: rgba(255,255,255,0.8);
  font-family: 'pretendard', sans-serif;
  letter-spacing: -0.025em;
  font-weight: 400;
  font-size: 14px;
  z-index: 100;
  width: 100%;
  align-items: center;
}

.btn-next{
  position: fixed;
  display: flex;
  flex-direction: row;
  justify-content: center;
  bottom: 8%;
  left: 50%;
  transform: translate(-50%);
  color: #fff;
  font-family: 'SokchoBada', serif;
  font-size: 17px;
  z-index: 100;
  gap: 3px;
  padding: 6px 16px;
  background: rgba(0,0,0,0.3);
  border-radius: 50px;
  align-items: center;
  cursor: pointer;
  pointer-events: auto !important;
}
.btn-next:hover {
  background: rgba(0,0,0,0.7);
}

.btn-next img{
  width:30px; height:30px;
  margin-top: 0;
  -webkit-animation: scrollmotion 0.6s linear 0s infinite alternate; 
  animation: scrollmotion 0.6s linear 0s infinite alternate; 
}

@keyframes scrollmotion {
	0% {transform: translateX(0px)}
	50% {transform: translateX(10px)}
	100% {transform: translateX(0px)}
}
/* -----캘린더----- */

.calendar-section{
  padding: 60px 0 30px;
  gap: 0;
  background: #fff;
}
.calendar-cont{
  position: relative;
}

.calendar-section .calendar-title{
  height: 50px;
}
.calendar-section .calendar-cont{
  width: 95%;
  margin: 0 auto;
}

.calendar-cont .twinkle{
  position: absolute;
  right: 6%;
  bottom: 26%;
  animation: special-seat-badge-pulse 1.2s ease-in-out infinite;
}

@keyframes special-seat-badge-pulse {
  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.2);
  }
}

/* -----지도----- */

.map-section{ padding: 50px 0; background-color: #fff; margin:0;}


.map-des{
  display: flex;
  align-items: flex-start;
  gap: 6px;
  flex-direction: column;
  padding: 24px 16px;
  border-bottom: 1px solid #ddd;
}

.map-des:last-child{
  border-bottom: 0;
}
.map-section strong{
  font-size: 16px;
  font-weight: bold;
  color: #111;
  line-height: 120%;
}
.map-des p{
  width: 100%;
  display: flex;
  flex-direction: row;
  gap: 6px;
  font-family: 'pretendard',sans-serif;
  font-size: 15px;
  line-height: 150%;
  text-align: left;
  align-items: center;
  margin: 0;
  color: var(--brown-color);
}

.map-section p.red{
  color:#e74c3c;
  font-size: 13px;
}

.map-section p:last-of-type{
  font-family: 'SokchoBada';
  line-height: 160%;
}

.map-des .subway-ico{
  height: 18px !important;
  display: inline;
}

#map a, #map > img{
    width: 100%;
    max-width: 100%;
    height: 100%;
    background-position: cover;

}

#naverMap{
  width:100%; height:200px; border-top: 1px solid #ddd; border-bottom: 1px solid #ddd; margin-bottom: 15px; background-color: #eee;
}
/* 버튼 컨테이너 정렬 */
.map-link-container {
  display: flex;
  justify-content: center;
  gap: 10px; /* 버튼 사이 간격 */
  margin-top: 15px;
  padding: 0 16px;
}

.map-btn {
  display: inline-block;
  font-family: 'SokchoBada', sans-serif; 
  font-size: 14px;
  text-decoration: none;
  padding: 10px 12px;
  position: relative;
  border-radius: 4px;
  
}

/* 각 브랜드별 색상 적용 */
.btn-kakao {
  background-color: #FEE500;
  color: #000;
}

.btn-naver {
  background-color: #03C75A;
  color: #fff;
}

.btn-naver:hover {
  background-color: #03843d;
}

.btn-google {
  background-color: #4285F4;
  color: #fff;
}

.btn-google:hover{
  background-color: #2456a8;
  color: #fff;
}

/* 앞의 텍스트 아이콘 장식 (선택사항) */
.pixel-btn .icon {
  font-weight: bold;
  margin-right: 4px;
}

/* 토스트 모달 */
/* 계좌 섹션 공통 */
.account-section {
    padding: 30px 0;
    background-color: #fff;
}

.account-wrap {
  padding: 16px;
}

/* 박스 */
.account-box {
  /*border: 1px solid var(--orange-color);*/
  border-radius: 12px;
  margin-bottom: 15px;
  overflow: hidden;
  background: #f7f6f6;
}

/* 헤더 */
.account-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  color: var(--brown-color);
  font-size: 16px;
  width: 100%;
  height: 50px;
  cursor: pointer;
}

.account-header:hover{
  background-color:rgba(var(--orange-color), 0.4);
}

/* 화살표 */
.arrow {
  transition: transform 0.3s;
  transform: rotate(180deg);
}

/* 열렸을 때 */
.account-box.active .arrow {
  transform: rotate(0deg);
}

/* 바디 */
.account-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

/* 열림 */
.account-box.active .account-body {
  max-height: 500px;
}

/* 아이템 */
.account-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  border-top: 1px solid #eee;
}

.name {
  font-size: 16px;
  margin-bottom: 5px;
  text-align: left;
}

.bank {
  font-family: 'pretendard', sans-serif;
  font-size: 14px;
  color: #666;
}

/* 복사 버튼 */
.copy-btn {
  background: var(--orange-color);
  color: white;
  border: none;
  font-family: 'pretendard', sans-serif;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
}

/* 토스트가 나타날 때 붙여줄 클래스 */
.toast {
      display: inline-block;
      position: fixed;
      width: 320px;
      max-width: 400px;
      height: auto;
      bottom: -50px;
      left: 50%;
      transform: translateX(-50%);
      color: var(--brown-color);
      background: rgba(255,255,255,0.8);
      backdrop-filter: blur(12px);
      text-align: center;
      padding: 20px 20px;
      border-radius: 8px;
      z-index: 999;
      transition: 0.5s;
      visibility: hidden;
}
.toast.show {
    visibility: visible;
    opacity: 1;
    bottom: 10%;
    transition: 0.3s;
}



/*------------------------------*/
/*------------ 로딩 -------------*/
/*------------------------------*/

/* 로딩 모달 전체 화면 덮기 */
/* 화면 전체를 덮는 반투명 검은색 배경 (랜딩 화면이 뒤에 비침) */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    width: 100vw;
    height: 100vh;
    background-color: rgba(255, 255, 255, 0.4); /* 반투명 배경 */
    backdrop-filter: blur(6px); 
    -webkit-backdrop-filter: blur(6px); /* 사파리 호환성 */
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s ease-out; /* 페이드아웃 효과 */
}

.loading-overlay .cali-text{
  display: block;
  position: absolute;
  top: 50px;
  left: 35px;
  margin-bottom: 120px;
}

/* 텍스트 및 간격 조정 (400px 높이에 맞춤) */
.loading-title {
    font-size: 28px;
    margin-bottom: 20px;
    letter-spacing: 2px;
    font-family: 'OkMallangW', Mona12;
}

/* 픽셀 하트 (비율에 맞게 살짝 축소) */
.pixel-heart {
    width: 10px;
    height: 10px;
    background: #E52521;
    box-shadow: 
        -10px 0 #E52521, -20px 0 #E52521, 10px 0 #E52521, 20px 0 #E52521,
        -30px 10px #E52521, -20px 10px #E52521, -10px 10px #E52521, 0 10px #E52521, 10px 10px #E52521, 20px 10px #E52521, 30px 10px #E52521,
        -30px 20px #E52521, -20px 20px #E52521, -10px 20px #E52521, 0 20px #E52521, 10px 20px #E52521, 20px 20px #E52521, 30px 20px #E52521,
        -20px 30px #E52521, -10px 30px #E52521, 0 30px #E52521, 10px 30px #E52521, 20px 30px #E52521,
        -10px 40px #E52521, 0 40px #E52521, 10px 40px #E52521,
        0 50px #E52521;
    transform: scale(0.5); 
    margin: 10px auto 40px auto; 
}

.loading-text {
    font-size: 14px;
    margin-bottom: 10px;
}

/* 프로그레스 바 */
.progress-box {
    width: 80%; /* 박스 안에서 적당한 너비 */
    height: 24px;
    border: 3px solid #000;
    background-color: #fff;
    margin-bottom: 20px;
    padding: 2px;
}

.progress-fill {
    height: 100%;
    background-color: #27A745;
    width: 0%;
    animation: loadingBar 2s ease-out forwards; 
}

@keyframes loadingBar {
    0% { width: 0%; }
    50% { width: 70%; }
    100% { width: 100%; }
}

.loading-info p {
    font-size: 12px;
    margin: 5px 0;
    color: #333;
    letter-spacing: 1px;
}

body.no-scroll {
    overflow: hidden;
}

/*------------------------------*/
/*------------히스토리------------*/
/*------------------------------*/
.history{
  padding: 40px 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.history .history-scroll {
  width: 100%;
  overflow-y: hidden;
  overflow-x: scroll;
  padding: 0px 40px 20px 0px;
}
.history-scroll img{
  height: 300px;
}
.history .notice {
  margin-top: 12px;
  font-size: 14px;
  color: #797979;
  font-family: 'Pretendared', sans-serif;
}

/*------------------------------*/
/*------------갤러리-------------*/
/*------------------------------*/

.gallery-section{
  padding: 40px 0;
  background-color: #fff;
  margin:0;
}
/* 기존 css(0405)
.gallery-tabs {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-bottom: 15px;
}

.gallery-grid {
    display: none;
    grid-template-columns: repeat(4, 1fr); 
    gap: 0;
}

.gallery-grid.active {
    display: grid;
}

.img-box {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    cursor: pointer;
}
.img-box:hover{
  opacity: 0.7;
}

.img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    transition: transform 0.2s;
}

.img-box:active img {
    transform: scale(0.95); 
}
*/
.gallery-scroll {
  position: relative;
  display: flex;
  overflow-x: scroll;
  max-width:2000px;
  gap: 12px;
  padding: 0px 30px;
  /*-webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity; */
  scrollbar-width: none;
  touch-action: pan-x pan-y;
}
.gallery-scroll::-webkit-scrollbar {
    display: none; /* 크롬/사파리 스크롤바 숨기기 */
}

.gallery-column {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-shrink: 0;
  scroll-snap-align: center;
}


.gallery-thumb.active img,
.gallery-thumb:hover img {
  transform: scale(1.25);
  text-replace: 0.3s;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.gallery-thumb{
  border-radius: 50%;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  text-align: center;
}
.gallery-thumb img {
  height: 110%;
  aspect-ratio: 1 / 1;
  display: block;
  object-fit: cover;
  transition: 0.3s;
}

.gallery-modal {
    display: none; 
    position: fixed;
    z-index: 1002;
    left: 0; top: 0; width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.85); 
    align-items: center;
    justify-content: center;
    touch-action: none; 
}

.gallery-modal .modal-content {
    position: relative;
    max-width: 90%;
    max-height: 80vh;
}

#modal-content {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  will-change: transform; 
}
#modal-content.snapping {
  transition: transform 0.3s ease-out;
}

.gallery-modal > img {
    width: 100%;
    height: auto;
    max-height: 80vh;
    object-fit: contain;
    display: block;
}

.close-btn {
    position: absolute;
    top: -40px;
    right: -5px;
    color: #fff;
    opacity: 0.8;
    font-family: sans-serif;
    cursor: pointer;
}

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

/*----- 벽화 방명록 ------*/

.guest-section{
  display: block;
  position: relative;
  width: 100%;
  height: auto;
  background: #fff;
  text-align: center;
}
.guest {
  width: 100%;
  min-height: 600px;
  padding: 50px 0 0;
  overflow: hidden;
}

.guest h2{
  margin: 0 0 16px;
}

.guest_input-wrap{
  display: flex;
  flex-direction: column;
  width: 95%;
  margin: 0 auto;
  border-radius: 8px;
  background: #AB7944;
  padding: 10px;
  gap: 12px;
  box-shadow: 0 1px 2px 0 rgba(255, 255, 255, 0.60), 0 2px 2px 0 rgba(100, 61, 42, 0.80) inset, 0 -1px 2px 0 rgba(108, 69, 27, 0.50) inset;

}
.guest_input {
  display: flex;
  flex-direction: row;
  gap: 6px;
  font-family: 'SokchoBada', 나눔명조;
  font-size: 15px;
  
}
.guest_input input{
  width: 100%;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.65);
  box-shadow: 0 1px 1px 0 rgba(255, 255, 255, 0.60), 0 1px 1px 0 rgba(100, 61, 42, 0.80) inset, 0 -1px 1px 0 rgba(108, 69, 27, 0.50) inset;
  color: #6C451B;
  font-family: 'SokchoBada', 나눔명조;
  text-align: left;
  font-size: 16px;
  padding: 10px 5px;
}

.guest_input input::placeholder{
  color: #6C451B;
  opacity: 0.6;
}

.guest_input input:focus{
  outline: 0;
}

.guest_input button, .wall_btn {
  width: 100px;
  color: #fff;
  display: flex;
  font-family: 'SokchoBada', 나눔명조;
  font-size: 16px;
  font-weight: 400;
  padding: 5px 6px 6px 6px;
  justify-content: center;
  align-items: center;
  border-radius: 6px;
  background: rgba(108, 69, 27, 0.50);
  box-shadow: 0 1px 1px 0 rgba(255, 255, 255, 0.60), 0 -2px 2px 0 rgba(100, 61, 42, 0.80) inset, 0 -1px 2px 0 rgba(108, 69, 27, 0.50) inset;
}

.guest_input button:active, .wall_btn:active, .wall_btn:hover{
  border-radius: 6px;
  background: rgba(108, 69, 27, 0.80);
  box-shadow: 0 1px 1px 0 rgba(255, 255, 255, 0.60), 0 2px 2px 0 rgba(100, 61, 42, 0.80) inset;
}

.blessing-wrap h2{
  display: block;
  font-family: 'SokchoBada', 나눔명조;
  color: #6C451B;
  margin: 0 0 24px 0;
}

.guest .des{
  font-family: 'SokchoBada', 나눔명조;
  color: #6C451B;
  text-align: center;
  line-height: 150%;
  margin: 0;
}

.guest .des.des1{
  font-family: 'SokchoBada', 나눔명조;
  font-size: 16px;
}
.guest .des.des2{
  font-family: 'pretendard', sans-serif;
  font-size: 13px;
  opacity: 0.8;
  margin-top:8px;
}

.wall {
  padding: 20px 2px;
  width: 100%;
  /*background: rgb(141 95 48 / 20%);*/
  background-color: #E2B98D;
  background-image:  url('../img/guestwall_bg.jpg');
  background-size: cover;
  overflow-x: hidden;
}

.wall .title{
  font-family: 'KerisKeduLine';
  color: #6C451B;
  font-size: 22px;
  text-align: center;
  margin-bottom: 18px;
}


.wall .scroll {
  gap: 24px 8px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  align-content: flex-start;
  width: 100%;
  max-height: 50vh;
  letter-spacing: -0.02em;
  overflow-y: auto;
  overflow-x: hidden;
}


.guest .line{
  width: 100%;
  height: 5px;
  background: #AB7944;
  box-shadow: 0 1px 2px 0 rgba(255, 255, 255, 0.60), 0 2px 2px 0 rgba(100, 61, 42, 0.80) inset, 0 -1px 2px 0 rgba(108, 69, 27, 0.50) inset;
}

.mt30 {margin-top:30px;}
.mb30 {margin-bottom: 30px;}

.guest .scroll {
  width: 100%;
  max-height: 500px;
  overflow-y: auto;

}

.stone {
  display: flex;
  padding: 4px 9px 3px 10px;
  justify-content: center;
  align-items: center;
  gap: 10px;
  border-radius: 100px;
  border: 3px solid #AB7944;
  box-shadow: 0 1px 0 0 rgba(108, 69, 27, 0.80), 0 1px 0 0 rgba(255, 255, 255, 0.80) inset, 0 -1px 1px 0 rgba(108, 69, 27, 0.50) inset;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.8s ease;
  background: rgba(255,255,255,0.1);
}

.stone:after{
  content: ' ';
  height: 29px;
  width: 4px;
  background-color: #966734;
  border-radius: 10px;
  position: absolute;
  right: -6px;
  bottom: -2.5px;
}


/* 등장 */
.stone.show {
  opacity: 1;
  transform: translateY(0);
}

/* 내가 쓴 이름 */
.my-name {
  color: #111;
  background: rgba(255,255,255,0.3);
}

.cartouche {
  color: #AB7944;
  text-align: center;
  font-family: "Hieroglyphs";
  font-size: 16px; 
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}

#my-name-display {
  display: none;
  opacity: 0;
  transform: translateY(20px) scale(0.9);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

#my-name-display.show{
  display: flex;
  opacity: 1;
  transform: translateY(0) scale(1);
}

#my-name-display p{
  font-family: 'SokchoBada', 나눔명조;
  color: #fae2c8;
  font-size: 18px;
  text-align: center;
  line-height: 140%;
  margin: 0;
}

#my-name-display span{
  font-family: 'SokchoBada', serif;
  color: #6C451B;
  font-size: 18px;
  margin-top: 20px;
  margin-right: 10px;
}

.my-big-name{
  color: #AB7944;
  text-align: center;
  font-family: "Hieroglyphs";
  font-size: 24px; 
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  background: rgba(255,255,255,0.5);
  display: inline-flex;
  padding: 5px 15px 0 15px;
  justify-content: center;
  align-items: center;
  gap: 10px;
  border-radius: 100px;
  border: 3px solid #AB7944;
  box-shadow: 0 1px 0 0 rgba(108, 69, 27, 0.80), 0 1px 0 0 rgba(255, 255, 255, 0.80) inset, 0 -2px 2px 0 rgba(108, 69, 27, 0.50) inset;
  transition: all 0.6s ease;
}

.hiero {
  font-family: "Hieroglyphs";
  letter-spacing: 3px;
  color: #AB7944;
  text-align: center;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  text-shadow: 0 1px 0 rgba(108, 69, 27, 0.80), 0 -1px 0 rgba(255, 255, 255, 0.80), 0 2px 2px rgba(108, 69, 27, 0.50);
}

.hiero-original{
  font-size: 12px;
  font-family: 'KerisKeduLine';
  color: #896034;
  position: absolute;
  bottom: -22px;
}

.rank-hiero-wrap .hiero-original{
  position: relative;
  bottom: 0;
  font-family: 'SokchoBada';
}

.my-name {
  background: rgba(255,255,255,0.5);
}


.save-card {
  width: 500px;
  height: 750px;
  padding: 80px 80px 120px;
  background-color: #E2B98D;
  background-image:  url('../img/save-bg.png');
  background-size: cover;
  text-align: center;
  font-family: 'SokchoBada';
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-around;
}

.save-header {
  width: 100%;
  font-size: 20px;
  font-family: 'SokchoBada';
  line-height: 145%;
  text-align: center;
  color: #E2B98D;
  margin-bottom: 10px;
}
.head-hiero-name{
  font-family: 'SokchoBada';
  line-height: 145%;
}
.head-hiero-name span{
  display: flex;
}
.save-name {
  font-size: 10px;
  margin-bottom: 10px;
}

.ready-to-capture .body-hiero-name,
.ready-to-capture .body-hiero-name:after {
  box-shadow: none !important;
  background-color: transparent !important;
}

.body-hiero-name {
  max-width: 200px;
  position: relative;
  flex-wrap: wrap; 
  display: flex; 
  flex-direction: column;      /* 위에서 아래로 정렬 */
  justify-content: center;     /* 세로 중앙 정렬 */
  align-items: center;  
  min-height: 200px;
  max-height: 550px;
  color: #E2B98D;
  text-align: center;
  font-family: "Hieroglyphs";
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  padding: 20px 15px 20px 15px;
  justify-content: center;
  border-radius: 100px;
  overflow: hidden; 
  align-items: center;
  border: 8px solid #E2B98D;
  box-shadow: 0 1px 0 0 rgba(108, 69, 27, 0.80), 0 1px 0 0 rgba(255, 255, 255, 0.80) inset, 0 -2px 2px 0 rgba(108, 69, 27, 0.50) inset;
  transition: all 0.6s ease;
}

.body-hiero-name:after{
  content: ' ';
  width:100%;
  height: 10px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 10px;
  bottom: -10px;
  background-color: #E2B98D;
  box-shadow: 0 1px 0 0 rgba(108, 69, 27, 0.80), 0 -2px 2px 0 rgba(108, 69, 27, 0.50) inset;
}

.save-btn{
  opacity: 0.7;
  color: #e3d4c7;
  display: flex;
  font-family: 'Pretendard', sans-serif;
  gap: 3px;
  align-items: center;
}
.save-btn:hover{opacity: 1; }

.save-footer {
  font-size: 10px;
  color: #aaa;
  margin-top: 20px;
}



/*----- 하트 축복 -------*/
.blessing-wrap {
  display: flex;
  flex-direction: column;
  text-align: center;
  align-items: center;
  padding: 30px 16px 30px;
  background: #E2B98D url('../img/guestwall_bg.jpg');
  background-size: cover;
}

.blessing-wrap .my-big-name{
  font-size: 17px;
}

.blessing-wrap #message{
  font-family: 'SokcoBada';
  color: var(--brown-color);
  font-size: 14px;
  margin-top: 10px;
}

.ranking-wrap {
  background: rgba(255,255,255,0.5);
  padding: 20px;
  width: 100%; 
  margin: 20px auto 0;
  border-radius: 12px;
  gap: 12px;
}

.send_heart{
  display: block;
  position: relative;
  text-align: center;
  width: 120px;
  height: 120px;
  background: url('../img/send_heart_shadow.svg') bottom center no-repeat;
  margin-top: 10px;
  outline: 0;
}

.send_heart button{
  position: absolute;
  top:0;
  left: 50%;
  transform: translateX(-50%);
  width: 122px; height: 100px;
  content: '축복하기';
  text-indent: -999px;
  background: url('../img/send_heart.png') no-repeat;
  background-size: contain;
}

.send_heart button:hover{
  top:5px;
  background: url('../img/send_heart_hover.png') no-repeat;
  background-size: contain;
}

#ranking{
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.rank-item {
    flex-direction: row;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 8px;
    font-family: 'SokchoBada';
    font-size: 16px;
}

.rank-hiero-wrap{
  display: flex;
  flex-direction: column;
  gap:2px;
}

.rank-item:nth-child(1) {
  font-weight: bold;
  font-size: 16px;
  color: #FF5527;
}

.heart-pop {
  position: fixed;
  bottom: 300px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 30px;
  animation: floatUp 1s ease-out;
  background: url('../img/favicon.png');
  width: 30px; height: 30px;
  z-index: 99;
}

@keyframes floatUp {
  0% { opacity: 1; transform: translate(-50%, 0) scale(0.8); }
  100% { opacity: 0; transform: translate(-50%, -200px) scale(2); }
}

.heart {
  width: 20px; height:20px;
  bottom: 100px;
   background: url('../img/favicon.png');
}



/* 공유하기 */
.share-section {
    padding: 20px 16px 0;
    background-color: #fff;
}

.share-btn-group {
    display: flex;
    flex-direction: row;
    gap: 12px;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 10px;
    border-radius: 8px; 
    font-size: 16px;
    font-weight: bold;
    font-family: 'SokchoBada', '나눔명조', serif; 
    outline: 0;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.share-icon {
    width: 20px;
    height: 20px;
    outline: 0;
}

.btn-kakao {
    background-color: #FEE500;
    border-color: #FEE500;
    color: #191919;
    outline: 0;
}

.btn-kakao:hover, 
.btn-kakao:active {
    background-color: #E6CF00; 
    border-color: #E6CF00;
}

.btn-link {
    background-color: #443e3a;
    color: #fff;
    outline: 0; 
}

.btn-link:hover, 
.btn-link:active {
    background-color: #12110f; 
}


section.footer {
  display: block;;
  background-color: #fff;
  text-align: center;
  color:  #452d13;
  font-family: 'SokchoBada', sans-serif;
  font-size: 14px;
  padding: 16px 0;
  margin-bottom: 0 !important;
}




@media screen and (min-width: 401px) {
  html {
    background-color: #fff;
  }

  body{
    display: block;
    position: relative;
    max-width: 400px;
    margin: 0 auto;
    overflow-x: hidden;
  }

  main{
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
    overflow-y: auto;
    overflow-x: hidden;
  }
}