@charset "utf-8";

/* ------------------------------------------------------------------------------------------
	파일정의 : Reset Style
	작성일자 : 2025-11-10 홍병기
	분류순서 : Base
--------------------------------------------------------------------------------------------- */

@font-face {
    font-family: 'Pretendard';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/pretendard@1.0/Pretendard-Thin.woff2') format('woff2');
    font-weight: 100;
    font-display: swap;
}

@font-face {
    font-family: 'Pretendard';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/pretendard@1.0/Pretendard-ExtraLight.woff2') format('woff2');
    font-weight: 200;
    font-display: swap;
}

@font-face {
    font-family: 'Pretendard';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/pretendard@1.0/Pretendard-Light.woff2') format('woff2');
    font-weight: 300;
    font-display: swap;
}

@font-face {
    font-family: 'Pretendard';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/pretendard@1.0/Pretendard-Regular.woff2') format('woff2');
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: 'Pretendard';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/pretendard@1.0/Pretendard-Medium.woff2') format('woff2');
    font-weight: 500;
    font-display: swap;
}

@font-face {
    font-family: 'Pretendard';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/pretendard@1.0/Pretendard-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-display: swap;
}

@font-face {
    font-family: 'Pretendard';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/pretendard@1.0/Pretendard-Bold.woff2') format('woff2');
    font-weight: 700;
    font-display: swap;
}

@font-face {
    font-family: 'Pretendard';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/pretendard@1.0/Pretendard-ExtraBold.woff2') format('woff2');
    font-weight: 800;
    font-display: swap;
}

@font-face {
    font-family: 'Pretendard';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/pretendard@1.0/Pretendard-Black.woff2') format('woff2');
    font-weight: 900;
    font-display: swap;
}

@font-face {
    font-family: 'CucumberSalad';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_2210-EF@1.0/EF_cucumbersalad.woff2') format('woff2');
    font-weight: normal;
    font-display: swap;
}

@font-face {
    font-family: 'MuseumCulturalFoundationClassic';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_twelve@1.0/국립박물관문화재단클래식L.woff') format('woff');
    font-weight: 300;
    font-display: swap;
}

@font-face {
    font-family: 'MuseumCulturalFoundationClassic';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_twelve@1.0/국립박물관문화재단클래식M.woff') format('woff');
    font-weight: 500;
    font-display: swap;
}

@font-face {
    font-family: 'MuseumCulturalFoundationClassic';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_twelve@1.0/국립박물관문화재단클래식B.woff') format('woff');
    font-weight: 700;
    font-display: swap;
}

@font-face {
    font-family: 'SchoolSafetyKidariBalloon';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2511-1@1.0/HakgyoansimKidaripungseonL.woff2') format('woff2');
    font-weight: normal;
    font-display: swap;
}

html, body, div, ul, ol, dl, li, dt, dd, p, h1, h2, h3, h4, h5, h6, table, th, td, caption, address, article, aside, canvas, details, figure, figcaption, footer, header, section, menu, nav, button, select, textarea, input, fieldset, legend, a, span, strong, em, address, dfn, small, i, b, pre {
    box-sizing:border-box;
    -webkit-box-sizing:border-box;
    -moz-box-sizing:border-box;
    -o-box-sizing:border-box;
    margin:0;
    padding:0;
    border:0;
    list-style:none;
    font-style:normal;
    font-weight:inherit;
    font-size:100%;
    scroll-behavior: smooth;
}
:before, :after {
    box-sizing:border-box;
    -webkit-box-sizing:border-box;
    -moz-box-sizing:border-box;
    -o-box-sizing:border-box;
}
a, button {
    cursor: pointer;
}

/* 텍스트 드래그(선택) 색상 공통 설정 */
::selection {
  background: #BA9B61;  /* 선택 영역 배경색 */
  color: #000;          /* 선택된 글자 색 */
}

/* 파이어폭스용 */
::-moz-selection {
  background: #BA9B61;
  color: #000;
}

/* 기본 상태: 살짝 어두운 인풋 */
input[type="text"],
input[type="tel"],
input[type="email"],
input[type="date"],
textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 6px;
  border: 1px solid #444;
  background: #2e2e2e;          /* 어두운 배경 */
  color: #fff;
  transition: 
    background-color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
  font-family: 'Pretendard', sans-serif;
}

/* 플레이스홀더 색도 조금 어둡게 */
input::placeholder,
textarea::placeholder {
  color: #777;
}

/* 포커스(선택)했을 때: 밝아지고 포인트 컬러 강조 */
input:focus,
textarea:focus {
  outline: none;             /* 기본 파란 테두리 제거 */
  background: #2e2e2e;          /* 조금 더 밝은 느낌 / 혹은 #222 등으로 조절 */
  border-color: #BA9B61;     /* 포인트 컬러 */
  box-shadow: 0 0 0 1px #BA9B61;
}


body { font-family: 'Pretendard', sans-serif; font-weight: 300; color: #fff; background: #000; }

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    transition: background-color 0.3s ease;
    z-index: 10;
    font-family: 'MuseumCulturalFoundationClassic';
    padding: 20px 100px;
    line-height: 34px;
    background: transparent;
    box-shadow: none;
}

/* 스크롤 후 (배경 생김) */
header.scrolled {
  background: rgba(0, 0, 0, 0.6); /* 필요 시 색상 변경 가능 */
}
header h1 {
  width: 250px;
  height: 50px;
    font-size: 0px;
    float: left;
    font-weight: 600;
    color: #BA9B61;
    background-image: url(/resources/images/h1_logo.svg);
    background-repeat: no-repeat;
    background-size: contain;
}
header .gnb {
    float: right;
    height: 100%;
    font-weight: 600;
}
header .gnb ul {
    display: flex;
    gap: 40px;
    height: 100%;
}
header .gnb ul li button {
    display: inline-block;
    color: #fff;
    text-decoration: none;
    line-height: 50px;
    font-size: 20px;
    background-color: transparent;
    font-family: 'MuseumCulturalFoundationClassic';
}
header .gnb ul li button:hover {
    color: #BA9B61;
}

header .gnb button.active {
  color: #BA9B61;
  transition: 0.3s;
}

/* Inquiry 팝업 공통 스타일 */
.inquiry-popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.inquiry-popup .popup-content {
  background: #2e2e2e;
  padding: 25px;
  border-radius: 12px;
  text-align: center;
  position: relative;
  max-width: 450px;
  max-height: 720px;
  width: 80%;
  animation: fadeIn 0.3s ease;
}

.inquiry-popup .popup-close {
  position: absolute;
  top: 10px;
  right: 15px;
  border: none;
  background: transparent;
  font-size: 22px;
  cursor: pointer;
}
.inquiry-popup .disc {
  font-size: 13px;
  font-weight: 300;
  word-break: keep-all;
  padding: 0 0 30px 0;
  color: #cecece;
  text-align: left;
}
#inquiryForm {
  padding: 0 20px;
}
#inquiryForm div textarea {
  height: 70px;
}
#inquiryForm div {
  margin: 0 0 15px 0;
  display: flex;
  gap: 10px;
  flex-direction: column;
}
#inquiryForm div label {
  font-size: 17px;
  font-weight: 500;
  width: 80px;
  text-align: left;
}
#inquiryForm div input {
  width: 100%;
  padding: 0 15px;
  border-radius: 5px;
  line-height: 40px;
}
#inquiryForm div.security {
  flex-direction: row;
  margin: 0 0 10px 0;
}
#inquiryForm div.security input {
  width: 20px;
}
#inquiryForm div.security label {
  width: auto;
  line-height: 20px;
}
#inquiryForm button {
    background-color: #222222;
    width: 100%;
    color: #fff;
    font-family: 'Pretendard', sans-serif;
    font-size: 18px;
    font-weight: 500;
    line-height: 46px;
    border-radius: 5px;
}
#inquiryForm button:hover {
  background-color: #BA9B61;
}
.inquiry-done-popup .popup-content {
  width: 400px;
  padding: 25px 40px;
}
.inquiry-done-popup .popup-content p {
  line-height: 26px;
  font-size: 18px;
}
/* 기본 달력 아이콘 제거 */
#inqDate::-webkit-calendar-picker-indicator {
  opacity: 0;
  cursor: pointer;
}

/* 새로운 흰색 아이콘 넣기 */
#inqDate {
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" fill="white" viewBox="0 0 24 24"><path d="M19 4h-1V2h-2v2H8V2H6v2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V9h14v11z"/></svg>')
    no-repeat 95% center;
  background-size: 20px;
}


.contact-text-tel {
  font-size: 40px;
  margin-top: 25px;
  font-family: 'MuseumCulturalFoundationClassic';
}

.contact-link {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

h2 {
    color: #BA9B61;
    font-family: 'MuseumCulturalFoundationClassic';
    font-weight: 700;
    font-size: 50px;
    padding-bottom: 80px;
}

section { position: relative; width: 100%; }

.hero {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh; /* 화면 꽉 차게 */
  overflow: hidden;
  z-index: 1;
}

.hero-video, .hero-image {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: #000;
  opacity: 0.7;
  z-index: -1;
  transition: opacity 0.2s ease-out;
}

.hero-text {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -30%);
  text-align: center;
  z-index: 1;
  width: 100%;
}
.hero-text h1 {
    font-family: 'CucumberSalad';
    font-size: 4.5vw;
    margin-bottom: 15px;
    font-weight: 600;
}
.hero-text p {
    font-size: 100px;
    font-family: 'CucumberSalad';
}
.hero-text p.txt1 {
  font-size: 100px;
  word-break: keep-all;
  font-family: 'SchoolSafetyKidariBalloon';
  font-weight: 400;
}
.hero-text p.txt2 {
  font-size: 80px;
  font-family: 'SchoolSafetyKidariBalloon';
  font-weight: 400;
}
.hero-text p.txt3 {
  font-size: 70px;
  font-family: "Mplus 1p";
  font-weight: 400;
  line-height: 85px;
  letter-spacing: -3px;
}

.rolling-text {
  position: relative;
  height: 100vh;      /* hero 영역 전체에서 가운데 정렬하려면 유지 */
  overflow: hidden;
}

/* 각 문장을 화면 가운데에 겹쳐 놓고, 활성화된 것만 보이게 */
.rolling-text p {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);  /* 정확히 가운데 */
  width: 100%;
  opacity: 0;
  text-align: center;
  transition: opacity 0.8s ease-in-out;
}

.rolling-text p.active {
  opacity: 1;
}

.container {
  position: relative;
  background: #000;
  min-height: 100vh;
  z-index: 2;
  margin-top: 0; /* hero 높이만큼의 여백 확보 */
}

.contents {
    width: 100%;
    padding: 150px 0 0 0;
    min-height: 750px;
}

.inner {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    text-align: center;
}

.album, .youtube, .links {
  background: #000;
  display: flex;
  justify-content: center;
}

.album {
    background-image: url(/resources/images/bg/bg_album.jpg);
    background-position: top center;
    background-repeat: no-repeat;
    height: 1000px;
    background-color: #000;
}

.album .inner {
    position: relative;
    max-width: 1280px;
}
.album_list {
    padding: 0 20px;
}
.album_list .album01 {
    background-image: url(/resources/images/album/album01.jpg);
}
.album_list .album02 {
    background-image: url(/resources/images/album/album02.jpg);
}
.album_list .album03 {
    background-image: url(/resources/images/album/album03.jpg);
}
.album_list .album04 {
    background-image: url(/resources/images/album/album04.jpg);
}
.album_list .album05 {
    background-image: url(/resources/images/album/album05.jpg);
}
.album_list .album06 {
    background-image: url(/resources/images/album/album06.jpg);
}
.album_list .album07 {
    background-image: url(/resources/images/album/album07.jpg);
}
.album_list .album08 {
    background-image: url(/resources/images/album/album08.jpg);
}
.album_list .album09 {
    background-image: url(/resources/images/album/album09.jpg);
}
.album_list .album10 {
    background-image: url(/resources/images/album/album10.jpg);
}
.album_list .album11 {
    background-image: url(/resources/images/album/album11.jpg);
}
.album_list .album12 {
    background-image: url(/resources/images/album/album12.jpg);
}
.album_list .album13 {
    background-image: url(/resources/images/album/album14.jpg);
}
.album_list .album14 {
    background-image: url(/resources/images/album/album13.jpg);
}
.album_list .album15 {
    background-image: url(/resources/images/album/album15.jpg);
}
.album_list .album16 {
    background-image: url(/resources/images/album/album16.jpg);
}

.links {
    background-image: url(/resources/images/bg/bg_bottom.jpg);
    background-position: top center;
    background-repeat: no-repeat;
    background-size: cover;
    min-height: 860px;
}

.links ul {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin: 150px 0 0 100px;
}
.links ul li {
    width: 180px;
    /* aspect-ratio: 1 / 1; */
    height: 100px;
}
.links ul li a {
    display: inline-block;
    width: 100%;
    height: 100%;
    background-position: top center;
    background-repeat: no-repeat;
    background-size: 60px;
    position: relative;
    text-decoration: none;
    color: #fff;
    font-size: 18px;
    font-weight: 600;
}
.links ul li a.store {
    background-image: url(/resources/images/icon/icon_store.svg);
}
.links ul li a.facebook {
    background-image: url(/resources/images/icon/icon_facebook.svg);
}
.links ul li a.instargram {
    background-image: url(/resources/images/icon/icon_instargram.svg);
}
.links ul li a span {
    width: 100%;
    position: absolute;
    bottom: 0;
    left: 0;
}
.links ul li a:hover {
    color: #BA9B61;
}
.links ul li a:hover.store {
    background-image: url(/resources/images/icon/icon_storeOver.svg);
}
.links ul li a:hover.facebook {
    background-image: url(/resources/images/icon/icon_facebookOver.svg);
}
.links ul li a:hover.instargram {
    background-image: url(/resources/images/icon/icon_instargramOver.svg);
}

.youtube {
    background: #000;
}

.video-wrap iframe {
  width: 100%;
  height: 400px;
}

.counter-box {
  position: fixed;
  bottom: 0;
  right: 0;
  text-align: center;
  padding: 10px 30px 10px 70px;
  color: #fff;
  z-index: 2;
  display: inline-block;
  background-color: rgba(0, 0, 0, 0.8);
  border-radius: 10px 0 0 0;
  background-image: url(/resources/images/icon/icon_visitant.svg);
  background-position: left 30px center;
  background-repeat: no-repeat;
  background-size: 26px;
}

#visitCount {
  font-size: 30px;
  font-weight: 700;
  display: block;
  animation: fadeIn 1s ease-in;
}

/* @keyframes fadeIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
} */

footer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    text-align: center;
    /* background: #181818; */
    padding: 40px 0;
    font-size: 14px;
    color: #888;
}

.swiper-wrap {
  position: relative;
  width: 100%;
  margin: 0 auto;
}
.swiper-container {
    width: 100%;
    height: 100%;
    padding-bottom: 60px;
}
.swiper-slide {
    text-align: center;
    border-radius: 10px;
    aspect-ratio: 1 / 1; /* 👈 정사각형 유지 */
    
    /* Center slide text vertically */
    display: -webkit-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    -webkit-justify-content: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    -webkit-align-items: center;
    align-items: center;
    background-repeat: no-repeat;
    background-size: cover;
    margin-bottom: 90px;
    cursor: pointer;
}

.swiper-slide dl {
    width: 100%;
    position: absolute;
    bottom: -80px;
}

.swiper-slide dl dt {
    font-family: 'MuseumCulturalFoundationClassic';
    font-weight: 300;
    font-size: 20px;
    padding-bottom: 10px;
}

.swiper-slide dl dd {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  color: #cecece;
}


.swiper-button-prev,
.swiper-button-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  color: #fff;
}

.swiper-button-prev {
  left: -50px !important; /* 컨테이너 밖으로 */
}
.swiper-button-next {
  right: -50px !important; /* 컨테이너 밖으로 */
}



/* 팝업 기본 비활성 상태 */
.popup-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.85);
  display: none; /* 숨김 */
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

/* 팝업 내용 */
.popup-content {
  background: #2E2F2E;
  width: 90%;
  max-width: 550px;
  max-height: 640px;
  padding: 40px;
  border-radius: 12px;
  position: relative;
  animation: popupFade 0.3s ease;
  overflow-y: scroll;
  scrollbar-width: none;
}

.popup-content h2 {
  font-size: 2.3rem;
  margin-bottom: 20px;
  padding-bottom: 0;
  line-height: 40px;
}

.melon-btn {
  position: absolute;
  top: 40px;
  right: 40px;
  width: 40px;
  height: 40px;
  font-size: 0;
  background-image: url('/resources/images/icon/icon_musicplayOver.svg');
  background-position: center;
  background-repeat: no-repeat;
}

/* GALLERY 공통 */
/* ===== GALLERY 기본 레이아웃 ===== */

.contents.photo {
  padding-top: 100px;
}
.contents.photo h2.mobile {
  display: none;
}

/* .contents.photo h2 {
  font-size: 32px;
  letter-spacing: 0.2em;
  margin-bottom: 30px;
} */

.gallery-inner {
  max-width: 1280px;     /* 1. 가로 1280px */
  margin: 0 auto;
}

/* 2. 왼쪽/오른쪽 50%씩 */
.gallery-wrap {
  display: flex;
  gap: 100px;
}

.gallery-main {
  width: 60%;
}
.gallery-side {
  width: 40%;
}

/* ===== 왼쪽 큰 이미지 ===== */

.gallery-main-img-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;        /* 정사각형 유지 */
  border-radius: 10px;
  overflow: hidden;
  background: #000;
  position: relative;
}

.gallery-main-img-wrap img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;

  /* 🔹 기본값: 오른쪽에 살짝 있고, 투명 */
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

/* 🔹 보이게 할 때 사용할 클래스 */
.gallery-main-img-wrap img.is-visible {
  opacity: 1;
  transform: translateX(0);
}


.gallery-main-info {
  margin-top: 16px;
  display: none;
}

.gallery-main-info h3 {
  font-size: 20px;
  margin-bottom: 8px;
}

.gallery-main-info p {
  font-size: 14px;
  line-height: 1.6;
  opacity: 0.9;
}

/* ===== 오른쪽 썸네일 12개 ===== */

.gallery-side {
  display: flex;
  flex-direction: column;
}

.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);   /* 3 x 4 = 12칸 */
  gap: 20px;
  margin-bottom: 12px;
}

.gallery-thumb-item {
  position: relative;
  border-radius: 5px;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 1/1;
  opacity: 0.3;
}

.gallery-thumb-item img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.gallery-thumb-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.0),
    rgba(0, 0, 0, 0.4)
  );
  opacity: 0;
  transition: opacity 0.25s ease;
}

.gallery-thumb-item:hover img {
  transform: scale(1.05);
}

.gallery-thumb-item:hover::after {
  opacity: 1;
}

/* 활성 썸네일 표시 */
.gallery-thumb-item.active {
  outline: 2px solid #fff;
  opacity: 1;
}

.gallery-thumb-item:hover {
  opacity: 1;
}

/* 더 보기 버튼 */
.gallery-more-btn {
  margin-top: 50px;
  align-self: center;
  padding: 8px 110px 8px 30px;
  border-radius: 999px;
  background: #222222;
  color: #fff;
  font-size: 20px;
  font-weight: 500;
  text-transform: uppercase;
  cursor: pointer;
  /* transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease; */
  background-image: url(/resources/images/icon/icon_more.svg);
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 100px;
}

.gallery-more-btn:hover {
  background-color: #BA9B61;
  /* color: #000; */
}

/* ===== 전체보기 팝업 (100% 레이어) ===== */

.gallery-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  display: none;              /* JS로 토글 */
  z-index: 9999;
}

.gallery-popup-overlay.show {
  display: block;
}

.gallery-popup-inner {
  width: 100%;
  height: 100%;
  padding: 60px 40px 40px;
  box-sizing: border-box;
  overflow-y: auto;
}

/* 닫기 버튼 (우측 상단) – 8번 조건 */
.gallery-popup-close {
  position: fixed;
  top: 20px;
  right: 24px;
  z-index: 10000;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.6);
  background: rgba(0,0,0,0.5);
  color: #fff;
  font-size: 2em;
  line-height: 34px;
  text-align: center;
  cursor: pointer;
}

/* 7. 핀터레스트 느낌 3열 그리드 */
.gallery-popup-grid {
  column-count: 6;
  column-gap: 15px;
}

.gallery-popup-item {
  display: inline-block;
  width: 100%;
  margin-bottom: 16px;
  border-radius: 12px;
  overflow: hidden;
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  page-break-inside: avoid;
  cursor: pointer;
  position: relative;
}

.gallery-popup-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-popup-item:hover img {
  transform: scale(1.03) translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4); /* 선택: 깊이감 */
}

/* 팝업 이미지 hover */
.gallery-popup-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.0),
    rgba(0, 0, 0, 0.5)
  );
  opacity: 0;
  z-index: 1;
  transition: opacity 0.25s ease;
}

.gallery-popup-item:hover::after {
  opacity: 1;
}

/* 팝업 캡션 */
.gallery-popup-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 10px 14px;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.85),
    rgba(0, 0, 0, 0.0)
  );
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.25s ease 0.05s, transform 0.25s ease 0.05s;
  font-size: 13px;
  z-index: 2;
}

.gallery-popup-caption strong {
  display: block;
  margin-bottom: 4px;
  font-size: 16px;
  font-weight: 500;
}

.gallery-popup-caption p {
  margin: 0;
  line-height: 1.4;
  opacity: 0.9;
}

/* hover 시 캡션 노출 */
.gallery-popup-item:hover .gallery-popup-caption {
  opacity: 1;
  transform: translateY(0);
  display: none;
}


/* ===== 갤러리 확대 라이트박스 ===== */
.gallery-zoom-overlay {
  position: fixed;
  inset: 0;
  display: none;                /* 기본은 숨김 */
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.88);
  z-index: 10000;               /* 기존 galleryPopup(9999)보다 위 */
  overflow: auto;               /* 화면보다 작게 줄이되, 아주 작은 화면에선 스크롤 */
}

.gallery-zoom-overlay.show {
  display: flex;
}

.gallery-zoom-inner {
  position: relative;
  max-width: min(1200px, 90vw); /* 가로는 화면의 90% 이내 */
  max-height: 90vh;             /* 세로는 화면의 90% 이내 */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 40px 20px;            /* 위아래 여백 조금 */
}

#galleryZoomImage {
  max-width: 100%;
  max-height: calc(90vh - 120px); /* 캡션/여백 고려해서 높이 제한 */
  object-fit: contain;            /* 이미지 비율 유지하며 축소 */
  border-radius: 14px;
  display: block;
  margin: 0 auto;
}

.gallery-zoom-close {
  position: absolute;
  top: -50px;
  right: 0;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.7);
  background: rgba(0,0,0,0.6);
  color: #fff;
  font-size: 2em;
  line-height: 32px;
  text-align: center;
  cursor: pointer;
}

.gallery-zoom-caption {
  margin-top: 14px;
  text-align: left;
  max-width: 100%;
  max-height: 80px;     /* 캡션 영역도 제한 */
  overflow-y: auto;
  display: none;
}

.gallery-zoom-caption h4 {
  font-size: 18px;
  margin-bottom: 6px;
}

.gallery-zoom-caption p {
  font-size: 14px;
  line-height: 1.6;
  opacity: 0.9;
}

.slide-right-out {
  transform: translateX(-20px);
}

.slide-left-in {
  transform: translateX(20px);
}

.song-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.song-list li {
  font-size: 1.2rem;
  font-weight: 500;
  line-height: 24px;
  padding: 12px 0;
  border-bottom: 1px solid #494949;
}
.song-list li:first-child {
    border-top: 1px solid #494949;
}
.song-list li a {
    color: #ffffff;
    text-decoration: none;
    width: 100%;
    display: inline-block;
    padding: 12px 60px 12px 0;
    position: relative;
    line-height: 24px;
}
.song-list li a:hover {
    color: #BA9B61;
}
.song-list li a::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 10px;
    margin-top: -12px;
    width: 24px;
    height: 24px;
    background: url('/resources/images/icon/icon_musicplay.svg');
    opacity: 0.2;
}
.song-list li a:hover::after {
    background: url('/resources/images/icon/icon_musicplayOver.svg');
    opacity: 1;
}

.material-symbols-outlined {
  font-variation-settings:
  'FILL' 0,
  'wght' 400,
  'GRAD' 0,
  'opsz' 24
}

/* 닫기 버튼 */
.popup-close, .popup-close-done {
  position: absolute;
  top: 0px;
  right: 0px;
  width: 50px;
  height: 50px;
  background: none;
  border: none;
  font-size: 2em;
  cursor: pointer;
  color: #ffffff;
}

.popup-close-inquiry {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  font-size: 2em;
  cursor: pointer;
  color: #ffffff;
}

/* 팝업 등장 애니메이션 */
@keyframes popupFade {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

/* 팝업 열릴 때 body 스크롤 잠금 */
body.modal-open {
  overflow: hidden;
}

.video-wrap ul {
    display: flex;
    flex-direction: row;
    gap: 30px;
    justify-content: center;
    align-items: center;
}
.video-wrap ul li {
    display: inline-block;
    width: 100%;
    height: 100%;
    overflow: hidden;
}
.video-wrap ul li button {
  height: auto;
  background: transparent;
}
.video-wrap ul li button img {
  width: 100%;
  border-radius: 15px;
}

/* 유튜브 팝업 */
.video-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.video-popup-overlay.show {
  display: flex;
}

.video-popup-inner {
  position: relative;
  width: 90%;
  max-width: 960px;
}

.video-frame-wrap {
  position: relative;
  padding-top: 56.25%; /* 16:9 */
}

.video-frame-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.video-popup-close {
  position: absolute;
  top: -40px;
  right: 0;
  font-size: 32px;
  color: #fff;
  background: none;
  border: none;
  cursor: pointer;
}

/* 영상 준비중 팝업 */
.video-ready-overlay{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1100;
}
.video-ready-overlay.show{ display: flex; }

.video-ready-content{
  position: relative;
  width: 90%;
  max-width: 420px;
  background: #2E2F2E;
  border-radius: 12px;
  padding: 28px 20px;
  text-align: center;
  color: #fff;
}
.video-ready-content p{
  font-size: 18px;
  font-weight: 500;
}

.video-ready-close{
  position: absolute;
  top: 10px;
  right: 12px;
  font-size: 28px;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
}

.reveal {
  opacity: 0;
  transform: translateY(80px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  will-change: opacity, transform;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}


.reveal.delay-1 { transition-delay: 0.1s; }
.reveal.delay-2 { transition-delay: 0.3s; }
.reveal.delay-3 { transition-delay: 0.5s; }


/* 배경 오버레이 */
.popup-banner {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 팝업 박스 */
.popup{
  position: relative;
  max-width: 80%;
  max-height: 90vh;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

/* 이미지 */
.popup-img{
  display: block;
  max-width: 100%;
  height: auto;
}

/* 닫기 버튼 */
.popup-close{
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: none;
  /* background: rgba(0,0,0,0.6); */
  color: #fff;
  font-size: 22px;
  border-radius: 50%;
  cursor: pointer;
}

/* 하단 영역 */
.popup-footer{
  padding: 10px 14px;
  background: #f7f7f7;
  text-align: right;
  color: #000;
}

.today-hide{
  font-size: 14px;
  cursor: pointer;
}

/* 일본 앨범 가이드 팝업 */
/* 팝업 박스 */
.japanpopup{
  position: relative;
  width: 90%;
  max-width: 400px;
  max-height: 85vh;
  background: #2E2F2E;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,0.35);
}
.japanpopup .popup-content {
  width: 100%;
}
.japanpopup .popup-close {
  z-index: 10;
}

.guide.japan {
    position: absolute;
    bottom: -125px;
    right: 50%;
    transform: translate(50%, -50%);
    background-image: url(/resources/images/icon/icon_japanguide.svg);
    background-repeat: no-repeat;
    background-position: center;
    font-size: 0;
    width: 23px;
    height: 23px;
    background-color: transparent;
}

/* 텍스트 팝업 전용 */
.popup-text{
  overflow-y: auto;
}

/* 내용 */
.popup-content p{
  margin-bottom: 16px;
}

.music-list{
  margin: 14px 0 18px;
  padding-left: 18px;
}

.music-list li{
  margin-bottom: 4px;
}

.signature{
  margin-top: 24px;
  font-weight: 600;
  text-align: right;
}


/* 반응형 */
@media (max-width: 1024px) {
  header {
    padding: 20px 30px;
  }
  header h1 {
    width: 190px;
    height: 40px;
  }
  header .gnb ul li button {
    font-size: 16px;
  }
  .gallery-wrap {
    flex-direction: column;
    gap: 40px;
  }
  .gallery-main,
  .gallery-side {
    width: 100%;
  }
  .gallery-popup-grid {
    column-count: 4;
  }
  .gallery-wrap, .video-wrap {
    padding: 0 20px;
  }
  .contents.photo h2.mobile {
    display: block;
  }
  .contents.photo h2.pc {
    display: none;
  }
}

@media (max-width: 640px) {
  .gallery-thumbs {
    grid-template-columns: repeat(4, 1fr); /* 모바일에서 조금 더 작게 */
  }
  .gallery-popup-grid {
    column-count: 2;
  }
}

@media screen and (max-width: 720px) {
    header {
        padding: 10px 20px 10px 10px;
    }
    header h1 {
      width: 180px;
      height: 40px;
    }
    header .gnb .btn-mobile {
        display: none;
    }
    header .gnb .inquiry-btn {
      font-size: 0;
      width: 32px;
      height: 32px;
      background-image: url(/resources/images/icon/icon_inquiry.svg);
      background-repeat: no-repeat;
      background-position: center;
      background-size: 26px;
    }
    .album-popup .popup-content h2 {
      line-height: 30px;
    }
    .melon-btn {
      top: 27px;
      right: 20px;
      width: 34px;
      height: 34px;
    }
    #inquiryForm {
      padding: 0;
    }
    #inquiryForm div {
      flex-direction: column;
      gap: 0;
      margin: 0 0 5px 0;
    }
    #inquiryForm div label {
      line-height: 30px;
      font-size: 15px;
    }
    #inquiryForm div input {
      line-height: 40px;
      height: 40px;
    }
    #inquiryForm div.security {
      margin-top: 10px;
    }
    #inquiryForm div.security input {
      line-height: 18px;
      height: 18px;
      margin-right: 6px;
    }
    header .gnb ul li button:hover {
        color: #BA9B61;
    }
    .hero-text {
        width: 75%;
    }
    .hero-text h1 {
        font-size: 6vw;
    }
    .hero-text p.txt1 {
      font-size: 60px;
    }
    .hero-text p.txt2 {
      font-size: 46px;
    }
    .hero-text p.txt3 {
      font-size: 46px;
      line-height: 56px;
    }
    h2 {
        font-size: 36px;
        padding-bottom: 50px;
    }
    .contents {
        padding: 0 0 120px 0;
    }
    .contents.youtube {
        padding: 30px 0 150px 0;
    }
    .album {
        height: 1000px;
    }
    .popup-content {
        height: 526px;
        padding: 30px 20px;
    }
    .popup-content h2 {
        font-size: 1.5rem;
    }
    .inquiry-popup .popup-content,
    .inquiry-done-popup .popup-content {
        height: auto;
    }
    .inquiry-done-popup .popup-close-done {
      top: 23px;
    }
    .gallery-wrap {
      padding: 0 20px;
      gap: 30px;
    }
    .gallery-thumbs {
      grid-template-columns: repeat(4, 1fr); /* 4열 썸네일 */
    }
    .gallery-popup-inner {
      padding: 50px 20px;
    }
    .song-list li {
        font-size: 0.95rem;
        padding: 8px 0;
    }
    .song-list li a {
        padding-right: 30px;
    }
    .song-list li a::after {
        right: 0;
    }
    .contact-text-tel {
        font-size: 28px;
        margin-top: 20px;
    }
    .popup-close, .popup-close-inquiry {
        top: 0px;
        right: 5px;
        width: 20px;
        height: 20px;
        font-size:1.6em;
    }
    .video-wrap ul {
        flex-direction: column;
    }
    .video-wrap ul li {
        /*padding: 0 20px;*/
    }
    .video-wrap iframe {
        height: 200px;
    }
    .links {
        background-position: top 35px right -120px;
        background-size: 800px;
        min-height: 540px;
    }
    .links ul {
        margin: 0;
        flex-direction: column;
        padding-left: 30px;
    }
    .links ul li {
        width: 130px;
        height: 65px;
    }
    .links ul li a {
        background-size: 38px;
        font-weight: 400;
        font-size: 16px;
    }

    .counter-box {
        position: fixed;
        bottom: 0;
        right: 0;
        text-align: center;
        padding: 5px 15px 5px 40px;
        color: #fff;
        z-index: 2;
        display: inline-block;
        background-color: rgba(0, 0, 0, 0.8);
        border-radius: 10px 0 0 0;
        background-image: url(/resources/images/icon/icon_visitant.svg);
        background-position: left 15px center;
        background-repeat: no-repeat;
        background-size: 16px;
    }

    #visitCount {
        font-size: 16px;
        font-weight: 600;
    }

    .swiper-container-horizontal > .swiper-pagination-bullets .swiper-pagination-bullet {
      margin: 0 4px;
    }
    .swiper-pagination-bullet {
      width: 7px;
      height: 7px;
    }
    .swiper-pagination-bullet-active {
      width: 25px;
    }

    .guide.japan {
        bottom: -123px;
    }
}