﻿/*!
 \file site.css
 \brief 네비게이션/타이포 기본 리셋 및 메뉴 스타일.
 \details 불릿/마진 제거, 링크 색 통일, 액티브 강조, 모바일 토글.
*/

/* ===== 공통 글꼴/배경 ===== */
:root {
    font-family: 'Noto Serif KR', serif, system-ui;
    color: #333;
    background: #fdfcf9;
}

/* ===== 네비게이션 ===== */
.vs-header {
    position: sticky; /* 스크롤 상단에 닿으면 고정 */
    top: 0;
    z-index: 1000;
    background: rgba(255,255,255,.92);
    backdrop-filter: saturate(180%) blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid #eee;
}
.vs-nav {
    display: flex;
    flex-wrap: wrap; /* 줄바꿈 허용 */
    gap: 1rem; /* 메뉴 간격 */
    padding: 0.5rem 1rem;
    background: #fff;
    border-bottom: 1px solid #eee;
}

    .vs-nav a {
        flex: 1 1 auto;
        min-width: fit-content; /* 글자 잘림 방지 */
        text-decoration: none;
        color: #333;
        font-size: 1rem;
        white-space: nowrap; /* 글자가 여러줄로 안꺾이게 */
    }

.vs-brand {
    font-weight: bold;
}

/* 리스트 초기화(불릿/여백 제거) */
.vs-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: .25rem;
}

    .vs-nav-list li {
        margin: 0;
    }

/* 링크 초기화(파란색/밑줄 제거) */
.vs-nav-link {
    display: inline-block;
    text-decoration: none;
    color: #333;
    padding: .6rem 1rem;
    border-radius: .6rem;
    font-size: 1.05rem;
}

    .vs-nav-link:hover {
        background: #f8e9ef;
        color: #8e2f52;
    }

    /* Blazor NavLink 활성 표시(.active 자동 부여) */
    .vs-nav-link.active {
        font-weight: 800;
        color: #b33c6a !important;
        background: #fde7f0;
        outline: 2px solid #f7c7d9;
    }

/* 햄버거(모바일 전용) */
.vs-nav-toggle {
    display: none; /* 데스크톱에서 숨김 */
    width: 44px;
    height: 36px;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: .5rem;
    padding: 0 .25rem;
    align-items: center;
    justify-content: center;
}

.vs-bar {
    display: block;
    width: 24px;
    height: 2px;
    background: #333;
    margin: 4px auto;
}

.anchor-target {
    scroll-margin-top: 80px;
}
/* ===== 섹션(그대로 유지 가능) ===== */
.hero {
    position: relative;
    isolation: isolate;
    min-height: 82vh; /* 필요시 90~100vh로 조정 가능 */
    overflow: hidden;
    padding: 0 1rem; /* 좌우 여백만 두고 상하 여백은 패널에서 조정 */
    background: transparent;
    scroll-margin-top: 80px;
}

/* 배경/오버레이 */
.hero {
    position: relative; /* ✅ 절대배치 기준 */
    isolation: isolate;
    min-height: 82vh; /* 필요시 90~100vh로 조정 */
    overflow: hidden;
    padding: 0 1rem;
    background: transparent;
    scroll-margin-top: 80px;
}

/* 배경/오버레이 */
.hero__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform: scale(1.03);
    z-index: 0;
    pointer-events: none;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,.40) 0%, rgba(0,0,0,.22) 45%, rgba(0,0,0,.32) 100%);
    z-index: 1;
    pointer-events: none;
}

/* 텍스트 래퍼: 절대배치 기준이 되지 않도록 static */
.hero__content {
    position: static; /* ✅ 중요: relative 해제하여 기준을 .hero로 */
    color: #fff;
    text-align: center;
    text-shadow: 0 2px 6px rgba(0,0,0,.45);
    height: auto; /* 높이 의존 제거 */
    z-index: auto; /* 각 패널에서 z-index 설정 */
}

/* 글래스 패널 공통(가독성) */
.hero__panel {
    display: inline-block;
    padding: .75rem 1.1rem;
    border-radius: 14px;
    background: rgba(0,0,0,.28);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    box-shadow: 0 8px 28px rgba(0,0,0,.25);
}

/* ✅ 상단/하단 패널: .hero 기준으로 정확히 고정 */
.hero__top {
    position: absolute;
    top: 1.2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.hero__bottom {
    position: absolute;
    bottom: 1.2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2; /* ✅ 오버레이(1) 위에 오도록 */
}

/* 타이틀/텍스트 크기 */
.hero__title {
    font-size: clamp(2rem,5vw,3rem);
    margin: 0 0 .2rem;
    font-weight: 800;
    letter-spacing: .01em;
}

.hero__names {
    font-size: clamp(1.15rem,3.2vw,1.6rem);
    font-weight: 700;
}

.hero__datetime, .hero__place {
    margin: .15rem 0;
    font-size: clamp(.95rem,2.4vw,1.1rem);
}

/* CTA */
.btn.btn--primary {
    display: inline-block;
    padding: .6rem 1.05rem;
    margin-top: .6rem;
    border-radius: 12px;
    background: #b33c6a;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    box-shadow: 0 4px 14px rgba(0,0,0,.18);
    transition: transform .08s ease,box-shadow .12s ease,background .12s ease;
}

    .btn.btn--primary:hover {
        background: #a23460;
        box-shadow: 0 6px 18px rgba(0,0,0,.22);
        transform: translateY(-1px);
    }

    .btn.btn--primary:active {
        transform: translateY(0);
    }



.subtitle {
    font-size: 1.1rem;
    color: #777;
    margin-bottom: 1rem;
}

.date, .place {
    font-size: 1rem;
    color: #555;
}

.story {
    max-width: 760px;
    margin: 2.2rem auto;
    text-align: center;
    line-height: 1.7;
    padding: 0 1rem;
}

.bgm-btn {
    margin-left: auto;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    padding: 0.5rem;
    color: #444;
}

    .bgm-btn:hover {
        color: #000;
    }

.hero__share {
    margin-top: 1.5rem;
    text-align: center;
}

    .hero__share h3 {
        margin-bottom: 0.5rem;
        font-weight: 600;
        color: #444;
    }

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.btn--kakao, .btn--kakaoStory {
    background: #3b2b2b;
    color: #fff;
    border: none;
    border-radius: 20px;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    cursor: pointer;
}

.thankyou {
    font-style: italic;
    color: #666;
}
/*!
 \file site.css (연락처 전용)
 \brief 연락처 카드/그리드/버튼 스타일(모바일 우선).
*/
/* 제목/소제목 */
.contact-title {
    font-size: clamp(1.4rem, 3.4vw, 1.8rem);
    text-align: center;
    margin: 1.2rem 0 .2rem;
    color: #222;
}

.contact-subtitle {
    font-size: clamp(1.1rem, 2.6vw, 1.3rem);
    text-align: center;
    margin: .6rem 0 .4rem;
    color: #444;
}

/* 섹션 여백 */
.contact-section {
    margin: .6rem 0 1.2rem;
}

/* 카드 그리드 */
.contact-grid {
    display: grid;
    grid-template-columns: repeat( auto-fit, minmax(260px, 1fr) );
    gap: .9rem;
}

/* 카드 */
.contact-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 16px;
    padding: .9rem .95rem;
    box-shadow: 0 4px 14px rgba(0,0,0,.06);
}

.contact-card__hd {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: .25rem;
}

.contact-card__name {
    font-weight: 800;
    font-size: 1.05rem;
    color: #222;
}

.contact-card__rel {
    font-size: .92rem;
    color: #777;
}

.contact-card__phone {
    font-weight: 600;
    color: #333;
    margin: .2rem 0 .1rem;
}

.contact-card__bank {
    font-size: .92rem;
    color: #555;
    word-break: keep-all;
    overflow-wrap: anywhere;
}

/* 액션 버튼 */
.contact-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
    margin-top: .5rem;
}

.btn {
    display: inline-block;
    padding: .55rem .9rem;
    border-radius: 12px;
    border: 1px solid #ddd;
    text-decoration: none;
    cursor: pointer;
    font-weight: 700;
    font-size: .95rem;
    color: #333;
    background: #fafafa;
}

    .btn:focus {
        outline: 2px solid #b33c6a33;
    }

.btn--call {
    background: #e8f7ef;
    border-color: #b8e6cf;
    color: #23684a;
}

.btn--sms {
    background: #e8efff;
    border-color: #cad6ff;
    color: #274799;
}

.btn--copy {
    background: #f7f7f7;
    border-color: #e2e2e2;
    color: #333;
}

.btn:hover {
    filter: brightness(.98);
}

/*!
 \file site.css (gallery)
 \brief 사진첩 그리드/라이트박스 스타일.
*/

/* 간단 스타일 (원하시면 기존 CSS에 통합) */
.gallery-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    scroll-margin-top: 80px;
}

.gallery-controls {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-weight: 400;
}

.ctrl {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
}

    .ctrl input[type=number] {
        width: 5rem;
        padding: .3rem .4rem;
    }

    .ctrl.btn {
        padding: .35rem .7rem;
        border: 1px solid #ddd;
        border-radius: .5rem;
        background: #fff;
        cursor: pointer;
    }

        .ctrl.btn:hover {
            background: #f6f6f6;
        }

.playing-indicator {
    margin-left: .5rem;
    opacity: .8;
    font-size: .9rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill,minmax(120px,1fr));
    gap: .5rem;
}

.gallery-item {
    display: block;
    border: 0;
    padding: 0;
    background: none;
    cursor: pointer;
}

    .gallery-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: .5rem;
    }

.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.75);
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox__inner {
    position: relative;
    max-width: min(92vw,1200px);
    max-height: 92vh;
}

.lightbox__img {
    max-width: 100%;
    max-height: 80vh;
    display: block;
    margin: auto;
    border-radius: .5rem;
}

.lightbox__caption {
    color: #fff;
    text-align: center;
    margin-top: .5rem;
}

.lb-btn {
    position: absolute;
    top: .5rem;
    background: rgba(255,255,255,.85);
    border: 0;
    border-radius: .5rem;
    padding: .35rem .6rem;
    cursor: pointer;
}

.lb-btn--close {
    right: .5rem;
}

.lb-btn--prev {
    left: .5rem;
    top: 50%;
    transform: translateY(-50%);
}

.lb-btn--next {
    right: .5rem;
    top: 50%;
    transform: translateY(-50%);
}

.gallery-empty {
    text-align: center;
    color: #777;
}

/* 그리드 */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: .6rem;
}

.gallery-item {
    display: block;
    padding: 0;
    margin: 0;
    border: 0;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,.08);
    cursor: zoom-in;
}

    .gallery-item img {
        display: block;
        width: 100%;
        height: 100%;
        aspect-ratio: 1 / 1; /* 정사각 썸네일 */
        object-fit: cover;
        transition: transform .15s ease;
    }

    .gallery-item:hover img {
        transform: scale(1.03);
    }

/* 라이트박스 */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 1500;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,.75);
    outline: none;
}

.lightbox__inner {
    position: relative;
    max-width: min(92vw, 1200px);
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .5rem;
}

.lightbox__img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,.35);
}

.lightbox__caption {
    color: #eee;
    font-size: .95rem;
    text-align: center;
}

/* 컨트롤 버튼 */
.lb-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 0;
    cursor: pointer;
    color: #fff;
    background: rgba(0,0,0,.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    line-height: 1;
    backdrop-filter: blur(4px);
}

    .lb-btn:hover {
        background: rgba(0,0,0,.55);
    }

.lb-btn--prev {
    left: -54px;
}

.lb-btn--next {
    right: -54px;
}

.lb-btn--close {
    top: -54px;
    right: 0;
    transform: none;
    width: 40px;
    height: 40px;
    font-size: 20px;
}

/* ==*/
/* === Guestbook === */
.guestbook-form {
    margin: 1rem 0;
}

    .guestbook-form input,
    .guestbook-form textarea {
        display: block;
        width: 100%;
        padding: .6rem .7rem;
        margin-bottom: .5rem;
        border: 1px solid #ddd;
        border-radius: .4rem;
    }

    .guestbook-form .actions {
        display: flex;
        gap: .5rem;
    }

    .guestbook-form button {
        border: none;
        padding: .5rem 1rem;
        border-radius: .4rem;
        cursor: pointer;
    }

.guestbook-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .guestbook-list li {
        padding: .6rem 0;
        border-bottom: 1px solid #eee;
    }

    .guestbook-list .row1 {
        display: flex;
        justify-content: space-between;
        font-size: .95rem;
    }

    .guestbook-list .rowContact {
        color: #666;
        font-size: .9rem;
        margin-top: .2rem;
    }

    .guestbook-list .row2 {
        white-space: pre-wrap;
        margin-top: .25rem;
    }

    .guestbook-list .date {
        color: #888;
        font-size: .85rem;
    }




/* ===== 모바일 ===== */
@media (max-width: 768px) {

    .gallery-title {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: .5rem;
        scroll-margin-top: 100px;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: .5rem;
    }

    .lb-btn--prev {
        left: 8px;
    }

    .lb-btn--next {
        right: 8px;
    }

    .lb-btn--close {
        top: 8px;
        right: 8px;
    }

    .lightbox__inner {
        max-width: 96vw;
        max-height: 90vh;
    }

    .lightbox__img {
        max-height: 76vh;
    }

    .vs-header {
        position: sticky; /* 스크롤 상단에 닿으면 고정 */
        top: 0;
        z-index: 1000;
        background: rgba(255,255,255,.92);
        backdrop-filter: saturate(180%) blur(8px);
        -webkit-backdrop-filter: blur(8px);
        border-bottom: 1px solid #eee;
    }

    .anchor-target {
        scroll-margin-top: 100px;
    }

    /* 컨테이너 높이/패딩 조정 */
    .hero {
        min-height: 86vh;
        padding-left: .75rem;
        padding-right: .75rem;
        scroll-margin-top: 100px;
    }

    /* 상단/하단 고정 위치: 안전영역 반영 */
    .hero__top {
        top: calc(env(safe-area-inset-top, 0px) + .9rem);
    }

    .hero__bottom {
        bottom: calc(env(safe-area-inset-bottom, 0px) + .9rem);
    }

    /* 글래스 패널: 폭 넓게, 패딩/라운드 축소, 배경 농도 약간 업(가독성↑) */
    .hero__panel {
        width: min(92vw, 560px);
        padding: .6rem .9rem;
        border-radius: 12px;
        background: rgba(0,0,0,.34);
        backdrop-filter: blur(7px);
        -webkit-backdrop-filter: blur(7px);
    }

    /* 타이틀/이름 크기 살짝 다운 */
    .hero__title {
        font-size: clamp(1.7rem, 7vw, 2.2rem);
        margin-bottom: .2rem;
    }

    .hero__names {
        font-size: clamp(1.0rem, 4.5vw, 1.3rem);
    }

    /* 날짜/장소: 줄간격/크기 보정 + 줄바꿈 품질 강화 */
    .hero__datetime, .hero__place {
        font-size: clamp(.9rem, 4.2vw, 1.05rem);
        line-height: 1.45;
    }

    .hero__place {
        word-break: keep-all; /* 한글 단어 단위 유지 */
        overflow-wrap: anywhere; /* 길게 붙은 토큰(지번/번호)도 강제 줄바꿈 허용 */
    }

    /* CTA 버튼: 크기/라운드 조정 */
    .btn.btn--primary {
        padding: .6rem 1rem;
        font-size: .95rem;
        border-radius: 9999px;
        margin-left: auto;
        margin-right: auto;
    }

    .vs-nav-toggle {
        display: flex;
    }
    /* 모바일에서만 보이기 */
    .vs-nav-list {
        display: none;
        position: absolute;
        left: 0;
        right: 0;
        top: 60px;
        background: #fff;
        border-bottom: 1px solid #eee;
        flex-direction: column;
        gap: .25rem;
        padding: .5rem 1rem;
    }

        .vs-nav-list.open {
            display: flex;
        }

    .vs-nav-link {
        padding: .9rem 1rem;
        font-size: 1.12rem;
    }

    .hero {
        padding: 3rem 1rem;
        scroll-margin-top: 100px;
    }

        .hero h1 {
            font-size: 1.9rem;
        }
}

/* ===== 지도/버튼 레이아웃 ===== */
.details {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0
}

/*! \brief 맵 버튼 묶음과 토글/지도 사이 간격 */
.map-links {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    justify-content: center;
    margin: 1rem 0 1.25rem
}

.map-toggle {
    text-align: center;
    margin: 0 0 .75rem
}

.map-view {
    margin-top: .75rem
}

/*! \brief 맵 버튼 표준화(아이콘 크기/세로정렬 안정화) */
.map-btn {
    --icon: 24px;
    --btn-h: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    height: var(--btn-h);
    padding: 0 .9rem;
    border-radius: 12px;
    background: #f7f7f7;
    text-decoration: none;
    color: #333;
    font-size: .95rem;
    line-height: 1;
    box-shadow: 0 2px 4px rgba(0,0,0,.08);
    transition: background .15s ease;
}

    .map-btn:hover {
        background: #ececec
    }

    .map-btn img {
        width: var(--icon);
        height: var(--icon);
        display: block;
        object-fit: contain
    }

    /*! \brief 서비스별 미세 보정(필요 시) */
    .map-btn.kakao img {
        transform: scale(1.05)
    }

    .map-btn.naver img {
        transform: scale(1.00)
    }

    .map-btn.tmap img {
        transform: scale(0.92)
    }

    .map-btn.atlan img {
        transform: scale(1.00)
    }

/*! \brief 탭 버튼 스타일 */
.map-toggle button {
    padding: .5rem 1.2rem;
    margin: 0 .5rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    background: #fff;
    cursor: pointer
}

    .map-toggle button.active {
        background: #333;
        color: #fff;
        border-color: #333
    }

/*! \brief 모바일 2열 배치 */
@media (max-width:480px) {
    .map-btn {
        flex: 1 1 calc(50% - .75rem)
    }
}