/* »çÁø È®´ë ¸ð´Þ ½ºÅ¸ÀÏ */
#photo-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.9);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.photo-modal-hidden {
    display: none !important;
}

.photo-modal-visible {
    display: flex !important;
}

#photo-modal-img {
    max-width: 85vw;
    max-height: 85vh;
    border-radius: 12px;
    box-shadow: 0 4px 30px rgba(0,0,0,0.5);
    object-fit: contain;
    user-select: none;
    -webkit-user-drag: none;
    pointer-events: none;
}

#photo-modal-close {
    position: absolute;
    top: 30px;
    right: 30px;
    font-size: 3rem;
    color: #fff;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 3100;
    transition: opacity 0.3s ease;
}

#photo-modal-close:hover {
    opacity: 0.7;
}

.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    font-size: 3rem;
    padding: 15px 20px;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
    z-index: 3100;
}

.prev-arrow {
    left: 30px;
}

.next-arrow {
    right: 30px;
}

.nav-arrow:hover {
    background: rgba(255,255,255,0.4);
    transform: translateY(-50%) scale(1.1);
}

#photo-counter {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    background: rgba(0,0,0,0.6);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
}

.top-date {
    text-align: center;
    background: none;
    padding: 0;
    margin: 60px 0 32px 0;
    width: auto;
}
.date-text {
    font-size: 2.3rem;
    font-family: 'Dancing Script', 'Noto Sans KR', cursive, serif;
    color: #443428;
    letter-spacing: 2px;
    font-weight: 400;
    line-height: 1.15;
}
.day-text {
    font-size: 1.2rem;
    color: #7a6a5c;
    letter-spacing: 4px;
    margin-top: 2px;
    font-family: 'Dancing Script', 'Noto Sans KR', cursive, serif;
    font-weight: 400;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans KR', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
    overflow-x: hidden;
}

/* Landing Section */
.landing {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    text-align: center;
    background: linear-gradient(135deg, #f8f4f0 0%, #ffffff 100%);
}

.main-photo {
    width: 280px;
    height: 350px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background-color: #f0f0f0;
}

.couple-names h1 {
    font-size: 28px;
    font-weight: 300;
    color: #8B4513;
    margin-bottom: 20px;
}

.heart {
    color: #ff6b9d;
    font-size: 24px;
}

.wedding-info {
    margin-bottom: 40px;
}

.wedding-info .date {
    font-size: 18px;
    font-weight: 500;
    color: #666;
    margin-bottom: 8px;
}

.wedding-info .venue {
    font-size: 16px;
    color: #888;
}

.invitation-btn {
    background: linear-gradient(135deg, #ff6b9d, #ffa8cc);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(255,107,157,0.3);
    transition: all 0.3s ease;
}

.invitation-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255,107,157,0.4);
}

/* Common Section Styles */
section {
    padding: 60px 20px;
    max-width: 400px;
    margin: 0 auto;
    text-align: center;
}

h2 {
    font-size: 24px;
    font-weight: 300;
    color: #8B4513;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

h3 {
    font-size: 18px;
    font-weight: 400;
    color: #ff6b9d;
    margin-bottom: 40px;
}

/* Invitation Section */
.invitation {
    background-color: #fefefe;
}

.invitation-text {
    font-size: 14px;
    line-height: 1.8;
    color: #666;
    margin-bottom: 40px;
}

.parents-info {
    margin-bottom: 40px;
    font-size: 14px;
    line-height: 1.8;
}

.contact-btn {
    background: linear-gradient(135deg, #8B4513, #A0522D);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 5px;
}

.contact-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(139,69,19,0.3);
}

/* Gallery Section */
.gallery {
    padding: 60px 0;
    background-color: #fff;
    text-align: center;
}

.gallery h2 {
    font-size: 1.8rem;
    color: #8d6e63;
    margin-bottom: 10px;
    letter-spacing: 3px;
}

.gallery h3 {
    font-size: 1.2rem;
    color: #a1887f;
    margin-bottom: 30px;
    font-weight: 400;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 20px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 15px;
}

.photo-frame {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    aspect-ratio: 1;
    cursor: pointer;
    background: #f8f8f8;
    z-index: 1;
}

.photo-frame:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.photo-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
    pointer-events: none;
}

.photo-frame:hover img {
    transform: scale(1.05);
}

/* ÄÝ¶óÁÖ ½ºÅ¸ÀÏ */
.collage-frame {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    aspect-ratio: 1;
    cursor: pointer;
    background: #f8f8f8;
}

.collage-frame:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.collage-container {
    position: relative;
    width: 100%;
    height: 100%;
    background: #f8f8f8;
}

.collage-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 2px;
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 1;
}

.collage-item {
    position: relative;
    overflow: hidden;
    background: #f0f0f0;
}

.collage-item.main-item {
    grid-row: 1 / 3;
}

.collage-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    user-select: none;
    -webkit-user-drag: none;
}

.collage-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
    pointer-events: none;
}

.collage-frame:hover .collage-overlay {
    opacity: 1;
}

.collage-frame:hover .collage-item img {
    transform: scale(1.05);
}

/* Wedding Date Section */
.wedding-date {
    background-color: #ffffff;
}

.wedding-date h2 {
    font-size: 32px;
    margin-bottom: 5px;
}

.wedding-date p {
    font-size: 16px;
    color: #666;
    margin-bottom: 30px;
}

.calendar {
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    max-width: 300px;
    margin: 0 auto;
}

.calendar-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    margin-bottom: 15px;
}

.calendar-header span {
    font-size: 12px;
    font-weight: 500;
    color: #666;
    text-align: center;
    padding: 8px 0;
}

.calendar-body {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

.calendar-body span {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    border-radius: 50%;
    cursor: pointer;
    line-height: 1;
    height: 30px;
}

.wedding-day {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23ffb6c1' d='M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z'/%3E%3C/svg%3E") no-repeat center 95%;
    background-size: 30px 30px;
    color: #ff6b6b;
    font-weight: bold;
}

/* Location Section */
.location {
    background-color: #f9f9f9;
}

.venue-info {
    margin-bottom: 30px;
}

.venue-info h4 {
    font-size: 18px;
    font-weight: 500;
    color: #333;
    margin-bottom: 10px;
}

.venue-info p {
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
}

.map-container {
    margin-bottom: 30px;
}

.map-image {
    width: 100%;
    max-width: 350px;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    background-color: #f0f0f0;
}

.navigation-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 40px;
    justify-content: center;
}

.nav-btn {
    flex: 1;
    padding: 12px 8px;
    border: none;
    border-radius: 8px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-btn.naver {
    background-color: #03C75A;
    color: white;
}

.nav-btn.kakao {
    background-color: #FEE500;
    color: #000;
}

.transportation {
    text-align: left;
}

.transportation h4 {
    font-size: 16px;
    font-weight: 500;
    color: #333;
    margin: 20px 0 10px 0;
}

.transport-info {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
    padding: 10px;
    background-color: #f5f5f5;
    border-radius: 8px;
}

/* Guestbook Section */
.guestbook {
    background-color: #ffffff;
}

.guestbook-form {
    margin-bottom: 40px;
}

.guestbook-form input,
.guestbook-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
}

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

.guestbook-form button {
    background: linear-gradient(135deg, #ff6b9d, #ffa8cc);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.guestbook-list {
    text-align: left;
}

/* Account Section */
.account {
    background-color: #f9f9f9;
}

.account-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 40px;
}

.account-item {
    background-color: white;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.account-item h4 {
    font-size: 16px;
    font-weight: 500;
    color: #333;
    margin-bottom: 15px;
}

.account-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.account-details span:first-child {
    font-weight: 500;
    color: #333;
}

.account-details span:last-of-type {
    font-size: 14px;
    color: #666;
}

.copy-btn {
    background-color: #ff6b9d;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 15px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.copy-btn:hover {
    background-color: #ff5a8a;
}

/* KakaoTalk Share Section */
.kakao-share {
    background-color: #ffffff;
    padding: 40px 20px;
}

.copyright {
    font-size: 12px;
    color: #999;
    margin-top: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-arrow {
        font-size: 2rem;
        padding: 10px 15px;
    }
    
    .prev-arrow {
        left: 15px;
    }
    
    .next-arrow {
        right: 15px;
    }
    
    #photo-modal-close {
        top: 20px;
        right: 20px;
        font-size: 2.5rem;
    }
    
    .collage-grid {
        grid-template-columns: 1.5fr 1fr;
        gap: 1px;
    }
    
    .collage-overlay {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .collage-overlay {
        font-size: 0.8rem;
    }
}

@media (max-width: 360px) {
    .main-photo {
        width: 250px;
        height: 320px;
    }
    
    .couple-names h1 {
        font-size: 24px;
    }
    
    section {
        padding: 40px 15px;
    }
    
    .photo-grid {
        gap: 10px;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}