/* Google Font Import */
@import url('https://fonts.googleapis.com/css2?family=Gowun+Dodum&display=swap');

/* 기본 스타일 초기화 및 설정 */
body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Gowun Dodum', sans-serif;
    background-color: #fdfaf6; /* 부드러운 배경색 */
    color: #333;
    line-height: 1.8; /* 줄 간격 */
    text-align: center;
}

/* 케이크 애니메이션 및 랜딩 스타일 */
.landing-content {
    animation: floating 3s ease-in-out infinite;
}

@keyframes floating {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

.invitation-card {
    max-width: 600px; /* PC에서 너무 커지지 않게 */
    margin: 20px auto;
    padding: 30px;
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    overflow: hidden; /* AOS 애니메이션이 깔끔하게 보이도록 */
    transition: opacity 1s ease-in-out;
}

.invitation-card.show {
    opacity: 1 !important;
}

/* 헤더 섹션 */
h1 {
    font-size: 2.2rem;
    font-weight: bold;
    color: #5a4a42; /* 따뜻한 갈색톤 */
    margin-bottom: 0.5rem;
}

.subtitle {
    font-size: 1rem;
    color: #a08c84;
    margin-top: 0;
    letter-spacing: 1px;
}

.main-photo {
    width: 100%;
    border-radius: 10px;
    margin: 20px 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.intro-text {
    font-size: 1.1rem;
    color: #444;
}

/* 구분선 */
.divider {
    border: 0;
    height: 1px;
    background: #eee;
    margin: 40px 0;
}

/* 정보 섹션 */
.info-section h2 {
    font-size: 1.5rem;
    color: #5a4a42;
    margin-bottom: 20px;
}

.info-item {
    margin-bottom: 15px;
    text-align: left;
    padding-left: 20%;
}

.info-item strong {
    font-size: 1.1rem;
    color: #333;
    display: inline-block;
    width: 100px; /* 레이블 정렬 */
}

.info-item .icon {
    margin-right: 10px;
}

.info-item p {
    margin: 5px 0 0 0;
    font-size: 1rem;
    color: #555;
    display: inline-block;
}

/* 지도 버튼 - 파스텔 러블리 스타일 */
.map-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    margin-top: 16px;
    background: linear-gradient(180deg, #fff7f9 0%, #ffeef3 100%);
    color: #5a4a42;
    text-decoration: none;
    border-radius: 999px; /* 캡슐 형태 */
    font-weight: 600;
    border: 1px solid #f3d9e2; /* 은은한 파스텔 보더 */
    box-shadow: 0 6px 16px rgba(244, 182, 200, 0.25), inset 0 1px 0 rgba(255,255,255,0.9);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    position: relative;
    overflow: hidden; /* 글리머가 삐져나오지 않도록 */
}

.map-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(244, 182, 200, 0.35), inset 0 1px 0 rgba(255,255,255,1);
}

.map-button:active {
    transform: translateY(0);
    box-shadow: 0 4px 10px rgba(244, 182, 200, 0.25) inset;
}

/* 아이콘(이모지/로고) 여백 정리 */
.map-button .ico {
    font-size: 1.1em;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* 갤러리 섹션 */
.gallery-section h2 {
    font-size: 1.5rem;
    color: #5a4a42;
    margin-bottom: 20px;
}

.gallery-swiper {
    width: 100%;
    padding: 20px 0 60px; /* 위쪽 여백 추가 및 아래쪽 충분한 공간 확보 */
}

/* Swiper 스크롤바 커스텀 */
.gallery-swiper .swiper-scrollbar {
    background: rgba(90, 74, 66, 0.1); /* 연한 갈색 배경 */
    height: 6px; /* 두께 약간 증가 */
    bottom: 25px; /* 위치를 좀 더 위로 조정 */
    width: 60%; /* 너비를 줄여서 더 세련되게 */
    left: 20%; /* 가운데 정렬 유지 */
    border-radius: 10px;
}

.gallery-swiper .swiper-scrollbar-drag {
    background: #f4b6c8; /* 파스텔 핑크 */
    border-radius: 10px;
}

.gallery-swiper .swiper-slide {
    width: 200px; /* 슬라이드 기본 너비 */
    height: 250px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.gallery-swiper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-swiper a:hover img {
    transform: scale(1.05);
}

/* 모바일 대응 */
@media (max-width: 480px) {
    .gallery-swiper .swiper-slide {
        width: 160px;
        height: 200px;
    }
}

/* 맺음말 */
.footer-section p {
    font-size: 1rem;
    color: #666;
}

.parents-name {
    margin-top: 30px;
    font-size: 1.1rem;
    font-weight: bold;
    color: #333;
}

/* 반응형: 모바일 화면 (480px 이하) */
@media (max-width: 480px) {
    .invitation-card {
        margin: 0;
        padding: 20px;
        border-radius: 0;
        box-shadow: none;
    }

    h1 {
        font-size: 1.8rem;
    }

    .info-item {
        padding-left: 0; /* 모바일에선 정렬 제거 */
        text-align: center;
    }

    .info-item strong {
        display: block; /* 세로로 배치 */
        width: auto;
        margin-bottom: 5px;
    }

    .info-item p {
        display: block;
    }

}

/* ... (기존 CSS 코드) ... */

/* [추가] 지도 컨테이너 스타일 */
.map-container {
    margin-top: 30px; /* 위쪽 여백 */
    border-radius: 10px; /* 모서리 둥글게 */
    overflow: hidden; /* 모서리 둥글게 적용 */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.map-container iframe {
    /* * iframe의 width/height 속성 대신
     * CSS로 너비를 100%로 강제해서 반응형으로 만듭니다.
     */
    width: 100%;
    vertical-align: middle; /* 하단 미세 여백 제거 */
}

/* ... (기존 CSS 코드) ... */

/* [추가] 경로 안내 버튼 컨테이너 */
.button-container {
    display: flex; /* 버튼을 가로로 나란히 배치 */
    justify-content: center; /* 가운데 정렬 */
    gap: 15px; /* 버튼 사이 간격 */
    margin-top: 25px;
    flex-wrap: wrap; /* 줄바꿈 허용 */
}

/* 브랜드는 색 대신 이모지/로고로만 강조: 버튼 바탕은 동일 파스텔 유지 */
.map-button.google .ico {
    /* 구글 G 느낌의 원형 배경 도트 */
    width: 20px; height: 20px; display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: conic-gradient(#4285F4 0 25%, #34A853 0 50%, #FBBC05 0 75%, #EA4335 0);
}

.map-button.kakao .ico {
    padding: 2px 6px;
    border-radius: 10px;
    background: #FEE500;
    color: #191919;
    font-weight: 700;
}

/* 모바일에서는 버튼을 세로로 쌓기 */
@media (max-width: 480px) {
    .button-container {
        flex-direction: column; /* 세로 배치 */
        gap: 10px;
    }
}

/* 글리머 하이라이트 효과 (호버 시) */
.map-button::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -30%;
    width: 40%;
    height: 200%;
    background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.7) 50%, rgba(255,255,255,0) 100%);
    transform: rotate(20deg) translateX(-120%);
    transition: transform 0.5s ease;
}

.map-button:hover::before {
    transform: rotate(20deg) translateX(320%);
}

/* 벚꽃 토글 버튼 활성화 상태 */
#sakuraBtn.off {
    filter: grayscale(100%);
    opacity: 0.6;
}

/* Lightbox2 테두리 제거 */
.lb-outerContainer {
    background-color: transparent !important;
    border: none !important;
    padding: 0 !important;
}

.lb-dataContainer {
    background-color: transparent !important;
    padding-top: 10px !important;
}

.lightbox .lb-image {
    border: none !important;
    border-radius: 8px !important;
}

.lb-data .lb-caption, .lb-data .lb-number {
    color: #fff !important;
}

/* BGM Sound Wave Animation */
.sound-wave {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    width: 24px;
    height: 24px;
}

.sound-wave span {
    display: block;
    width: 3px;
    height: 100%;
    background-color: currentColor;
    border-radius: 3px;
    animation: wave 1s ease-in-out infinite;
}

.sound-wave span:nth-child(1) { height: 40%; animation-delay: 0.1s; }
.sound-wave span:nth-child(2) { height: 100%; animation-delay: 0.3s; }
.sound-wave span:nth-child(3) { height: 60%; animation-delay: 0.2s; }
.sound-wave span:nth-child(4) { height: 80%; animation-delay: 0.4s; }

@keyframes wave {
    0%, 100% { transform: scaleY(0.4); }
    50% { transform: scaleY(1); }
}