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

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

.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: normal;
}

img {
    max-width: 100%;
    height: auto;
}

/* Header Section */
.header {
    text-align: center;
    margin-bottom: 40px;
}

.main-image {
    max-width: none;
}

.main-image img {
    width: 100%;
    object-fit: cover;
    margin-top: -20px;
}

.wedding-title {
    font-size: 36px;
    color: #f8a4c1;
    margin: 20px 0;
    font-family: 'Parisienne', cursive;
}

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

/* Poem Section */
.poem {
    text-align: center;
    margin: 40px 0;
    padding: 20px 0;
}

.poem h3 {
    color: #f8a4c1;
    margin-bottom: 20px;
    font-size: 18px;
}

.poem p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #666;
    position: relative;
    padding-bottom: 2.5rem;
}

.poem p::after {
    content: '';
    display: block;
    position: absolute;
    left: 50%;
    bottom: 0;
    margin-left: -1.875rem;
    width: 3.750rem;
    height: 2px;
    background: #fbdde2;
}

/* Contact Section */
.contact {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin: 2rem 0;
}

.parents {
    text-align: center;
    margin-bottom: 30px;
}

.parent-group {
    margin: 10px 0;
    font-size: 14px;
}

.contact-buttons {
    margin: 30px 0;
}

.contact-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 10px;
    padding: 1.5rem;
    flex-wrap: nowrap;
}

.label {
    font-size: 1.2rem;
    font-weight: 500;
    color: #111;
    white-space: nowrap;
}

.buttons {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}

.btn-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    flex-shrink: 0;
    text-decoration: none;
}

.btn-circle.small {
    width: 30px;
    height: 30px;
    font-size: 12px;
}

.contact-row:nth-child(1) .btn-circle {
    background-color: #6ab7ff;
}

.contact-row:nth-child(2) .btn-circle {
    background-color: #f8a4c1;
}

.family-contacts {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}
.family-row {
    padding: 0 0.625rem;
    margin-top: 0.938rem;
}
.side {
    display: block;
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 1rem;
    text-align: center;
}
.family-row:nth-child(1) .side {
    color: #81d3d0;
}
.family-row:nth-child(2) .side {
    color: #eea6c9;
}
.family-member {
    margin-bottom: 2rem;
    text-align: center;
}
.relation {
    display: block;
    font-size: 0.9rem;
    color: #999;
}
.name {
    display: block;
    font-size: 1.2rem;
    font-weight: bold;
    margin: 0.3rem 0 0.8rem;
}
.contact-icons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}
.btn-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    color: #fff;
    font-size: 1.3rem;
}
.family-row:nth-child(1) .btn-circle:nth-child(1) {
    background-color: #b4dad9;
}
.family-row:nth-child(2) .btn-circle:nth-child(1) {
    background-color: #f4c4d7;
}
.btn-circle:nth-child(2) {
    background-color: #ccc;
}

/* Calendar Section */
.calendar-section {
    margin: 40px 0;
    text-align: center;
    border: 2px solid #f8a4c1;
    border-radius: 10px;
    padding: 1rem;
}

.calendar-section h3 {
    color: #f8a4c1;
    margin-bottom: 20px;
    font-size: 18px;
}

.calendar {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.calendar th, .calendar td {
    width: 14.28%;
    padding: 10px;
    text-align: center;
    font-size: 14px;
}

.calendar th {
    color: #666;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    padding: 1rem;
    font-family: 'Arial', sans-serif;
    font-weight: 500;
    font-size: 1.1rem;
    border-bottom: 1px solid #eee;
}
  
.calendar-month {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    color: #f87189;
}

.calendar-month .month-number {
    font-weight: 700;
    font-size: 1.4rem;
}

.calendar-time {
    color: #333;
    font-size: 1.1rem;
}  

.calendar .today {
    background-color: #f8a4c1;
    color: white;
    border-radius: 50%;
}

/* Gallery Section */
.gallery-section {
    margin: 40px 0;
    text-align: center;
}

.gallery-section h3 {
    color: #f8a4c1;
    margin-bottom: 20px;
    font-size: 18px;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 20px 0;
}

.gallery-item {
    cursor: pointer;
    border-radius: 50%;
    overflow: hidden;
    aspect-ratio: 1/1;
}

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

.gallery-caption {
    font-size: 14px;
    color: #666;
    margin-top: 20px;
}

/* Location Section */
.location-section {
    margin: 40px 0;
    text-align: center;
}

.location-section h3 {
    color: #f8a4c1;
    margin-bottom: 20px;
    font-size: 18px;
}

.venue-info {
    margin: 20px 0;
}

.venue-name {
    font-size: 16px;
    font-weight: bold;
}

.venue-address {
    font-size: 14px;
    color: #666;
    margin: 5px 0;
}

.venue-phone {
    display: inline-block;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #f8a4c1;
    color: white;
    text-decoration: none;
    line-height: 40px;
    margin-top: 10px;
}

.map {
    width: 100%;
    height: 200px;
    background-color: #f5f5f5;
    margin: 20px 0;
    border-radius: 10px;
}

/* Account Section */
.account-section {
    margin: 40px 0;
    text-align: center;
}

.account-section h3 {
    color: #f8a4c1;
    margin-bottom: 20px;
    font-size: 18px;
}

.account-section p {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
}

.account-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.btn-account {
    padding: 10px 20px;
    border: none;
    border-radius: 30px;
    color: white;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-account.groom {
    background-color: #6ab7ff;
}

.btn-account.bride {
    background-color: #f8a4c1;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
}

.modal-content {
    position: relative;
    background-color: white;
    margin: 15% auto;
    padding: 20px;
    width: 80%;
    max-width: 500px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.gallery-modal-content {
    width: 90%;
    max-width: 800px;
    padding: 10px;
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

#modalTitle {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
}

.account-item {
    margin: 15px 0;
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 10px;
}

.account-bank {
    font-weight: bold;
    margin-bottom: 5px;
}

.account-number-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.account-number {
    font-size: 14px;
    color: #666;
}

.btn-copy {
    padding: 5px 10px;
    background-color: #f5f5f5;
    border: none;
    border-radius: 5px;
    font-size: 12px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

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

#galleryModalImage {
    width: 100%;
    height: auto;
    border-radius: 5px;
}

/* Responsive Styles */
@media (max-width: 480px) {
    .container {
        padding: 10px;
    }

    .main-image {
        width: 100vw;
        margin-left: calc(-50vw + 50%);
        margin-right: calc(-50vw + 50%);
        max-width: none;
    }
    
    .gallery {
        grid-template-columns: repeat(3, 1fr);
        gap: 5px;
    }
    
    .account-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .btn-account {
        width: 100%;
    }

    .contact-row {
        flex-direction: column;
        gap: 1rem;
    }

    .buttons {
        justify-content: flex-start;
    }

    .poem p {
        font-size: 1.0rem;
    }
}