@charset "UTF-8";

/* 축하 사진 공유 제품 UI 전용. 청첩장 테마 변수는 변경하지 않는다. */
.guest-share-section,
.guest-share-modal-content,
.guest-photo-share-page,
.guest-share-editor {
    --guest-share-neutral-50: #f9fafa;
    --guest-share-neutral-100: #f3f4f4;
    --guest-share-neutral-200: #e6e7e8;
    --guest-share-neutral-400: #b5bbbd;
    --guest-share-neutral-500: #979fa1;
    --guest-share-neutral-600: #777f82;
    --guest-share-neutral-700: #61686a;
    --guest-share-neutral-800: #505658;
    --guest-share-neutral-900: #45484a;
    --guest-share-neutral-950: #272a2b;
    --guest-share-white: #ffffff;
}

/* Photo Tray: 팝업과 청첩장 섹션이 같은 DOM/class를 사용한다. */
.guest-share-photo-tray {
    position: relative;
    width: 20rem;
    height: 18rem;
    flex: 0 0 auto;
}

.guest-share-tray-back {
    position: absolute;
    z-index: 0;
    right: 0;
    bottom: 0;
    left: 0;
    height: 10rem;
    border: 0.1rem solid var(--guest-share-neutral-200);
    border-radius: 1.2rem;
    background: var(--guest-share-neutral-50);
    box-shadow: 0 0 2.4rem rgba(39, 42, 43, 0.12);
}

.guest-share-tray-photo-motion {
    position: absolute;
    z-index: 1;
    top: 4.6rem;
    width: 6.8rem;
    height: 12rem;
}

.guest-share-tray-photo {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border: 0.2rem solid var(--guest-share-white);
    border-radius: 0.8rem;
    background: var(--guest-share-neutral-100);
    box-shadow: 0 0 0.4rem rgba(39, 42, 43, 0.16);
    transform-origin: 50% 75%;
}

.guest-share-tray-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.guest-share-tray-photo-motion-01 {
    left: 0.6rem;
}

.guest-share-tray-photo-01 {
    transform: rotate(-8deg);
}

.guest-share-tray-photo-motion-02 {
    left: 4.7rem;
}

.guest-share-tray-photo-02 {
    transform: rotate(5deg);
}

.guest-share-tray-photo-motion-03 {
    left: 8.7rem;
}

.guest-share-tray-photo-03 {
    transform: rotate(-5deg);
}

.guest-share-tray-photo-motion-04 {
    right: 0.6rem;
}

.guest-share-tray-photo-04 {
    transform: rotate(5deg);
}

.guest-share-tray-front {
    position: absolute;
    z-index: 2;
    right: 0;
    bottom: 0;
    left: 0;
    height: 5rem;
    overflow: hidden;
    border: 0.2rem solid var(--guest-share-white);
    border-radius: 1.2rem;
    background: rgba(39, 42, 43, 0.6);
    box-shadow: 0 0 0.4rem rgba(39, 42, 43, 0.4);
    -webkit-backdrop-filter: blur(0.4rem);
    backdrop-filter: blur(0.4rem);
}

.guest-share-tray-plus {
    position: absolute;
    top: 50%;
    right: 0.6rem;
    display: grid;
    width: 3.6rem;
    height: 3.6rem;
    place-items: center;
    border: 0.2rem solid var(--guest-share-white);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0.2rem 1.2rem rgba(39, 42, 43, 0.12);
    transform: translateY(-50%);
    -webkit-backdrop-filter: blur(1rem);
    backdrop-filter: blur(1rem);
}

.guest-share-tray-plus img {
    display: block;
    width: 1.6rem;
    height: 1.6rem;
}

@media (prefers-reduced-motion: reduce) {
    .guest-share-tray-photo-motion {
        transform: none !important;
        will-change: auto;
    }
}

/* 청첩장 내 섹션: 타이틀은 테마 계열, 본문/버튼은 최신 제품 UI 기준. */
.guest-share-section {
    box-sizing: border-box;
    display: flex;
    width: 100%;
    padding: 4.8rem 2rem;
    flex-direction: column;
    align-items: center;
    gap: 1.6rem;
    background: var(--section-bg, #ffffff);
    color: var(--guest-share-neutral-950);
    text-align: center;
}

.guest-share-section-title,
.guest-share-section-description,
.guest-share-section-period {
    width: 100%;
    margin: 0;
}

.guest-share-section-title {
    color: var(--color-section-title, var(--guest-share-neutral-800));
    font-family: "MaruBuri", "Noto Serif KR", serif;
    font-size: 2rem;
    font-weight: 400;
    line-height: 1.4;
}

.guest-share-section-description {
    font-family: "Wanted Sans Variable", system-ui, sans-serif;
    font-size: 1.6rem;
    font-weight: 400;
    line-height: 2;
}

.guest-share-section-period {
    color: var(--guest-share-neutral-700);
    font-family: "Wanted Sans Variable", system-ui, sans-serif;
    font-size: 1.4rem;
    font-weight: 400;
    line-height: 2;
}

.guest-share-section-period strong {
    color: var(--guest-share-neutral-950);
    font-size: inherit;
    font-weight: 600;
    line-height: inherit;
}

.guest-share-section-button {
    box-sizing: border-box;
    display: flex;
    width: min(35rem, 100%);
    min-height: 4.5rem;
    align-items: center;
    justify-content: center;
    padding: 1.1rem 1.6rem;
    border: 0.1rem solid var(--guest-share-neutral-950);
    border-radius: 0.8rem;
    background: var(--guest-share-white);
    color: var(--guest-share-neutral-950);
    font-family: "Wanted Sans Variable", system-ui, sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none;
}

.guest-share-section-button:focus-visible,
.guest-share-modal-button:focus-visible,
.guest-photo-share-back:focus-visible,
.guest-photo-share-action button:focus-visible,
.guest-photo-share-empty:focus-within,
.guest-photo-share-add:focus-within,
.guest-photo-share-remove:focus-visible {
    outline: 0.2rem solid #3b82f6;
    outline-offset: 0.2rem;
}

.modal:has(.guest-share-modal-content) .modal-panel {
    max-width: 35rem;
    transform: none;
    transition: none;
}

.modal:has(.guest-share-modal-content) .modal-dim {
    -webkit-backdrop-filter: blur(1rem);
    backdrop-filter: blur(1rem);
}

.modal:has(.guest-share-modal-content) .modal-body {
    padding: 1.6rem;
}

.guest-share-modal-content {
    display: flex;
    box-sizing: border-box;
    width: 100%;
    flex-direction: column;
    align-items: center;
    gap: 2.4rem;
    color: var(--guest-share-neutral-950);
    font-family: "Wanted Sans Variable", system-ui, sans-serif;
    text-align: center;
}

.guest-share-modal-copy {
    display: flex;
    width: 100%;
    flex-direction: column;
    gap: 0.8rem;
}

.guest-share-modal-lead,
.guest-share-modal-description,
.guest-share-modal-period {
    margin: 0;
}

.guest-share-modal-lead {
    color: var(--guest-share-neutral-950);
    font-size: 1.8rem;
    font-weight: 500;
    line-height: 1.4;
}

.guest-share-modal-description {
    color: var(--guest-share-neutral-600);
    font-size: 1.4rem;
    font-weight: 400;
    line-height: 1.4;
}

.guest-share-modal-period {
    color: var(--guest-share-neutral-950);
    font-size: 1.4rem;
    font-weight: 500;
    line-height: 1.4;
}

.guest-share-modal-button {
    box-sizing: border-box;
    display: flex;
    width: 100%;
    min-height: 4.6rem;
    align-items: center;
    justify-content: center;
    padding: 1.2rem 2rem;
    border-radius: 0.8rem;
    background: var(--guest-share-neutral-950);
    color: var(--guest-share-white);
    font-size: 1.6rem;
    font-weight: 500;
    line-height: 1.4;
    text-decoration: none;
}

/* 사진 전달 페이지 */
html:has(.guest-photo-share-page) {
    min-width: 32rem;
    font-size: 62.5%;
}

.guest-photo-share-page {
    min-width: 32rem;
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0;
    background: var(--guest-share-neutral-50);
    color: var(--guest-share-neutral-950);
    font-family:
        "Wanted Sans Variable",
        system-ui,
        -apple-system,
        "Segoe UI",
        sans-serif;
    font-size: 1.6rem;
}

.guest-photo-share-page *,
.guest-photo-share-page *::before,
.guest-photo-share-page *::after {
    box-sizing: border-box;
}

.guest-photo-share-shell {
    display: flex;
    width: min(39rem, 100%);
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0 auto;
    flex-direction: column;
    overflow: hidden;
    background: var(--guest-share-neutral-50);
}

.guest-photo-share-header {
    position: relative;
    z-index: 1;
    display: flex;
    width: 100%;
    min-height: 5.3rem;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem;
    border-bottom: 0.1rem solid var(--guest-share-neutral-200);
    background: var(--guest-share-white);
}

.guest-photo-share-header h1 {
    margin: 0;
    color: var(--guest-share-neutral-950);
    font-size: 1.8rem;
    font-weight: 600;
    line-height: 2;
}

.guest-photo-share-back {
    display: grid;
    width: 3.6rem;
    height: 3.6rem;
    padding: 0.8rem;
    border: 0;
    background: transparent;
    cursor: pointer;
    place-items: center;
}

.guest-photo-share-back img {
    width: 2rem;
    height: 2rem;
    transform: rotate(90deg);
}

.guest-photo-share-main {
    display: flex;
    width: 100%;
    min-height: calc(100dvh - 5.3rem);
    padding: 1.6rem 2rem max(1.6rem, env(safe-area-inset-bottom));
    flex: 1 0 auto;
    flex-direction: column;
    gap: 1.6rem;
}

.guest-photo-share-content {
    display: flex;
    width: 100%;
    flex-direction: column;
    gap: 1.6rem;
}

.guest-photo-share-intro {
    display: flex;
    width: 100%;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    text-align: center;
}

.guest-photo-share-couple,
.guest-photo-share-intro-copy h2,
.guest-photo-share-intro-copy p {
    margin: 0;
}

.guest-photo-share-couple {
    color: var(--guest-share-neutral-700);
    font-size: 1.5rem;
    font-weight: 400;
    line-height: 1.4;
}

.guest-photo-share-intro-copy {
    display: flex;
    width: 100%;
    flex-direction: column;
    gap: 0.4rem;
}

.guest-photo-share-intro-copy h2 {
    color: var(--guest-share-neutral-950);
    font-size: 2rem;
    font-weight: 500;
    line-height: 1.4;
}

.guest-photo-share-intro-copy p {
    color: var(--guest-share-neutral-600);
    font-size: 1.4rem;
    font-weight: 400;
    line-height: 1.4;
}

.guest-photo-share-period {
    display: flex;
    width: 100%;
    min-height: 3.6rem;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem 1.2rem;
    border: 0.1rem solid var(--guest-share-neutral-200);
    border-radius: 1rem;
    background: var(--guest-share-white);
    box-shadow: 0 0.4rem 0.8rem rgba(39, 42, 43, 0.12);
    font-size: 1.4rem;
    line-height: 1.4;
}

.guest-photo-share-period span {
    color: var(--guest-share-neutral-700);
    font-weight: 400;
}

.guest-photo-share-period strong {
    color: var(--guest-share-neutral-950);
    font-weight: 600;
}

.guest-photo-share-field {
    display: flex;
    width: 100%;
    flex-direction: column;
    gap: 0.6rem;
}

.guest-photo-share-field label,
.guest-photo-share-upload > h2 {
    margin: 0;
    color: var(--guest-share-neutral-700);
    font-size: 1.4rem;
    font-weight: 500;
    line-height: 1.4;
}

.guest-photo-share-field input {
    width: 100%;
    min-height: 4.6rem;
    padding: 1.2rem 1.6rem;
    border: 0.1rem solid var(--guest-share-neutral-200);
    border-radius: 0.8rem;
    background: var(--guest-share-white);
    color: var(--guest-share-neutral-950);
    font: inherit;
    line-height: 1.4;
}

.guest-photo-share-field input::placeholder {
    color: var(--guest-share-neutral-600);
}

.guest-photo-share-field input:focus {
    border-color: var(--guest-share-neutral-950);
    outline: none;
}

.guest-photo-share-upload {
    display: flex;
    width: 100%;
    flex-direction: column;
    gap: 0.6rem;
    overflow: hidden;
}

.guest-photo-share-file-input {
    position: absolute;
    width: 0.1rem;
    height: 0.1rem;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

.guest-photo-share-empty {
    display: flex;
    width: 100%;
    min-height: 15.2rem;
    align-items: center;
    justify-content: center;
    padding: 3.2rem 1.6rem;
    flex-direction: column;
    gap: 1.2rem;
    border: 0.1rem dashed var(--guest-share-neutral-400);
    border-radius: 0.8rem;
    background: var(--guest-share-white);
    cursor: pointer;
}

.guest-photo-share-empty > img {
    width: 3.2rem;
    height: 3.2rem;
}

.guest-photo-share-empty-copy {
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 0.2rem;
    line-height: 1.4;
}

.guest-photo-share-empty-copy strong {
    color: var(--guest-share-neutral-950);
    font-size: 1.6rem;
    font-weight: 500;
}

.guest-photo-share-empty-copy span {
    color: var(--guest-share-neutral-600);
    font-size: 1.4rem;
    font-weight: 400;
}

.guest-photo-share-grid {
    display: none;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.8rem;
}

.guest-photo-share-upload.is-selected .guest-photo-share-empty {
    display: none;
}

.guest-photo-share-upload.is-selected .guest-photo-share-grid {
    display: grid;
}

.guest-photo-share-thumb,
.guest-photo-share-add {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1;
    border-radius: 0.8rem;
    border: 0.1rem solid var(--guest-share-neutral-200);
}

.guest-photo-share-thumb > img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.guest-photo-share-remove {
    position: absolute;
    top: 0.4rem;
    right: 0.4rem;
    display: grid;
    width: 2.4rem;
    height: 2.4rem;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(39, 42, 43, 0.7);
    box-shadow: 0 0 0.7rem rgba(0, 0, 0, 0.12);
    cursor: pointer;
    place-items: center;
}

.guest-photo-share-remove img {
    width: 1.4rem;
    height: 1.4rem;
}

.guest-photo-share-add {
    display: grid;
    border: 0.1rem dashed var(--guest-share-neutral-400);
    background: var(--guest-share-white);
    cursor: pointer;
    place-items: center;
}

.guest-photo-share-add img {
    width: 3.2rem;
    height: 3.2rem;
}

.guest-photo-share-count {
    width: 100%;
    margin: 0;
    color: var(--guest-share-neutral-600);
    font-size: 1.4rem;
    font-weight: 400;
    line-height: 1.4;
    text-align: right;
}

.guest-photo-share-notice {
    display: flex;
    width: 100%;
    padding: 0.8rem;
    flex-direction: column;
    gap: 0.6rem;
    border: 0.1rem solid var(--guest-share-neutral-200);
    border-radius: 0.8rem;
    background: var(--guest-share-neutral-100);
}

.guest-photo-share-notice-title {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 0.8rem;
}

.guest-photo-share-notice-title img {
    width: 1.8rem;
    height: 1.8rem;
}

.guest-photo-share-notice-title h2 {
    margin: 0;
    color: var(--guest-share-neutral-900);
    font-size: 1.4rem;
    font-weight: 500;
    line-height: 1.4;
}

.guest-photo-share-notice ul {
    display: flex;
    margin: 0;
    padding: 0 0 0 2.7rem;
    flex-direction: column;
    gap: 0.4rem;
    color: var(--guest-share-neutral-700);
    font-size: 1.4rem;
    font-weight: 400;
    line-height: 1.4;
}

.guest-photo-share-notice li::marker {
    color: var(--guest-share-neutral-500);
    font-size: 0.8rem;
}

.guest-photo-share-action {
    display: flex;
    width: 100%;
    margin-top: auto;
    padding-top: 0;
    flex-direction: column;
}

.guest-photo-share-action button {
    width: 100%;
    min-height: 4.6rem;
    padding: 1.2rem 2rem;
    border: 0;
    border-radius: 0.8rem;
    background: var(--guest-share-neutral-950);
    color: var(--guest-share-white);
    font-family: inherit;
    font-size: 1.6rem;
    font-weight: 500;
    line-height: 1.4;
    cursor: pointer;
}

.guest-photo-share-action button:disabled {
    background: var(--guest-share-neutral-200);
    color: var(--guest-share-neutral-400);
    cursor: not-allowed;
}

.guest-photo-share-sr-only {
    position: absolute;
    width: 0.1rem;
    height: 0.1rem;
    overflow: hidden;
    margin: -0.1rem;
    padding: 0;
    border: 0;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* Editor 안에서만 사용하는 제품 UI */
.guest-share-editor-form {
    display: flex;
    padding: 1.6rem 2rem;
    flex-direction: column;
    gap: 2.4rem;
    background: var(--guest-share-neutral-50);
    font-family: "Wanted Sans Variable", system-ui, sans-serif;
}

.guest-share-editor-group {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.guest-share-editor-popup-group {
    gap: 0.6rem;
}

.guest-share-editor-label {
    margin: 0;
    color: var(--guest-share-neutral-800);
    font-size: 1.6rem;
    font-weight: 500;
    line-height: 1.4;
}

.guest-share-editor-check-card {
    display: flex;
    min-height: 5.4rem;
    align-items: center;
    gap: 1.2rem;
    padding: 1.5rem 1.6rem;
    border: 0.1rem solid var(--guest-share-neutral-200);
    border-radius: 0.8rem;
    background: var(--guest-share-white);
    color: var(--guest-share-neutral-950);
    cursor: pointer;
    font-size: 1.6rem;
    font-weight: 500;
    line-height: 1.4;
}

.guest-share-editor-check-card input {
    position: absolute;
    opacity: 0;
}

.guest-share-editor-checkbox {
    display: grid;
    width: 2rem;
    height: 2rem;
    flex: 0 0 auto;
    border: 0.1rem solid var(--guest-share-neutral-950);
    border-radius: 0.4rem;
    background: var(--guest-share-white);
    place-items: center;
}

.guest-share-editor-check-card input:checked + .guest-share-editor-checkbox {
    background: var(--guest-share-neutral-950);
}

.guest-share-editor-checkbox::after {
    width: 1.6rem;
    height: 1.6rem;
    background: url("/static/images/guest-share/checkbox-check.svg") center / contain no-repeat;
    content: "";
    opacity: 0;
}

.guest-share-editor-check-card input:checked + .guest-share-editor-checkbox::after {
    opacity: 1;
}

.guest-share-editor-check-card input:focus-visible + .guest-share-editor-checkbox {
    outline: 0.2rem solid #3b82f6;
    outline-offset: 0.2rem;
}

.guest-share-editor-guide {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 0.7rem 0.8rem;
    border: 0.1rem solid var(--guest-share-neutral-200);
    border-radius: 0.8rem;
    background: var(--guest-share-neutral-100);
    color: var(--guest-share-neutral-900);
    font-size: 1.4rem;
    font-weight: 500;
    line-height: 1.4;
}

.guest-share-editor-guide img {
    width: 1.8rem;
    height: 1.8rem;
    margin-top: 0.1rem;
}

.guest-share-editor-status-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.2rem;
}

.guest-share-editor-account {
    display: flex;
    min-height: 2.8rem;
    align-items: center;
    gap: 0.8rem;
    padding: 0.3rem 1.2rem;
    border: 0.1rem solid var(--guest-share-neutral-200);
    border-radius: 10rem;
    background: var(--guest-share-white);
    color: var(--guest-share-neutral-950);
    font-size: 1.4rem;
    font-weight: 400;
    line-height: 1.4;
    white-space: nowrap;
}

.guest-share-editor-account::before {
    width: 0.6rem;
    height: 0.6rem;
    flex: 0 0 auto;
    border-radius: 50%;
    background: var(--guest-share-neutral-950);
    content: "";
}

.guest-share-editor-drive-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 12rem;
    gap: 0.8rem;
}

.guest-share-editor-drive-service {
    display: flex;
    min-height: 5.4rem;
    align-items: center;
    gap: 1.2rem;
    padding: 1.5rem 1.6rem;
    border: 0.1rem solid var(--guest-share-neutral-200);
    border-radius: 0.8rem;
    background: var(--guest-share-white);
    color: var(--guest-share-neutral-950);
    font-size: 1.6rem;
    font-weight: 500;
    line-height: 1.4;
}

.guest-share-editor-drive-service img {
    width: 1.8rem;
    height: 1.8rem;
    flex: 0 0 auto;
}

.guest-share-editor-drive-action {
    min-height: 5.4rem;
    padding: 1.2rem 2.4rem;
    border: 0.1rem solid var(--guest-share-neutral-950);
    border-radius: 0.8rem;
    background: var(--guest-share-neutral-950);
    color: var(--guest-share-white);
    font-family: inherit;
    font-size: 1.6rem;
    font-weight: 500;
    line-height: 1.4;
}

.guest-share-editor-message {
    box-sizing: border-box;
    width: 100%;
    height: 12rem;
    resize: vertical;
    padding: 1.2rem 1.6rem;
    border: 0.1rem solid var(--guest-share-neutral-200);
    border-radius: 0.8rem;
    background: var(--guest-share-white);
    color: var(--guest-share-neutral-600);
    font-family: inherit;
    font-size: 1.6rem;
    font-weight: 400;
    line-height: 1.4;
}

.guest-share-editor-message:focus {
    border-color: var(--guest-share-neutral-950);
    outline: none;
}

@media (min-width: 391px) {
    .guest-photo-share-shell {
        box-shadow: 0 0.4rem 2.4rem rgba(0, 0, 0, 0.12);
    }
}

@media (max-width: 480px) {
    .guest-share-modal {
        padding: 2rem;
    }
}

@media (max-width: 360px) {
    .guest-photo-share-main {
        padding-right: 1.6rem;
        padding-left: 1.6rem;
    }

    .guest-share-editor-drive-row {
        grid-template-columns: minmax(0, 1fr) 9.6rem;
    }

    .guest-share-editor-drive-action {
        padding-right: 1.2rem;
        padding-left: 1.2rem;
    }
}
