*{box-sizing: border-box;}

body {
    margin: 0;

    background-color: #eee9e3;

    color: #333;

    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        "Noto Sans KR",
        sans-serif;
}

header, 
main, 
footer
{max-width: 430px; 
margin: 0 auto; 
background-color: #fffaf5;}

.hero {
    position: relative;
    width: 100%;
    overflow: hidden;
    background-color: #111;
}

.hero-video {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 9 / 16;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.02) 35%,
        rgba(0, 0, 0, 0.15) 65%,
        rgba(0, 0, 0, 0.58) 100%
    );
}

.hero-content {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 42px;

    padding: 0 24px;
    text-align: center;
    color: white;
}

.hero-small {
    margin-bottom: 18px;
    font-size: 12px;
    letter-spacing: 2px;
}

.hero-names {
    margin: 0 0 24px;
    font-size: 30px;
    font-weight: 300;
    letter-spacing: 2px;
}

.hero-info p {
    margin: 5px 0;
    font-size: 13px;
    letter-spacing: 1px;
}

.hero-place {
    margin-top: 12px;
    font-size: 13px;
}

h1{
    margin : 12px 0;
    font-size: 32px;
    font-weight: 400;}

h2{
    margin : 0 0 24px;
    font-size: 22px;
    font-weight: 400;}

p{
    margin : 8px 0;
    font-size: 15px;}

section{padding: 64px 24px 56px;
    text-align: center;
    border-top: 1px solid #eadfd2;}

section img{max-width: 100%;
height: auto;
border-radius: 12px;}

button{
    padding: 10px 16px;
    margin: 8px 4px;
    border: 1px solid #c9b8a5;
    border-radius: 999px;
    background-color: #ffffff;
    cursor: pointer;
    color: #333333;
    font-size: 14px;}

a{
    display: inline-block;
margin: 6px 0;
padding: 10px 18px;
border: 1px solid #c9b8a5;
border-radius: 999px;
color: #333333;
text-decoration: none;
font-size: 14px;}

details {
  max-width: 340px;
  margin: 12px auto;
  padding: 16px;
  border: 1px solid #eadfd2;
  border-radius: 12px;
  background-color: #ffffff;
  text-align: left;}

summary {
  cursor: pointer;}

form {
  max-width: 340px;
  margin: 0 auto;
  text-align: left;}

form div {
  margin-bottom: 18px;}

label {display: block;
margin-bottom: 6px;
font-size: 14px;}

input, select, textarea { width: 100%;
padding: 11px 12px;
border: 1px solid #d8c8b7;
border-radius: 8px;
background-color: #ffffff;
font-size: 14px;}

textarea {
  resize: vertical;}

/* =========================
   INVITATION
========================= */

.invitation {
    padding: 80px 28px 84px;
    border-top: none;
    background-color: #fffaf5;
}

.invitation-label {
    margin: 0 0 12px;
    color: #9b8876;
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 4px;
}

.invitation h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 300;
    letter-spacing: 3px;
}

.invitation-line {
    width: 1px;
    height: 36px;
    margin: 28px auto 30px;
    background-color: #d8c8b7;
}

.invitation-text {
    max-width: 350px;
    margin: 0 auto;
}

.invitation-text p {
    margin: 0 0 22px;
    color: #555555;
    font-size: 14px;
    font-weight: 300;
    line-height: 2;
    word-break: keep-all;
}

.invitation-text p:last-child {
    margin-bottom: 0;
}

/* =========================
   WEDDING INFORMATION
========================= */

.wedding-info {
    padding: 85px 28px 90px;
    text-align: center;
    background-color: #fbf8f3;
    border-top: none;
}

.wedding-info .section-label {
    margin: 0 0 32px;
    color: #9b8876;
    font-size: 10px;
    letter-spacing: 4px;
}


/* 날짜 */

.wedding-date {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.date-year {
    margin-bottom: 6px;
    color: #777;
    font-size: 12px;
    letter-spacing: 3px;
}

.date-main {
    display: flex;
    align-items: center;
    justify-content: center;

    font-family: Georgia, "Times New Roman", serif;
    font-size: 48px;
    font-weight: 400;
    line-height: 1;
    color: #333;
}

.date-main i {
    width: 24px;
    height: 1px;
    margin: 0 15px;
    background-color: #bbaa99;
}

.date-day {
    margin-top: 12px;
    color: #8e7f72;
    font-size: 10px;
    letter-spacing: 4px;
}


/* 시간 */

.wedding-time {
    margin-top: 34px;
    color: #444;
}

.wedding-time span {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 22px;
    letter-spacing: 2px;
}

.wedding-time small {
    margin-left: 5px;
    color: #888;
    font-size: 9px;
    letter-spacing: 1px;
}


/* 가운데 구분선 */

.wedding-divider {
    width: 1px;
    height: 38px;
    margin: 34px auto;
    background-color: #d8c8b7;
}


/* 예식장 */

.wedding-place h2 {
    margin: 0;
    color: #333;
    font-size: 18px;
    font-weight: 400;
    letter-spacing: 1px;
}

.wedding-place .hall {
    margin: 8px 0 0;
    color: #666;
    font-size: 13px;
}

.wedding-place .address {
    margin: 20px 0 0;
    color: #999;
    font-size: 11px;
    line-height: 1.7;
}

/* =========================
   GALLERY
========================= */

.gallery-section {
    padding: 85px 18px 90px;
    background-color: #fffaf5;
    border-top: none;
}

.gallery-section .section-label {
    margin: 0 0 12px;
    color: #9b8876;
    font-size: 10px;
    letter-spacing: 4px;
}

.gallery-section h2 {
    margin: 0;
    color: #333;
    font-size: 23px;
    font-weight: 300;
    letter-spacing: 2px;
}

.gallery-caption {
    margin: 20px 0 40px;
    color: #888;
    font-size: 12px;
    font-weight: 300;
    line-height: 1.9;
}


/* 큰 사진 */

.gallery-main {
    position: relative;
    width: 100%;
    margin: 0 auto 12px;
}

.gallery-main img {
    display: block;
    width: 100%;
    height: auto;
    margin: 0;
    border-radius: 2px;
}


/* 좌우 화살표 */

.gallery-prev,
.gallery-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);

    width: 38px;
    height: 38px;
    margin: 0;
    padding: 0;

    border: none;
    border-radius: 50%;

    background-color: rgba(255, 255, 255, 0.75);
    color: #555;

    font-family: Georgia, serif;
    font-size: 27px;
    font-weight: 300;
    line-height: 36px;

    backdrop-filter: blur(3px);
}

.gallery-prev {
    left: 10px;
}

.gallery-next {
    right: 10px;
}


/* 작은 사진 */

.gallery-thumbnails {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 5px;

    width: 100%;
    padding: 0;
    overflow: visible;
}

.gallery-thumbnails img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;

    object-fit: cover;

    border-radius: 1px;

    cursor: pointer;

    transition:
        opacity 0.2s ease,
        transform 0.2s ease;
}

.gallery-thumbnails img:hover {
    opacity: 0.75;
}


/* =========================
   LOCATION
========================= */

.location-section {
    padding: 85px 28px 90px;
    background-color: #fbf8f3;
    border-top: none;
    text-align: center;
}

.location-section .section-label {
    margin: 0 0 12px;
    color: #9b8876;
    font-size: 10px;
    letter-spacing: 4px;
}

.location-section h2 {
    margin: 0;
    color: #333;
    font-size: 23px;
    font-weight: 300;
    letter-spacing: 2px;
}

.location-line {
    width: 1px;
    height: 35px;
    margin: 30px auto 32px;
    background-color: #d8c8b7;
}


/* 예식장 정보 */

.location-place h3 {
    margin: 0;
    color: #333;
    font-size: 17px;
    font-weight: 400;
    letter-spacing: 1px;
}

.location-hall {
    margin: 8px 0 0;
    color: #777;
    font-size: 13px;
}

.location-address {
    margin: 22px 0 0;
    color: #888;
    font-size: 12px;
    line-height: 1.8;
}


/* 지도 버튼 */

.map-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 7px;

    margin-top: 36px;
}

.map-buttons a {
    display: flex;
    align-items: center;
    justify-content: center;

    height: 42px;

    border: 1px solid #ddd2c7;
    border-radius: 2px;

    background-color: transparent;

    color: #665d55;

    font-size: 11px;
    font-weight: 400;
    text-decoration: none;
    letter-spacing: 0.3px;

    transition:
        background-color 0.2s ease,
        color 0.2s ease;
}

.map-buttons a:hover {
    background-color: #eee5dc;
}

/* =========================
   ACCOUNT
========================= */

.account-section {
    padding: 85px 24px 90px;
    background-color: #fffaf5;
    border-top: none;
    text-align: center;
}

.account-section .section-label {
    margin: 0 0 12px;
    color: #9b8876;
    font-size: 10px;
    letter-spacing: 4px;
}

.account-section h2 {
    margin: 0;
    color: #333;
    font-size: 23px;
    font-weight: 300;
    letter-spacing: 2px;
}

.account-caption {
    margin: 20px 0 38px;
    color: #888;
    font-size: 12px;
    font-weight: 300;
    line-height: 1.9;
}


/* 계좌 목록 */

.account-list {
    max-width: 380px;
    margin: 0 auto;
    text-align: left;
}


/* 신랑 / 신부 카드 */

.account-item {
    margin-bottom: 10px;

    border: 1px solid #e4dcd4;
    border-radius: 3px;

    background-color: rgba(255, 255, 255, 0.55);

    overflow: hidden;
}


/* 기본 삼각형 제거 */

.account-item summary {
    list-style: none;
}

.account-item summary::-webkit-details-marker {
    display: none;
}


/* 펼치기 영역 */

.account-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 19px 18px;

    color: #4e4843;

    font-size: 13px;
    font-weight: 400;

    cursor: pointer;
}

.account-item summary small {
    display: block;

    margin-bottom: 4px;

    color: #aa9786;

    font-size: 8px;
    font-weight: 400;

    letter-spacing: 2px;
}


/* + 버튼 */

.account-arrow {
    color: #aa9786;
    font-size: 19px;
    font-weight: 200;

    transition: transform 0.25s ease;
}


/* 열리면 + 회전 */

.account-item[open] .account-arrow {
    transform: rotate(45deg);
}


/* 펼쳐진 내부 */

.account-content {
    padding: 0 18px 20px;

    border-top: 1px solid #eee7e0;
}


/* 은행 / 계좌번호 */

.account-info {
    display: flex;
    flex-direction: column;

    padding: 20px 0 17px;

    text-align: center;
}

.bank-name {
    margin-bottom: 8px;

    color: #8c7c6d;

    font-size: 11px;
}

.account-info strong {
    color: #3f3a36;

    font-family: Georgia, "Times New Roman", serif;
    font-size: 18px;
    font-weight: 400;

    letter-spacing: 1px;
}

.account-owner {
    margin-top: 8px;

    color: #888;

    font-size: 11px;
}


/* 복사 버튼 */

.account-copy-button {
    width: 100%;
    height: 40px;

    margin: 0;
    padding: 0;

    border: 1px solid #d9cec4;
    border-radius: 2px;

    background-color: transparent;

    color: #6f6257;

    font-size: 11px;
    font-weight: 400;

    cursor: pointer;
}

.account-copy-button:hover {
    background-color: #f2ebe4;
}

/* 계좌 한 줄 */

.account-row {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 17px 0;

    border-bottom: 1px solid #eee7e0;
}

.account-row:last-child {
    border-bottom: none;
}


/* 계좌 정보 */

.account-row .account-info {
    display: block;

    padding: 0;

    text-align: left;
}

.account-role {
    display: block;

    margin-bottom: 5px;

    color: #aa9786;

    font-size: 9px;
    letter-spacing: 1px;
}

.account-row .account-info strong {
    display: block;

    color: #3f3a36;

    font-family: inherit;
    font-size: 13px;
    font-weight: 400;

    letter-spacing: 0;
}

.bank-account {
    display: block;

    margin-top: 5px;

    color: #888;

    font-size: 11px;
}


/* 작은 복사 버튼 */

.account-row .account-copy-button {
    flex-shrink: 0;

    width: 52px;
    height: 32px;

    margin-left: 15px;

    border: 1px solid #ddd2c7;
    border-radius: 2px;

    background-color: transparent;

    color: #786b60;

    font-size: 10px;
}

/* =========================
   RSVP
========================= */

.rsvp-section {
    padding: 85px 24px 90px;
    background-color: #fbf8f3;
    border-top: none;
    text-align: center;
}

.rsvp-section .section-label {
    margin: 0 0 12px;
    color: #9b8876;
    font-size: 10px;
    letter-spacing: 4px;
}

.rsvp-section h2 {
    margin: 0;
    color: #333;
    font-size: 23px;
    font-weight: 300;
    letter-spacing: 2px;
}

.rsvp-caption {
    margin: 20px 0 42px;
    color: #888;
    font-size: 12px;
    font-weight: 300;
    line-height: 1.9;
}


/* 폼 */

.rsvp-form {
    max-width: 380px;
    margin: 0 auto;
    text-align: left;
}

.form-group {
    margin-bottom: 26px;
}

.form-group label,
.form-label {
    display: block;

    margin-bottom: 10px;

    color: #665d55;

    font-size: 11px;
    font-weight: 400;
}


/* 이름 / select */

.rsvp-form input[type="text"],
.rsvp-form select {
    box-sizing: border-box;

    width: 100%;
    height: 46px;

    padding: 0 14px;

    border: 1px solid #ddd2c7;
    border-radius: 2px;

    outline: none;

    background-color: rgba(255, 255, 255, 0.7);

    color: #444;

    font-family: inherit;
    font-size: 13px;
}

.rsvp-form input[type="text"]:focus,
.rsvp-form select:focus {
    border-color: #ad9a88;
}


/* 참석 / 불참 버튼 */

.choice-group {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.choice-item {
    margin: 0 !important;
    cursor: pointer;
}

.choice-item input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.choice-item span {
    display: flex;
    align-items: center;
    justify-content: center;

    box-sizing: border-box;

    height: 44px;

    border: 1px solid #ddd2c7;
    border-radius: 2px;

    background-color: rgba(255, 255, 255, 0.55);

    color: #786b60;

    font-size: 11px;

    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease;
}


/* 선택한 버튼 */

.choice-item input:checked + span {
    border-color: #9d8976;
    background-color: #9d8976;
    color: #fff;
}


/* 제출 버튼 */

.rsvp-submit {
    width: 100%;
    height: 48px;

    margin-top: 10px;

    border: none;
    border-radius: 2px;

    background-color: #75685d;

    color: #fff;

    font-family: inherit;
    font-size: 12px;
    font-weight: 400;

    letter-spacing: 0.5px;

    cursor: pointer;
}

.rsvp-submit:hover {
    background-color: #665a50;
}

/* =========================
   GUESTBOOK
========================= */

.guestbook-section {
    padding: 85px 24px 90px;
    background-color: #fffaf5;
    border-top: none;
    text-align: center;
}

.guestbook-section .section-label {
    margin: 0 0 12px;
    color: #9b8876;
    font-size: 10px;
    letter-spacing: 4px;
}

.guestbook-section h2 {
    margin: 0;
    color: #333;
    font-size: 23px;
    font-weight: 300;
    letter-spacing: 2px;
}

.guestbook-caption {
    margin: 20px 0 42px;
    color: #888;
    font-size: 12px;
    font-weight: 300;
    line-height: 1.9;
}


/* 작성 영역 */

.guestbook-form {
    max-width: 380px;
    margin: 0 auto;
    text-align: left;
}

.guestbook-form input,
.guestbook-form textarea {
    box-sizing: border-box;

    width: 100%;

    padding: 13px 14px;

    border: 1px solid #ddd2c7;
    border-radius: 2px;

    outline: none;

    background-color: rgba(255, 255, 255, 0.7);

    color: #444;

    font-family: inherit;
    font-size: 13px;
}

.guestbook-form input {
    height: 46px;
}

.guestbook-form textarea {
    resize: none;
    line-height: 1.7;
}

.guestbook-form input:focus,
.guestbook-form textarea:focus {
    border-color: #ad9a88;
}


/* 등록 버튼 */

.guestbook-submit-button {
    width: 100%;
    height: 48px;

    margin-top: 5px;

    border: none;
    border-radius: 2px;

    background-color: #75685d;

    color: #fff;

    font-family: inherit;
    font-size: 12px;

    cursor: pointer;
}


/* 메시지 목록 */

.guestbook-list {
    max-width: 380px;
    margin: 48px auto 0;

    text-align: left;
}

.guestbook-empty {
    margin: 0;

    color: #aaa;

    font-size: 11px;

    text-align: center;
}


/* JS가 생성하는 메시지 한 개 */

#guestbookmessages > div {
    padding: 20px 2px;

    border-bottom: 1px solid #e8dfd6;
}

#guestbookmessages > div:first-child {
    border-top: 1px solid #e8dfd6;
}

#guestbookmessages strong {
    display: block;

    margin-bottom: 9px;

    color: #665d55;

    font-size: 12px;
    font-weight: 500;
}

#guestbookmessages p {
    margin: 0;

    color: #777;

    font-size: 12px;
    line-height: 1.8;

    word-break: keep-all;
}

/* =========================
   FOOTER
========================= */

.wedding-footer {
    padding: 90px 24px 70px;

    background-color: #f3ece4;

    text-align: center;
}

.footer-small {
    margin: 0 0 18px;

    color: #a28f7e;

    font-size: 9px;

    letter-spacing: 4px;
}

.wedding-footer h2 {
    margin: 0;

    color: #423b36;

    font-family: Georgia, "Times New Roman", serif;

    font-size: 25px;
    font-weight: 400;

    letter-spacing: 2px;
}

.footer-date {
    margin: 14px 0 0;

    color: #81756b;

    font-family: Georgia, "Times New Roman", serif;

    font-size: 12px;

    letter-spacing: 2px;
}

.footer-line {
    width: 1px;
    height: 32px;

    margin: 28px auto;

    background-color: #cdbdad;
}

.footer-message {
    margin: 0;

    color: #81776f;

    font-size: 11px;

    font-weight: 300;

    line-height: 1.9;
}

