:root {
  --outside: #e7dfda;
  --accent: #c2b0a2;
  --panel: #ede7e3;
  --ink: #444;
  --muted: #7b716a;
  --section: 80px;
  --body-size: 16px;
  --line: 1.9;
  --width: 400px;
  --inset: 44px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--outside);
  color: var(--ink);
  font-family: "Gowun Batang", "Nanum Myeongjo", "Noto Serif KR", serif;
  font-size: var(--body-size);
  line-height: var(--line);
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
textarea,
summary {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: default;
  opacity: 0.6;
}
button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 2px solid #795d49;
  outline-offset: 4px;
}
button {
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  padding: 12px 18px;
  min-height: 48px;
}
a {
  color: inherit;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2 {
  font-weight: 400;
}
h1,
.editorial {
  font-family: "Cormorant Garamond", "Gowun Batang", Georgia, serif;
  font-size: 38px;
  line-height: 1.2;
}
h2 {
  font-size: 22px;
}
p + p {
  margin-top: 16px;
}
.invitation {
  max-width: var(--width);
  margin: 48px auto;
  background: #fff;
  box-shadow: 0 8px 32px #65503b12;
  border-radius: 24px;
  overflow: hidden;
  position: relative;
}
.cover {
  height: calc(100svh - 38px);
  min-height: 620px;
}
.cover img {
  height: 75%;
  width: 100%;
  object-fit: cover;
  display: block;
}
.cover-caption {
  height: 25%;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: pre-line;
  text-align: center;
}
#welcome-overlay { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: var(--outside); opacity: 1; transition: opacity .55s ease; }
#welcome-overlay.is-leaving { opacity: 0; }
.welcome-frame { position: relative; width: min(100vw, var(--width)); height: 100dvh; overflow: hidden; background: #383431; }
#welcome-photo { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.welcome-shade { position: absolute; inset: 0; background: rgba(0, 0, 0, .56); }
#welcome-lettering { position: absolute; top: 56%; left: 0; width: 100%; aspect-ratio: 680 / 400; transform: translateY(-50%); pointer-events: none; }
#welcome-lettering svg { display: block; width: 100%; height: 100%; filter: grayscale(1) brightness(0) invert(1); }
.music {
  position: fixed;
  top: 60px;
  right: max(calc((100vw - var(--width)) / 2 + 12px), 12px);
  width: 28px;
  height: 28px;
  min-height: 0;
  padding: 0;
  border-radius: 50%;
  background: #444b;
  z-index: 3;
  font: 16px Arial;
  color: white;
}
section {
  padding: var(--section) var(--inset);
  text-align: center;
}
.pre {
  white-space: pre-line;
  word-break: keep-all;
}
.muted {
  color: var(--muted);
}
.lead {
  margin: 28px 0 40px;
  color: #82766b;
}
.rsvp-card {
  padding: 32px;
  background: var(--panel);
  border-radius: 6px;
  font-size: 15px;
}
.rsvp-card hr {
  border: 0;
  border-top: 1px solid var(--outside);
  margin: 24px 0;
}
.rsvp-card p {
  margin: 8px 0;
}
.rsvp-card .venue {
  padding: 16px 0;
}
.rsvp-card button {
  width: 100%;
}
.couple {
  display: flex;
  justify-content: center;
  gap: 15px;
  align-items: center;
  white-space: nowrap;
  font-size: 15px;
}
.invitation-text {
  padding-top: 56px;
  padding-bottom: 0;
}
.invitation-text .pre {
  line-height: 2.3;
  margin: 50px -18px 36px;
}
.full-photo {
  display: block;
  width: 100%;
  height: auto;
}
.small-title {
  font-family: "Cormorant Garamond", "Gowun Batang", Georgia, serif;
  letter-spacing: 2px;
  font-size: 23px;
}
.timeline {
  padding: 75px 28px;
}
.timeline-list {
  margin-top: 34px;
  display: grid;
  gap: 22px;
}
.timeline-list div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font:
    20px "Cormorant Garamond", "Gowun Batang",
    Georgia,
    serif;
}
.timeline-list span:last-child {
  font-size: 16px;
}
.date-copy {
  margin: 28px -26px 8px;
  font-size: 15px;
}
.date-english {
  font:
    14px Georgia,
    serif;
}
.calendar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 14px 0;
  padding: 28px 0;
  margin: 26px 0;
  border-top: 1px solid #eee8e3;
  border-bottom: 1px solid #eee8e3;
  font-family: "Gowun Batang", "Nanum Myeongjo", "Noto Serif KR", serif;
}
.calendar span {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  font-size: 15px;
}
.calendar .chosen {
  border-radius: 50%;
  background: var(--accent);
  color: white;
}
.calendar .sun {
  color: #bc736f;
}
.countdown {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin: 32px -12px 18px;
}
.countdown strong {
  font:
    28px "Cormorant Garamond", "Gowun Batang",
    serif;
  display: block;
}
.countdown small {
  font:
    10px Georgia,
    serif;
  letter-spacing: 1px;
}
.gallery {
  padding-left: 20px;
  padding-right: 20px;
}
.gallery h2 {
  font:
    34px "Cormorant Garamond", "Gowun Batang",
    serif;
  margin: 12px 0 36px;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
}
.gallery-grid button {
  padding: 0;
  border-radius: 0;
  background: none;
  overflow: hidden;
  aspect-ratio: 0.75;
}
.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.gallery-grid button:last-child {
  grid-column: 2;
}
.flower {
  width: 64px;
  height: auto;
  margin: 30px auto;
  display: block;
}
.accounts details {
  text-align: left;
  margin: 12px 0;
  background: var(--panel);
  border-radius: 5px;
}
.accounts summary {
  padding: 14px 18px;
  cursor: pointer;
  list-style: none;
}
.accounts summary:after {
  content: "⌄";
  float: right;
  display: inline-block;
  transition: transform .26s ease;
}
.accounts details[open] summary:after { transform: rotate(180deg); }
.account-row {
  border-top: 1px solid #fff8;
  padding: 15px 18px;
  font-size: 14px;
}
.account-row button {
  min-height: 32px;
  padding: 3px 10px;
  background: white;
  color: var(--ink);
  float: right;
}
.location {
  padding-left: 28px;
  padding-right: 28px;
}
.location h3 {
  font-size: 17px;
  font-weight: 400;
  margin-top: 30px;
}
.map {
  width: 100%;
  height: 250px;
  border: 0;
  margin: 24px 0 0;
}
.map-buttons {
  display: flex;
  justify-content: space-evenly;
  background: var(--panel);
  font-size: 14px;
  padding: 12px;
  gap: 12px;
}
.map-buttons a {
  text-decoration: none;
}
.travel {
  text-align: left;
  padding: 24px 4px;
  border-bottom: 1px solid #eee;
  font-size: 15px;
  white-space: pre-line;
  word-break: keep-all;
}
.travel strong {
  display: block;
  color: #8d7563;
  margin-bottom: 12px;
  font-size: 17px;
}
.album {
  background: var(--panel);
}
.album .editorial {
  font-size: 30px;
  margin: 20px 0 28px;
}
.album button {
  width: 100%;
  margin: 28px 0 12px;
}
.quote {
  padding: 0;
  position: relative;
}
.quote img {
  display: block;
  width: 100%;
}
.quote .pre {
  padding: 60px 24px;
}
.sharing {
  padding: 25px 32px 55px;
}
.sharing button {
  display: block;
  width: 100%;
  margin: 10px 0;
  background: var(--panel);
  color: var(--ink);
  font-size: 15px;
}
.sharing .kakao {
  background: #fae100;
  color: #382b18;
}
.footer-mark {
  font:
    42px "Cormorant Garamond", "Gowun Batang",
    serif;
  margin: 35px 0 10px;
  text-align: center;
  color: #ad9788;
}
dialog {
  border: 0;
  border-radius: 4px;
  padding: 34px 25px;
  max-width: min(400px, calc(100vw - 24px));
  width: 100%;
  max-height: 90svh;
  color: var(--ink);
  font-family: "Gowun Batang", "Nanum Myeongjo", "Noto Serif KR", serif;
  line-height: 1.8;
}
dialog::backdrop {
  background: #37312e60;
}
@media (prefers-reduced-motion: no-preference) {
  dialog:not(.lightbox)[open] { animation: modal-appear .2s ease-out both; }
  dialog[open]::backdrop { animation: backdrop-appear .2s ease-out both; }
  @keyframes modal-appear { from { opacity: 0; transform: translateY(8px) scale(.97); } to { opacity: 1; transform: translateY(0) scale(1); } }
  @keyframes backdrop-appear { from { opacity: 0; } to { opacity: 1; } }
}
dialog h2 {
  text-align: center;
  margin: 16px 0 22px;
  color: #9f8571;
}
.close {
  position: absolute;
  right: 9px;
  top: 6px;
  padding: 0;
  min-height: 36px;
  width: 36px;
  background: transparent;
  color: #666;
  font: 26px Arial;
}
.intro {
  text-align: center;
}
.intro .rsvp-card {
  margin: 32px 0 12px;
}
.plain {
  background: transparent;
  color: #776b61;
  width: 100%;
  font-size: 14px;
}
.form-intro {
  text-align: center;
  margin-bottom: 28px;
  font-size: 15px;
}
.form-field {
  display: block;
  margin-top: 22px;
}
.form-field > span,
fieldset legend {
  display: block;
  margin-bottom: 9px;
  font-size: 15px;
}
fieldset {
  padding: 0;
  border: 0;
  margin: 22px 0;
}
.choice {
  display: flex;
  gap: 7px;
}
.choice label {
  flex: 1;
}
.choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.choice span {
  display: block;
  text-align: center;
  padding: 8px 4px;
  border: 1px solid #e6dfd9;
  border-radius: 5px;
  font-size: 15px;
}
.choice input:checked + span {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}
.choice input:focus-visible + span {
  outline: 2px solid #795d49;
  outline-offset: 2px;
}
input,
textarea,
select {
  width: 100%;
  border: 1px solid #ddd4ce;
  border-radius: 5px;
  background: #fff;
  padding: 10px 12px;
  color: #444;
  font-size: 16px;
}
textarea {
  resize: vertical;
  min-height: 100px;
}
.submit {
  width: 100%;
  margin-top: 28px;
}
.error {
  color: #a22d2d;
  white-space: pre-line;
  font-size: 14px;
}
.privacy {
  font-size: 13px;
  color: #7c7169;
  margin-top: 16px;
  line-height: 1.6;
}
.privacy input {
  width: auto;
  margin-right: 8px;
}
.lightbox {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  padding: 0;
  background: #fff;
  width: min(100vw, 448px);
  max-width: 448px;
  height: 100dvh;
  max-height: 100dvh;
  border-radius: 0;
  overflow: hidden;
}
.lightbox-stage { width: 100%; height: 100%; overflow: hidden; }
.lightbox-track { display: flex; width: 100%; height: 100%; transition: transform .36s ease; }
.lightbox-slide { flex: 0 0 100%; display: flex; align-items: center; justify-content: center; height: 100%; overflow: hidden; }
.lightbox-slide img { display: block; width: 100%; max-height: 100%; object-fit: contain; }
.lightbox-hit { position: absolute; top: 56px; bottom: 72px; width: 80px; min-height: 0; padding: 0; background: transparent; z-index: 1; }
.lightbox-hit.hit-prev { left: 0; }
.lightbox-hit.hit-next { right: 0; }
.lightbox-hit:disabled { pointer-events: none; }
.lightbox-controls { position: absolute; left: 20px; right: 20px; bottom: 32px; height: 25px; display: flex; align-items: center; justify-content: space-between; z-index: 2; }
.lightbox-controls button { display: grid; place-items: center; width: 24px; height: 25px; min-height: 0; padding: 0; background: transparent; color: #999; }
.lightbox-controls button:disabled { opacity: .5; }
.lightbox-controls svg { width: 24px; height: 25px; }
.lightbox-controls span { color: #666; font: 14px/25px Suit, Arial, sans-serif; }
.lightbox .close { z-index: 3; top: 16px; right: 16px; width: 20px; height: 20px; min-height: 0; font-size: 0; opacity: .7; }
.lightbox .close::before, .lightbox .close::after { content: ""; position: absolute; top: 9px; left: 0; width: 20px; height: 1px; background: #777; transform: rotate(45deg); }
.lightbox .close::after { transform: rotate(-45deg); }
.upload-list {
  font-size: 14px;
  padding-top: 12px;
}
.success {
  text-align: center;
  padding: 30px 0;
}
.success .heart {
  font-size: 36px;
  color: var(--accent);
}
#toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  background: #3d3730ec;
  color: #fff;
  border-radius: 8px;
  padding: 12px 22px;
  max-width: 90vw;
  width: max-content;
  font:
    15px/1.6 "Gowun Batang", "Nanum Myeongjo", "Noto Serif KR",
    serif;
  z-index: 20;
  display: none;
}
#toast.visible {
  display: block;
}
[hidden] {
  display: none !important;
}
@media (max-width: 600px) {
  .invitation {
    margin: 0 auto;
    border-radius: 0;
    box-shadow: none;
    max-width: 448px;
  }
  .music {
    top: 12px;
    right: 12px;
  }
  .cover {
    height: 100svh;
    min-height: 580px;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .invitation {
    animation: fade 0.7s ease;
  }
  .invitation .scroll-reveal { opacity: 0; transform: translateY(40px); transition: opacity .8s cubic-bezier(.22,1,.36,1), transform .8s cubic-bezier(.22,1,.36,1); transition-delay: var(--reveal-delay, 0ms); }
  .invitation .scroll-reveal.is-visible { opacity: var(--reveal-opacity, 1); transform: translateY(0); }
  @keyframes fade {
    from {
      opacity: 0;
    }
    to {
      opacity: 1;
    }
  }
}
/* 원본의 세로 타임라인, 날짜 전환 화면과 앨범 색상을 재현합니다. */
.small-title {
  font-size: 36px;
  letter-spacing: 1px;
}
.butterflies {
  width: 160px;
  height: 46px;
  display: block;
  margin: 0 auto 40px;
}
.butterflies > img,
.butterflies > svg { display: block; width: 100%; height: 100%; }
.timeline {
  background: #fafafa;
}
.timeline-list {
  position: relative;
  margin-top: 72px;
  margin-left: -28px;
  margin-right: -28px;
  width: calc(100% + 56px);
  gap: 72px;
  padding: 0 0 28px;
}
.timeline-list:before {
  content: "";
  position: absolute;
  left: 50%;
  width: 1px;
  top: 0;
  bottom: 0;
  background: #ccc;
}
.timeline-list div {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  margin-left: 50%;
  padding-left: 24px;
  gap: var(--timeline-badge-gap, 16px);
  min-height: 68px;
  font:
    14px/20px "Gowun Batang", "Nanum Myeongjo", "Noto Serif KR",
    serif;
  text-align: left;
}
.timeline-list div:before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  position: absolute;
  left: -4px;
  top: 12px;
  outline: 5px solid #fafafa;
}
.timeline-list div:nth-child(even) {
  margin-left: 0;
  margin-right: 50%;
  padding-left: 0;
  padding-right: 24px;
  align-items: flex-end;
  text-align: right;
}
.timeline-list div:nth-child(even):before {
  left: auto;
  right: -4px;
}
.timeline-list span:first-child {
  background: var(--accent);
  color: white;
  padding: 4px 10px;
  border-radius: 18px;
  font-size: 14px;
}
.timeline-list span:last-child {
  font-size: 14px;
  font-weight: 600;
}
.gallery {
  padding-left: 0;
  padding-right: 0;
}
.gallery h2 {
  font:
    16px/1.8 "Gowun Batang", "Nanum Myeongjo", "Noto Serif KR",
    serif;
  margin: 38px 0;
}
.gallery-grid {
  gap: 1.5px;
}
.gallery-grid button {
  aspect-ratio: 1;
}
.gallery-grid button:last-child { grid-column: auto; }
.flower-section {
  padding: 70px 32px;
}
.accounts {
  background: #f8f8f8;
  min-height: 384px;
  padding-left: 32px;
  padding-right: 32px;
}
.accounts hr {
  width: 60px;
  border: 0;
  border-top: 1px solid #333;
  margin: 32px auto 70px;
}
.accounts summary {
  background: white;
  min-height: 60px;
  box-shadow: 0 2px 8px #00000008;
  border-radius: 7px;
  padding: 17px 16px;
  font-size: 14px;
}
.accounts details {
  margin: 24px 0;
}
.date-interlude {
  min-height: 100svh;
  display: grid;
  place-items: center;
  background: #9b8d82;
  color: white;
  text-align: center;
  font:
    96px/1.17 "Playfair Display", "Cormorant Garamond",
    Georgia,
    serif;
}
.date-lines { display: flex; flex-direction: column; align-items: center; }
.date-line { display: flex; align-items: center; justify-content: center; gap: 20px; height: 112px; }
.date-word { display: inline-flex; height: 112px; overflow: hidden; }
.date-letter { display: inline-block; }
@media (prefers-reduced-motion: no-preference) {
  .date-interlude.motion-ready .date-letter { opacity: 0; transform: translateY(100%); transition: opacity .8s ease, transform 1s cubic-bezier(.22,1,.36,1); transition-delay: calc(var(--letter-index) * 75ms); }
  .date-interlude.motion-ready.is-visible .date-letter { opacity: 1; transform: translateY(0); }
}
.album {
  background: #87786c;
  padding-left: 32px;
  padding-right: 32px;
}
.album > .small-title {
  color: white;
}
.album-card {
  margin-top: 40px;
  background: #f9f9f9;
  border-radius: 12px;
  padding: 40px 24px;
  box-shadow: 0 5px 18px #0002;
}
.album .editorial {
  font:
    italic 22px Georgia,
    serif;
  color: #87786c;
}
.album-card button:not(.plain) {
  background: #87786c;
}
.album-card > p {
  font-size: 14px;
}
.album-card .muted {
  color: #287140;
  background: #e1f5e8;
  padding: 8px;
  border: 1px solid #36ab5c;
  border-radius: 8px;
}
.quote {
  background: #6f6259;
  color: white;
}
.quote .pre {
  padding: 64px 44px;
  line-height: 2;
}
.sharing {
  background: #eee7e2;
  padding-top: 30px;
}
.sharing .kakao,
.sharing button {
  background: transparent;
  color: #444;
  text-align: left;
  font-size: 14px;
  padding: 8px;
  min-height: 40px;
}
.invitation-text .pre {
  font-size: var(--body-size);
  line-height: var(--line);
}
.invitation-text {
  padding-left: var(--inset);
  padding-right: var(--inset);
}
.calendar {
  padding: 32px 0;
  gap: 16px 0;
}
.intro {
  padding-left: 25px;
  padding-right: 25px;
}
.intro .lead {
  color: #8c8178;
  font-size: 15px;
}
.intro .rsvp-card {
  font-size: 14px;
}
.intro .couple {
  font-size: 14px;
}
.date-copy {
  line-height: 1.8;
}
.gallery-grid button img { transition: opacity .3s ease; }
.gallery-grid button:active img { opacity: .8; }

/* 원본 초대장의 문단 리듬을 유지하면서 관리자 문구 수정은 그대로 반영한다. */
#rsvp h1 {
  font-size: 36px;
  line-height: 40px;
}
#rsvp .lead {
  margin: 24px 0 48px;
  line-height: 24px;
}
#rsvp .rsvp-card {
  font-size: 16px;
  line-height: 24px;
}
#rsvp .rsvp-card button {
  min-height: 48px;
  padding: 12px;
}
.invitation-text .butterflies {
  margin-bottom: 0;
}
.invitation-copy {
  margin: 43px -18px 0;
  line-height: calc(var(--line) * 0.947368);
}
.invitation-text .invitation-copy p {
  margin: 0;
  line-height: inherit;
}
.invitation-text .invitation-copy p + p {
  margin-top: 28px;
}
.invitation-text .invitation-copy p:first-child + p {
  margin-top: 58px;
}
.invitation-signature {
  margin-top: 40px;
  margin-bottom: 19px;
}
.travel.parking {
  font-size: 14px;
  line-height: 24px;
  padding-bottom: 0;
  border-bottom: 0;
}
.travel.parking p {
  margin: 0;
  line-height: 24px;
}
.travel.parking p + p {
  margin-top: 24px;
}

#album {
  padding-left: 0 !important;
  padding-right: 0 !important;
}
#album > .small-title {
  font-size: 36px;
  line-height: 40px;
}
.album-shell {
  margin-top: 8px;
  padding: 32px;
  min-height: 716px;
  height: auto;
}
.album-panel {
  min-height: 652px;
  height: auto;
  padding: 40px 24px;
  background: #f9f9f9;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 5px 15px #0002;
}
.album-camera {
  display: block;
  width: 34px;
  height: 34px;
  flex: none;
  color: #87786c;
  margin: 0 0 64px;
}
.album-panel .album-card {
  width: 100%;
  height: 348px;
  flex: none;
  margin: 0;
  padding: 24px 20px;
  background: white;
  border-radius: 14px;
  box-shadow: 0 5px 18px #0002;
}
.album-panel .album-card .editorial {
  font: italic 18px/28px "Playfair Display", "Cormorant Garamond", Georgia, serif;
  margin: 0;
  color: #756a61;
}
.album-names {
  font-size: 15px;
  line-height: 24px;
  margin-top: 16px;
}
.album-date {
  display: grid;
  place-items: center;
  height: 160px;
  margin-top: 16px;
  border-radius: 14px;
  background: #f8f7f6;
  box-shadow: inset 0 1px 5px #0000000d;
  font-size: 14px;
  line-height: 24px;
  white-space: nowrap;
}
.album-panel .album-card button {
  width: 100%;
  min-height: 44px;
  margin: 12px 0 0;
  padding: 8px;
  border-radius: 8px;
  font-size: 14px;
}
.album-status {
  display: block;
  width: 100%;
  margin: 32px 0 0;
  min-height: 38px;
  padding: 6px 8px;
  background: #e1f5e8;
  border: 1px solid #36ab5c;
  border-radius: 12px;
  color: #287140;
  font-size: 12px;
  line-height: 24px;
  white-space: nowrap;
}
.album-status span {
  float: left;
  border-radius: 8px;
  background: #66c687;
  color: white;
  padding: 0 4px;
  margin-right: 6px;
}
.album-panel .plain {
  min-height: 38px;
  margin: 18px 0 0;
  font-size: 13px;
  color: #7c6d60;
}

.album-panel .album-card .editorial { font-weight: 600; }
.quote .pre { line-height: 24px; }
.sharing { padding-bottom: 35px; }
.closing-space { height: 168px; background: white; }

#gallery > .small-title { line-height: 40px; }
#timeline > .small-title { line-height: 40px; }
#rsvp h1, #timeline h2, #wedding h2, #gallery > .small-title, #location h2 { opacity: .9; }
#gallery h2 { margin: 40px 0; font-size: 16px; line-height: 24px; }
#gallery h2 { opacity: .8; }
.gallery-grid:not(.expanded) button:nth-child(n+10) { display: none; }
.gallery-grid.expanded button:nth-child(n+10) { animation: gallery-appear .4s ease both; }
@keyframes gallery-appear { from { opacity: 0; } to { opacity: 1; } }
.gallery-more { display: block; width: 100%; height: 142px; padding: 36px 0; margin: 0; background: white; color: #666; border-radius: 0; }
.gallery-more img { display: block; width: 320px; max-width: 100%; height: 70px; margin: auto; }
.gallery-more .gallery-more-label { display: block; font-size: 15px; color: #8a7d72; letter-spacing: 1px; }
.flower-section { padding: 80px 32px; background: #9b8d82; color: white; }
.flower-wreath { width: 120px; height: 120px; margin: 0 auto; position: relative; }
.flower-section .flower { display: block; width: 120px; height: 120px; margin: 0; }
.flower-wreath .remaining { position: absolute; inset: 0; display: grid; place-items: center; font-size: 16px; line-height: 24px; letter-spacing: 1px; }
@media (prefers-reduced-motion: no-preference) {
  .flower-wreath .flower { animation: flower-rotate 60s linear infinite; }
  @keyframes flower-rotate { to { transform: rotate(-360deg); } }
}
.flower-copy { padding-top: 48px; font-size: 16px; line-height: 24px; }
.flower-copy p { margin: 0; }
.flower-copy p + p { margin-top: 8px; }

.music { width: 24px; height: 24px; right: max(calc((100vw - var(--width)) / 2 + 4px), 12px); }
.music svg { display: block; width: 20px; height: 20px; margin: 2px; fill: none; stroke: white; stroke-width: 1.3; stroke-linecap: round; }
@media (max-width: 600px) { .music { right: 12px; } }


#wedding .small-title { line-height: 40px; }
#wedding .date-copy { margin: 48px -26px 0; font-size: 16px; line-height: 24px; }
#wedding .date-copy + .date-english { margin-top: 8px; font: 16px/24px "Gowun Batang", "Nanum Myeongjo", "Noto Serif KR", serif; color: #a7a09a; }
#wedding .calendar { margin: 32px 0 0; padding: 32px 0; gap: 32px 0; grid-auto-rows: 24px; }
#wedding .calendar span { aspect-ratio: auto; height: 24px; font-size: 14px; }
#wedding .calendar .chosen { width: 32px; height: 32px; justify-self: center; align-self: center; }
#wedding .countdown { height: 92px; margin: 32px 0 0; gap: 4px; align-items: stretch; }
#wedding .countdown > div { flex: 1; display: flex; flex-direction: column; justify-content: center; background: #fafafa; border-radius: 6px; }
#wedding .countdown strong { font-size: 27px; line-height: 34px; font-weight: 400; }
#wedding .countdown small { font-size: 10px; line-height: 18px; }
#wedding .remaining { height: 83px; margin: 0; padding-top: 32px; font-size: 14px; line-height: 19px; color: #8d8986; }
#location { background: #f2efee; }
#location > .small-title { line-height: 40px; }
.venue-line { display: flex; align-items: center; justify-content: center; gap: 7px; margin-top: 39px; height: 22px; }
.venue-line h3 { margin: 0; font-size: 14px; line-height: 22px; }
.venue-line a { font-size: 14px; line-height: 22px; text-decoration: none; color: #827a74; }
#location > .address-line { margin: 8px 0 0; font-size: 14px; line-height: 22px; color: #928c87; }
.map-wrap { position: relative; margin: 56px -28px 0; width: calc(100% + 56px); height: 224px; }
.map-wrap .map { display: block; width: 100%; height: 224px; margin: 0; background: #e7e2dd; }
.map-overlay { position: absolute; z-index: 1000; top: 16px; left: 16px; background: #4d4b48; color: white; border-radius: 5px; padding: 2px 8px; font-size: 12px; line-height: 20px; text-decoration: none; }
.map-wrap .leaflet-control-attribution { font: 10px/15px sans-serif; background: #ffffffd9; }
.map-wrap .leaflet-control-attribution a { color: #555; }
.map-wrap .leaflet-top.leaflet-right { margin-top: 12px; margin-right: 10px; }
.map-wrap .leaflet-control-zoom { border: 0; box-shadow: 0 1px 5px #0003; }
#location .map-buttons { position: relative; margin: 22px -28px 0; width: calc(100% + 56px); height: 44px; padding: 0 32px; gap: 8px; align-items: center; justify-content: space-between; background: transparent; }
#location .map-buttons a { display: flex; flex: 1; align-items: center; justify-content: center; gap: 8px; min-width: 0; height: 44px; padding: 0 8px; border-radius: 6px; background: white; box-shadow: 0 4px 6px -1px #0000001a, 0 2px 4px -2px #0000001a; color: #111; font: 14px/19.25px "Gowun Batang", "Nanum Myeongjo", "Noto Serif KR", sans-serif; white-space: nowrap; }
#location .map-buttons img { display: block; width: auto; height: 16px; max-width: 21px; }
#location .map-buttons a:nth-child(2) img { height: 14px; }
#location .map-buttons a:nth-child(3) img { height: 16px; }
#location .map-buttons::after { content: ""; position: absolute; top: 73px; left: 32px; right: 32px; height: 1px; background: #c7b9ad; }
#location .travel { margin-left: 12px; margin-right: 12px; }
#location .map-buttons + .travel { margin-top: 47px; padding-top: 8px; padding-bottom: 31px; }
#location .travel.parking { padding-top: 8px; }
#location .travel.parking strong { margin-bottom: 24px; }

/* 한글이 낱말 중간에서 끊기지 않게 (손님 화면과 편집 화면 공통) */
.invitation, #modal { word-break: keep-all; overflow-wrap: break-word; }

/* ===== 디자인 다듬기: 글꼴·숫자·구분선·꽃잎 ===== */
.invitation, #modal { font-feature-settings: "lnum" 1; -webkit-font-smoothing: antialiased; }
.small-title::after { content: ""; display: block; width: 96px; height: 18px; margin: 14px auto 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 96 18'%3E%3Cg fill='none' stroke='%23a08b7c' stroke-width='1' stroke-linecap='round'%3E%3Cpath d='M4 9h34M58 9h34'/%3E%3Cpath d='M48 15V6'/%3E%3C/g%3E%3Cg fill='%23b9a595'%3E%3Cellipse cx='42' cy='9' rx='4.2' ry='2' transform='rotate%28-25 42 9%29'/%3E%3Cellipse cx='54' cy='9' rx='4.2' ry='2' transform='rotate%2825 54 9%29'/%3E%3Ccircle cx='48' cy='4' r='2.2'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat; opacity: .8; }
.rsvp-card, .album-card, .account-row { box-shadow: 0 10px 30px -18px rgba(90, 70, 55, .35); }
.rsvp-card button, #upload-open, .sharing button { letter-spacing: .3px; transition: transform .15s ease, box-shadow .15s ease; }
.rsvp-card button:active, #upload-open:active, .sharing button:active { transform: scale(.985); }
.invitation-text { position: relative; overflow: hidden; }
.petals { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; }
.petals i { position: absolute; top: -28px; left: var(--x); width: calc(10px * var(--s)); height: calc(14px * var(--s)); border-radius: 70% 0 70% 0; background: linear-gradient(135deg, #f6dcd7, #e6b5ae); opacity: 0; animation: petal var(--t) linear var(--d) infinite; }
@keyframes petal { 0% { transform: translate3d(0, 0, 0) rotate(0); opacity: 0; } 10% { opacity: .8; } 100% { transform: translate3d(var(--drift), 640px, 0) rotate(420deg); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .petals { display: none; } }

/* ===== 움직임과 고급스러운 마감 (직접 만든 효과) ===== */
::selection { background: #e5cfc4; }
.cover { position: relative; overflow: hidden; }
.cover-hero { position: absolute; left: 0; right: 0; top: 0; height: var(--photo, 75%); display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 12px; padding: 0 24px 38px; text-align: center; color: #fff; background: linear-gradient(180deg, rgba(24, 16, 10, 0) 42%, rgba(24, 16, 10, .58) 100%); pointer-events: none; }
.cover-eyebrow { font: 500 12px "Cormorant Garamond", "Gowun Batang", serif; letter-spacing: 6px; opacity: .92; }
.cover-names { font: 500 36px/1.25 "Cormorant Garamond", "Gowun Batang", serif; letter-spacing: 1px; text-shadow: 0 2px 22px rgba(0, 0, 0, .38); }
.cover-date { font: 500 14px "Cormorant Garamond", "Gowun Batang", serif; letter-spacing: 4px; opacity: .95; }
.scroll-cue { position: absolute; left: 50%; bottom: 12px; width: 14px; height: 34px; margin-left: -7px; pointer-events: none; }
.scroll-cue i { display: block; width: 2px; height: 14px; margin: 0 auto; border-radius: 2px; background: #a89685; }
.gallery-grid button { overflow: hidden; }
.gallery-grid button img { transition: transform .8s cubic-bezier(.22, 1, .36, 1), opacity .3s ease; }
@media (hover: hover) { .gallery-grid:not(.no-zoom) button:hover img { transform: scale(1.07); } }
.gallery-grid.no-zoom button { cursor: default; }
.gallery-grid.layout-list { grid-template-columns: 1fr; gap: 14px; }
.gallery-grid.layout-list button, .gallery-grid.layout-list button:last-child { aspect-ratio: 3 / 4; grid-column: auto; display: block; }
.gallery-grid.layout-slider { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px calc((100% - 78%) / 2); scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.gallery-grid.layout-slider::-webkit-scrollbar { display: none; }
.gallery-grid.layout-slider button, .gallery-grid.layout-slider button:nth-child(n + 10) { display: block; flex: 0 0 78%; aspect-ratio: 3 / 4; scroll-snap-align: center; border-radius: 16px; box-shadow: 0 16px 34px -22px rgba(60, 40, 30, .6); }
.gallery-dots { display: flex; justify-content: center; gap: 6px; margin: 16px 0 0; }
.gallery-dots i { width: 6px; height: 6px; border-radius: 6px; background: #cfc3b8; transition: width .3s ease, background .3s ease; }
.gallery-dots i.on { width: 20px; background: #8b7766; }
.parallax { margin: 0; overflow: hidden; }
.parallax img { display: block; width: 100%; height: auto; transform: translate3d(0, var(--py, 0px), 0) scale(1.14); will-change: transform; }
.guestbook { background: #f5efea; text-align: center; }
.gb-sub { color: #8a7d72; font-size: 14px; margin: 14px 0 22px; }
.gb-list { display: grid; gap: 12px; max-height: 420px; overflow-y: auto; padding: 4px 2px 8px; text-align: left; scrollbar-width: thin; }
.gb-card { background: #fff; border-radius: 14px; padding: 14px 18px; box-shadow: 0 12px 26px -22px rgba(60, 40, 30, .7); }
.gb-card b { font-size: 14px; color: #6f5c4d; }
.gb-card p { margin: 6px 0 0; font-size: 14.5px; line-height: 1.75; white-space: pre-wrap; word-break: keep-all; }
.gb-empty { color: #9b8f85; font-size: 14px; text-align: center; margin: 10px 0; }
.gb-open { margin-top: 20px; min-height: 48px; padding: 12px 34px; border-radius: 999px; background: var(--accent, #c2b0a2); color: #fff; font-size: 15px; }
#modal.guestbook textarea { border: 1px solid #ddd0c5; border-radius: 8px; padding: 10px; font: inherit; }
dialog[open] { animation: dialogIn .38s cubic-bezier(.22, 1, .36, 1); }
@keyframes dialogIn { from { opacity: 0; transform: translateY(18px) scale(.985); } to { opacity: 1; transform: none; } }
.rsvp-card button, #upload-open, .gb-open, .sharing .kakao { position: relative; overflow: hidden; }
.rsvp-card button::after, #upload-open::after, .gb-open::after, .sharing .kakao::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .38), transparent); transform: skewX(-18deg); animation: shimmer 5.5s ease-in-out infinite; pointer-events: none; }
@keyframes shimmer { 0%, 60% { left: -60%; } 100% { left: 130%; } }
.music.playing::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .75); animation: ripple 2.2s ease-out infinite; pointer-events: none; }
@keyframes ripple { from { transform: scale(.85); opacity: .9; } to { transform: scale(1.5); opacity: 0; } }
@media (prefers-reduced-motion: no-preference) {
  .cover > img { animation: kenburns 24s ease-out both; }
  @keyframes kenburns { from { transform: scale(1.16); } to { transform: scale(1.02); } }
  .cover-hero > * { opacity: 0; animation: heroRise 1.5s cubic-bezier(.22, 1, .36, 1) forwards; }
  .cover-hero .cover-eyebrow { animation-delay: .45s; }
  .cover-hero .cover-names { animation-delay: .8s; }
  .cover-hero .cover-date { animation-delay: 1.25s; }
  @keyframes heroRise { from { opacity: 0; transform: translateY(24px); filter: blur(9px); } to { opacity: 1; transform: none; filter: blur(0); } }
  .scroll-cue i { animation: cue 2.2s ease-in-out infinite; }
  @keyframes cue { 0%, 100% { transform: translateY(0); opacity: .35; } 50% { transform: translateY(14px); opacity: 1; } }
  .invitation .scroll-reveal { filter: blur(5px); transition: opacity .9s cubic-bezier(.22, 1, .36, 1), transform .9s cubic-bezier(.22, 1, .36, 1), filter .9s ease, letter-spacing 1.6s cubic-bezier(.22, 1, .36, 1); }
  .invitation .scroll-reveal.is-visible { filter: none; }
  .invitation .small-title.scroll-reveal { letter-spacing: 9px; }
  .invitation .small-title.scroll-reveal.is-visible { letter-spacing: 2px; }
  #wedding .countdown > div:last-child strong { animation: tickpop .9s ease-out; }
  @keyframes tickpop { from { opacity: .3; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
  .gb-card { animation: cardIn .7s cubic-bezier(.22, 1, .36, 1) both; }
  .gb-card:nth-child(2) { animation-delay: .08s; } .gb-card:nth-child(3) { animation-delay: .16s; } .gb-card:nth-child(n + 4) { animation-delay: .24s; }
  @keyframes cardIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) { .scroll-cue, .cover-hero > * { animation: none; opacity: 1; } .scroll-cue { display: none; } }

/* ===== 포인트 움직임 (오프닝 · 나비 · 하트 · 띠 글씨 · 반짝임) ===== */
#intro { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; background: #2b211b center / cover no-repeat; color: #fff; transition: transform 1.05s cubic-bezier(.77, 0, .18, 1); }
#intro[hidden] { display: none; }
#intro::before { content: ""; position: absolute; inset: 0; background: rgba(28, 20, 15, .62); backdrop-filter: blur(3px); }
#intro.leaving { transform: translateY(-100%); }
.intro-inner { position: relative; text-align: center; padding: 24px; }
.intro-eyebrow { display: block; font: 500 12px "Cormorant Garamond", "Gowun Batang", serif; letter-spacing: 7px; opacity: 0; }
.intro-names { margin: 18px 0 6px; font: 500 42px/1.3 "Cormorant Garamond", "Gowun Batang", serif; letter-spacing: 2px; }
.intro-names i { display: inline-block; font-style: normal; opacity: 0; transform: translateY(20px) rotate(5deg); filter: blur(8px); }
.intro-heart { display: block; width: 34px; height: 31px; margin: 8px auto 14px; overflow: visible; }
.intro-heart path { fill: rgba(243, 213, 208, 0); stroke: #f3d5d0; stroke-width: 1.5; stroke-dasharray: 1; stroke-dashoffset: 1; }
.intro-date { display: block; font: 500 14px "Cormorant Garamond", "Gowun Batang", serif; letter-spacing: 5px; opacity: 0; }
.intro-hint { position: absolute; bottom: 34px; left: 0; right: 0; text-align: center; font-size: 12px; opacity: .55; }
#intro.go .intro-eyebrow { animation: introFade 1.1s .15s ease forwards; }
#intro.go .intro-names i { animation: introLetter 1s cubic-bezier(.22, 1, .36, 1) forwards; animation-delay: calc(.45s + var(--i) * .1s); }
#intro.go .intro-heart path { animation: heartDraw 1.6s 1.5s ease forwards, heartFill .9s 2.9s ease forwards; }
#intro.go .intro-date { animation: introFade 1.1s 2.3s ease forwards; }
@keyframes introFade { to { opacity: .95; } }
@keyframes introLetter { to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes heartDraw { to { stroke-dashoffset: 0; } }
@keyframes heartFill { to { fill: rgba(243, 213, 208, .85); } }

.marquee { overflow: hidden; background: var(--panel, #ede7e3); border-block: 1px solid rgba(120, 100, 85, .18); padding: 13px 0; }
.marquee-track { display: flex; align-items: center; gap: 0; width: max-content; animation: marquee 34s linear infinite; }
.marquee-track span { font: 500 15px "Cormorant Garamond", "Gowun Batang", serif; letter-spacing: 6px; color: #6f5c4d; white-space: pre; }
.marquee-track i { margin: 0 22px; font-style: normal; font-size: 11px; color: #d99b96; }
@keyframes marquee { to { transform: translateX(-50%); } }

.flutter { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 1; }
.bf { position: absolute; width: 40px; left: -14%; top: 24%; }
.bf svg { display: block; width: 100%; overflow: visible; filter: drop-shadow(0 5px 6px rgba(110, 80, 70, .22)); }
.bf path { fill: #f0bfb8; }
.bf2 path { fill: #d7c6ea; }
.bf3 path { fill: #f5dba6; }
.bf .bd { fill: none; stroke: #86695c; stroke-width: 1.8; stroke-linecap: round; }
.bf .wl, .bf .wr { transform-origin: 32px 22px; }
.bf1 { animation: bfFly1 27s ease-in-out infinite; }
.bf2 { width: 32px; animation: bfFly2 33s ease-in-out -11s infinite; }
.bf3 { width: 26px; animation: bfFly3 39s ease-in-out -22s infinite; }
@keyframes bfFly1 { 0% { left: -14%; top: 30%; transform: rotate(14deg); } 18% { left: 20%; top: 8%; transform: rotate(-10deg); } 38% { left: 56%; top: 34%; transform: rotate(16deg); } 58% { left: 86%; top: 12%; transform: rotate(-14deg); } 78% { left: 58%; top: 58%; transform: rotate(10deg); } 100% { left: -14%; top: 30%; transform: rotate(14deg); } }
@keyframes bfFly2 { 0% { left: 108%; top: 52%; transform: rotate(-14deg); } 25% { left: 70%; top: 74%; transform: rotate(12deg); } 50% { left: 34%; top: 46%; transform: rotate(-12deg); } 75% { left: 6%; top: 70%; transform: rotate(14deg); } 100% { left: 108%; top: 52%; transform: rotate(-14deg); } }
@keyframes bfFly3 { 0% { left: 40%; top: 96%; transform: rotate(8deg); } 30% { left: 78%; top: 62%; transform: rotate(-16deg); } 60% { left: 22%; top: 24%; transform: rotate(12deg); } 100% { left: 40%; top: 96%; transform: rotate(8deg); } }
@keyframes flap { from { transform: scaleX(1); } to { transform: scaleX(.18); } }

.tapheart { position: fixed; z-index: 90; pointer-events: none; color: var(--c, #e8a5a0); font-size: calc(20px * var(--s, 1)); font-style: normal; transform: translate(-50%, -50%); animation: tapFloat 1.25s ease-out forwards; text-shadow: 0 2px 8px rgba(120, 70, 70, .25); }
@keyframes tapFloat { 0% { opacity: 0; transform: translate(-50%, -50%) scale(.4); } 15% { opacity: 1; } 100% { opacity: 0; transform: translate(calc(-50% + var(--dx, 0px)), -190%) scale(1.25) rotate(20deg); } }

.flower-wreath { position: relative; }
.spark { position: absolute; left: 50%; top: 50%; width: 5px; height: 5px; margin: -2.5px; border-radius: 50%; background: #fff; box-shadow: 0 0 8px 2px rgba(255, 255, 255, .8); transform: rotate(var(--a)) translateY(-66px) scale(0); opacity: 0; }
.motion-soft .flutter, .motion-soft .spark, .motion-soft .marquee, .motion-off .flutter, .motion-off .spark, .motion-off .marquee { display: none; }

.parallax.scroll-reveal { filter: none !important; transform: none !important; opacity: 1 !important; }

@media (prefers-reduced-motion: no-preference) {
  .motion-full .bf .wl, .motion-full .bf .wr { animation: flap .38s ease-in-out infinite alternate; }
  .motion-full .bf2 .wl, .motion-full .bf2 .wr { animation-duration: .3s; }
  .motion-full .spark { animation: twinkle 3.4s ease-in-out var(--d) infinite; }
  @keyframes twinkle { 0%, 100% { transform: rotate(var(--a)) translateY(-66px) scale(0); opacity: 0; } 50% { transform: rotate(var(--a)) translateY(-66px) scale(1); opacity: 1; } }
  .motion-full .couple span:nth-child(2) { display: inline-block; animation: heartbeat 1.7s ease-in-out infinite; color: #e08c88; }
  @keyframes heartbeat { 0%, 60%, 100% { transform: scale(1); } 15% { transform: scale(1.35); } 30% { transform: scale(1.05); } 45% { transform: scale(1.25); } }
  .motion-full .calendar .chosen { position: relative; }
  .motion-full .calendar .chosen::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 1px solid rgba(190, 130, 125, .7); animation: ringPulse 2.4s ease-out infinite; }
  @keyframes ringPulse { from { transform: scale(.7); opacity: .9; } to { transform: scale(1.6); opacity: 0; } }
  .parallax.scroll-reveal { clip-path: inset(9% 5% 9% 5% round 22px); transition: clip-path 1.6s cubic-bezier(.22, 1, .36, 1); }
  .parallax.scroll-reveal.is-visible { clip-path: inset(0 round 0); }
  .motion-off *, .motion-off *::before, .motion-off *::after { animation: none !important; transition: none !important; }
  .motion-off .cover-hero > * { opacity: 1 !important; filter: none !important; }
}
@media (prefers-reduced-motion: reduce) { #intro, .marquee, .flutter, .spark { display: none !important; } }

.map-buttons svg { width: 20px; height: 20px; flex: none; display: block; }

/* ===== 구성 다듬기: 식순 · 카운트다운 · 모자이크 · 하단 바 ===== */
#timeline .timeline-list { margin: 34px 0 0; width: 100%; gap: 0; padding: 0; }
#timeline .timeline-list:before { display: none; }
#timeline .timeline-list div, #timeline .timeline-list div:nth-child(even) { display: grid; grid-template-columns: 92px 1fr; align-items: baseline; gap: 16px; margin: 0; padding: 18px 4px; min-height: 0; text-align: left; border-bottom: 1px solid rgba(120, 100, 85, .18); }
#timeline .timeline-list div:before, #timeline .timeline-list div:nth-child(even):before { display: none; }
#timeline .timeline-list span:first-child { order: 2; background: none; color: inherit; padding: 0; border-radius: 0; font-size: 15px; font-weight: 400; }
#timeline .timeline-list span:last-child { order: 1; font: 500 21px "Cormorant Garamond", "Gowun Batang", serif; color: #7a6656; }
#wedding .countdown { gap: 0; }
#wedding .countdown > div { background: transparent; border-radius: 0; position: relative; }
#wedding .countdown > div + div::before { content: ""; position: absolute; left: 0; top: 20%; bottom: 20%; width: 1px; background: rgba(120, 100, 85, .28); }
.gallery-grid.layout-mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 118px; gap: 8px; padding: 0 12px; }
.gallery-grid.layout-mosaic button, .gallery-grid.layout-mosaic button:nth-child(n + 10), .gallery-grid.layout-mosaic button:last-child { display: block; aspect-ratio: auto; grid-column: auto; border-radius: 10px; }
.gallery-grid.layout-mosaic button:nth-child(4n + 1) { grid-row: span 3; }
.gallery-grid.layout-mosaic button:nth-child(4n + 2), .gallery-grid.layout-mosaic button:nth-child(4n + 3) { grid-row: span 2; }
.gallery-grid.layout-mosaic button:nth-child(4n) { grid-row: span 3; }
.dock { position: fixed; left: 50%; bottom: max(12px, env(safe-area-inset-bottom, 0px)); z-index: 40; display: flex; gap: 4px; width: min(calc(100vw - 24px), 360px); padding: 6px; border-radius: 999px; background: rgba(255, 255, 255, .88); backdrop-filter: blur(12px); border: 1px solid rgba(120, 100, 85, .16); box-shadow: 0 14px 34px -14px rgba(60, 40, 30, .5); transform: translate(-50%, 140%); transition: transform .55s cubic-bezier(.22, 1, .36, 1); }
.dock.show { transform: translate(-50%, 0); }
.dock button { flex: 1; min-height: 40px; padding: 8px 4px; border-radius: 999px; background: transparent; color: #4a3d31; font-size: 13px; letter-spacing: 0; }
.dock button.primary { background: var(--accent, #b7a08e); color: #fff; flex: 1.4; }
