/* CSS 변수 설정 */
:root {
    --img-blur: 0px;
    --text-color: #544f4f;
    --text-dark-color: #524548;
    --text-light-color: #89757a;
    --title-text-color: #89757a;
    --subtitle-text-color: #c2b2b2;
    --icon-color: #cec3c3;
    --border-size: 0;
    --border-color: #e8dfdf;
    --border-light-color: #e9e5e5;
    --wave-color: #fbfbfb;
    --primary-bg-color: #fbfbfb;
    --primary-bg-image: url("../images/bg_paper_00.png");
    --secondary-bg-color: #f6f5f5;
    --third-bg-color: #f2eeee;
    --fourth-bg-color: #fff;
    --footer-bg-color: #f2eeee;
    --margin-bg-color: #333;
    --btn-bg-color: rgba(0,0,0,0);
    --btn-text-color: #978686;
    --btn-border-color: #d1c8c8;
    --btn-dark-bg-color: #d0b9b9;
    --btn-dark-text-color: #fff;
    --btn-dark-border-color: #d0b9b9;
    --font-size: 16px;
    --common-margin-lr: 2rem;
    --account-margin-lr: 1.1rem;
    --calendar-margin-lr: 1rem;
    --font-regular: IropkeBatangM;
    --font-regular-spacing: 0;
    --font-gothic: Pretendard Variable;
    --font-gothic-spacing: -0.2px;
    --font-bold: IropkeBatangM;
    --font-bold-weight: bold;
}

/* 기본 스타일 */
html {
    font-size: calc(var(--font-size) * 430 / 390);
    height: 100%;
    overflow-x: hidden; /* 가로 스크롤 방지 */
    width: 100%;
    max-width: 100vw; /* 뷰포트 너비를 벗어나지 않도록 */
}

@media (max-width: 450px) {
    html { font-size: calc(var(--font-size) * 450 / 390); }
}
@media (max-width: 440px) {
    html { font-size: calc(var(--font-size) * 440 / 390); }
}
@media (max-width: 430px) {
    html { font-size: calc(var(--font-size) * 430 / 390); }
}
@media (max-width: 420px) {
    html { font-size: calc(var(--font-size) * 420 / 390); }
}
@media (max-width: 410px) {
    html { font-size: calc(var(--font-size) * 410 / 390); }
}
@media (max-width: 400px) {
    html { font-size: calc(var(--font-size) * 400 / 390); }
}
@media (max-width: 390px) {
    html { font-size: calc(var(--font-size) * 390 / 390); }
}
@media (max-width: 380px) {
    html { font-size: calc(var(--font-size) * 380 / 390); }
}
@media (max-width: 370px) {
    html { font-size: calc(var(--font-size) * 370 / 390); }
}
@media (max-width: 360px) {
    html { font-size: calc(var(--font-size) * 360 / 390); }
}

body {
    height: 100%;
    margin: 0;
    padding: 0;
    background: var(--margin-bg-color);
    font-family: var(--font-regular), 'Noto Serif KR', 'Apple SD Gothic Neo', -apple-system, BlinkMacSystemFont, serif;
    overflow-x: hidden; /* 가로 스크롤 방지 */
    width: 100%;
    max-width: 100vw; /* 뷰포트 너비를 벗어나지 않도록 */
    /* 확대 방지 */
    touch-action: pan-y !important;
    -webkit-touch-callout: none !important;
    -webkit-user-select: none !important;
    -khtml-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;
}

body.modal-open {
    overflow: hidden !important;
    position: fixed !important;
    width: 100% !important;
    height: 100% !important;
    top: 0 !important;
    left: 0 !important;
}

/* 모바일 가로 스크롤 방지를 위한 추가 스타일 */
* {
    box-sizing: border-box;
}

.container, #app, .main-container {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

/* 모든 섹션이 화면 너비를 벗어나지 않도록 */
.section, .wrap, .gallery-wrap, .map-wrap, .account-wrap, .guestbook-wrap {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

/* 모든 이미지와 미디어가 컨테이너를 벗어나지 않도록 */
img, video, iframe, embed, object {
    max-width: 100%;
    height: auto;
}

/* 테이블이 화면을 벗어나지 않도록 */
table {
    width: 100%;
    max-width: 100%;
    table-layout: fixed;
}

/* pre, code 등 고정 너비 요소들 */
pre, code {
    max-width: 100%;
    overflow-x: auto;
    word-wrap: break-word;
}

/* 모바일에서 패딩과 마진이 화면을 벗어나지 않도록 */
@media (max-width: 480px) {
    .main-container, .container {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    /* 모든 요소의 최대 너비 제한 */
    .m-title, .greetings-title, .location-wrap, .account-wrap .inner {
        max-width: calc(100vw - 20px);
        overflow-wrap: break-word;
    }
    
    /* 모바일에서 타이틀 중앙정렬 강제 적용 */
    .m-title, .greetings-title, .m-subtitle {
        text-align: center !important;
        width: 100%;
        margin-left: auto;
        margin-right: auto;
    }
    
    .greetings-wrap, .gallery-wrap, .map-wrap {
        text-align: center !important;
    }
    
    .greetings-wrap .m-title,
    .gallery-wrap .m-title,
    .map-wrap .m-title {
        text-align: center !important;
    }
    
    /* 개별 타이틀 요소들도 강제 중앙정렬 */
    .greetings-wrap .greetings-title,
    .gallery-wrap .greetings-title,
    .map-wrap .greetings-title {
        text-align: center !important;
        display: block;
        width: 100%;
    }
    
    /* 영문 서브타이틀도 강제 중앙정렬 */
    .greetings-wrap .m-subtitle,
    .gallery-wrap .m-subtitle,
    .map-wrap .m-subtitle {
        text-align: center !important;
        display: block;
        width: 100%;
    }
}

#app {
    font-family: var(--font-regular), 'Noto Serif KR', 'Apple SD Gothic Neo', -apple-system, BlinkMacSystemFont, Avenir, Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-align: center;
    height: 100%;
    /* 확대 방지 */
    touch-action: pan-y !important;
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;
}

h1, h2 {
    font-weight: 400;
}

ul {
    list-style-type: none;
    padding: 0;
}

li {
    display: inline-block;
    margin: 0 10px;
}

a {
    color: var(--text-color);
}

br {
    font-family: initial;
}

img {
    -webkit-touch-callout: none;
}

/* 메인 컨테이너 */
.mcard-view {
    position: relative;
    width: 100%;
    max-width: 430px;
    padding: 0;
    margin: auto;
    color: var(--text-color);
    background: var(--primary-bg-color);
    background-image: var(--primary-bg-image);
    -ms-overflow-style: none;
    line-height: 2rem;
    font-family: var(--font-regular), 'Noto Serif KR', 'Apple SD Gothic Neo', -apple-system, BlinkMacSystemFont, serif;
    letter-spacing: var(--font-regular-spacing);
    box-shadow: 0 0 0 1px rgba(0,0,0,.04);
}

.mcard-view::-webkit-scrollbar {
    display: none;
}

/* 제목 스타일 */
.m-title {
    color: var(--title-text-color);
    letter-spacing: .5px;
    font-size: 1.1rem;
    margin-bottom: 20px;
    text-align: center;
}

.greetings-title {
    text-align: center;
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--title-text-color);
}

.greetings-wrap {
    text-align: center;
}

.m-subtitle {
    font-size: .7rem;
    color: var(--subtitle-text-color);
    font-family: 'Crimson Pro', serif;
    text-align: center;
    letter-spacing: 3px;
    line-height: 20px;
}

/* 버튼 스타일 */
.btn {
    display: inline-block;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary {
    background-color: #007bff;
    color: white;
}

.btn-primary:hover {
    background-color: #0056b3;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
}

.btn-success {
    background-color: #28a745;
    color: white;
}

.btn-success:hover {
    background-color: #1e7e34;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

/* 기존 버튼 스타일 */
.m-button {
    display: inline-block;
    text-decoration: none;
    height: 2rem;
    line-height: 2rem;
    background: #fff;
    padding: 0 26px;
    background: var(--btn-bg-color);
    color: var(--btn-text-color);
    border: 1px solid var(--btn-border-color);
    border-radius: 32px;
    font-size: .86rem;
    font-weight: 400;
    cursor: pointer;
    letter-spacing: 0!important;
}

.m-button img, .m-button svg {
    margin: -1px 2px 0;
    height: .86rem;
    width: .86rem;
    vertical-align: middle;
}

.m-button.dark {
    border: 1px solid var(--btn-dark-border-color);
    background: var(--btn-dark-bg-color);
    color: var(--btn-dark-text-color);
}

.m-button.shadow {
    box-shadow: 1px 1px 2px rgb(0 0 0/5%);
}

/* 폰트 스타일 */
.gothic {
    font-family: var(--font-gothic), BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Helvetica Neue', Helvetica, Arial, 'Malgun Gothic', sans-serif;
    letter-spacing: var(--font-gothic-spacing);
}

.c-bold {
    font-family: var(--font-bold);
    font-weight: var(--font-bold-weight);
}

button {
    font-family: var(--font-gothic);
}

.img-blur {
    filter: blur(var(--img-blur));
    -webkit-filter: blur(var(--img-blur));
}

/* 페이드 인 애니메이션 */
.fade-in {
    transition: all 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-sizing: border-box;
    opacity: 1;
    transform: translate(0px, 0px);
}

/* 다양한 페이드 인 효과 */
.fade-in-up {
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    opacity: 1;
    transform: translateY(0);
}

.fade-in-left {
    transition: all 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    opacity: 1;
    transform: translateX(0);
}

.fade-in-right {
    transition: all 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    opacity: 1;
    transform: translateX(0);
}

.fade-in-scale {
    transition: all 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    opacity: 1;
    transform: scale(1);
}

/* 지연 효과 */
.fade-in-delay-1 {
    transition-delay: 0.2s;
}

.fade-in-delay-2 {
    transition-delay: 0.4s;
}

.fade-in-delay-3 {
    transition-delay: 0.6s;
}

/* 부드러운 스프링 효과 */
.fade-in-spring {
    transition: all 1.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* 오디오 플레이어 */
.audio-player {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 999;
}

.audio-player.poster {
    top: 2.2rem;
}

.audio-alert {
    font-size: 12px;
    line-height: 0;
}

.audio-alert div {
    display: inline-block;
    vertical-align: middle;
}

.audio-alert svg {
    width: 13px;
    height: 13px;
    fill: #777;
    cursor: pointer;
    transition: all 0.3s ease;
}

.audio-alert:hover svg {
    fill: #d28686;
}

.audio-alert.playing svg {
    fill: #d28686;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

/* 방명록 모달 */
.guestbook-modal-wrap {
    background: white;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    margin: 20px auto;
}

.guestbook-modal-inner {
    padding: 30px;
}

.guestbook-modal-inner .title {
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 30px;
    color: #333;
}

.guestbook-modal-inner .close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    cursor: pointer;
    color: #999;
    transition: color 0.3s;
}

.guestbook-modal-inner .close-btn:hover {
    color: #d28686;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #333;
}

.form-group .required {
    color: #e74c3c;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    box-sizing: border-box;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 12px;
}

.form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
}

.btn-cancel,
.btn-submit {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

.btn-cancel {
    background: #f8f9fa;
    color: #6c757d;
}

.btn-cancel:hover {
    background: #e9ecef;
}

.btn-submit {
    background: var(--btn-dark-bg-color);
    color: var(--btn-dark-text-color);
}

.btn-submit:hover {
    background: #c4a8a8;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #d28686;
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 30px;
}

.form-actions button {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-cancel {
    background: #f5f5f5;
    color: #666;
}

.btn-cancel:hover {
    background: #e0e0e0;
}

.btn-submit {
    background: #d28686;
    color: white;
}

.btn-submit:hover {
    background: #c07676;
}

/* 인트로 섹션 */
.mcard-intro {
    position: relative;
    padding: 0 0 40px;
    --intro-text-color: #49413a;
    --intro-text-light-color: #595959;
}

.mcard-intro .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1;
}

.mcard-intro .title {
    padding: 48px 0 30px;
    color: var(--intro-text-color);
    font-family: 'Crimson Pro', var(--font-regular);
    line-height: 21px;
    border-color: #000;
}

.mcard-intro .title .dates {
    font-size: 0;
}

.mcard-intro .title .dates > span {
    display: inline-block;
    padding: 0 8px .1rem;
    border-right-width: 1px;
    border-right-style: solid;
    font-size: 30px;
    line-height: 20px;
    text-align: center;
}

.mcard-intro .title .dates > span:last-child {
    border: 0;
}

.mcard-intro .wod {
    letter-spacing: 2px;
    font-size: 16px;
}

.mcard-intro .photo-wrap {
    padding: 0 24px;
}

.mcard-intro .photo {
    line-height: 0;
}

.mcard-intro .photo img {
    width: 100%;
}

.mcard-intro .photo.border_00 {
    border: 1.2rem solid #fff;
    margin: 0 .3rem;
    box-shadow: 1px 2px 8px 0 rgba(54,54,54,.15);
}

.mcard-intro .bottom {
    margin-top: 30px;
    font-size: .9rem;
}

.mcard-intro .name {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    font-size: 0;
    margin-bottom: 12px;
    letter-spacing: 1px;
    color: #000;
}

.mcard-intro .name > div {
    display: inline-block;
    text-align: right;
    font-size: 1.2rem !important;
    vertical-align: middle;
    font-family: 'Noto Serif KR', 'MaruBuri', serif !important;
    font-weight: 700 !important;
    letter-spacing: 1px !important;
    color: #2d3748 !important;
}

.mcard-intro .name > div.groom {
    text-align: right;
}

.mcard-intro .name > div.divider {
    position: relative;
    top: .5px;
    display: inline-block;
    content: "";
    width: 1px;
    height: 1.1rem;
    background: #000;
    opacity: .85;
}

.mcard-intro .name > div.divider-and {
    text-align: center;
    font-size: .9rem;
}

.mcard-intro .name > div.bride {
    text-align: left;
}

.mcard-intro .datetime {
    line-height: 1.8rem;
    font-family: 'Noto Serif KR', serif !important;
    font-weight: 400 !important;
    letter-spacing: 0.5px !important;
}

.mcard-intro .datetime span {
    font-family: 'Noto Serif KR', serif !important;
    font-weight: 500 !important;
    letter-spacing: 0.5px !important;
}

.mcard-intro .datetime div {
    font-family: 'Noto Serif KR', serif !important;
    font-weight: 600 !important;
    letter-spacing: 0.5px !important;
    margin-top: 4px;
}

/* 비디오 블렌드 효과 */
.intro-blend-wrap {
    position: relative;
    overflow: hidden;
    line-height: 0;
}

.intro-blend-image {
    position: relative;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.intro-blend-video {
    display: none;
    position: absolute;
    mix-blend-mode: screen;
    left: 0;
    top: 0;
    width: 100%;
}

@supports (display: grid) {
    .intro-blend-video {
        display: block;
    }
}

.gradient-none {
    -webkit-mask-image: linear-gradient(180deg, #000, #000);
    mask-image: linear-gradient(180deg, #000, #000);
}

/* 문단 래퍼 */
.paragraph-wrap {
    margin: 1px 0;
    padding: 40px 0;
}

.paragraph-wrap .title {
    margin: 0 auto;
    width: 20px;
    height: 40px;
    background-size: cover;
}

.paragraph-wrap .title.white {
    background-image: url('../images/icon_flower_biz2.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    width: 40px;
    height: 60px;
}

.paragraph-wrap .text {
    margin: 20px 1rem 0;
    font-size: .9rem;
}

/* 인사말 섹션 */
.greetings-wrap {
    margin: 1px 0;
    padding: 40px 0;
}

.greetings-wrap .text {
    display: inline-block;
    margin: 16px 1rem 1.2rem;
    font-size: .9rem;
}

.greetings-wrap .text.left {
    text-align: left;
}

.greetings-wrap .text.right {
    text-align: right;
}

.greetings-wrap .text.center {
    text-align: center;
}

.greetings-wrap .image {
    margin: 0 20px;
}

.greetings-wrap .image img {
    display: block;
    width: 100%;
    margin: 50px 0 0;
    pointer-events: none;
    border-radius: 6px;
}

.greetings-wrap svg {
    width: 1.125rem;
    height: 1.125rem;
    margin-top: -2px;
    fill: var(--icon-color);
    vertical-align: middle;
}

/* 가족 정보 */
.members-wrap {
    padding: 1.2rem 0;
    border-left: 0;
    border-right: 0;
}

.members-wrap svg {
    margin: 0 10px;
    width: .7rem;
    height: .7rem;
    fill: var(--title-text-color);
    opacity: .7;
}

.members-wrap .relation {
    font-size: .8rem;
    color: #8a857f;
}

.members-wrap .relation > span:last-child {
    display: inline-block;
    min-width: 2rem;
    text-align: center;
}

/* 연락처 */
.contact-wrap .subtitle {
    padding: 10px;
    border: 1px solid #eee;
}

.contact-box {
    margin: 0 auto;
    max-width: 220px;
    color: var(--btn-text-color);
    border: 1px solid var(--btn-border-color);
    border-radius: 32px;
    text-align: center;
    font-size: .85rem;
    cursor: pointer;
    letter-spacing: 1px;
    padding: 10px;
}

/* 달력 섹션 */
.calendar-wrap {
    padding: 30px 0;
}

.calendar-inner {
    padding: 3.6rem 0 3.8rem;
    border-left: 0;
    border-right: 0;
    background: var(--secondary-bg-color);
    background-image: var(--primary-bg-image);
}

.calendar-wrap .date {
    font-size: 1.4rem;
    line-height: 1.8rem;
    letter-spacing: 3px;
    color: var(--text-dark-color);
    opacity: .8;
    font-family: 'Crimson Pro';
    margin-bottom: 0px;
}

.calendar-wrap .date .kr {
    font-family: var(--font-regular);
    font-size: 1.3rem;
    letter-spacing: 1px;
}

.calendar-wrap .hours {
    margin-bottom: 1.25rem;
    letter-spacing: 1px;
    font-size: .9rem;
    color: var(--text-dark-color);
}

.dday-wrap {
    margin: 0 auto;
    padding: 1.25rem 0 0;
    font-size: .9rem;
}

.dday-wrap span[pink] {
    color: #ea7664;
}

.dday-wrap span[small] {
    font-size: .7rem;
}

.dday-wrap .countdown {
    font-family: 'Crimson Pro';
    margin: 16px 0;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.dday-wrap .countdown > div {
    display: inline-block;
    vertical-align: top;
    font-size: 10px!important;
    letter-spacing: 0;
    line-height: 1rem;
    text-transform: uppercase;
}

.dday-wrap .countdown > div > span {
    display: inline-block;
    font-size: 12px!important;
    padding: 6px 6px 0;
    text-align: center;
    line-height: 2rem;
    color: var(--text-light-color);
}

.dday-wrap .countdown .card {
    background: var(--third-bg-color);
    color: var(--text-light-color);
    font-size: 1.3rem!important;
    line-height: 32px;
    width: 2rem;
    min-width: 2rem;
    border-radius: 8px;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.dday-wrap .countdown .desc {
    padding: 0 0 8px;
    background: var(--third-bg-color);
    border-radius: 8px;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    color: var(--subtitle-text-color);
}

/* 달력 테이블 */
.c-calendar {
    padding: 0 var(--calendar-margin-lr);
    margin: 0 36px;
    border: 1px solid var(--border-color);
    border-left: 0;
    border-right: 0;
}

.c-calendar-table {
    padding: 1.5rem 0;
    margin: auto;
    width: 100%;
    font-size: .875rem;
    line-height: 2.375rem;
}

.c-calendar-table > thead tr th {
    padding-bottom: 8px;
    font-weight: unset;
}

.c-calendar-table > tbody tr td:first-child,
.c-calendar-table > thead tr th:first-child {
    color: #c6472b!important;
}

.c-calendar-eday > div {
    background: var(--icon-color);
}

.c-calendar-eday > .c-calendar-holiday {
    opacity: .5;
}

.c-calendar-eday {
    color: #fff;
    content: "";
    display: block;
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    display: flex;
    justify-content: center;
    flex-direction: column;
    text-align: center;
}

.c-calendar-eday > div {
    margin: auto;
    width: 30px;
    height: 30px;
    line-height: 30px;
    border-radius: 30px;
}

#app .c-calendar-table {
    line-height: 1.8rem;
}

/* 갤러리 섹션 */
.gallery-wrap {
    margin: 1px 0;
    padding: 50px 0;
    text-align: center;
}

.gallery-square {
    margin: 0 16px;
}

.gallery-square .item {
    width: calc(33.3% - 8px);
    margin: 4px;
    border-radius: 4px;
}

.gallery-grid {
    margin: 0 16px;
    display: grid;
    grid-auto-flow: column;
}

.gallery-grid.grid2 {
    margin: 0 32px;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(11, auto);
    grid-auto-flow: row;
    max-width: calc(100vw - 64px); /* 마진을 고려한 최대 너비 */
}

/* 모바일에서 갤러리 마진 줄이기 */
@media (max-width: 480px) {
    .gallery-grid {
        margin: 0 8px;
        max-width: calc(100vw - 16px);
    }
    
    .gallery-grid.grid2 {
        margin: 0 16px;
        max-width: calc(100vw - 32px);
    }
}

/* 모든 모바일 기기에서 타이틀 중앙정렬 적용 */
@media (max-width: 768px) {
    .m-title, .greetings-title, .m-subtitle {
        text-align: center !important;
        margin-left: auto !important;
        margin-right: auto !important;
        display: block !important;
        width: 100% !important;
    }
    
    .greetings-wrap, .gallery-wrap, .map-wrap {
        text-align: center !important;
    }
    
    /* fade-in 애니메이션이 적용된 타이틀들도 중앙정렬 */
    .fade-in, .fade-in-right, .fade-in-up, .fade-in-left {
        text-align: center !important;
    }
}

/* iOS Safari 폰트 로딩 최적화 */
body.fonts-timeout {
    font-family: 'Noto Serif KR', 'Apple SD Gothic Neo', -apple-system, BlinkMacSystemFont, 'Malgun Gothic', sans-serif !important;
}

body.fonts-loaded {
    font-family: var(--font-regular), 'Noto Serif KR', 'Apple SD Gothic Neo', -apple-system, BlinkMacSystemFont, serif !important;
}

/* iOS에서 폰트 렌더링 개선 */
@supports (-webkit-touch-callout: none) {
    /* iOS Safari 전용 스타일 */
    body, #app, .mcard-view {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
        font-synthesis: none;
        text-rendering: optimizeLegibility;
    }
    
    /* iOS에서 한글 폰트 강제 적용 */
    .m-title, .greetings-title, .text {
        font-family: var(--font-regular), 'Noto Serif KR', 'Apple SD Gothic Neo', -apple-system, BlinkMacSystemFont, serif !important;
    }
}

.gallery-grid .item {
    border-width: 4px;
    border-radius: 8px;
    background-color: #eee;
    background-position: 50% 50%;
    background-size: cover;
    border-style: solid;
    border-color: var(--primary-bg-color);
    box-sizing: border-box;
    cursor: pointer;
    /* 갤러리 재로딩 방지 */
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
    will-change: auto;
    contain: none;
    transform: none;
    backface-visibility: visible;
}

.gallery-more-button {
    color: var(--btn-text-color);
    border: 1px solid var(--btn-border-color);
    padding: 4px 26px;
    border-radius: 32px;
}

.gallery-more-button > div {
    border-bottom: 1px solid var(--btn-text-color);
    border-right: 1px solid var(--btn-text-color);
}

.gallery-container {
    margin: 40px 0 0;
}

.gallery-grid-container {
    overflow: hidden;
}

.gallery-grid-container.transition {
    /* 애니메이션 제거 - 즉시 표시 */
    max-height: 2200px;
}

/* 지도 섹션 */
.map-wrap {
    margin: 1px 0;
    padding: 40px 0;
    text-align: center;
}

.waytocome-wrap {
    padding: 0 var(--common-margin-lr);
    text-align: left;
}

.waytocome-wrap .box {
    display: flex;
    padding: 8px 0 12px;
    border-bottom: 1px solid var(--border-light-color);
}

.waytocome-wrap .box:last-child {
    border: 0;
    padding-bottom: 0;
}

.waytocome-wrap .box .left {
    flex: 40px;
    padding: 5px 10px 0 0;
}

.waytocome-wrap .box .right {
    flex: 999;
    text-align: left;
}

.waytocome-wrap .box .icon-circle {
    background: var(--third-bg-color);
    width: 2.0rem;
    height: 2.0rem;
    line-height: 0;
    padding: 8px;
    text-align: center;
    border-radius: 64px;
    opacity: .7;
    display: flex;
    align-items: center;
    justify-content: center;
}


/* 새 갤러리 스타일 */
.simple-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-item {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s ease;
    opacity: 1 !important;
    animation: none !important;
}

.gallery-item:hover {
    transform: scale(1.02);
}

/* 배경 이미지 방식이므로 img 스타일 제거 */

/* 연락처 섹션 스타일 */
.contact-section {
    margin-bottom: 20px;
}

.section-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    padding: 10px 0;
    border-bottom: 2px solid #8b7355;
    text-align: center;
}

/* 한 줄 연락처 스타일 */
.contact-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.contact-info {
    font-size: 16px;
    font-weight: 500;
    color: #333;
}

.contact-line .contact-actions {
    display: flex;
    gap: 8px;
}

.contact-line .contact-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    text-decoration: none;
    font-size: 18px;
    transition: all 0.2s ease;
    background-color: white;
    border: 2px solid #8b7355;
    color: #8b7355;
}

.contact-line .call-btn {
    color: #8b7355;
}

.contact-line .call-btn:hover {
    background-color: #8b7355;
    color: white;
    transform: scale(1.1);
}

.contact-line .sms-btn {
    color: #8b7355;
}

.contact-line .sms-btn:hover {
    background-color: #8b7355;
    color: white;
    transform: scale(1.1);
}

/* 갤러리 컨테이너 */
.gallery-container {
    opacity: 1 !important;
    transition: none !important;
    animation: none !important;
}

/* 지도 줌 방지 */
.zoomable-map {
    touch-action: none !important;
    pointer-events: none !important;
    user-select: none !important;
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    -webkit-touch-callout: none !important;
    -webkit-tap-highlight-color: transparent !important;
}

/* 갤러리 영상 스타일 */
.gallery-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #000;
    /* 캐논 색감의 뿌연 필름 느낌 */
    filter: brightness(1.4) contrast(0.85) saturate(0.9);
    -webkit-filter: brightness(1.4) contrast(0.85) saturate(0.9);
    /* 위에 흰막 씌운 효과 - 의사 요소로 오버레이 */
    position: relative;
    /* 부드러운 전환 효과 */
    transition: all 0.3s ease;
}

.gallery-video::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.15);
    pointer-events: none;
    z-index: 1;
}

.video-item {
    position: relative;
    overflow: hidden;
}

.video-item .gallery-video {
    transition: transform 0.3s ease;
}

.video-item:hover .gallery-video {
    transform: scale(1.05);
    /* 호버 시 캐논 색감 강화 */
    filter: brightness(1.5) contrast(0.8) saturate(0.85);
    -webkit-filter: brightness(1.5) contrast(0.8) saturate(0.85);
}

.video-item:hover .gallery-video::before {
    background: rgba(255, 255, 255, 0.2);
}

.video-item .play-icon {
    fill: #fff;
}

.video-item .play-icon:hover {
    fill: var(--title-text-color); 
}

.waytocome-wrap .title {
    font-size: 1rem;
    color: var(--title-text-color);
    text-align: left;
}

.waytocome-wrap .title > span {
    vertical-align: middle;
}

.waytocome-wrap .content {
    font-size: .85rem;
    line-height: 1.3rem;
    text-align: left;
    margin: 0;
    padding: 0;
}

.waytocome-wrap .content > * {
    margin: 0;
    padding: 0;
    white-space: pre-wrap;
}

.waytocome-wrap .content p {
    margin-block-end: .7rem;
    margin-block-start: .7rem;
}

.map-inner {
    margin: 0 20px 10px;
}

.map-image-wrap {
    width: 100%;
}

.map-image-wrap > .spacing {
    margin-bottom: 16px;
}

.map-image-wrap > img {
    display: block;
    margin: auto;
    width: 100%;
}

.location-wrap {
    margin: 18px 0 26px;
}

.location-hall {
    color: #000;
}

.location-address {
    font-size: .95rem;
    color: #797979;
}

.c-map-tools {
    background: var(--secondary-bg-color);
}

#app #map {
    height: 15rem;
}

#app .c-map-navi {
    background: var(--third-bg-color);
    padding: 8px 10px;
}

#map {
    margin: auto;
    width: 100%;
    height: 240px;
}

.c-map-tools {
    text-align: left;
    padding: 4px 20px;
    display: flex;
}

.c-map-tools > .button {
    flex: 1;
    cursor: pointer;
    text-align: center;
}

.c-map-tools > .button > span {
    vertical-align: middle;
    font-size: .75rem;
}

.c-map-tools svg {
    width: 14px;
    height: 14px;
    fill: #525252;
    vertical-align: middle;
}

.c-map-navi {
    text-align: left;
    padding: 12px 10px;
    display: flex;
    background: var(--secondary-bg-color);
    color: #000;
    font-size: .8rem;
    height: 3rem;
}

.c-map-navi > div {
    flex: 1.2;
    margin: auto;
    height: 2rem;
    line-height: 2rem;
    border-right: 1px solid rgba(97,80,67,.15);
    text-align: center;
    cursor: pointer;
}

.c-map-navi > div:last-child {
    flex: 1;
    border-right: 0;
}

.c-map-navi > span {
    display: inline-block;
    background: rgba(97,80,67,.15);
    font-size: 16px;
    width: 1px;
    height: 2rem;
    margin: .5rem 0;
}

/* 지도 네비게이션 아이콘 스타일 */
.navi-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    margin-right: 8px;
    vertical-align: middle;
    border-radius: 6px;
    transition: all 0.2s ease;
    overflow: hidden;
}

.navi-icon img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    transition: all 0.2s ease;
}

/* 네이버 아이콘 */
.naver-icon {
    background: transparent;
    padding: 2px;
}

.navi:hover .naver-icon {
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(3, 199, 90, 0.3);
}

/* 카카오 아이콘 */
.kakao-icon {
    background: transparent;
    padding: 2px;
}

.navi:hover .kakao-icon {
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(254, 229, 0, 0.3);
}

/* 티맵 아이콘 */
.tmap-icon {
    background: transparent;
    padding: 2px;
}

.navi:hover .tmap-icon {
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
}

/* 네비게이션 버튼 개선 */
.c-map-navi > div {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.c-map-navi > div:hover {
    background: rgba(0, 0, 0, 0.05);
    transform: translateY(-1px);
}

/* 확대 가능한 지도 컨테이너 */
.zoomable-map-container {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
    border-radius: 8px;
    background: #f5f5f5;
    border: 1px solid var(--border-color);
    /* 핀치 줌 완전 차단 */
    touch-action: none !important;
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;
}

.zoomable-map {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.zoomable-map img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    pointer-events: none;
    transition: transform 0.3s ease;
    transform-origin: center center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* 줌 컨트롤 버튼 */
.map-zoom-controls {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    z-index: 100;
}

.zoom-btn {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(5px);
    color: var(--text-dark-color);
}

.zoom-btn:hover {
    background: rgba(255, 255, 255, 1);
    border-color: var(--btn-dark-border-color);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.zoom-btn svg {
    width: 18px;
    height: 18px;
}

.zoom-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* 알림 탭 */
.notice-tab-wrap {
    padding: 10px var(--common-margin-lr);
    margin: 36px 0;
}

.notice-tab-wrap .m-title {
    margin-bottom: 30px;
}

.notice-tab-wrap .ntab .titles.bg {
    background: var(--secondary-bg-color);
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.notice-tab-wrap .ntab .title:first-child {
    margin-left: 0;
}

.notice-tab-wrap .ntab .title {
    flex: 1;
    position: relative;
    padding: 8px;
    margin: 0 0 -1px -1px;
    border: 1px solid transparent;
    border-bottom: 0;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    box-sizing: border-box;
    cursor: pointer;
}

.notice-tab-wrap .ntab .title:after {
    position: absolute;
    right: -1px;
    top: 25%;
    display: inline-block;
    width: 1px;
    height: 50%;
    content: "";
    background: var(--border-color);
}

.notice-tab-wrap .ntab .title:last-child:after {
    display: none;
}

.notice-tab-wrap .ntab .title.active {
    position: relative;
    color: var(--title-text-color);
    background: var(--primary-bg-color);
    background-image: var(--primary-bg-image);
    border-color: var(--border-color);
}

.notice-tab-wrap .ntab .title.active:after {
    position: absolute;
    left: 0;
    top: 0;
    display: inline-block;
    width: 100%;
    height: 100%;
    content: "";
    background: var(--fourth-bg-color);
    border-radius: inherit;
}

.notice-tab-wrap.white .ntab .title.active:after {
    display: none;
}

.notice-tab-wrap .ntab .title > span {
    position: relative;
    color: var(--title-text-color);
    filter: saturate(.8);
    z-index: 1;
}

.notice-tab-wrap .ntab .title.active > span {
    filter: saturate(1);
    opacity: 1;
    text-shadow: 0 0 rgba(0,0,0,.5);
}

.notice-tab-wrap .ntab .contents {
    padding: 2rem .8rem;
    border: 1px solid var(--border-color);
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    background: var(--fourth-bg-color);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.notice-tab-wrap.white .ntab .contents {
    background: unset;
}

.notice-tab-wrap .ntab .contents.first-tab {
    border-top-left-radius: 0;
}

.notice-tab-wrap .ntab .contents.last-tab {
    border-top-right-radius: 0;
}

.notice-tab-wrap .ntab .contents .img-wrap {
    display: inline-block;
    width: 90%;
}

.notice-tab-wrap .ntab .contents .img-wrap.top {
    margin-bottom: 1.2rem;
}

.notice-tab-wrap .ntab .contents .img-wrap.bottom {
    margin-top: 1.2rem;
}

.notice-tab-wrap .ntab .contents .img-wrap img {
    border-radius: 6px;
    width: 100%;
}

.notice-tab-wrap .ntab .text {
    padding: 0 .8rem;
}

.notice-tab-wrap .ntab .btn-wrap {
    margin: 1.2rem 0 0;
}

/* 탭 기본 스타일 */
.ntab {
    font-size: .9rem;
    line-height: 1.7rem;
}

.ntab > .titles {
    display: flex;
}

.ntab > .titles > .title {
    flex: 1;
    cursor: pointer;
}

.ntab-viewport {
    transition: height .3s;
}

.ntab .content {
    width: 100%;
    padding-bottom: 1px;
}

.ntab .content .img-wrap {
    line-height: 0;
}

.ntab .content .img-wrap img {
    width: 100%;
    pointer-events: none;
}

.ntab .content a.disabled {
    pointer-events: none;
    cursor: default;
}

.ntab .content.ntab-panel {
    display: none;
}

.ntab .content.ntab-panel.active {
    display: block;
}

/* 공지사항 */
.notice-wrap {
    padding: 10px var(--common-margin-lr);
    margin: 36px 0;
}

.notice-wrap .m-title {
    margin-bottom: 46px;
}

.notice-wrap svg {
    width: 24px;
    height: 24px;
}

.notice-wrap .box {
    position: relative;
    margin: 56px 0 0;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    box-sizing: border-box;
}

.notice-wrap .box.orange,
.notice-wrap .box.pink,
.notice-wrap .box.yellow {
    background: var(--fourth-bg-color);
}

.notice-wrap .box:first-child {
    margin-top: 0;
}

.notice-wrap .title {
    color: var(--title-text-color);
    position: absolute;
    top: -1rem;
    width: 100%;
}

.notice-wrap .title .inner {
    display: inline-block;
    color: var(--text-dark-color);
    background: var(--border-color);
    border-radius: 32px;
    font-size: .9rem;
    margin: 0 auto;
    padding: 0 24px;
}

.notice-wrap .title .inner.white {
    background: white;
}

.notice-wrap .subtitle {
    letter-spacing: 5px;
    font-size: .5rem;
    color: var(--title-text-color);
}

.notice-wrap .text {
    padding: 2.5rem .8rem 2rem;
    font-size: .9rem;
    line-height: 1.6rem;
}

.notice-wrap .img-wrap {
    line-height: 0;
}

.notice-wrap .img-wrap-margin-top {
    margin-top: 1.8rem;
}

.notice-wrap .img-wrap-margin-bottom {
    margin-bottom: 1.8rem;
}

.notice-wrap .img-wrap > img {
    width: 90%;
    border-radius: 4px;
}

.notice-wrap .btn-wrap {
    margin-top: 1.2rem;
}

/* RSVP 섹션 */
.rsvp-wrap {
    padding: 10px var(--common-margin-lr);
    margin: 36px 0;
}

.rsvp-wrap .title {
    color: var(--title-text-color);
    position: absolute;
    top: -1rem;
    width: 100%;
}

.rsvp-wrap .title .inner {
    display: inline-block;
    color: var(--text-dark-color);
    background: var(--border-color);
    border-radius: 32px;
    font-size: .9rem;
    margin: 0 auto;
    padding: 0 24px;
}

.rsvp-wrap .title .inner.white {
    background: #E8DFDF;
}

.rsvp-wrap .card {
    position: relative;
    padding: 2.5rem 0 2rem;
    border: 1px solid var(--border-color);
    border-radius: 10px;
}

.rsvp-wrap.orange .card,
.rsvp-wrap.pink .card,
.rsvp-wrap.yellow .card {
    background: var(--fourth-bg-color);
}

.rsvp-wrap .text {
    padding: 0 .8rem;
    font-size: .9rem;
    line-height: 1.6rem;
    margin-bottom: 1.1rem;
}

/* 계좌 정보 */
.account-wrap {
    margin: 1px auto;
    padding: 40px var(--common-margin-lr);
}

.account-wrap .s-subtitle {
    display: inline-block;
    content: "";
    width: 24px;
    height: 38px;
    background-size: cover;
    filter: hue-rotate(330deg) saturate(.15);
}

.account-wrap svg {
    width: 15px;
    height: 14px;
}

.account-wrap > .content {
    margin: 0 1rem;
    font-size: .9rem;
    line-height: 1.6rem;
}

.c-account {
    max-width: 100%;
    margin: 2rem auto 0;
    font-size: .9rem;
    padding: 0 var(--account-margin-lr);
}

.c-account svg {
    width: .75rem;
    height: .75rem;
    margin-top: -6px;
}

.c-account .title {
    position: relative;
    margin: 0 auto;
    padding: 8px 0;
    text-align: center;
    cursor: pointer;
    z-index: 999;
    color: var(--text-dark-color);
    background: var(--third-bg-color);
    border-radius: 6px;
}

.c-account .title.expand {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.c-account .title > .arrow {
    position: absolute;
    top: 9px;
    right: 18px;
    transform: rotate(0);
    transition-duration: .5s;
    transform-origin: center center;
}

.c-account .title > .arrow.rotate {
    top: 8px;
    transform: rotate(180deg);
    transition-duration: .5s;
}

.c-account .text {
    position: relative;
    overflow: hidden;
    transition: .5s ease-out;
    font-size: min(.85rem, 16px);
    border-top: 1px solid rgba(0,0,0,.05);
    height: 0px;
    display: none;
}

.c-account .text:nth-child(2) {
    border-top: 0;
}

.c-account .text:last-child {
    border-bottom-left-radius: 6px;
    border-bottom-right-radius: 6px;
}

.c-account .text > .inner {
    padding: .75rem 0 .75rem .85rem;
    line-height: 26px;
    letter-spacing: 0;
    text-align: left;
    background: var(--fourth-bg-color);
}

.c-account .btn-copy {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 60px;
    cursor: pointer;
    padding: 0 4px;
    border-radius: 2px;
    font-size: 12px;
    font-weight: 600;
    line-height: 24px;
}

.c-account .item {
    margin-top: 12px;
}

.c-account .item:first-child {
    border: 0;
}

.c-account .bank:after {
    content: "";
    margin: -1px 2px 0 6px;
    width: 1px;
    height: 12px;
    background: #e5e5e5;
    border-radius: 10px;
    vertical-align: middle;
    display: inline-block;
}

.c-account .btn-action {
    position: absolute;
    top: calc(.75rem - 1px);
    right: .75rem;
    width: 54px;
    cursor: pointer;
    padding: 0 4px;
    border-radius: 4px;
    font-size: 12px;
    border: 1px solid #e1e1e1;
    color: #333;
    letter-spacing: .5px;
    text-align: center;
    line-height: 24px;
}

.c-account .btn-action > svg {
    margin: -2px 2px 0 0;
    height: 12px;
    width: 12px;
    vertical-align: middle;
    fill: #999;
}

.c-account .btn-action.kakaopay {
    top: calc(.75rem + 28px);
    background: #fbdf1d;
    border-color: #fbdf1d;
    font-size: max(11px, .6rem);
}

.c-account .btn-action.kakaopay svg {
    vertical-align: middle;
}

.c-account .btn-action.kakaopay img {
    vertical-align: middle;
    width: 38px;
}

/* 방명록 */
.guestbook-wrap {
    margin: 1px 0;
    padding: 40px 0;
    text-align: center;
}

.c-guestbook {
    margin: 0;
    font-size: .86rem;
}

.c-guestbook .comments {
    padding: 0 var(--common-margin-lr);
    border: var(--border-size) solid var(--border-color);
    border-left: 0;
    border-right: 0;
    max-height: 400px;
    overflow-y: auto;
}

.c-guestbook .tools {
    padding: 10px var(--common-margin-lr);
}

.c-guestbook .tools > .writing {
    display: inline-block;
    width: 5.5rem;
    padding: 8px 0;
}

.c-guestbook .tools > .writing > button {
    display: block;
    width: 100%;
    padding: 0;
    line-height: 0;
}

.c-guestbook .item {
    position: relative;
    padding: .75rem 1rem;
    text-align: left;
    line-height: 1.5rem;
    background: hsla(0,0%,100%,.75);
    border-radius: 8px;
    margin-bottom: 6px;
    box-shadow: 1px 1px 2px rgb(0 0 0/5%);
}

.c-guestbook .item.empty.orange,
.c-guestbook .item.empty.pink,
.c-guestbook .item.orange,
.c-guestbook .item.pink {
    background: var(--fourth-bg-color);
}

.c-guestbook .item.white {
    background: white;
}

.c-guestbook .item:last-child {
    margin-bottom: 0;
}

.c-guestbook .item.empty {
    text-align: center;
    color: #aaa;
    padding: 40px 0;
}

.c-guestbook .item.empty svg {
    width: 24px;
    height: 24px;
    fill: #aaa;
    display: block;
    margin: 0 auto 10px;
}

.c-guestbook .item .name {
    font-weight: 600;
    font-size: .8rem;
    margin-bottom: .25rem;
}

.c-guestbook .item .date {
    margin-right: 2px;
    color: #aaa;
    font-size: .625rem;
    vertical-align: middle;
}

.c-guestbook .item .text {
    line-height: 1.25rem;
}

.c-guestbook .item .close {
    position: absolute;
    top: 1.2rem;
    right: 1rem;
    line-height: 0;
    text-align: center;
    cursor: pointer;
}

.c-guestbook .item .close > .icon > svg {
    width: .5rem;
    height: .5rem;
    vertical-align: middle;
    fill: #aaa;
}

/* 화환 */
.flower-wrap {
    margin: 40px var(--common-margin-lr);
}

.flower-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 20px 24px;
    font-size: 12px;
    text-align: left;
    line-height: 1.5rem;
    border-radius: 8px;
    background: var(--fourth-bg-color);
    box-shadow: 1px 1px 3px rgba(0,0,0,.05);
    cursor: pointer;
}

.flower-banner-img {
    flex: 0 0 42px;
    height: 60px;
    background-image: url("../images/화환.png");
    background-position: 50% 50%;
    background-repeat: no-repeat;
    background-size: contain;
}

.flower-banner-text {
    flex: 1 0 0;
    margin: 0 auto;
    font-size: .8rem;
}

.flower-banner-text > .title {
    font-size: .9rem;
    color: var(--title-text-color);
}

.flower-banner-text > .content {
    opacity: .8;
}

.flower-banner-button {
    flex: 0 0 46px;
}

.flower-banner-button > div {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    width: 24px;
    height: 24px;
    background: hsla(0,0%,100%,.5);
    border-radius: 100%;
}

.flower-banner svg {
    position: relative;
    left: .5px;
    width: 10px;
    height: 10px;
    fill: var(--title-text-color);
}

/* 아웃트로 */
.outro-wrap {
    margin-bottom: 40px;
}

.c-outro {
    padding: 50px 0;
    line-height: 0;
}

.c-outro.stick-to-footer {
    margin-bottom: -60px;
    padding-bottom: 0;
}

.c-outro-inner {
    position: relative;
    background: #000;
}

.c-outro img {
    width: 100%;
    pointer-events: none;
}

.c-outro img.darken {
    opacity: .8;
}

.c-outro-text {
    position: absolute;
    left: 0;
    top: 0;
    line-height: 1.3rem;
    font-size: .86rem;
    width: calc(100% - 3.6rem);
    height: 100%;
    padding: 0 1.8rem;
    color: #fff;
    text-shadow: 1px 1px 30px #000;
    overflow: hidden;
    white-space: pre-wrap;
    display: flex;
    align-items: center;
}

.c-outro-text.center {
    text-align: center !important;
    justify-content: center !important;
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
}

.c-outro-text.left {
    text-align: left;
    justify-content: flex-start;
}

.c-outro-text.right {
    text-align: right;
    justify-content: flex-end;
}

/* 푸터 */
.footer-wrap {
    margin-top: 60px;
    padding: 30px 0;
    background: var(--footer-bg-color);
    background-image: var(--primary-bg-image);
    border-top: var(--border-size) solid var(--border-color);
    color: #434343;
}

.kakao-wrap {
    font-size: .8rem;
    line-height: 24px;
}

.kakao-wrap .btn-kakao {
    width: 250px;
    margin: 0 auto;
    line-height: 2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 10px;
}

.kakao-wrap .btn-kakao:first-child {
    margin: 0 auto 10px;
}

.kakao-wrap .left {
    flex: 1;
    text-align: left;
}

.kakao-wrap .right {
    flex: 1;
    text-align: right;
}

.kakao-wrap svg {
    margin: -1px 6px 0 0;
    width: 18px;
    height: 18px;
    vertical-align: middle;
}

.copyright-wrap {
    margin-top: 12px;
    line-height: 22px;
    text-align: center;
}

.copyright-wrap .company {
    color: #555;
    font-size: .9rem;
}

.copyright-wrap .copyright {
    margin: 0 auto;
    width: 80%;
    min-width: 280px;
    font-size: 10px;
    color: rgba(0,0,0,.4);
    letter-spacing: .5px;
    font-family: 'Crimson Pro', serif;
}

.copyright-wrap .brand {
    color: rgba(0,0,0,.7);
    cursor: pointer;
}

/* 모달 스타일 */
.modal-mask {
    position: fixed;
    overflow: hidden;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 101;
    background: rgba(0,0,0,.2);
}

/* 갤러리 모달 전용 스타일 - 사진 위아래 검은색으로 채움 */
.modal-mask.gallery {
    background: rgba(0,0,0,0.9) !important; /* 검은 배경으로 변경 */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important; /* 모바일 동적 뷰포트 높이 */
    min-height: 100vh !important;
    min-height: 100dvh !important; /* 모바일 동적 뷰포트 높이 */
    z-index: 10000 !important;
    margin: 0 !important;
    padding: 0 !important;
    /* 모달에서 확대 방지 */
    touch-action: none !important;
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;
}

.modal-mask.gallery .modal-wrapper {
    position: relative !important;
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important; /* 모바일 동적 뷰포트 높이 */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: none !important;
    top: auto !important;
    left: auto !important;
}

.modal-mask.gallery img {
    box-shadow: none !important;
    filter: none !important;
    opacity: 1 !important;
    max-width: 100vw !important;
    max-height: 100vh !important;
    max-height: 100dvh !important; /* 모바일 동적 뷰포트 높이 */
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    cursor: pointer !important;
    display: block !important;
    /* 이미지 확대 방지 */
    touch-action: none !important;
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;
    pointer-events: auto !important;
}

/* 갤러리 모달 X 버튼 위치 고정 */
.modal-mask.gallery .modal-btn-simple {
    position: fixed !important;
    top: 20px !important;
    right: 20px !important;
    left: auto !important;
    bottom: auto !important;
    z-index: 10001 !important;
    padding: 0 !important;
    margin: 0 !important;
    transform: none !important;
    width: auto !important;
    height: auto !important;
}

/* 모바일에서 확실한 전체화면 커버 */
@media (max-width: 768px) {
    .modal-mask.gallery {
        background: rgba(0,0,0,0.95) !important; /* 모바일에서 더 진한 검은 배경 */
        height: 100vh !important;
        height: 100dvh !important;
        height: -webkit-fill-available !important; /* iOS Safari 지원 */
        min-height: 100vh !important;
        min-height: 100dvh !important;
        min-height: -webkit-fill-available !important;
    }
    
    .modal-mask.gallery .modal-wrapper {
        height: 100vh !important;
        height: 100dvh !important;
        height: -webkit-fill-available !important;
        background: transparent !important; /* 래퍼는 투명 */
    }
    
    .modal-mask.gallery img {
        max-height: 100vh !important;
        max-height: 100dvh !important;
        max-height: -webkit-fill-available !important;
    }
    
    /* 모바일에서도 X 버튼 우측 상단 고정 */
    .modal-mask.gallery .modal-btn-simple {
        position: fixed !important;
        top: 15px !important;
        right: 15px !important;
        left: auto !important;
        bottom: auto !important;
        z-index: 10002 !important;
        transform: none !important;
    }
}

/* 갤러리 스와이프 모달 스타일 (scroll-snap 방식) */
.gallery-swipe-modal {
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    overscroll-behavior: none;
    overscroll-behavior-y: contain;
    touch-action: pan-x pinch-zoom;
}

.gallery-modal-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 60px 0 80px;
}

/* 카운터 */
.gallery-counter {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 14px;
    font-family: var(--font-gothic);
    background: rgba(0, 0, 0, 0.4);
    padding: 6px 16px;
    border-radius: 20px;
    z-index: 10;
}

/* 스크롤 스냅 컨테이너 */
.gallery-scroll-container {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    flex: 1;
    align-items: center;
    overscroll-behavior: contain;
    overscroll-behavior-y: none;
    touch-action: pan-x;
}

.gallery-scroll-container::-webkit-scrollbar {
    display: none;
}

/* 각 이미지 슬라이드 */
.gallery-scroll-item {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    scroll-snap-align: center;
    scroll-snap-stop: always;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    box-sizing: border-box;
}

.gallery-scroll-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
    user-select: none;
    -webkit-user-drag: none;
    pointer-events: none;
}

/* 인디케이터 */
.gallery-modal-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.gallery-modal-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.2s ease;
}

.gallery-modal-dot.active {
    background: white;
    transform: scale(1.3);
}

/* 닫기 버튼 */
.gallery-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 20;
    transition: background 0.2s ease;
}

.gallery-modal-close:hover,
.gallery-modal-close:active {
    background: rgba(255, 255, 255, 0.25);
}

.gallery-modal-close svg {
    width: 22px;
    height: 22px;
}

/* 모바일 최적화 */
@media (max-width: 768px) {
    .gallery-modal-wrapper {
        padding: 50px 0 70px;
    }

    .gallery-counter {
        top: 15px;
        font-size: 13px;
        padding: 5px 12px;
    }

    .gallery-modal-indicator {
        bottom: 25px;
    }

    .gallery-modal-close {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
    }

    .gallery-modal-close svg {
        width: 20px;
        height: 20px;
    }
    
    .gallery-modal-dot {
        width: 8px;
        height: 8px;
    }
}

.modal-wrapper {
    position: fixed;
    left: 50%;
    transform: translate(-50%);
    width: 100%;
    max-width: 420px;
}

.modal-btn-simple {
    padding: 1rem 0;
    bottom: 0;
    width: 100%;
    max-width: 420px;
    text-align: center;
    z-index: 999;
}

.modal-btn-simple > span {
    display: inline-block;
    line-height: 0;
    padding: 16px;
    background: #000;
    border-radius: 64px;
    cursor: pointer;
}

.modal-btn-simple svg {
    position: relative;
    margin: 0 auto;
    width: 12px;
    height: 12px;
    fill: hsla(0,0%,100%,.9);
    z-index: 102;
}

.modal-btn-simple > span:first-child > svg {
    right: 1px;
}

.modal-btn-simple > span:nth-child(2) > svg {
    left: 1px;
}

.modal-mask.white {
    background: hsla(0,0%,100%,.95);
    backdrop-filter: blur(60px);
}

.modal-btn-simple.white > span {
    background: #f5f5f5;
}

.modal-btn-simple.white > span svg {
    fill: #575757;
}

.modal-mask.legacy {
    background: rgba(0,0,0,.8);
}

.modal-mask.legacy .modal-wrapper {
    width: 96%;
    max-width: 400px;
    background: #fff;
}

.modal-mask.legacy .modal-container {
    box-shadow: 0 0 2rem #000;
}

.modal-btn-legacy {
    padding: 1rem 0;
    bottom: 0;
    width: 100%;
    max-width: 420px;
    text-align: center;
    z-index: 999;
    background: #eee;
}

.modal-btn-legacy svg {
    z-index: 102;
    cursor: pointer;
    width: 1rem;
    height: 1rem;
    fill: #6b6b77;
    margin: 0 auto;
    vertical-align: middle;
    padding: 0 .8rem;
}

.modal-container {
    transition: all 3s ease;
}

.modal-enter-active,
.modal-leave-active {
    transition: opacity .3s;
}

.modal-enter,
.modal-leave-to {
    opacity: 0;
}

/* 연락처 모달 */
/* 기존 연락하기 모달 스타일 (사용 안함)
.contact-modal-wrap {
    display: flex;
    text-align: left;
    background: var(--primary-bg-color);
}
*/

/* 청첩장 디자인에 맞춘 연락하기 모달 */
.contact-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.contact-modal-overlay.active {
    opacity: 1;
}

.contact-modal-container {
    background: var(--primary-bg-color);
    background-image: var(--primary-bg-image);
    border-radius: 10px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 90%;
    max-width: 380px;
    max-height: 90vh;
    overflow: hidden;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s ease;
}

.contact-modal-overlay.active .contact-modal-container {
    transform: scale(1) translateY(0);
}

.contact-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: var(--secondary-bg-color);
    color: var(--title-text-color);
    border-bottom: 1px solid var(--border-color);
}

.contact-modal-title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 2px;
    color: var(--title-text-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.contact-modal-title .material-icons {
    font-size: 1.2rem;
}

.contact-modal-close {
    background: none;
    border: 1px solid var(--btn-border-color);
    color: var(--btn-text-color);
    cursor: pointer;
    padding: 6px;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.contact-modal-close:hover {
    background: var(--btn-dark-bg-color);
    color: var(--btn-dark-text-color);
    border-color: var(--btn-dark-border-color);
}

.contact-modal-close .material-icons {
    font-size: 18px;
}

.contact-modal-content {
    padding: 20px;
}

.rsvp-modal-container {
    max-width: 420px;
    max-height: 100vh;
    height: auto;
    display: flex;
    flex-direction: column;
}

.rsvp-modal-content {
    padding: 20px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.rsvp-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.rsvp-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.rsvp-label {
    font-size: 0.85rem;
    color: var(--subtitle-text-color);
    font-weight: 600;
    letter-spacing: 0.5px;
}

.rsvp-form input[type="text"],
.rsvp-form input[type="number"] {
    padding: 10px 12px;
    border: 1px solid var(--border-light-color);
    border-radius: 6px;
    font-size: 0.95rem;
    background: var(--primary-bg-color);
    color: var(--text-color);
}

.rsvp-form input[type="text"]:focus,
.rsvp-form input[type="number"]:focus {
    outline: none;
    border-color: var(--btn-border-color);
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.2);
}

.rsvp-radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    font-size: 0.9rem;
}

.rsvp-radio-group label {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.rsvp-actions {
    margin-top: 4px;
}

.rsvp-submit-btn {
    width: 100%;
    padding: 12px 16px;
    background: var(--btn-bg-color);
    color: var(--btn-text-color);
    border: 1px solid var(--btn-border-color);
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.rsvp-submit-btn:hover {
    background: var(--btn-dark-bg-color);
    border-color: var(--btn-dark-border-color);
    color: var(--btn-dark-text-color);
}

.rsvp-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.rsvp-feedback {
    margin-top: 4px;
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    line-height: 1.3rem;
}

.rsvp-feedback.success {
    background: #f0fff4;
    color: #276749;
    border: 1px solid #9ae6b4;
}

.rsvp-feedback.error {
    background: #fff5f5;
    color: #c53030;
    border: 1px solid #feb2b2;
}

.contact-person {
    margin-bottom: 20px;
    padding: 16px;
    background: var(--fourth-bg-color);
    border-radius: 8px;
    border: 1px solid var(--border-light-color);
}

.contact-person:last-child {
    margin-bottom: 0;
}

.contact-role {
    font-size: 0.85rem;
    color: var(--subtitle-text-color);
    margin-bottom: 4px;
    font-weight: 500;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.contact-role .material-icons {
    font-size: 1rem;
}

.contact-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-dark-color);
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.contact-actions {
    display: flex;
    gap: 8px;
}

.contact-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 14px;
    border-radius: 32px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s ease;
    border: 1px solid var(--btn-border-color);
    background: var(--btn-bg-color);
    color: var(--btn-text-color);
}

.contact-btn .material-icons {
    font-size: 16px;
}

.contact-btn:hover {
    background: var(--btn-dark-bg-color);
    color: var(--btn-dark-text-color);
    border-color: var(--btn-dark-border-color);
    transform: translateY(-1px);
}

.contact-divider {
    height: 1px;
    background: var(--border-color);
    margin: 16px 0;
}

/* 모바일 최적화 */
@media (max-width: 480px) {
    .contact-modal-container {
        width: 95%;
        margin: 20px;
    }
    
    .contact-modal-header {
        padding: 14px 16px;
    }
    
    .contact-modal-title {
        font-size: 1rem;
        letter-spacing: 1.5px;
    }
    
    .contact-modal-content {
        padding: 16px;
    }
    
    .contact-person {
        padding: 14px;
        margin-bottom: 16px;
    }
    
    .contact-name {
        font-size: 1.1rem;
    }
    
    .contact-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .contact-btn {
        padding: 12px 16px;
        font-size: 0.9rem;
        justify-content: center;
    }
}

.contact-modal-inner {
    display: flex;
    flex: 1;
    flex-direction: column;
}

.contact-modal-wrap .title {
    display: block;
    padding: 16px 0 12px;
    text-align: center;
    line-height: 1.5rem;
    letter-spacing: 3px;
    color: var(--title-text-color);
    background: var(--secondary-bg-color);
}

.contact-modal-wrap .content {
    padding: 1rem;
    display: block;
}

.contact-modal-wrap .content hr {
    height: 1px;
    margin: 16px auto;
    border: 0;
    background: rgba(0,0,0,.06);
}

.contact-modal-wrap .content > div {
    display: flex;
    padding: 0;
    margin-bottom: 4px;
}

.contact-modal-wrap .content > div:first-child {
    border: 0;
}

.contact-modal-wrap .content > div > .cell {
    flex: 1.5;
    text-align: center;
    letter-spacing: .5px;
    padding: 8px;
}

.contact-modal-wrap .content > div > .cell:last-child {
    flex: 1;
}

.phone-square {
    display: inline-block;
    margin-top: -2px;
    width: 30px;
    height: 20px;
    vertical-align: middle;
    line-height: 0;
    cursor: pointer;
    text-align: center;
}

.phone-square svg {
    width: 20px;
    height: 20px;
    fill: #fff;
}

/* 반응형 */
@media (max-width: 340px) {
    :root {
        --common-margin-lr: 1rem!important;
    }
    
    .c-account,
    .c-account .btn-action {
        padding: 0;
    }
    
    .c-account .text {
        font-size: 13px;
    }
}

