@charset "utf-8";

/* ==========================================================================
   1. FONTS & ROOT VARIABLES
   ========================================================================== */
/* Web Fonts */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500&family=Gowun+Dodum&display=swap');

/* Crimson Pro */
@font-face {
  font-family: 'Crimson Pro';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('https://fonts.gstatic.com/s/crimsonpro/v28/q5uUsoa5M_tv7IihmnkabC5XiXCAlXGks1WZzm1MMJs-ZNU.woff2') format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

/* MrSheffieldPro-Regular */
@font-face {
  font-family: 'MrSheffieldPro-Regular';
  src: url('../font/MrSheffieldPro-Regular/MrSheffieldPro-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Colors - 웜톤 테마 */
  --primary-bg-color: #fcfbf9;
  --secondary-bg-color: #f9f6f0;
  --btm-bg-color: #fbf4f4;
  --third-bg-color: rgba(184, 144, 71, 0.08);
  --footer-bg-color: rgba(184, 144, 71, 0.08);
  --margin-bg-color: #fcfbf9; 
  
  --text-color: #333333;
  --text-dark-color: #222222;
  --text-light-color: #666666;
  --title-text-color: #c07989;
  --subtitle-text-color: #c07989;
  
  --border-color: #e8dfd1;
  --border-light-color: #f0e9df;

  /* Typography & Spacing */
  --font-size: 17px;
  --common-margin-lr: 2rem;
  
  --font-regular: 'Gowun Dodum', serif;
  --font-regular-spacing: -0.2px;
  --font-gothic: 'Pretendard', sans-serif;
  --font-gothic-spacing: -0.2px;
}

/* PC 화면 배경 처리 */
@media (min-width: 431px) {
  :root {
    --margin-bg-color: #ffffff;
  }
}

/* ==========================================================================
   2. RESET & BASE
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
}

html, body, #app {
  height: 100%;
}

html {
  font-size: calc(var(--font-size) * 430 / 390);
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--margin-bg-color) !important;
}

body.modal-open {
  overflow: hidden;
}

#app {
  font-family: var(--font-gothic), sans-serif;
  -webkit-font-smoothing: antialiased;
  text-align: center;
}

button {
  font-family: inherit;
}

.gothic {
  font-family: var(--font-gothic), sans-serif;
  letter-spacing: var(--font-gothic-spacing);
}

.inner {
  opacity: 0;
  animation: fadeIn 0.5s ease-in-out forwards;
}

@keyframes fadeIn {
  to { opacity: 1; }
}

/* ==========================================================================
   3. CONTAINER & COMMON HEADINGS
   ========================================================================== */
.mcard-view {
  position: relative;
  width: 100% !important;
  min-width: 320px;
  max-width: 430px !important;
  margin: 0 auto !important;
  padding: 0;
  color: var(--text-color);
  background: var(--primary-bg-color);
  line-height: 2rem;
  font-family: var(--font-regular), serif;
  letter-spacing: var(--font-regular-spacing);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.m-title {
  color: var(--title-text-color);
  margin-bottom: 20px;
}

.m-subtitle {
  font-size: 0.75rem;
  color: var(--subtitle-text-color);
  font-family: 'Cinzel', serif;
  letter-spacing: 3px;
  line-height: 20px;
}

/* 전화 상담하기 버튼 및 애니메이션 */
@keyframes blink-slow {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.contact-box { 
  margin: 15px auto 0; 
  max-width: 160px; 
  color: var(--title-text-color); 
  border: 1px solid var(--title-text-color); 
  border-radius: 32px; 
  font-size: 0.9rem; 
  cursor: pointer; 
  padding: 1px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  animation: blink-slow 1.5s infinite ease-in-out;
}

/* ==========================================================================
   4. AUDIO PLAYER (BGM)
   ========================================================================== */
/* 기본 (모바일 화면) */
.audio-player {
    position: fixed;
    top: 15px;
    right: 15px;
    z-index: 9999;
}

/* PC 및 넓은 화면 (카드가 중앙에 정렬되는 해상도) */
@media (min-width: 432px) {
    .audio-player {
        right: auto;
        left: 49%;
        transform: translateX(180px); /* 카드 상단 우측 위치에 맞게 조절 */
    }
}

/* ==========================================================================
   5. SECTIONS
   ========================================================================== */
/* 5-1. Intro Section */
.mcard-intro { position: relative; margin-bottom: 40px; color: var(--text-color); }
.mcard-intro .title-wrap { display: flex; flex-direction: column; padding: 20px 0 30px; }
.mcard-intro .title-wrap .subtitle {
  font-family: 'Cinzel', serif;
  letter-spacing: 2px;
  font-size: 13px;
  line-height: 28px;
  color: var(--title-text-color);
}
.mcard-intro .title-wrap .title div:nth-child(2) { color: var(--title-text-color); font-size: 1.02rem; font-family: var(--font-gothic); margin: 1px 0; }
.mcard-intro .photo-wrap.arch { width: 100%; overflow: hidden; line-height: 0; }
.mcard-intro .photo img { width: 100%; height: auto; display: block; object-fit: cover; }
.mcard-intro .bottom-wrap { display: flex; flex-direction: column; gap: 8px; padding-top: 30px; }
.mcard-intro .eng-name {
  font-family: 'MrSheffieldPro-Regular', cursive !important;
  font-size: 1.8rem !important;
  color: #b82525;
  line-height: 2.2rem;
  letter-spacing: 1.5px;
}
.mcard-intro .date-place { font-size: 0.95rem; line-height: 1.6rem; color: var(--text-light-color); }

/* 5-2. Greetings Section */
.greetings-wrap .text { display: inline-block; margin: 16px 1rem 1.2rem; font-size: 0.95rem; line-height: 1.8; color: var(--text-dark-color); }
.greetings-wrap .image img { display: block; width: 100%; margin: 50px 0 0; border-radius: 6px; }
.members-wrap { padding: 0.52rem 0; color: var(--title-text-color); }
.members-wrap b { font-size: 1.0rem; font-family: var(--font-gothic); font-weight: 400; }

/* 5-3. Schedule / Information Section */
.schedule-wrap { padding: 3rem 0 0 0; text-align: center; background: var(--secondary-bg-color); }
.schedule-box { background: #fbf4f4; padding: 2rem 1.5rem; border-radius: 16px; box-shadow: 0 4px 20px rgba(0,0,0,0.03); margin-top: 1.5rem; }
.schedule-box .sch-item { margin-bottom: 1.8rem; }
.schedule-box .sch-item:last-child { margin-bottom: 0; }
.schedule-box .sch-title { font-weight: 600; font-family: var(--font-gothic); color: var(--title-text-color); font-size: 0.9rem; }
.schedule-box .sch-desc { color: var(--text-light-color); font-size: 0.9rem; line-height: 1.9; }

/* 5-4. Gallery Section & Accordion Animation */
.gallery-wrap { padding: 50px 0 0; }

.gallery-accordion {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  /* 기본적으로 6개(2줄) 분량 높이만 보이도록 설정 */
  max-height: 520px; 
  overflow: hidden;
  transition: max-height 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 더보기 버튼 클릭 시 부드럽게 전체 높이로 확장 */
.gallery-accordion.expanded {
  max-height: 2500px; /* 전체 사진이 다 들어갈 만큼 여유있게 설정 */
}

.gallery-grid.grid3 { 
  display: grid !important; 
  grid-template-columns: repeat(3, 1fr) !important; 
  grid-auto-flow: dense !important; 
  margin: 0; 
  gap: 8px; /* 사진 간격 깔끔하게 추가 */
}

.gallery-grid .item { 
  background-color: #eee; 
  background-position: center; 
  background-size: cover; 
  border: 2px solid var(--primary-bg-color); 
  border-radius: 8px; 
  cursor: pointer; 
}

.grid-item.portrait { grid-column: span 1; grid-row: span 2; }
.grid-item.portrait .item { aspect-ratio: 16 / 20; width: 100%; height: 100%; }

.gallery-btn-wrap { margin-top: 20px; }
.btn-more-gallery { 
  display: inline-flex; 
  align-items: center; 
  justify-content: center; 
  width: 170px; 
  height: 46px; 
  background: var(--btm-bg-color); 
  border: 1px solid var(--border-color); 
  border-radius: 25px; 
  color: var(--title-text-color); 
  font-size: 15px; 
  cursor: pointer; 
}

.btn-more-gallery svg { 
  width: 16px; 
  height: 16px; 
  margin-right: 6px; 
  stroke: currentColor; 
  transition: transform 0.4s ease; /* 화살표 아이콘 회전 애니메이션 */
}

/* 5-5. Location & Map Section */
.map-wrap { padding: 40px 0; }
.location-hall { color: var(--text-dark-color); font-size: 1.1rem; font-weight: 600; font-family: var(--font-gothic); }
.location-address { font-size: 0.8rem; color: var(--text-light-color); margin-bottom: 20px; margin-top: 5px; }
#map { width: 100%; height: 270px; border-radius: 8px; background-color: #f0f0f0 !important; }

.c-map-navi { display: flex; align-items: center; justify-content: center; gap: 15px; padding: 15px 0; background: var(--third-bg-color); font-size: 0.85rem; border-radius: 8px; }
.c-map-navi .navi-item { display: inline-flex; align-items: center; gap: 6px; text-decoration: none !important; color: var(--text-color); font-weight: 500; }
.c-map-navi .navi-item img { width: 20px; height: 20px; }
.c-map-navi .divider { width: 1px; height: 12px; background-color: var(--border-color); }

.waytocome-wrap { padding: 0 var(--common-margin-lr); text-align: left; }
.waytocome-wrap .box { display: flex; padding: 18px 0; border-bottom: 1px solid var(--border-light-color); }
.waytocome-wrap .box:last-child { border: 0; padding-bottom: 0 !important; }
.waytocome-wrap .box .left { padding-right: 15px; }
.waytocome-wrap .box .right { flex: 1; }
.waytocome-wrap .box .icon-circle { background: var(--third-bg-color); width: 2.5rem; height: 2.5rem; display: flex; align-items: center; justify-content: center; border-radius: 50%; }
.waytocome-wrap .box svg { width: 1.3rem; height: 1.3rem; fill: var(--title-text-color); }
.waytocome-wrap .title { font-size: 0.85rem; color: var(--text-dark-color); font-weight: 600; font-family: var(--font-gothic); margin-bottom: 4px; }
.waytocome-wrap .content { font-size: 0.85rem; line-height: 1.6rem; color: var(--text-light-color); }

/* ==========================================================================
   6. MODALS
   ========================================================================== */
/* 6-1. Contact Modal */
.modal-overlay { 
  position: fixed; 
  top: 0; 
  left: 0; 
  width: 100%; 
  height: 100%; 
  background-color: rgba(0, 0, 0, 0.6); 
  display: flex; 
  justify-content: center; 
  align-items: center; 
  z-index: 10000; 
  opacity: 0; 
  visibility: hidden; 
  transition: all 0.3s ease; 
}
.modal-overlay.active { opacity: 1; visibility: visible; }

.contact-modal { 
  width: 85%; 
  max-width: 370px; 
  background: #fff; 
  border-radius: 12px; 
  overflow: hidden; 
  transform: scale(0.9); 
  transition: transform 0.3s ease; 
  font-family: var(--font-gothic); 
}
.modal-overlay.active .contact-modal { transform: scale(1); }

.modal-header {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 20px 0 16px !important;
  background-color: var(--secondary-bg-color);
  border-bottom: 1px solid var(--border-color);
}
.modal-header .sub-title {
  display: block !important;
  font-size: 0.75rem;
  color: var(--subtitle-text-color);
  letter-spacing: 2px;
  margin-bottom: 4px;
  font-family: 'Cinzel', serif;
  line-height: 1.2 !important;
}
.modal-header .main-title {
  display: block !important;
  font-size: 1.0rem;
  color: var(--title-text-color);
  font-weight: 600;
  line-height: 1.2 !important;
}

.modal-body { padding: 1.2rem 1.5rem; background: var(--primary-bg-color); }

.modal-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px dashed var(--border-light-color);
}
.modal-row:last-child { border-bottom: none; }
.modal-row .role {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--title-text-color);
  width: 75px;
  flex-shrink: 0;
  text-align: left;
}
.modal-row .name {
  flex: 1;
  font-size: 0.85rem;
  color: var(--text-dark-color);
  font-weight: 500;
  text-align: left;
  padding: 0 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.modal-row .actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.modal-row .actions a { 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  width: 30px; 
  height: 33px; 
  background: var(--third-bg-color); 
  border-radius: 50%; 
  transition: all 0.2s; 
}
.modal-row .actions svg { width: 15px; height: 15px; fill: var(--title-text-color); }

/* 6-2. Swiper Lightbox Modal */
.image-modal-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.92); z-index: 99999; align-items: center; justify-content: center; }
.image-modal-overlay.active { display: flex; }
.image-modal-content { position: relative; width: 100%; max-width: 430px; margin: auto; }
.gallery-swiper .swiper-slide img { width: 100% !important; height: auto !important; object-fit: contain; max-height: 80vh; }
.modal-controls button { position: absolute; background: transparent; border: none; cursor: pointer; z-index: 1050; padding: 15px; }
.modal-controls .btn-close { top: 15px; right: 15px; color: #fff; font-size: 28px; }
.modal-controls .btn-prev { top: 50%; left: 0; transform: translateY(-50%); color: #fff; font-size: 40px; }
.modal-controls .btn-next { top: 50%; right: 0; transform: translateY(-50%); color: #fff; font-size: 40px; }

/* ==========================================================================
   7. FOOTER
   ========================================================================== */
.footer-wrap { padding: 30px 0; background: var(--footer-bg-color); color: #434343; }
.kakao-wrap { display: flex; flex-direction: column; align-items: center; gap: 1px; margin-bottom: 20px; }
.btn-share { display: inline-flex; align-items: center; justify-content: center; background: transparent; border: none; color: #877a6f; font-size: 0.8rem; cursor: pointer; }
.btn-share svg { width: 18px; height: 18px; margin-right: 8px; fill: #877a6f; }
.copyright-wrap { margin-top: 12px; font-size: 0.5rem; color: rgba(0, 0, 0, 0.4); font-family: 'Crimson Pro', serif; letter-spacing: 0.6px; }
.copyright-wrap span { color: rgba(0, 0, 0, 0.7); }