/* ===== variables.css ===== */
/* CSS 변수 정의 */
:root {
    --primary-color: #B99493;
    --primary-color-light: #d2bdbc;
    --primary-color-dark: #8e5f5d;
    --white: #FFF;
    --bg-color: #EFEAE4;
    --font-color-default: #434343;
    --font-color-light: #a3a3a3;
    --content-max-width: 600px;
    font-size: 0.9375em; /* 15px when default is 16px */
}

/* ===== base.css ===== */
/* 기본 스타일 초기화 */
*, *::before, *::after {
    box-sizing: border-box;
}

* {
    margin: 0;
}

html {
    height: 100%;
    overflow: hidden;
}

body {
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    touch-action: pan-y;
    overscroll-behavior-y: none;
}

body {
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    background-color: var(--bg-color);
    opacity: 0;
    transition: opacity 0.5s ease-in;
    /* 모바일에서 좌우 스크롤 방지 */
    position: relative;
    width: 100%;
    max-width: 100vw;
}

body.loaded {
    opacity: 1;
}

/* 폰트 클래스 */
.kr {
    font-family: 'Noto Sans KR', sans-serif;
    color: var(--font-color-default);
    word-break: keep-all;
}

.en {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 500;
    color: var(--font-color-default);
}

.en-sacramento {
    font-family: 'Sacramento', serif;
    font-weight: 400;
    color: var(--font-color-default);
}

/* 이미지 최적화 */
img, picture, video, canvas {
    display: block;
    max-width: 100%;
    /* 이미지 렌더링 최적화 */
    content-visibility: auto;
}

/* GPU 가속 및 레이아웃 최적화 */
.photo-grid,
.messages-list,
.accordion-container {
    contain: layout style;
}

/* 입력 요소 초기화 */
input, button, textarea, select {
    font: inherit;
}

button {
    background: none;
    color: inherit;
    border: none;
    padding: 0;
    cursor: pointer;
    outline: inherit;
}

/* 섹션 공통 스타일 */
section.cover,
section.letter,
section.gallery,
section.calendar,
section.location,
section.account-trapezoid,
section.video-section,
section.share-section {
    max-width: var(--content-max-width);
    margin: auto;
}

/* 유틸리티 클래스 */
.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* 스크롤바 스타일링 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color-dark);
}

/* 포커스 스타일 */
button:focus,
input:focus,
textarea:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* 선택 영역 스타일 */
::selection {
    background: rgba(185, 148, 147, 0.3);
    color: var(--font-color-default);
}

/* 애니메이션 비활성화 옵션 */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* 프린트 스타일 */
@media print {
    .music-control,
    .lightbox-overlay,
    .modal-overlay,
    .share-toast,
    .autoplay-prompt {
        display: none !important;
    }

    body {
        background: white !important;
    }

    .cover {
        background: none !important;
        color: black !important;
    }
}


/* ===== fonts.css ===== */
/*
 * 🚀 성능 최적화: Self-hosted 폰트 제거
 * - Noto Sans KR: 10MB Variable Font 제거 → Google Fonts 사용 (훨씬 작고 빠름)
 * - Spectral: 사용하지 않음, 제거
 *
 * Google Fonts에서 필요한 웨이트만 로드하므로 훨씬 효율적입니다.
 */


/* ===== animations.css ===== */
/* =========================
   청첩장 오프닝 애니메이션 CSS
   static/css/animations.css
========================= */

/* =========================
   폰트 정의
========================= */

/* Parisienne 폰트는 HTML에서 Google Fonts로 로드됨 */

/* 기타 폰트 (Playfair Display, Montserrat) */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600&family=Montserrat:wght@300;400&display=swap');

/* =========================
   오프닝 애니메이션 - 기본 구조
========================= */

.intro-animation-overlay {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 650px; /* 메인 컨텐츠(600px)보다 살짝 넓게 */
    height: 100%;
    z-index: 10000;
    background: #000;
    overflow: hidden;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    will-change: opacity;
    box-shadow: 0 0 20px rgba(0,0,0,0.5); /* 경계선 부드럽게 처리 */
    
    /* 수정: 초기 상태는 display: block 이지만, 내부 컨텐츠가 준비될 때까지 불투명 */
    /* visibility: hidden을 쓰면 Vara.js가 크기 계산을 못할 수 있음 */
    opacity: 1; /* 깜빡임 방지를 위해 일단 보이게 설정하고, JS에서 제어하거나 아래 ready 로직 보완 */
}

/* 준비 중일 때 (JS 로딩 전) 화면을 가려줄 스타일 필요 */
/* body에 intro-active 클래스가 있을 때 오버레이가 최상단 유지 */
body.intro-active .intro-animation-overlay {
    display: block;
}

/* 컨텐츠 로딩 전 상태 */
.intro-animation-overlay:not(.ready) .intro-scene {
    opacity: 0;
}

.intro-animation-overlay.ready .intro-scene {
    opacity: 1;
    transition: opacity 0.5s ease-out;
}

/* Scene 기본 설정 */
.intro-scene {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    overflow: hidden;
}

/* 배경 이미지 */
.intro-bg-image {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 100%;
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
    object-position: center;
    filter: brightness(0.7);
    z-index: 1;
}

/* 컨텐츠 컨테이너 */
.intro-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 20px;
}

/* 메인 텍스트 컨테이너 (Vara.js가 사용할 영역) */
.intro-main-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    /* 높이를 내용물에 맞게 자동 조정되도록 수정하되, 최소 높이는 유지 */
    height: auto;
    margin-bottom: 20px;
    z-index: 10; /* 텍스트가 이미지 위에 오도록 확실히 */
}

/* Vara.js SVG 스타일 */
#vara-container svg {
    overflow: visible;
    width: 100%;
    /* SVG 높이를 제한하여 불필요한 공간 차지 방지 */
    max-height: 80vh; 
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.5));
}

#vara-container path {
    /* Vara가 path를 그릴 때 stroke 스타일이 적용됨 */
    stroke-linecap: round;
    stroke-linejoin: round;
}


/* 하단 텍스트 */
.intro-bottom-text {
    position: absolute;
    bottom: 60px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 40px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    font-weight: 400;
    color: #FFFFFF;
    letter-spacing: 0.25em;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
    opacity: 1;
}


/* =========================
   Scene 1 애니메이션: 왼쪽에서 오른쪽으로 슬라이드
========================= */

/* Scene 1 슬라이드인 */
.intro-scene-1 {
    animation: slideInFromLeft 1.0s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

/* Scene 1 이미지 슬라이드인 - transform이 이미 중앙 정렬에 사용되므로 animation에서 주의 필요 */
.intro-scene-1 .intro-bg-image {
    /* 기존 transform: translateX(-50%)를 유지하면서 슬라이드 효과를 주기 위해 keyframe 수정 필요하지만,
       이미지는 고정하고 scene 전체가 움직이는 것이 더 자연스러울 수 있음.
       또는 animation 내에서 transform: translateX(-50%)를 포함해야 함. */
    animation: bgSlideInFromLeft 1.0s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

/* Scene 1 텍스트 슬라이드인 */
.intro-scene-1 .intro-content {
    animation: slideInFromLeft 1.0s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

/* Scene 1 페이드아웃 (이벤트 기반으로 변경 - delay 제거) */
.intro-scene-1.fade-out {
    animation: fadeOutScene 1.0s ease-out forwards;
}

.intro-scene-1.fade-out .intro-bg-image {
    animation: fadeOutScene 1.0s ease-out forwards;
}

.intro-scene-1.fade-out .intro-content {
    animation: fadeOutScene 1.0s ease-out 0.3s forwards;
}

/* 전체 오버레이 페이드아웃 */
.intro-animation-overlay.hide {
    animation: overlayFadeOut 0.5s ease-out forwards;
}

/* =========================
   키프레임 애니메이션
========================= */

/* 왼쪽에서 오른쪽으로 슬라이드 */
@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
        visibility: hidden;
    }
    to {
        opacity: 1;
        transform: translateX(0);
        visibility: visible;
    }
}

/* 배경 이미지용 슬라이드 (중앙 정렬 유지) */
@keyframes bgSlideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(calc(-50% - 50px));
        visibility: hidden;
    }
    to {
        opacity: 1;
        transform: translateX(-50%);
        visibility: visible;
    }
}

/* 페이드아웃 */
@keyframes fadeOutScene {
    from {
        opacity: 1;
        transform: scale(1);
    }
    to {
        opacity: 0;
        transform: scale(1.05);
    }
}

/* 모바일 반응형 - 오버레이 너비 꽉 차게 */
@media (max-width: 768px) {
    .intro-animation-overlay {
        max-width: 100%;
        left: 0;
        transform: none;
    }
    
    .intro-bg-image {
        left: 0;
        transform: none;
    }
    
    /* 모바일용 배경 이미지 슬라이드 (중앙 정렬 로직 제거) */
    @keyframes bgSlideInFromLeft {
        from {
            opacity: 0;
            transform: translateX(-50px);
            visibility: hidden;
        }
        to {
            opacity: 1;
            transform: translateX(0);
            visibility: visible;
        }
    }
    
    .intro-line {
        font-size: 3.2rem;
    }
    .intro-line-1, .intro-line-2 {
        font-size: 3.2rem;
    }
    .intro-line-3 {
        font-size: 2.4rem;
    }
    .intro-bottom-text {
        padding: 0 20px;
        font-size: 0.75rem;
        letter-spacing: 0.2em;
    }
    
    .intro-main-text {
        min-height: 250px;
    }
}


/* ===== cover.css ===== */
/* 커버 섹션 */
.cover {
    position: relative;
    background-image: url('../assets/images/cover.webp');
    background-repeat: no-repeat;
    background-position: center top;
    background-size: cover;
    overflow: hidden;
    height: 900px;
}

.white-gradient-blur {
    display: none;
}

.blur-gradient {
    display: none;
}

.names-kr-box {
    position: absolute;
    top: 3em;
    right: 4em;
    z-index: 3;
    text-align: right;
}

.names-kr-box .names {
    color: #fff;
    display: block;
    font-size: 1.2rem;
    letter-spacing: 0.8em;
    line-height: 2;
}

.cover-title-container {
    width: 100%;
    position: absolute;
    bottom: 1.5em;
}

.names-en-box {
    width: 100%;
    display: flex;
    justify-content: center;
}

.names-en-box .names {
    display: block;
    color: var(--white);
    word-spacing: 5px;
    font-size: 2.2rem;
}

.event-date-and-place-box {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.event-date-and-time,
.event-place {
    display: block;
    color: var(--white);
    font-size: 1rem;
}

.event-date-and-time {
    margin-bottom: 0.4em;
}

/* 모바일 최적화 */
@media (max-width: 768px) {
    .cover {
        height: 100vh;
    }

    .names-kr-box {
        top: 2em;
        right: 2em;
    }

    .names-en-box .names {
        font-size: 1.8rem;
    }
}

/* ===== letter.css ===== */
/* 편지 섹션 */
.letter {
    padding: 4.5em 3.5em 3em 3.5em;
    background: var(--white);
}

.letter .header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 1.2em;
}

.header-deco {
    width: 12em;
    margin-bottom: 0.8em;
}

.letter .title {
    color: var(--primary-color);
    letter-spacing: 1px;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.4em;
}

.letter .sub-title {
    color: var(--primary-color);
    font-weight: 500;
    font-size: 1rem;
}

.invitation-header {
    font-family: 'Spectral', serif;
    font-size: 2rem;
    color: #6F6F6F;
    text-align: center;
    margin: 0.3em 0 0.5em 0;
    font-weight: 400;
    letter-spacing: 2px;
}

.letter .letter {
    text-align: center;
    line-height: 2.2em;
    font-size: 1rem;
}

.letter-bottom {
    max-width: var(--content-max-width);
    width: 100%;
    margin: 0 auto;
}

.family-description {
    margin-top: 2em;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.5em;
}

.groom-line, .bride-line {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5em;
    gap: 0.2em;
    color: var(--font-color-default);
    font-size: 1.1em;
}

.name-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 0.5em;
}

.groom-name, .bride-name {
    font-size: 1.1em;
    font-weight: bold;
    color: var(--primary-color);
    margin-left: 1.0em; /* 출생순서와 이름 사이 간격 추가 */
}

/* 모바일 최적화 */
@media (max-width: 768px) {
    .letter {
        padding: 3em 2em;
    }

    .invitation-header {
        font-size: 1.6rem;
        margin: 0.3em 0 0.5em 0;
    }
}

/* ===== calendar.css ===== */
/* 캘린더 섹션 */
.calendar {
    position: relative;
    background-color: var(--white);
    padding: 2em 1.2em;
    text-align: center;
}

.calendar-deco {
    display: block;
    width: 100%;
    margin-bottom: 1.5em;
}

.d-day-display {
    font-family: 'Noto Sans KR', sans-serif;
    text-align: center;
    margin-bottom: 2em;
    font-size: 0.95em;
    color: black;
    line-height: 1.6;
}

.d-day-display .highlight {
    color: var(--primary-color);
    font-weight: 600;
}

.d-day-display p {
    margin-top: 0.5em;
    font-size: 1em;
}

/* 카운트다운 테이블 - 테두리 없는 깔끔한 정렬 */
.countdown-table {
    margin: 0 auto 1em auto;
    border-collapse: collapse;
    border: none;
}

.countdown-table td {
    text-align: center;
    vertical-align: middle;
    padding: 0.2em 0.8em;
    border: none;
}

/* 구분자 셀 (콜론이 들어가는 셀) - 좁게 */
.countdown-table td.separator-cell {
    padding: 0.2em 0.3em;
}

/* 카운트다운 라벨 행 */
.countdown-table .countdown-labels td {
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 0.85em;
    color: #A7A4A4;
    font-weight: 500;
    letter-spacing: 1px;
    padding-bottom: 0.3em;
}

/* 카운트다운 값 행 */
.countdown-table .countdown-values td {
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 2em;
    color: #5B5555;
    font-weight: 600;
}

/* 콜론 구분자 */
.countdown-table .countdown-separator {
    font-size: 1.5em;
    color: #5B5555;
    font-weight: 400;
    padding: 0.2em 0.3em;
}

/* 카운트다운 메시지 */
.countdown-message {
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 0.9em;
    color: black;
    margin-top: 1em;
}

/* 카운트다운 메시지 내 숫자 (N일) */
.countdown-message #d-day-text {
    font-weight: 600;
    color: #A7A4A4;
}

.calendar-buttons {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1em;
    width: 100%;
}

.calendar-btn {
    border: none;
    padding: 1em 2.5em;
    border-radius: 25px;
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 1em;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5em;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 260px;
    justify-content: center;
    white-space: nowrap;
}

.calendar-btn:hover {
    transform: translateY(-2px);
}

.google-calendar {
    background: linear-gradient(135deg, #4285f4, #34a853);
    color: white;
    box-shadow: 0 4px 15px rgba(66, 133, 244, 0.3);
}

.google-calendar:hover {
    box-shadow: 0 6px 20px rgba(66, 133, 244, 0.4);
}

/* 모바일 최적화 */
@media (max-width: 768px) {
    .calendar {
        padding: 1.5em 1em;
    }

    .d-day-display {
        font-size: 0.85em;
    }

    .d-day-display p {
        font-size: 0.9em;
    }

    .calendar-btn {
        padding: 0.9em 2.2em;
        font-size: 0.95em;
        width: 240px;
    }

    /* 카운트다운 테이블 - 모바일 반응형 */
    .countdown-table td {
        padding: 0.2em 0.4em;
    }

    .countdown-table td.separator-cell {
        padding: 0.2em 0.15em;
    }

    .countdown-table .countdown-labels td {
        font-size: 0.7em;
    }

    .countdown-table .countdown-values td {
        font-size: 1.5em;
    }

    .countdown-table .countdown-separator {
        font-size: 1.2em;
        padding: 0.2em 0.15em;
    }
}

/* 작은 모바일 화면 추가 최적화 (아이폰 SE, 갤럭시 폴드 등) */
@media (max-width: 400px) {
    .countdown-table td {
        padding: 0.2em 0.25em;
    }

    .countdown-table td.separator-cell {
        padding: 0.2em 0.1em;
    }

    .countdown-table .countdown-labels td {
        font-size: 0.65em;
        letter-spacing: 0.5px;
    }

    .countdown-table .countdown-values td {
        font-size: 1.3em;
    }

    .countdown-table .countdown-separator {
        font-size: 1em;
        padding: 0.2em 0.1em;
    }

    .countdown-message {
        font-size: 0.9em;
    }
}

/* 매우 작은 화면 (320px 이하) */
@media (max-width: 320px) {
    .countdown-table .countdown-labels td {
        font-size: 0.6em;
    }

    .countdown-table .countdown-values td {
        font-size: 1.1em;
    }

    .countdown-table .countdown-separator {
        font-size: 0.9em;
    }
}


/* ===== gallery.css ===== */
/* 갤러리 섹션 */
.gallery {
    padding: 4.5em 1em 4em 1em;
    background-color: var(--white);
}

.gallery .header {
    margin-bottom: 1.5em;
    text-align: center;
}

.gallery .title {
    color: var(--primary-color);
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 0.5em;
}

.gallery .subtitle {
    color: var(--font-color);
    font-size: 0.9em;
    font-family: 'Noto Sans KR', sans-serif;
    margin-bottom: 0.3em;
}

.gallery .subtitle-desc {
    color: var(--font-color-light);
    font-size: 0.85em;
    font-family: 'Noto Sans KR', sans-serif;
}

/* 3열 그리드 레이아웃 */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    max-width: 600px;
    margin: 0 auto;
}

.photo-item {
    position: relative;
    aspect-ratio: 2/3;
    overflow: hidden;
    cursor: pointer;
    background: #f5f5f5;
    /* 성능 최적화: 각 아이템을 독립적인 레이어로 처리 */
    contain: layout paint;
}

.photo-item:hover {
    opacity: 0.9;
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* 이미지 렌더링 최적화 */
    will-change: auto;
}

/* 갤러리 라이트박스 */
.gallery-lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeIn 0.3s ease-out;
    /* 성능 최적화 */
    will-change: opacity;
    backface-visibility: hidden;
}

.gallery-lightbox-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-lightbox-image {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    animation: zoomIn 0.3s ease-out;
}

.gallery-lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10001;
}

.gallery-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.gallery-lightbox-close i,
.gallery-lightbox-close svg {
    width: 24px;
    height: 24px;
    stroke-width: 2;
}

.gallery-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10001;
}

.gallery-lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.2);
}

.gallery-lightbox-nav.prev {
    left: 20px;
}

.gallery-lightbox-nav.next {
    right: 20px;
}

.gallery-lightbox-nav i,
.gallery-lightbox-nav svg {
    width: 28px;
    height: 28px;
    stroke-width: 2;
}

/* 애니메이션 */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* 모바일 최적화 */
@media (max-width: 768px) {
    .gallery {
        padding: 3em 0.5em;
    }

    .photo-grid {
        gap: 3px;
    }

    .gallery-lightbox-nav {
        width: 40px;
        height: 40px;
    }

    .gallery-lightbox-nav.prev {
        left: 10px;
    }

    .gallery-lightbox-nav.next {
        right: 10px;
    }

    .gallery-lightbox-close {
        top: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .gallery {
        padding: 2.5em 0.3em;
    }

    .photo-grid {
        gap: 2px;
    }

    .gallery-lightbox-image {
        max-width: 95vw;
        max-height: 80vh;
    }
}


/* ===== location.css ===== */
/* 위치 섹션 */
.location {
    background-color: var(--white);
    padding: 4em 2em;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.location .title {
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 2em;
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: 1px;
}

/* 탭 네비게이션 */
.location-tabs {
    display: flex;
    gap: 1em;
    margin-bottom: 2.5em;
    background: #f5f5f5;
    padding: 0.4em;
    border-radius: 30px;
    position: relative;
}

/* 슬라이드 인디케이터 */
.location-tab-indicator {
    position: absolute;
    top: 0.4em;
    left: 0.4em;
    height: calc(100% - 0.8em);
    background: white;
    border-radius: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    z-index: 0;
}

.location-tab {
    flex: 1;
    padding: 0.8em 2em;
    border: none;
    border-radius: 25px;
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: transparent;
    color: #999;
    min-width: 120px;
    position: relative;
    z-index: 1;
}

.location-tab.active {
    color: var(--primary-color);
}

.location-tab:hover:not(.active) {
    color: #666;
}

/* 콘텐츠 컨테이너 */
.location-contents-wrapper {
    width: 100%;
    max-width: var(--content-max-width);
    position: relative;
    overflow: hidden;
}

.location-content {
    display: none;
    width: 100%;
    max-width: var(--content-max-width);
    opacity: 0;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
}

.location-content.active {
    display: block;
    opacity: 1;
    transform: translateX(0);
}

.location-content.slide-out-left {
    transform: translateX(-100%);
    opacity: 0;
}

.location-content.slide-out-right {
    transform: translateX(100%);
    opacity: 0;
}

.location-content.slide-in-left {
    transform: translateX(-100%);
    opacity: 0;
}

.location-content.slide-in-right {
    transform: translateX(100%);
    opacity: 0;
}

/* 식사 안내 */
.dining-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2em;
}

.dining-image {
    width: 100%;
    max-width: 100%;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.dining-text {
    text-align: center;
    padding: 1em 2em;
}

.dining-text p {
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 1em;
    line-height: 1.8;
    color: var(--font-color-default);
}

.venue {
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 1.1rem;
}

.address-text {
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 1em;
    color: var(--primary-color);
    margin-top: 0.5em;
    text-align: center;
}

.map-image-container {
    margin: 2.5em 1em 0 1em;
    width: calc(100% - 2em);
    border-radius: 12px 12px 0 0;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.map-image-container:hover {
    transform: translateY(-2px);
}

.map-image-container:hover .map-click-hint {
    opacity: 1;
}

.map-image-container:hover .map-image {
    transform: scale(1.02);
}

.map-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.map-click-hint {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: white;
    text-align: center;
    padding: 2em 1em 1em;
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 0.9em;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.map-buttons-container {
    margin: 0 1em 2em 1em;
    width: calc(100% - 2em);
    display: flex;
    justify-content: stretch;
    gap: 0;
    background: #EFEAE4; /* 정확한 색상값 사용 */
    border-radius: 0 0 12px 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.map-button {
    border: none;
    cursor: pointer;
    padding: 1em 1.5em;
    display: flex;
    flex-direction: column;
    color: var(--font-color-default);
    font-size: 1em;
    text-align: center;
    gap: 0.5em;
    flex: 1;
    align-items: center;
    background: #EFEAE4; /* 정확한 색상값 사용 */
    border-radius: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.map-button:last-child {
    border-radius: 0 0 12px 0;
}

.map-button:first-child {
    border-radius: 0 0 0 12px;
}

.map-button:hover {
    background: #e8e1db; /* 더 밝은 호버 색상 */
    transform: translateY(-1px);
}

.map-button span {
    font-size: 0.85em;
    font-family: 'Noto Sans KR', sans-serif;
    font-weight: 500;
}

.map-icon {
    width: 35px;
    height: 35px;
    object-fit: contain;
    border-radius: 6px;
    transition: transform 0.2s ease-in-out;
}

/* 지도 라이트박스 */
.map-lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeIn 0.3s ease-out;
}

.map-lightbox-container {
    position: relative;
    max-width: 95vw;
    max-height: 95vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-lightbox-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
    animation: zoomIn 0.3s ease-out;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.map-lightbox-close {
    position: absolute;
    top: -50px;
    right: -50px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.map-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.map-lightbox-info {
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.8em 1.5em;
    border-radius: 20px;
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 1em;
    font-weight: 500;
    backdrop-filter: blur(10px);
    white-space: nowrap;
}

/* 모바일 최적화 */
@media (max-width: 768px) {
    .location {
        padding: 1.5em 1em 3em 1em;
    }

    .address-text {
        font-size: 0.9em;
    }

    .map-image-container {
        margin: 2em 0 0 0;
        width: 100%;
    }

    .map-buttons-container {
        margin: 0 0 2em 0;
        width: 100%;
    }

    .map-button {
        padding: 1em 0.8em;
    }

    .map-button span {
        font-size: 0.85em;
    }

    .map-icon {
        width: 32px;
        height: 32px;
    }

    .map-click-hint {
        font-size: 0.85em;
        padding: 1.5em 1em 1em;
    }

    .map-lightbox-close {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
    }

    .map-lightbox-info {
        bottom: 20px;
        font-size: 0.9em;
        padding: 0.6em 1.2em;
    }
}

@media (max-width: 480px) {
    .location {
        padding: 1em 0.5em 2em 0.5em;
    }

    .map-button {
        padding: 0.9em 0.6em;
    }

    .map-button span {
        font-size: 0.8em;
    }

    .map-icon {
        width: 28px;
        height: 28px;
    }
}

/* ===== account.css ===== */
/* 계좌 정보 섹션 */
.account-trapezoid {
    background: var(--white);
    padding: 4em 2em;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.account-title {
    text-align: center;
    margin-bottom: 2em;
    color: var(--primary-color);
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: 1px;
}

/* 아코디언 컨테이너 */
.account-accordion-container {
    width: 100%;
    max-width: var(--content-max-width);
    display: flex;
    flex-direction: column;
    gap: 1em;
}

/* 아코디언 아이템 */
.account-accordion-item {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(185, 148, 147, 0.2);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.account-accordion-item:hover {
    box-shadow: 0 4px 16px rgba(185, 148, 147, 0.15);
    border-color: rgba(185, 148, 147, 0.4);
}

.account-accordion-item.active {
    border-color: var(--primary-color);
    box-shadow: 0 4px 20px rgba(185, 148, 147, 0.2);
}

/* 아코디언 버튼 - FAQ 섹션 스타일과 일치 */
.account-accordion-button {
    width: 100%;
    padding: 1.2em 1.5em;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: white;
    border: none;
    cursor: pointer;
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 1.1em;
    font-weight: 600;
    color: var(--font-color-default);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.account-accordion-button::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--primary-color), transparent);
    transition: width 0.3s ease;
}

.account-accordion-button:hover {
    background: rgba(185, 148, 147, 0.05);
}

.account-accordion-button:hover::before {
    width: 4px;
}

.account-accordion-button .accordion-icon {
    width: 24px;
    height: 24px;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.account-accordion-item.active .account-accordion-button .accordion-icon {
    transform: rotate(180deg);
}

/* 아코디언 콘텐츠 */
.account-accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: #f9f9f9;
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* 계좌 카드 */
.account-card {
    width: 100%;
    background: white;
    border: none;
    border-bottom: 1px solid rgba(185, 148, 147, 0.15);
    border-radius: 0;
    padding: 1.5em;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1em;
    transition: all 0.3s ease;
}

.account-card:last-child {
    border-bottom: none;
}

.account-card:hover {
    background: #fff;
}

/* 카드 내 이름 */
.account-card-name {
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 1.4em;
    font-weight: 700;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 0.5em;
}

/* 계좌 정보 섹션 */
.account-card-info {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.8em;
}

/* 은행명과 계좌번호 행 */
.account-card-bank-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8em;
    padding: 1em;
    background: #f8f9fa;
    border-radius: 12px;
}

.account-card-bank-info {
    flex: 1;
    min-width: 0;
}

.account-card-bank-name {
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 0.85em;
    color: #666;
    margin-bottom: 0.3em;
}

.account-card-number {
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    font-weight: 600;
    color: #333;
    word-break: break-all;
}

/* 복사 버튼 */
.account-card-copy-button {
    background: white;
    color: var(--primary-color);
    border: 1px solid rgba(185, 148, 147, 0.3);
    padding: 0.6em 1em;
    border-radius: 8px;
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 0.85em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 0.4em;
}

.account-card-copy-button:hover {
    background: rgba(185, 148, 147, 0.1);
    border-color: var(--primary-color);
    transform: scale(1.02);
}

/* 카카오페이 버튼 */
.account-kakaopay-button {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 0.5em;
    padding: 1em 1.2em;
    background: #FEE500;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.account-kakaopay-button:hover {
    background: #FDD800;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.kakaopay-button-text {
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 0.95em;
    font-weight: 700;
    color: #3C1E1E;
    flex: 1;
    text-align: left;
}

.kakaopay-button-icon {
    width: 36px;
    height: 36px;
    object-fit: contain;
    flex-shrink: 0;
}

/* 토스트 메시지 */
.account-toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 1em 2em;
    border-radius: 25px;
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 1em;
    font-weight: 500;
    z-index: 10000;
    display: none;
    animation: toastFadeIn 0.3s ease-out;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

@keyframes toastFadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

/* 모바일 최적화 */
@media (max-width: 768px) {
    .account-trapezoid {
        padding: 3em 1.5em;
    }

    .account-title {
        font-size: 1.2rem;
        margin-bottom: 1.5em;
    }

    .account-accordion-button {
        padding: 1em 1.2em;
        font-size: 1em;
    }

    .account-accordion-button .accordion-icon {
        width: 20px;
        height: 20px;
    }

    .account-card {
        padding: 1.2em;
    }

    .account-card-name {
        font-size: 1.2em;
    }

    .account-card-bank-name {
        font-size: 0.8em;
    }

    .account-card-number {
        font-size: 0.85em;
    }

    .account-card-copy-button {
        padding: 0.5em 0.8em;
        font-size: 0.8em;
    }

    .kakaopay-button-text {
        font-size: 0.9em;
    }

    .kakaopay-button-icon {
        width: 32px;
        height: 32px;
    }
}

@media (max-width: 480px) {
    .account-trapezoid {
        padding: 2em 1em;
    }

    .account-title {
        font-size: 1.1rem;
    }

    .account-accordion-button {
        padding: 0.9em 1em;
        font-size: 0.95em;
    }

    .account-card {
        padding: 1em;
    }

    .account-card-name {
        font-size: 1.1em;
    }

    .account-card-bank-row {
        flex-direction: column;
        align-items: stretch;
        gap: 0.6em;
    }

    .account-card-copy-button {
        width: 100%;
        justify-content: center;
    }

    .kakaopay-button-text {
        font-size: 0.85em;
    }

    .kakaopay-button-icon {
        width: 30px;
        height: 30px;
    }

    .account-kakaopay-button {
        padding: 0.9em 1em;
    }
}

/* ===== snaps.css ===== */
/* Snaps 섹션 */
.snaps-section {
    padding: 4em 0;
    background: var(--white);
    position: relative;
    max-width: var(--content-max-width);
    margin: 0 auto;
}

.snaps-section .header {
    max-width: var(--content-max-width);
    margin: 0 auto 2.5em;
    padding: 0 2em;
    text-align: center;
}

/* 영문 서브타이틀 */
.snap-subtitle-en {
    font-family: 'Sriracha', cursive;
    font-size: 0.9em;
    color: #999;
    margin-bottom: 0.5em;
    letter-spacing: 1px;
    text-align: center;
}

/* 메인 타이틀 */
.snaps-section .title {
    color: var(--primary-color);
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1.5em;
    letter-spacing: 1px;
}

/* 설명 텍스트 */
.snap-description {
    font-family: 'Noto Sans KR', sans-serif;
    color: var(--font-color);
    font-size: 0.95em;
    line-height: 1.8;
    margin-bottom: 2em;
}

.snap-description p {
    margin: 0.3em 0;
}

/* 업로드 컨테이너 */
.snap-upload-container {
    max-width: var(--content-max-width);
    margin: 0 auto;
    padding: 0 2em;
    text-align: center;
    padding-top: 2em;
    padding-bottom: 2em;
}

/* 업로드 버튼 */
.snap-upload-button {
    background: white;
    color: #666;
    border: 2px solid #ddd;
    padding: 1em 3em;
    border-radius: 30px;
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.snap-upload-button:hover {
    background: #f8f8f8;
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.snap-upload-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* 업로드 프로그레스 모달 */
.snap-upload-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(5px);
}

.snap-upload-modal-content {
    background: white;
    padding: 2.5em;
    border-radius: 16px;
    max-width: 450px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.snap-upload-modal h3 {
    color: var(--primary-color);
    margin-bottom: 1.5em;
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 1.3em;
}

.snap-upload-progress-bar {
    width: 100%;
    height: 8px;
    background: #f0f0f0;
    border-radius: 4px;
    overflow: hidden;
    margin: 1.5em 0;
}

.snap-upload-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-color-light));
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 4px;
}

.snap-upload-status {
    font-family: 'Noto Sans KR', sans-serif;
    color: #666;
    font-size: 0.95em;
    margin-top: 1em;
}

.snap-upload-close-btn {
    margin-top: 1.5em;
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.8em 2em;
    border-radius: 25px;
    font-family: 'Noto Sans KR', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.snap-upload-close-btn:hover {
    background: var(--primary-color-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(185, 148, 147, 0.3);
}

/* 모바일 최적화 */
@media (max-width: 768px) {
    .snaps-section {
        padding: 3em 0;
    }

    .snaps-section .header,
    .snap-upload-container {
        padding-left: 1.5em;
        padding-right: 1.5em;
    }

    .snap-subtitle-en {
        font-size: 0.8em;
    }

    .snaps-section .title {
        font-size: 1.2rem;
    }

    .snap-description {
        font-size: 0.9em;
        line-height: 1.7;
    }

    .snap-upload-button {
        padding: 0.9em 2.5em;
        font-size: 0.95em;
    }

    .snap-upload-modal-content {
        padding: 2em;
        margin: 1em;
    }
}

@media (max-width: 480px) {
    .snaps-section {
        padding: 2.5em 0;
    }

    .snaps-section .header,
    .snap-upload-container {
        padding-left: 1em;
        padding-right: 1em;
    }

    .snap-subtitle-en {
        font-size: 0.75em;
    }

    .snap-description {
        font-size: 0.85em;
    }

    .snap-upload-button {
        padding: 0.8em 2em;
        font-size: 0.9em;
    }
}


/* ===== share.css ===== */
/* Wave */
.share-top-wave {
    width: 100%;
    height: 60px;
    display: block;
    margin: 0;
    padding: 0;
    vertical-align: bottom;
    overflow: hidden;
}

/* Wave 애니메이션 */
.parallax-waves > use:nth-child(1) {
    animation: moveWave1 10s cubic-bezier(.55,.5,.45,.5) infinite;
}

.parallax-waves > use:nth-child(2) {
    animation: moveWave2 8s cubic-bezier(.55,.5,.45,.5) -.125s infinite;
}

.parallax-waves > use:nth-child(3) {
    animation: moveWave3 6s cubic-bezier(.55,.5,.45,.5) -.25s infinite;
}

.parallax-waves > use:nth-child(4) {
    animation: moveWave4 4s cubic-bezier(.55,.5,.45,.5) -.375s infinite;
}

@keyframes moveWave1 {
    0% {
        transform: translate3d(-90px,0,0);
    }
    100% { 
        transform: translate3d(85px,0,0);
    }
}

@keyframes moveWave2 {
    0% {
        transform: translate3d(-90px,0,0);
    }
    100% { 
        transform: translate3d(85px,0,0);
    }
}

@keyframes moveWave3 {
    0% {
        transform: translate3d(-90px,0,0);
    }
    100% { 
        transform: translate3d(85px,0,0);
    }
}

@keyframes moveWave4 {
    0% {
        transform: translate3d(-90px,0,0);
    }
    100% { 
        transform: translate3d(85px,0,0);
    }
}

/* 공유 섹션 */
.share-section {
    background: var(--white);
    padding: 0;
    margin: 0;
    width: 100%;
    overflow: hidden;
}

.share-section svg {
    display: block;
    margin-bottom: -1px;
}

/* 이미지 컨테이너 */
.share-image-container {
    position: relative;
    width: 100%;
    height: 650px;
    overflow: hidden;
}

.share-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* 상단 흰색 그라데이션 */
.share-gradient-top {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 150px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
    z-index: 1;
    pointer-events: none;
}

/* 하단 흰색 그라데이션 */
.share-gradient-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 150px;
    background: linear-gradient(to top, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
    z-index: 1;
    pointer-events: none;
}

/* 텍스트 */
.share-text-overlay {
    position: absolute;
    bottom: 20%;
    left: 2em;
    text-align: left;
    color: #fff;
    z-index: 2;
    padding: 0;
    max-width: 80%;
}

.share-message {
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 1.1em;
    font-weight: 400;
    line-height: 2;
    margin: 0;
    letter-spacing: 0.02em;
    word-break: keep-all;
    color: #fff;
}

/* 공유 버튼 컨테이너 */
.share-button-container {
    display: flex;
    justify-content: center;
    padding: 2em 0;
    background: var(--white);
}

/* 카카오톡 공유 버튼 */
.share-kakao-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5em;

    padding: 0.8em 1.5em;
    background: transparent;
    border: none;
    border-radius: 8px;

    cursor: pointer;
    transition: all 0.2s ease;

    /* 모바일에서 잘리지 않도록 최대 너비와 여백 설정 */
    max-width: calc(100% - 3em);
    box-sizing: border-box;
}

.share-kakao-button:hover {
    opacity: 0.7;
}

.share-kakao-button:active {
    opacity: 0.5;
}

.share-kakao-button img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.share-kakao-button span {
    font-family: 'Noto Sans KR', sans-serif;
    font-weight: 500;
    font-size: 1.1em;
    color: #191919;
    white-space: nowrap;
}

/* 토스트 메시지 */
.share-toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 1em 2em;
    border-radius: 25px;
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 1em;
    font-weight: 500;
    z-index: 10000;
    animation: toastFadeIn 0.3s ease-out;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

@keyframes toastFadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

/* 저작권 */
.share-copyright {
    text-align: center;
    padding: 1.5em 0 3em;
    background: var(--white);
}

.share-copyright p {
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 0.85em;
    color: #999;
    margin: 0;
    letter-spacing: 0.02em;
}

.share-copyright strong {
    font-weight: 600;
    color: #666;
}

/* 모바일 최적화 */
@media (max-width: 768px) {
    .share-image-container {
        height: 550px;
    }

    .share-gradient-top,
    .share-gradient-bottom {
        height: 120px;
    }

    .share-text-overlay {
        bottom: 18%;
        left: 1.5em;
    }

    .share-message {
        font-size: 1em;
    }

    .share-kakao-button {
        padding: 0.75em 1.4em;
        gap: 0.5em;
    }

    .share-kakao-button img {
        width: 22px;
        height: 22px;
    }

    .share-kakao-button span {
        font-size: 1.05em;
    }
}

@media (max-width: 480px) {
    .share-image-container {
        height: 480px;
    }

    .share-gradient-top,
    .share-gradient-bottom {
        height: 100px;
    }

    .share-text-overlay {
        bottom: 15%;
        left: 1.2em;
    }

    .share-message {
        font-size: 0.95em;
        line-height: 1.9;
    }

    .share-button-container {
        padding: 1.5em 0;
    }

    .share-kakao-button {
        padding: 0.7em 1.3em;
        gap: 0.45em;
        border-radius: 8px;
        max-width: calc(100% - 2em);
    }

    .share-kakao-button img {
        width: 20px;
        height: 20px;
    }

    .share-kakao-button span {
        font-size: 1.0em;
    }

    .share-copyright {
        padding: 1em 0 2.5em;
    }

    .share-copyright p {
        font-size: 0.8em;
    }
}

/* 매우 작은 화면 (아이폰 SE, 갤럭시 S 등) */
@media (max-width: 390px) {
    .share-kakao-button {
        padding: 0.65em 1.1em;
        gap: 0.4em;
        max-width: calc(100% - 1.5em);
    }

    .share-kakao-button img {
        width: 20px;
        height: 20px;
    }

    .share-kakao-button span {
        font-size: 0.95em;
    }
}

/* 초소형 화면 (아이폰 5/SE 1세대 등) */
@media (max-width: 340px) {
    .share-kakao-button {
        padding: 0.6em 1em;
        gap: 0.35em;
        max-width: calc(100% - 1em);
    }

    .share-kakao-button img {
        width: 18px;
        height: 18px;
    }

    .share-kakao-button span {
        font-size: 0.9em;
    }
}


/* ===== footer.css ===== */
/* Footer 섹션 - 축소된 버전 */
.footer-section {
    background: linear-gradient(to bottom, #FFFFFF 0%, #F5F0F0 100%);
    padding: 2em 1.5em 1.5em 1.5em;
    text-align: center;
    border-top: 1px solid rgba(185, 148, 147, 0.2);
    max-width: var(--content-max-width);
    margin: 0 auto;
}

.footer-content {
    max-width: var(--content-max-width);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8em;
}

.footer-couple {
    margin-bottom: 0.2em;
}

.footer-names {
    font-size: 1.4rem;
    color: var(--primary-color);
    letter-spacing: 0.05em;
}

.footer-date {
    font-size: 0.9em;
    color: var(--font-color-light);
    font-weight: 500;
    letter-spacing: 0.1em;
}

.footer-divider {
    width: 45px;
    height: 1.5px;
    background: linear-gradient(to right, transparent, var(--primary-color), transparent);
    margin: 0.5em 0;
}

.footer-copyright {
    margin-top: 0.5em;
    padding-top: 0.8em;
    border-top: 1px solid rgba(185, 148, 147, 0.15);
    width: 100%;
}

.footer-copyright p {
    font-size: 0.7em;
    color: var(--font-color-light);
    opacity: 0.8;
}

/* 방문자 통계 크기 축소 */
.visitor-stats {
    font-size: 0.85em;
    margin-bottom: 0.5em;
}

/* 모바일 최적화 */
@media (max-width: 768px) {
    .footer-section {
        padding: 1.5em 1em 1em 1em;
        max-width: var(--content-max-width);
        margin: 0 auto;
    }

    .footer-names {
        font-size: 1.2rem;
    }

    .footer-date {
        font-size: 0.85em;
    }

    .footer-divider {
        width: 40px;
    }

    .footer-copyright p {
        font-size: 0.65em;
    }

    .visitor-stats {
        font-size: 0.8em;
    }
}

@media (max-width: 480px) {
    .footer-section {
        padding: 1.2em 0.8em 0.8em 0.8em;
        max-width: var(--content-max-width);
        margin: 0 auto;
    }

    .footer-names {
        font-size: 1.1rem;
    }

    .footer-date {
        font-size: 0.8em;
    }

    .footer-copyright p {
        font-size: 0.6em;
    }
}

/* ===== music.css ===== */
/* BGM 알림 배너 */
.bgm-notification-banner {
    position: fixed;
    top: -80px; /* 초기에는 화면 밖에 숨김 */
    left: 50%;
    transform: translateX(-50%);
    background: #696A6A;
    backdrop-filter: blur(10px);
    border-radius: 0;
    padding: 0.6em 1.5em; /* height 줄이기 */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    z-index: 2000;
    border: none;
    display: flex;
    align-items: center;
    justify-content: space-between; /* 텍스트 왼쪽, 스피커 오른쪽 */
    gap: 1em;
    transition: top 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: auto; /* 스피커 클릭을 위해 */
    max-width: var(--content-max-width);
    width: 100%; /* 전체 너비 */
}

.bgm-notification-banner.show {
    top: 0; /* 배너가 내려옴 */
}

.bgm-notification-text {
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 1em;
    color: #ffffff;
    font-weight: 500;
    pointer-events: none; /* 텍스트는 클릭 불가 */
}

.bgm-notification-icon {
    color: #ffffff;
    width: 20px;
    height: 20px;
}

/* 우측 상단 스피커 아이콘 컨트롤 */
.bgm-speaker-control {
    position: relative; /* 배너 안에 있을 때 */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

/* 배너가 사라질 때 스피커를 우측 상단에 고정 */
.bgm-speaker-control.detached {
    position: fixed;
    top: 10px;
    right: 20px;
    z-index: 2001;
    transition: none !important; /* 배너와 독립적으로 즉시 고정 */
}

.bgm-speaker-button {
    background: #696A6A;
    backdrop-filter: blur(10px);
    color: #ffffff;
    border: none;
    border-radius: 50%;
    width: 36px; /* 크기 줄이기 */
    height: 36px; /* 크기 줄이기 */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2); /* 그림자도 약간 줄이기 */
    padding: 0;
    position: relative;
}

.bgm-speaker-button:hover:not(:disabled) {
    background: #5a5b5b;
    color: white;
    transform: scale(1.05);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.bgm-speaker-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* SVG 아이콘 스타일 */
.bgm-speaker-button svg[data-lucide] {
    width: 20px !important; /* 아이콘 크기 줄이기 */
    height: 20px !important;
    min-width: 20px !important;
    min-height: 20px !important;
    max-width: 20px !important;
    max-height: 20px !important;
    stroke-width: 2.5 !important;
    display: block !important;
    margin: 0 auto !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
}

.bgm-speaker-button i {
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
    width: 100%;
    height: 100%;
}

.music-info {
    display: flex;
    flex-direction: column;
    gap: 0.3em;
    min-width: 120px;
}

.time-display {
    font-size: 0.75em;
    color: var(--font-color-default);
    font-family: 'Noto Sans KR', sans-serif;
    text-align: center;
}

/* 자동재생 프롬프트 */
.autoplay-prompt {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 2em 2.5em;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    z-index: 2000;
    border: 2px solid rgba(185, 148, 147, 0.3);
    animation: fadeInPulse 0.8s ease-out;
    text-align: center;
}

.prompt-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5em;
    color: var(--primary-color);
    font-family: 'Noto Sans KR', sans-serif;
}

.prompt-message {
    display: flex;
    align-items: center;
    gap: 0.8em;
    font-size: 1.1em;
    font-weight: 600;
}

.prompt-buttons {
    display: flex;
    gap: 1em;
    justify-content: center;
}

.prompt-button {
    padding: 0.8em 2em;
    border-radius: 25px;
    border: none;
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.prompt-button.yes {
    background: var(--primary-color);
    color: white;
}

.prompt-button.yes:hover {
    background: var(--primary-color-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(185, 148, 147, 0.3);
}

.prompt-button.no {
    background: #f5f5f5;
    color: #666;
}

.prompt-button.no:hover {
    background: #e0e0e0;
    transform: translateY(-2px);
}

@keyframes fadeInPulse {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.05);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

/* 모바일 최적화 */
@media (max-width: 768px) {
    .bgm-notification-banner {
        padding: 0.5em 1.2em; /* height 더 줄이기 */
        border-radius: 0; /* 직사각형 모양 */
        width: 100%; /* 전체 너비 */
    }

    .bgm-notification-text {
        font-size: 0.9em;
    }

    .bgm-notification-icon {
        width: 18px;
        height: 18px;
    }

    .bgm-speaker-control.detached {
        top: 8px; /* 모바일에서 detached 시 위치 */
        right: 15px;
    }

    .bgm-speaker-button {
        width: 32px; /* 모바일에서 더 작게 */
        height: 32px;
    }

    .bgm-speaker-button svg[data-lucide] {
        width: 18px !important; /* 모바일 아이콘 크기 */
        height: 18px !important;
        min-width: 18px !important;
        min-height: 18px !important;
        max-width: 18px !important;
        max-height: 18px !important;
    }

    .autoplay-prompt {
        padding: 1.5em 2em;
        max-width: 90%;
    }

    .prompt-message {
        font-size: 1em;
    }

    .prompt-button {
        padding: 0.7em 1.5em;
        font-size: 0.95em;
    }
}


/* ===== modal.css ===== */
/* =========================
   모달 공통 스타일
   static/css/modal.css
========================= */

/* 모달 오버레이 */
.form-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 2em;
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
    /* 성능 최적화 */
    will-change: opacity;
    backface-visibility: hidden;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* 모달 컨텐츠 */
.form-modal-content {
    background: white;
    border-radius: 16px;
    padding: 2.5em;
    max-width: 480px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(185, 148, 147, 0.2);
    position: relative;
    animation: slideUp 0.3s ease;
    box-sizing: border-box;
    margin: 0 auto;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 모달 닫기 버튼 */
.form-modal-close {
    position: absolute;
    top: 1em;
    right: 1em;
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: #666;
    z-index: 10;
}

.form-modal-close:hover {
    background: rgba(185, 148, 147, 0.2);
    color: #B99493;
    transform: rotate(90deg);
}

.form-modal-close i,
.form-modal-close svg {
    width: 20px;
    height: 20px;
    stroke-width: 2;
}

/* 모달 헤더 */
.form-modal-header {
    text-align: center;
    margin-bottom: 2em;
}

.form-modal-title {
    font-size: 1.5em;
    font-weight: 600;
    color: #B99493;
    margin-bottom: 0.5em;
}

.form-modal-subtitle {
    color: #666;
    font-size: 0.95em;
    line-height: 1.6;
}

/* 폼 그룹 */
.form-group {
    margin-bottom: 1.5em;
}

.form-label {
    display: block;
    font-weight: 500;
    color: #333;
    margin-bottom: 0.8em;
    font-size: 0.95em;
}

.required {
    color: #e74c3c;
}

/* 버튼 그룹 (라디오 버튼) */
.button-group {
    display: flex;
    gap: 0.8em;
}

.option-btn {
    flex: 1;
    padding: 0.8em 1.5em;
    border: 2px solid #e0e0e0;
    border-radius: 4px;
    background: white;
    color: #666;
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 0.95em;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.option-btn:hover {
    border-color: #000;
    color: #000;
}

.option-btn.selected {
    background: #000;
    border-color: #000;
    color: white;
}

/* 식사 여부 옵션 스타일 */
.meal-option {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5em;
}

.meal-option .meal-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* 기본 상태: 체크된 아이콘 숨김, 빈 동그라미 표시 */
.meal-option .checked-icon {
    display: none;
}

.meal-option .unchecked-icon {
    display: inline-block;
}

/* 선택된 상태: 체크된 아이콘 표시, 빈 동그라미 숨김 */
.meal-option.selected .checked-icon {
    display: inline-block;
}

.meal-option.selected .unchecked-icon {
    display: none;
}

/* 추가인원 입력 스타일 */
.extra-count-container {
    display: flex;
    align-items: center;
    gap: 0.5em;
    padding: 0.8em 0;
    border-bottom: 1px solid #e0e0e0;
}

.extra-prefix, .extra-suffix {
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 0.95em;
    color: #333;
}

.extra-count-input {
    width: 50px;
    border: none;
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 0.95em;
    color: #333;
    text-align: center;
    padding: 0.3em;
    background: transparent;
    -moz-appearance: textfield;
}

.extra-count-input::-webkit-outer-spin-button,
.extra-count-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.extra-count-input:focus {
    outline: none;
}

/* 식사여부 체크 스타일 */
.meal-check-group {
    display: flex;
    gap: 2em;
    padding: 0.5em 0;
}

.meal-check-option {
    display: flex;
    align-items: center;
    gap: 0.5em;
    cursor: pointer;
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 0.95em;
    color: #333;
}

.meal-check-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: #333;
}

/* 기본 상태: 체크된 아이콘 숨김 */
.meal-check-option .checked-icon {
    display: none;
}

.meal-check-option .unchecked-icon {
    display: inline-block;
}

/* 선택된 상태: 체크된 아이콘 표시 */
.meal-check-option.selected .checked-icon {
    display: inline-block;
}

.meal-check-option.selected .unchecked-icon {
    display: none;
}

/* 개인정보 동의 스타일 */
.privacy-consent-header {
    margin-bottom: 0.8em;
}

.privacy-title {
    font-weight: 700;
    color: #000;
    font-size: 1em;
}

.privacy-description {
    font-size: 0.85em;
    color: #999;
    line-height: 1.6;
    margin: 0.5em 0 1em 0;
}

.privacy-check-option {
    display: flex;
    align-items: center;
    gap: 0.5em;
    cursor: pointer;
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 0.95em;
    color: #333;
}

.privacy-check-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: #333;
}

/* 기본 상태: 체크된 아이콘 숨김 */
.privacy-check-option .checked-icon {
    display: none;
}

.privacy-check-option .unchecked-icon {
    display: inline-block;
}

/* 체크된 상태: 체크된 아이콘 표시 */
.privacy-check-option.checked .checked-icon {
    display: inline-block;
}

.privacy-check-option.checked .unchecked-icon {
    display: none;
}

/* 텍스트 입력 필드 */
.text-input, .form-textarea {
    width: 100%;
    padding: 0.8em 1em;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 0.95em;
    background: white;
    transition: all 0.3s ease;
    resize: vertical;
}

.text-input:focus, .form-textarea:focus {
    outline: none;
    border-color: #B99493;
    box-shadow: 0 0 0 3px rgba(185, 148, 147, 0.1);
}

.text-input::placeholder, .form-textarea::placeholder {
    color: #aaa;
}

.form-textarea {
    min-height: 100px;
    line-height: 1.6;
}

/* 글자 수 카운터 */
.char-counter {
    text-align: right;
    font-size: 0.8em;
    color: #a3a3a3;
    margin-top: 0.3em;
}

.char-counter.warning {
    color: #ffc107;
}

.char-counter.error {
    color: #e74c3c;
}

/* 비밀번호 힌트 */
.password-hint {
    font-size: 0.8em;
    color: #a3a3a3;
    margin-top: 0.3em;
}

/* 제출 버튼 */
.submit-btn {
    width: 100%;
    background: #000;
    color: white;
    border: none;
    padding: 1em 2em;
    border-radius: 4px;
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1em;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.submit-btn:hover:not(:disabled) {
    background: #333;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

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

/* 로딩 스피너 */
.loading-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: inline-block;
    margin-right: 0.5em;
    vertical-align: middle;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 예시 메시지 (방명록 전용) */
.example-messages {
    background: rgba(185, 148, 147, 0.05);
    border-radius: 12px;
    padding: 1.5em;
    margin-bottom: 1.5em;
}

.example-messages h4 {
    color: #B99493;
    font-size: 1em;
    margin-bottom: 1em;
    text-align: center;
}

.example-list {
    list-style: none;
    padding: 0;
}

.example-list li {
    padding: 0.5em 0;
    color: #666;
    font-size: 0.85em;
    border-bottom: 1px solid rgba(185, 148, 147, 0.1);
    line-height: 1.4;
}

.example-list li:last-child {
    border-bottom: none;
}

/* 모바일 최적화 */
@media (max-width: 768px) {
    .form-modal {
        padding: 1em;
    }

    .form-modal-content {
        padding: 2em 1.5em;
        max-height: 85vh;
    }

    .form-modal-title {
        font-size: 1.3em;
    }

    .button-group {
        flex-direction: column;
    }

    .text-input, .form-textarea {
        font-size: 16px; /* iOS 줌 방지 */
    }
}

@media (max-width: 480px) {
    .form-modal {
        padding: 0.5em;
    }

    .form-modal-content {
        padding: 1.5em 1em;
    }

    .form-modal-title {
        font-size: 1.2em;
    }

    .form-modal-subtitle {
        font-size: 0.9em;
    }
}

/* ===== video.css ===== */
/* 유튜브 비디오 섹션 */
.video-section {
    padding: 4.5em 2em;
    background-color: var(--white);
    max-width: var(--content-max-width);  /* ✅ 추가 */
    margin: 0 auto;                       /* ✅ 추가 */
}

.video-section .header {
    margin-bottom: 2em;
    text-align: center;
}

.video-section .title {
    color: var(--primary-color);
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 0.5em;
}

.video-section .subtitle {
    color: var(--font-color-light);
    font-size: 0.85em;
    font-family: 'Noto Sans KR', sans-serif;
}

.video-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    padding-bottom: 56.25%; /* 16:9 비율 */
    height: 0;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    background: #f5f5f5;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 16px;
}

/* 모바일 최적화 */
@media (max-width: 768px) {
    .video-section {
        padding: 3em 1.5em;
    }

    .video-container {
        border-radius: 12px;
    }

    .video-container iframe {
        border-radius: 12px;
    }
}

@media (max-width: 480px) {
    .video-section {
        padding: 2.5em 1em;
    }

    .video-section .title {
        font-size: 1.1rem;
    }

    .video-container {
        border-radius: 8px;
    }

    .video-container iframe {
        border-radius: 8px;
    }
}

