/* Album screen only. The device, other tabs and prototype controls are unchanged. */
.wedding-album {
  --album-gap: 14px;
  --scene-x: 0px;
  --scene-y: 0px;
  --scene-rx: 0deg;
  --scene-ry: 0deg;
  --frame-rx: 0deg;
  --frame-ry: 0deg;
  --frame-y: 0px;
  --frame-shadow-x: 0px;
  --light-x: 50%;
  --light-y: 30%;
  position: relative;
  isolation: isolate;
  container-type: inline-size;
  min-height: 100%;
  overflow: hidden;
  color: #423629;
  background: radial-gradient(ellipse at 50% 43%, #fffdf6 4%, transparent 56%), linear-gradient(115deg, #e9deca, #faf5e9 34%, #f8f1e3 66%, #e8dbc6);
  padding: 20px 0 30px;
  animation: none !important;
}
.wedding-album *, .wedding-album *::before, .wedding-album *::after { box-sizing: border-box; }
.wedding-album [hidden] { display: none !important; }
.wedding-album button:focus-visible, .wedding-album input:focus-visible { outline: 2px solid #846333; outline-offset: 4px; }
.wedding-album button { touch-action: manipulation; }
.wedding-album svg { width: 18px; height: 18px; flex: 0 0 auto; }
.wedding-album::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, #90704502 0 1px, transparent 1px 3px);
  box-shadow: inset 22px 0 45px -34px #9f794b6b, inset -22px 0 45px -34px #9f794b6b;
}

/* The architecture occupies several perspective planes, behind the controls. */
.wedding-album .album-scene {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  perspective: 900px;
}
.wedding-album .scene-arch {
  position: absolute;
  width: 88%;
  height: 600px;
  top: 154px;
  left: 6%;
  border: 1px solid #b4975e54;
  border-radius: 50% 50% 0 0 / 30% 30% 0 0;
  background: linear-gradient(90deg, #c5ac7b0e, #fffdf347 40%, #fffdf35c 55%, #c5ac7b0e);
  box-shadow: 0 0 0 8px #fffaf27d, 0 0 0 9px #c5ac7a36, 0 0 0 20px #fffaf22e, 0 0 0 21px #c5ac7a20, inset 0 20px 70px #ffffff66;
  transform: translate3d(calc(var(--scene-x) * -.6), calc(var(--scene-y) * -.5), -40px) rotateY(var(--scene-ry));
}
.wedding-album .arch-two {
  width: 132%;
  left: -16%;
  top: 117px;
  height: 660px;
  opacity: .6;
  transform: translate3d(calc(var(--scene-x) * .5), calc(var(--scene-y) * .4), 25px) rotateX(var(--scene-rx));
}
.wedding-album .arch-three { width: 168%; left: -34%; top: 73px; opacity: .35; transform: translate3d(calc(var(--scene-x) * -.9), calc(var(--scene-y) * -.7), -80px); }
.wedding-album .scene-orbit {
  position: absolute;
  width: 260px;
  height: 260px;
  border: 1px solid #bfa47326;
  border-radius: 50%;
  left: -185px;
  top: 290px;
  transform: translate3d(var(--scene-x), var(--scene-y), 60px) rotateY(25deg);
}
.wedding-album .orbit-two { left: auto; right: -185px; top: 235px; }
.wedding-album .scene-floor { position: absolute; inset: 490px -40% auto; height: 210px; border: 1px solid #ac88552b; border-radius: 50%; background: radial-gradient(ellipse, #bda17d19, transparent 65%); transform: translate3d(calc(var(--scene-x) * -.6), var(--scene-y), -40px) rotateX(62deg); }
.wedding-album .scene-petal {
  position: absolute;
  width: 24px;
  height: 38px;
  border-radius: 80% 0 80% 12%;
  border: 1px solid #dfc6ab66;
  background: linear-gradient(120deg, #fffdf0, #e5c4a6a1 52%, #bf956655);
  box-shadow: 0 5px 13px #9c755721;
  transform: translate3d(calc(var(--scene-x) * 1.8), calc(var(--scene-y) * 1.6), 90px) rotate(-28deg);
}
.wedding-album .petal-one { left: 27px; top: 230px; }
.wedding-album .petal-two { right: 22px; top: 540px; width: 16px; height: 24px; rotate: 86deg; }
.wedding-album .petal-three { left: 45px; top: 595px; width: 13px; height: 21px; rotate: -40deg; opacity: .65; }
.wedding-album .scene-light {
  position: absolute;
  width: 360px;
  height: 360px;
  top: 165px;
  right: -135px;
  background: radial-gradient(circle, #fffdf5, transparent 68%);
  transform: translate3d(calc(var(--scene-x) * -2), calc(var(--scene-y) * -2), 0);
}
.wedding-album .light-two { top: 390px; left: -230px; right: auto; background: radial-gradient(circle, #d7bfa637, transparent 68%); }

.wedding-album .album-intro { position: relative; text-align: center; padding: 22px 20px 8px; }
.wedding-album .album-crest { display: flex; justify-content: center; align-items: center; gap: 15px; margin-bottom: 12px; color: #a88a55; }
.wedding-album .album-crest svg { width: 29px; height: 29px; stroke-width: 1; }
.wedding-album .album-crest::before, .wedding-album .album-crest::after { content: ''; width: 40px; height: 1px; background: linear-gradient(90deg, transparent, #ae8d515e); }
.wedding-album .album-crest::after { rotate: 180deg; }
.wedding-album .album-eyebrow { font-size: 7px; line-height: 1.5; letter-spacing: .32em; color: #8f713e; }
.wedding-album .album-title { font-family: var(--serif); font-weight: 400; font-size: 44px; line-height: .98; letter-spacing: -.035em; margin: 12px 0 13px; text-shadow: 0 2px #fffaf3; }
.wedding-album .album-title em { color: #96723f; font-weight: 400; font-size: .86em; letter-spacing: -.04em; }
.wedding-album .album-subcopy { font-size: 9px; color: #82715b; line-height: 1.7; letter-spacing: .03em; margin: 0 auto; max-width: 285px; }

.wedding-album .album-gallery { position: relative; }
.wedding-album .album-locked-image {
  position: relative;
  width: min(286px, calc(100cqw - 58px));
  margin: 27px auto 32px;
  perspective: 1100px;
  perspective-origin: 50% 45%;
}
.wedding-album .album-lock-frame {
  display: block;
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5.55;
  min-height: 360px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #000;
  box-shadow: var(--frame-shadow-x) 24px 32px -15px #18100b4a;
  transform-style: preserve-3d;
  transform: translateY(var(--frame-y)) rotateX(var(--frame-rx)) rotateY(var(--frame-ry));
}
.wedding-album .album-lock-frame::before, .wedding-album .album-lock-frame::after { display: none; }
.wedding-album .album-frame-glint { display: none; }
.wedding-album .album-lock-photo {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 12px;
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 0;
  text-align: center;
  padding: 28px 18px;
  overflow: hidden;
  color: #fff;
  border: 0;
  outline: 0;
  background: #000;
  box-shadow: none;
}
.wedding-album .album-lock-photo::before, .wedding-album .album-lock-photo::after { display: none; }
.wedding-album .album-lock-kicker,
.wedding-album .album-lock-title,
.wedding-album .album-lock-note { position: relative; z-index: 1; text-shadow: none; }
.wedding-album .album-lock-kicker { margin-top: auto; font-size: 7px; letter-spacing: .33em; color: #ffffffb8; }
.wedding-album .album-lock-title { max-width: 220px; font-family: var(--serif); font-size: 38px; line-height: 1; font-weight: 400; color: #fff; }
.wedding-album .album-lock-note { font-size: 8px; line-height: 1.6; letter-spacing: .18em; text-transform: uppercase; color: #ffffffb8; }
.wedding-album .album-see {
  position: relative;
  z-index: 1;
  min-width: 118px;
  margin: 2px 0 auto;
  padding: 12px 18px;
  border: 1px solid #ffffff70;
  border-radius: 999px;
  background: #fff;
  color: #000;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  box-shadow: 0 10px 28px #00000078;
}
.wedding-album .album-see:active { transform: scale(.97); }
#phone .album-fullscreen {
  position: absolute;
  inset: 0;
  z-index: 10000;
  width: 100%;
  height: 100%;
  background: #000;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  transition: opacity .28s ease;
}
#phone .album-fullscreen.is-opening { transition: opacity .36s ease .3s; }
#phone .album-fullscreen.is-open {
  opacity: 1;
}
#phone .album-fullscreen.is-ready { pointer-events: auto; }
#phone .album-scroll {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: stretch;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior: contain;
  scroll-snap-type: x proximity;
  opacity: 0;
  transition: opacity .34s ease .06s;
  scrollbar-width: none;
  touch-action: pan-x;
}
#phone .album-scroll::-webkit-scrollbar { display: none; }
#phone .album-space[hidden],
#phone .album-frame-panel[hidden] { display: none !important; }
#phone .album-fullscreen.is-ready .album-scroll { opacity: 1; }
#phone .album-entry-panel {
  flex: 0 0 100%;
  min-width: 100%;
  min-height: 100%;
  display: grid;
  place-items: center;
  padding: 24px 0 34px;
  scroll-snap-align: start;
}
#phone .album-entry-card {
  position: relative;
  z-index: 1;
  width: min(318px, calc(100% - 48px));
  aspect-ratio: 9 / 14;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 38px 24px 34px;
  color: #f6f2e8;
  border: 2px solid #f6f2e8;
  background: #000;
  box-shadow: inset 0 0 0 1px #ffffff24, 0 0 0 1px #000, 0 32px 80px #000;
  opacity: 1;
  transform: translateY(12px) scale(.96);
  transition: opacity .28s ease .08s, transform .5s cubic-bezier(.2,.82,.2,1) .04s;
}
#phone .album-entry-card::before,
#phone .album-entry-card::after {
  content: '';
  position: absolute;
  inset: 13px;
  border: 1px solid #f6f2e89e;
  pointer-events: none;
}
#phone .album-entry-card::after {
  inset: 0;
  border: 0;
  background:
    linear-gradient(#000 0 0) 18px 0 / 42px 5px no-repeat,
    linear-gradient(#000 0 0) calc(100% - 60px) 0 / 42px 5px no-repeat,
    linear-gradient(#000 0 0) 18px 100% / 42px 5px no-repeat,
    linear-gradient(#000 0 0) calc(100% - 60px) 100% / 42px 5px no-repeat;
}
#phone .album-entry-title {
  position: relative;
  z-index: 1;
  max-width: 100%;
  font-family: var(--serif);
  font-style: italic;
  font-size: 38px;
  line-height: .96;
  text-align: center;
  color: #fffaf0;
  text-shadow: 0 0 24px #d0a54c3b;
}
#phone .album-entry-image {
  position: relative;
  z-index: 1;
  width: min(218px, 83%);
  aspect-ratio: 4 / 5.1;
  margin: 28px 0 24px;
  padding: 8px;
  border: 1px solid #f6f2e89c;
  background: linear-gradient(145deg, #fff8dd1c, #000 28%, #d8b05c1a 76%, #000);
  box-shadow: 0 16px 42px #000, 0 0 46px #caa75f1f;
}
#phone .album-entry-image::before,
#phone .album-entry-image::after {
  content: '';
  position: absolute;
  inset: -7px;
  border: 1px solid #e8c98266;
  pointer-events: none;
}
#phone .album-entry-image::after {
  inset: 11px;
  border-color: #fff7df38;
}
#phone .album-entry-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
#phone .album-entry-copy {
  position: relative;
  z-index: 1;
  max-width: 220px;
  font-size: 10px;
  line-height: 1.5;
  letter-spacing: .22em;
  text-align: center;
  text-transform: uppercase;
  color: #f6f2e8c9;
}
#phone .album-name-trigger {
  position: relative;
  z-index: 1;
  margin-top: 14px;
  padding: 10px 16px;
  border: 1px solid #f6f2e887;
  border-radius: 999px;
  background: #f6f2e8;
  color: #000;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  box-shadow: 0 12px 30px #000;
}
#phone .album-name-trigger:active { transform: scale(.97); }
#phone .album-entry-arrow {
  position: relative;
  z-index: 1;
  margin-top: 12px;
  font-size: 62px;
  line-height: .8;
  color: #f6f2e8;
  transform: scaleX(1.2);
  text-shadow: 0 0 22px #d2ac604f;
}
#phone .album-fullscreen.is-ready .album-entry-card {
  transform: translateY(0) scale(1);
}
#phone .album-field,
#phone .album-frame-panel {
  position: relative;
  flex: 0 0 100%;
  min-width: 100%;
  min-height: 100%;
  height: 100%;
  padding: 0;
  scroll-snap-align: start;
}
#phone .album-field::before,
#phone .album-frame-panel::before {
  content: '';
  position: absolute;
  inset: 24px 18px;
  border: 1px solid #f4ecd13d;
  pointer-events: none;
}
#phone .album-field::after,
#phone .album-frame-panel::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(142deg, transparent 0 54px, #f7efd31c 55px 57px, transparent 58px 116px);
  opacity: .55;
}
#phone .album-space {
  position: absolute;
  z-index: 1;
  display: grid;
  place-items: center;
  border: 1px solid #f7efd1d6;
  background: linear-gradient(145deg, #fff4cf16, #000 58%, #dfbf6917);
  box-shadow: 0 18px 38px #000, inset 0 0 0 6px #000, inset 0 0 0 7px #f7efd142;
}
#phone .album-space span {
  position: absolute;
  left: 11px;
  top: 9px;
  font-size: 8px;
  letter-spacing: .2em;
  color: #f7efd1a8;
}
#phone .album-space b {
  position: absolute;
  right: 10px;
  bottom: 9px;
  font-size: 8px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #f7efd1a0;
}
#phone .album-space i {
  width: 54%;
  height: 44%;
  border: 1px solid #f7efd133;
  background: radial-gradient(circle at 50% 36%, #fff3cd2e, transparent 54%);
}
#phone .album-frame-panel .album-space:nth-child(1) {
  width: min(154px, 38%);
  height: min(206px, 34%);
  left: 42px;
  right: auto;
  top: 106px;
  bottom: auto;
  transform: rotate(-3deg);
}
#phone .album-frame-panel .album-space:nth-child(2) {
  width: min(168px, 42%);
  height: min(226px, 38%);
  left: auto;
  right: 36px;
  top: auto;
  bottom: 104px;
  transform: rotate(3deg);
}
#phone .album-frame-panel .album-space:only-child {
  left: 50%;
  right: auto;
  top: 50%;
  bottom: auto;
  transform: translate(-50%, -50%) rotate(-2deg);
}
#phone .album-frame-panel-one:nth-of-type(even) .album-space:nth-child(1),
#phone .album-frame-panel-two:nth-of-type(even) .album-space:nth-child(1) {
  top: auto;
  bottom: 112px;
  transform: rotate(2deg);
}
#phone .album-frame-panel-one:nth-of-type(even) .album-space:nth-child(2),
#phone .album-frame-panel-two:nth-of-type(even) .album-space:nth-child(2) {
  top: 112px;
  bottom: auto;
  transform: rotate(-4deg);
}
#phone .album-deck-section {
  flex: 0 0 100%;
  min-width: 100%;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 30px;
  padding: 64px 0 52px;
  scroll-snap-align: start;
}
#phone .album-deck-section p {
  margin: 0;
  color: #f7efd1c7;
  font-size: 10px;
  letter-spacing: .28em;
  text-transform: uppercase;
}
#phone .album-card-deck {
  position: relative;
  width: min(254px, calc(100% - 92px));
  height: 382px;
  border: 0;
  background: transparent;
  color: #f8efd2;
  cursor: pointer;
  touch-action: manipulation;
  perspective: 900px;
}
#phone .album-card-deck:focus-visible { outline: 2px solid #f8efd2; outline-offset: 12px; }
#phone .album-stack-card {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px 24px;
  border: 1px solid #f8efd2c2;
  background: #000;
  box-shadow: 0 24px 58px #000, inset 0 0 0 8px #000, inset 0 0 0 9px #f8efd23d;
  transform-origin: 50% 88%;
  transition: transform .54s cubic-bezier(.2,.84,.2,1), opacity .34s ease;
}
#phone .album-stack-card span {
  font-size: 9px;
  letter-spacing: .28em;
  color: #f8efd2a8;
}
#phone .album-stack-card b {
  font-family: var(--serif);
  font-size: 36px;
  line-height: 1;
  font-weight: 400;
  text-transform: capitalize;
}
#phone .album-stack-card:nth-child(1) { z-index: 4; transform: translateY(0) rotate(-2deg); }
#phone .album-stack-card:nth-child(2) { z-index: 3; transform: translateY(18px) scale(.94) rotate(3deg); opacity: .86; }
#phone .album-stack-card:nth-child(3) { z-index: 2; transform: translateY(36px) scale(.88) rotate(-5deg); opacity: .68; }
#phone .album-stack-card:nth-child(4) { z-index: 1; transform: translateY(54px) scale(.82) rotate(6deg); opacity: .46; }
#phone .album-card-deck[data-step="1"] .album-stack-card:nth-child(1),
#phone .album-card-deck[data-step="2"] .album-stack-card:nth-child(2),
#phone .album-card-deck[data-step="3"] .album-stack-card:nth-child(3) { transform: translateY(-26px) rotateY(20deg) rotate(8deg); opacity: .42; }
#phone .album-card-deck[data-step="1"] .album-stack-card:nth-child(2),
#phone .album-card-deck[data-step="2"] .album-stack-card:nth-child(3),
#phone .album-card-deck[data-step="3"] .album-stack-card:nth-child(4) { z-index: 5; transform: translateY(0) rotate(-2deg); opacity: 1; }
#phone .album-card-deck[data-step="1"] .album-stack-card:nth-child(3),
#phone .album-card-deck[data-step="2"] .album-stack-card:nth-child(4),
#phone .album-card-deck[data-step="3"] .album-stack-card:nth-child(1) { z-index: 3; transform: translateY(18px) scale(.94) rotate(3deg); opacity: .86; }
#phone .album-card-deck[data-step="1"] .album-stack-card:nth-child(4),
#phone .album-card-deck[data-step="2"] .album-stack-card:nth-child(1),
#phone .album-card-deck[data-step="3"] .album-stack-card:nth-child(2) { z-index: 2; transform: translateY(36px) scale(.88) rotate(-5deg); opacity: .68; }
#phone .album-name-popup {
  position: absolute;
  inset: 0;
  z-index: 10002;
  display: grid;
  place-items: center;
  padding: 24px;
  background: #000000ba;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .2s ease, visibility 0s linear .2s;
}
#phone .album-name-popup.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}
#phone .album-name-box {
  position: relative;
  width: min(292px, 100%);
  padding: 34px 22px 22px;
  border: 1px solid #f6f2e8b8;
  background: #000;
  color: #f6f2e8;
  box-shadow: 0 26px 70px #000, inset 0 0 0 8px #000, inset 0 0 0 9px #f6f2e82e;
}
#phone .album-name-box span {
  display: block;
  margin-bottom: 16px;
  font-family: var(--serif);
  font-size: 30px;
  font-style: italic;
  line-height: 1;
  text-align: center;
}
#phone .album-name-input {
  width: 100%;
  min-height: 44px;
  margin: 0 0 12px;
  padding: 0 14px;
  border: 1px solid #f6f2e873;
  border-radius: 0;
  background: #070707;
  color: #fff;
  font-size: 14px;
  outline: 0;
}
#phone .album-name-input::placeholder { color: #f6f2e878; }
#phone .album-name-options {
  width: 100%;
  max-height: 148px;
  margin: -4px 0 12px;
  overflow: auto;
  border: 1px solid #f6f2e83d;
  background: #050505;
  box-shadow: inset 0 1px 0 #ffffff12;
}
#phone .album-name-options:empty { display: none; }
#phone .album-name-option {
  display: block;
  width: 100%;
  min-height: 38px;
  padding: 0 14px;
  border: 0;
  border-bottom: 1px solid #f6f2e81f;
  background: transparent;
  color: #f6f2e8;
  font-family: var(--serif);
  font-size: 20px;
  font-style: italic;
  line-height: 38px;
  text-align: left;
}
#phone .album-name-option:last-child { border-bottom: 0; }
#phone .album-name-option:active,
#phone .album-name-option:hover { background: #f6f2e812; }
#phone .album-name-empty {
  display: block;
  margin: 0;
  padding: 12px 14px;
  color: #f6f2e887;
  font-size: 9px;
  letter-spacing: .16em;
  text-transform: uppercase;
}
#phone .album-name-apply,
#phone .album-name-clear {
  width: 100%;
  min-height: 42px;
  margin-top: 8px;
  border: 1px solid #f6f2e8;
  background: #f6f2e8;
  color: #000;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
}
#phone .album-name-clear {
  background: transparent;
  color: #f6f2e8;
}
#phone .album-name-close {
  position: absolute;
  right: 9px;
  top: 9px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid #f6f2e875;
  border-radius: 50%;
  background: #000;
  color: #f6f2e8;
}
#phone .album-name-close svg { width: 16px; height: 16px; }
#phone .album-name-status {
  min-height: 16px;
  margin: 12px 0 0;
  color: #f6f2e8a8;
  font-size: 9px;
  letter-spacing: .14em;
  text-align: center;
  text-transform: uppercase;
}
#phone .album-camera-card {
  position: absolute;
  z-index: 10001;
  overflow: hidden;
  pointer-events: none;
  color: #fff;
  background: #000;
  box-shadow: 0 28px 70px #00000070;
  transform-origin: 50% 50%;
  will-change: transform, opacity, filter;
}
#phone .album-camera-card .album-lock-photo {
  width: 100%;
  height: 100%;
  background: #000;
}
#phone .album-camera-card .album-lock-photo > * { display: none !important; }
#phone .album-camera-card .album-frame-glint { display: none; }
#phone .album-close {
  position: absolute;
  top: calc(16px + env(safe-area-inset-top));
  right: calc(16px + env(safe-area-inset-right));
  z-index: 10001;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid #fff;
  border-radius: 50%;
  background: #fff;
  color: #000;
  box-shadow: 0 10px 30px #00000080;
  opacity: 0;
  transform: scale(.72) rotate(-14deg);
  transition: opacity .24s ease, transform .38s cubic-bezier(.2,.85,.2,1);
}
#phone .album-close svg { width: 20px; height: 20px; stroke-width: 1.8; }
#phone .album-fullscreen.is-ready .album-close { opacity: 1; transform: scale(1) rotate(0); }

/* Expanded 300-photo collection. */
#phone .album-fullscreen {
  --album-black: #050505;
  --album-ivory: #f3efe4;
  --album-gold: #b99b62;
  --album-muted: #aaa294;
  --album-line: #b99b6247;
  --viewer-x: 0px;
  --viewer-y: 0px;
  --viewer-rx: 0deg;
  --viewer-ry: 0deg;
  color: var(--album-ivory);
  background:
    radial-gradient(circle at 16% 22%, #b99b6214, transparent 25%),
    radial-gradient(circle at 84% 76%, #f3efe40a, transparent 30%),
    var(--album-black);
}
#phone .album-fullscreen [hidden] { display: none !important; }
#phone .album-viewer-chrome {
  position: absolute;
  top: calc(18px + env(safe-area-inset-top));
  left: 20px;
  right: 76px;
  z-index: 9999;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  color: var(--album-muted);
  pointer-events: none;
  opacity: 0;
  transition: opacity .35s ease .2s;
}
#phone .album-fullscreen.is-ready .album-viewer-chrome { opacity: 1; }
#phone .album-viewer-search {
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--album-line);
  border-radius: 999px;
  background: #050505cc;
  color: var(--album-ivory);
  font-size: 8px;
  letter-spacing: .14em;
  text-transform: uppercase;
  pointer-events: auto;
}
#phone .album-current-chapter,
#phone .album-progress-count {
  overflow: hidden;
  font-size: 8px;
  line-height: 1;
  letter-spacing: .13em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}
#phone .album-current-chapter { text-align: center; }
#phone .album-progress-count { color: var(--album-ivory); }
#phone .album-viewer-chrome > i {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  height: 1px;
  overflow: hidden;
  background: #f3efe414;
}
#phone .album-viewer-chrome > i > b {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--album-gold), var(--album-ivory));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .18s linear;
}
#phone .album-frame-panel {
  padding: 82px 27px 58px;
  perspective: 1000px;
}
#phone .album-frame-panel::before {
  inset: 75px 20px 50px;
  border: 0;
  background:
    linear-gradient(var(--album-line), var(--album-line)) left top / 27px 1px no-repeat,
    linear-gradient(var(--album-line), var(--album-line)) left top / 1px 27px no-repeat,
    linear-gradient(var(--album-line), var(--album-line)) right bottom / 27px 1px no-repeat,
    linear-gradient(var(--album-line), var(--album-line)) right bottom / 1px 27px no-repeat;
}
#phone .album-frame-panel::after { display: none; }
#phone .album-panel-meta {
  position: absolute;
  left: 29px;
  right: 29px;
  bottom: 25px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--album-muted);
}
#phone .album-panel-meta span,
#phone .album-panel-meta b {
  font-size: 8px;
  font-weight: 400;
  letter-spacing: .16em;
  text-transform: uppercase;
}
#phone .album-composition {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
}
#phone .album-frame-panel .album-composition .album-space {
  --photo-width: 70%;
  --photo-ratio: 3 / 4;
  --photo-x: 50%;
  --photo-y: 50%;
  --photo-angle: 0deg;
  position: absolute;
  left: var(--photo-x);
  right: auto;
  top: var(--photo-y);
  bottom: auto;
  width: var(--photo-width);
  height: auto;
  max-height: 86%;
  aspect-ratio: var(--photo-ratio);
  transform: translate(-50%, -50%) translate3d(var(--viewer-x), var(--viewer-y), 0) rotate(var(--photo-angle)) rotateX(var(--viewer-rx)) rotateY(var(--viewer-ry));
  transform-style: preserve-3d;
  border: 1px solid #b99b6282;
  background:
    radial-gradient(circle at 50% 44%, #f3efe40d, transparent 42%),
    linear-gradient(145deg, #131210, #070707 62%, #15120c);
  box-shadow: 0 18px 42px #000, inset 0 0 0 7px #050505, inset 0 0 0 8px #b99b6238;
  transition: transform .42s cubic-bezier(.2,.8,.2,1), opacity .25s ease;
}
#phone .album-space span { left: 13px; top: 12px; color: var(--album-muted); font-size: 9px; letter-spacing: .16em; }
#phone .album-space b { right: 12px; bottom: 11px; color: #f3efe47c; font-size: 8px; font-weight: 400; letter-spacing: .14em; }
#phone .album-space i {
  position: relative;
  width: 34%;
  height: 29%;
  border: 1px solid #f3efe42b;
  background: none;
}
#phone .album-space i::before {
  content: '';
  position: absolute;
  width: 16%;
  aspect-ratio: 1;
  left: 20%;
  top: 18%;
  border: 1px solid #f3efe447;
  border-radius: 50%;
}
#phone .album-space i::after {
  content: '';
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: 16%;
  height: 42%;
  border: solid #f3efe43d;
  border-width: 1px 0 0 1px;
  transform: skewY(-28deg) rotate(-5deg);
}
#phone .album-frame-panel.album-layout--portrait .album-composition .album-space { --photo-width: 70%; --photo-ratio: 3 / 4; }
#phone .album-frame-panel.album-layout--landscape .album-composition .album-space { --photo-width: 94%; --photo-ratio: 3 / 2; }
#phone .album-frame-panel.album-layout--panorama .album-composition .album-space { --photo-width: 98%; --photo-ratio: 21 / 9; --photo-y: 48%; }
#phone .album-frame-panel.album-layout--square .album-composition .album-space { --photo-width: 82%; --photo-ratio: 1; }
#phone .album-frame-panel.album-layout--tall .album-composition .album-space { --photo-width: 61%; --photo-ratio: 2 / 3; }
#phone .album-frame-panel.album-layout--squares .album-composition .album-photo-1 { --photo-width: 53%; --photo-ratio: 1; --photo-x: 34%; --photo-y: 34%; --photo-angle: -1.5deg; }
#phone .album-frame-panel.album-layout--squares .album-composition .album-photo-2 { --photo-width: 51%; --photo-ratio: 1; --photo-x: 68%; --photo-y: 67%; --photo-angle: 1.5deg; }
#phone .album-frame-panel.album-layout--portraits .album-composition .album-photo-1 { --photo-width: 48%; --photo-ratio: 3 / 4; --photo-x: 31%; --photo-y: 40%; --photo-angle: -1deg; }
#phone .album-frame-panel.album-layout--portraits .album-composition .album-photo-2 { --photo-width: 49%; --photo-ratio: 3 / 4; --photo-x: 69%; --photo-y: 61%; --photo-angle: 1.2deg; }
#phone .album-frame-panel.album-layout--mixed .album-composition .album-photo-1 { --photo-width: 73%; --photo-ratio: 3 / 2; --photo-x: 42%; --photo-y: 30%; --photo-angle: -1deg; }
#phone .album-frame-panel.album-layout--mixed .album-composition .album-photo-2 { --photo-width: 48%; --photo-ratio: 3 / 4; --photo-x: 64%; --photo-y: 69%; --photo-angle: 1.4deg; }
#phone .album-frame-panel.album-layout--landscapes .album-composition .album-photo-1 { --photo-width: 87%; --photo-ratio: 3 / 2; --photo-x: 46%; --photo-y: 31%; }
#phone .album-frame-panel.album-layout--landscapes .album-composition .album-photo-2 { --photo-width: 87%; --photo-ratio: 3 / 2; --photo-x: 54%; --photo-y: 69%; }
#phone .album-frame-panel.album-layout--overlap .album-composition .album-photo-1 { --photo-width: 88%; --photo-ratio: 3 / 2; --photo-x: 45%; --photo-y: 43%; --photo-angle: -1.4deg; }
#phone .album-frame-panel.album-layout--overlap .album-composition .album-photo-2 { --photo-width: 46%; --photo-ratio: 3 / 4; --photo-x: 69%; --photo-y: 65%; --photo-angle: 2deg; z-index: 2; }

#phone .album-chapter-panel,
#phone .album-closing-panel,
#phone .album-empty-panel,
#phone .album-interlude {
  position: relative;
  flex: 0 0 100%;
  min-width: 100%;
  min-height: 100%;
  scroll-snap-align: start;
}
#phone .album-chapter-panel,
#phone .album-closing-panel,
#phone .album-empty-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 86px 34px 66px;
  text-align: center;
  background:
    linear-gradient(90deg, transparent, #b99b6224, transparent) 50% 31% / 72% 1px no-repeat,
    radial-gradient(circle at 50% 48%, #b99b6219, transparent 36%);
}
#phone .album-chapter-panel > span,
#phone .album-closing-panel > span,
#phone .album-empty-panel > span {
  color: var(--album-gold);
  font-size: 9px;
  letter-spacing: .32em;
  text-transform: uppercase;
}
#phone .album-chapter-panel h2,
#phone .album-closing-panel h2,
#phone .album-empty-panel h2 {
  margin: 20px 0 8px;
  color: var(--album-ivory);
  font-family: var(--serif);
  font-size: clamp(44px, 12vw, 58px);
  font-weight: 300;
  line-height: .92;
}
#phone .album-chapter-panel .album-chapter-subtitle,
#phone .album-closing-panel .album-chapter-subtitle {
  margin: 0 0 40px;
  color: var(--album-muted);
  font-family: var(--serif);
  font-size: 22px;
  font-style: italic;
  max-width: 27ch;
  line-height: 1.4;
  text-align: center;
}
#phone .album-chapter-continue,
#phone .album-return,
#phone .album-close-ending,
#phone .album-empty-search {
  min-width: 178px;
  min-height: 46px;
  margin-top: 10px;
  border: 1px solid var(--album-line);
  border-radius: 999px;
  background: var(--album-ivory);
  color: #050505;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
}
#phone .album-chapter-continue i { margin-left: 10px; font-size: 16px; font-style: normal; }
#phone .album-closing-panel h2 em { color: var(--album-gold); font-weight: 300; }
#phone .album-close-ending { background: transparent; color: var(--album-ivory); }

#phone .album-interlude {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 80px 24px 58px;
  perspective: 1100px;
}
#phone .album-interlude > p {
  margin: 0;
  color: var(--album-ivory);
  font-family: var(--serif);
  font-size: 26px;
  font-style: italic;
  letter-spacing: .01em;
  text-transform: none;
}
#phone .album-interlude em,
#phone .album-interlude-note {
  position: absolute;
  left: 50%;
  bottom: -34px;
  width: max-content;
  transform: translateX(-50%);
  color: var(--album-muted);
  font-family: var(--serif);
  font-size: 14px;
  font-style: italic;
  font-weight: 400;
  letter-spacing: .02em;
  text-transform: none;
}
#phone .album-card-deck {
  width: min(252px, calc(100% - 74px));
  height: min(382px, calc(100vh - 250px));
  min-height: 310px;
  transform: translate3d(var(--viewer-x), var(--viewer-y), 0) rotateX(var(--viewer-rx)) rotateY(var(--viewer-ry));
  transition: transform .35s ease;
}
#phone .album-card-deck .album-stack-card {
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  max-height: none;
  aspect-ratio: auto;
}
#phone .album-card-deck .album-stack-card i { width: 44%; height: 38%; }
#phone .album-interlude-note { bottom: 28px; left: 50%; }

#phone .album-peel-stage,
#phone .album-flip-stage,
#phone .album-film-stage,
#phone .album-fan-stage {
  position: relative;
  width: min(270px, calc(100% - 64px));
  height: min(390px, calc(100vh - 235px));
  min-height: 300px;
  cursor: pointer;
  outline: 0;
  transform: translate3d(var(--viewer-x), var(--viewer-y), 0) rotateX(var(--viewer-rx)) rotateY(var(--viewer-ry));
  transform-style: preserve-3d;
  transition: transform .42s ease;
}
#phone .album-peel-stage:focus-visible,
#phone .album-flip-stage:focus-visible,
#phone .album-film-stage:focus-visible,
#phone .album-fan-stage:focus-visible { outline: 2px solid var(--album-ivory); outline-offset: 10px; }
#phone .album-peel-stage .album-space,
#phone .album-flip-stage .album-space,
#phone .album-film-stage .album-space,
#phone .album-fan-stage .album-space {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-height: none;
  aspect-ratio: auto;
  border: 1px solid #b99b6282;
  background: linear-gradient(145deg, #15130f, #050505 70%);
  box-shadow: 0 22px 54px #000, inset 0 0 0 7px #050505, inset 0 0 0 8px #b99b6238;
}
#phone .album-peel-back { transform: none; }
#phone .album-peel-front {
  z-index: 2;
  opacity: 1;
  transition: opacity .5s ease, transform .5s ease;
}
#phone .album-peel-stage.is-active .album-peel-front {
  opacity: 0;
  transform: translateY(-12px);
  pointer-events: none;
}
#phone .album-flip-inner { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .7s cubic-bezier(.2,.8,.2,1); }
#phone .album-flip-stage.is-active .album-flip-inner { transform: rotateY(180deg); }
#phone .album-flip-face { position: absolute; inset: 0; backface-visibility: hidden; }
#phone .album-flip-back { transform: rotateY(180deg); }
#phone .album-flip-face .album-space { display: grid; }
#phone .album-film-stage { width: min(310px, calc(100% - 36px)); height: min(340px, calc(100vh - 265px)); overflow: hidden; border: 1px solid var(--album-line); background: #090909; }
#phone .album-film-track { position: absolute; inset: 24px 0; display: flex; gap: 14px; width: 188%; padding: 0 18px; transition: transform .68s cubic-bezier(.2,.8,.2,1); }
#phone .album-film-stage.is-active .album-film-track { transform: translateX(-47%); }
#phone .album-film-stage .album-film-photo { position: relative; inset: auto; flex: 0 0 52%; width: auto; height: 100%; transform: none; }
#phone .album-film-sprockets { position: absolute; inset: 7px 0; pointer-events: none; border-block: 7px dotted #f3efe465; }
#phone .album-film-stage em { bottom: 8px; z-index: 3; padding: 4px 10px; background: #050505; }
#phone .album-fan-stage .album-fan-photo { transform-origin: 50% 92%; transition: transform .62s cubic-bezier(.2,.8,.2,1), opacity .35s ease; }
#phone .album-fan-stage .album-fan-photo:nth-child(1) { z-index: 3; transform: rotate(-2deg); }
#phone .album-fan-stage .album-fan-photo:nth-child(2) { z-index: 2; transform: translateY(12px) scale(.94) rotate(7deg); opacity: .72; }
#phone .album-fan-stage .album-fan-photo:nth-child(3) { z-index: 1; transform: translateY(24px) scale(.88) rotate(-9deg); opacity: .46; }
#phone .album-fan-stage[data-step="1"] .album-fan-photo:nth-child(1),
#phone .album-fan-stage[data-step="2"] .album-fan-photo:nth-child(2) { z-index: 1; transform: translateY(24px) scale(.88) rotate(-9deg); opacity: .46; }
#phone .album-fan-stage[data-step="1"] .album-fan-photo:nth-child(2),
#phone .album-fan-stage[data-step="2"] .album-fan-photo:nth-child(3) { z-index: 3; transform: rotate(-2deg); opacity: 1; }
#phone .album-fan-stage[data-step="1"] .album-fan-photo:nth-child(3),
#phone .album-fan-stage[data-step="2"] .album-fan-photo:nth-child(1) { z-index: 2; transform: translateY(12px) scale(.94) rotate(7deg); opacity: .72; }
#phone .album-fullscreen.is-filtered .album-interlude .album-space:not([hidden]) { opacity: 1; }
#phone.album-opening #app,
#phone.album-opening #footerNav,
#phone.album-opening #ctl { pointer-events: none; }
#phone.album-viewing #app { padding-bottom: 0 !important; }
#phone.album-viewing .hdr,
#phone.album-viewing .grain,
#phone.album-viewing #footerNav,
#phone.album-viewing #ctl { display: none !important; }
.wedding-album .album-colophon { display: flex; align-items: center; justify-content: center; gap: 13px; color: #a4895a; font-size: 6px; line-height: 1.8; letter-spacing: .3em; }
.wedding-album .album-colophon-line { width: 25px; height: 1px; background: #bfa2724f; }

@media (max-width: 980px) {
  /* Content can scroll above the existing prototype time dock without moving it. */
  .wedding-album { padding-bottom: 120px; }
}
@media (max-width: 360px) {
  .wedding-album { --album-gap: 10px; }
  .wedding-album .album-title { font-size: 39px; }
  .wedding-album .album-locked-image { width: min(270px, calc(100cqw - 48px)); }
  .wedding-album .album-lock-frame { min-height: 334px; }
  .wedding-album .album-lock-title { font-size: 34px; }
}
@media (max-height: 650px) {
  #phone .album-frame-panel { padding: 70px 25px 50px; }
  #phone .album-interlude { padding-top: 68px; padding-bottom: 48px; gap: 14px; }
  #phone .album-interlude > p { font-size: 22px; }
  #phone .album-card-deck,
  #phone .album-peel-stage,
  #phone .album-flip-stage,
  #phone .album-fan-stage { min-height: 270px; height: calc(100vh - 215px); }
  #phone .album-film-stage { height: calc(100vh - 235px); }
}
@media (prefers-reduced-motion: reduce) {
  .wedding-album *, .wedding-album *::before, .wedding-album *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .wedding-album .album-scene > *, .wedding-album .album-lock-frame, .wedding-album .album-frame-glint { transform: none !important; }
  #phone .album-fullscreen, #phone .album-close { transition: none !important; }
  #phone .album-fullscreen *, #phone .album-fullscreen *::before, #phone .album-fullscreen *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  #phone .album-card-deck,
  #phone .album-peel-stage,
  #phone .album-flip-stage,
  #phone .album-film-stage,
  #phone .album-fan-stage { transform: none !important; }
}

/* =====================================================================
   SCENES - the viewer re-dresses itself every 3-4 photographs.
   Wallpaper, marigolds and petals are the same ones the invitation uses.
   ===================================================================== */

/* ---- palette per scene (viewer chrome + each panel carries its own) ---- */
#phone .album-fullscreen[data-scene="0"], #phone .album-scroll > [data-scene="0"] {
  --album-ivory: #fbf3e4; --album-muted: #f2cfc3; --album-line: #f4d9a08c; --album-gold: #f3cd80;
  --album-btn-bg: #fbf3e4; --album-btn-fg: #6d0813; --album-chip: #4a040c8f;
  --space-bg: linear-gradient(145deg, #7e0b17, #520610); --space-bw: 6px; --space-bc: #f8efdd; --space-radius: 2px;
  --space-shadow: 0 24px 46px #34030a99, 0 0 0 1px #d5b36a99; --enter: album-in-rise;
}
#phone .album-fullscreen[data-scene="1"], #phone .album-scroll > [data-scene="1"] {
  --album-ivory: #3f2e1d; --album-muted: #86704f; --album-line: #b8975a8c; --album-gold: #a37a33;
  --album-btn-bg: #3f2e1d; --album-btn-fg: #fbf3e4; --album-chip: #fffaf0b3;
  --space-bg: linear-gradient(145deg, #f6ebd3, #e8d6b0); --space-bw: 1px; --space-bc: #c9a95f; --space-radius: 2px;
  --space-shadow: 0 22px 44px #8a6a3a40, 0 0 0 7px #fffaf0, 0 0 0 8px #cdb17aaa; --enter: album-in-blur;
}
#phone .album-fullscreen[data-scene="2"], #phone .album-scroll > [data-scene="2"] {
  --album-ivory: #3b1604; --album-muted: #6f3a10; --album-line: #fff3d5b3; --album-gold: #7a3a05;
  --album-btn-bg: #3b1604; --album-btn-fg: #ffe9b8; --album-chip: #fff3d58c;
  --space-bg: linear-gradient(145deg, #ffdc90, #f4a23b); --space-bw: 9px 9px 38px; --space-bc: #fffaf0; --space-radius: 3px;
  --space-shadow: 0 22px 38px #5a2a0066, 0 3px 6px #5a2a0033; --enter: album-in-drop;
}
#phone .album-fullscreen[data-scene="3"], #phone .album-scroll > [data-scene="3"] {
  --album-ivory: #f6ebd3; --album-muted: #cdb48a; --album-line: #e8c36f80; --album-gold: #eac873;
  --album-btn-bg: #eac873; --album-btn-fg: #2a0409; --album-chip: #1a02068f;
  --space-bg: linear-gradient(145deg, #4c0c17, #240409); --space-bw: 1px; --space-bc: #e8c36f; --space-radius: 1px;
  --space-shadow: 0 0 0 6px #25040a, 0 0 0 7px #e8c36fcc, 0 26px 50px #000c; --enter: album-in-curtain;
}
#phone .album-fullscreen[data-scene="4"], #phone .album-scroll > [data-scene="4"] {
  --album-ivory: #4a1220; --album-muted: #8a4a58; --album-line: #b34d5e80; --album-gold: #a3273f;
  --album-btn-bg: #4a1220; --album-btn-fg: #fde7e4; --album-chip: #fff6f4b3;
  --space-bg: linear-gradient(145deg, #fcebe7, #efc6c8); --space-bw: 5px; --space-bc: #fffaf6; --space-radius: 22px;
  --space-shadow: 0 20px 40px #8b3a4a40, 0 0 0 1px #d99aa488; --enter: album-in-bloom;
}
#phone .album-fullscreen[data-scene="5"], #phone .album-scroll > [data-scene="5"] {
  --album-ivory: #f3efe4; --album-muted: #aaa294; --album-line: #b99b6252; --album-gold: #c9aa6c;
  --album-btn-bg: #f3efe4; --album-btn-fg: #050505; --album-chip: #050505cc;
  --space-bg: linear-gradient(145deg, #15130f, #070707); --space-bw: 1px; --space-bc: #b99b6282; --space-radius: 2px;
  --space-shadow: 0 20px 44px #000, inset 0 0 0 7px #050505, inset 0 0 0 8px #b99b6238; --enter: album-in-slide;
}

/* ---- the living backdrop ---- */
#phone .album-backdrop { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; background: #3d0710; }
#phone .album-bd { position: absolute; inset: 0; opacity: 0; transition: opacity 1.3s ease; }
#phone .album-bd.is-on { opacity: 1; }
#phone .album-bd[data-bd="0"] { background: radial-gradient(ellipse at 50% 16%, #d02a3a66, transparent 62%), linear-gradient(180deg, #a3121f, #8a0e1a 55%, #6a0712); }
#phone .album-bd[data-bd="1"] { background: radial-gradient(ellipse at 50% 38%, #fffdf6, transparent 68%), radial-gradient(circle at 10% 94%, #e6c98e99, transparent 42%), linear-gradient(160deg, #eedfc2, #f9f2e3 45%, #e9d6b4); }
#phone .album-bd[data-bd="2"] { background: radial-gradient(circle at 50% 20%, #ffe680, transparent 56%), radial-gradient(circle at 82% 92%, #ff7a1a77, transparent 52%), linear-gradient(170deg, #f7b620, #e8761a 58%, #c0460c); }
#phone .album-bd[data-bd="3"] { background: radial-gradient(ellipse at 50% 30%, #d4a84c3d, transparent 58%), radial-gradient(circle at 50% 100%, #7a0f2255, transparent 55%), linear-gradient(180deg, #43081200, #25040a), #25040a; }
#phone .album-bd[data-bd="4"] { background: radial-gradient(ellipse at 50% 28%, #fff4f1, transparent 64%), radial-gradient(circle at 92% 88%, #e58a9a77, transparent 46%), linear-gradient(170deg, #f9ddd9, #f0c3c3 55%, #e5a5ae); }
#phone .album-bd[data-bd="5"] { background: radial-gradient(circle at 16% 22%, #b99b6230, transparent 32%), radial-gradient(circle at 84% 78%, #b99b6222, transparent 36%), #050403; }

#phone .bd-tex {
  position: absolute; left: 0; top: calc(-1 * var(--tex-t, 600px));
  opacity: 0; will-change: transform;
  filter: hue-rotate(0deg) saturate(1) brightness(1) grayscale(0) sepia(0);
  transition: opacity 1.3s ease, filter 1.3s ease;
  animation: album-drift 95s linear infinite;
}
#phone .album-fullscreen:not(.is-ready) .bd-tex { animation-play-state: paused; }
#phone .album-backdrop[data-scene="0"] .bd-tex { opacity: .9; }
#phone .album-backdrop[data-scene="1"] .bd-tex { opacity: .1; filter: hue-rotate(0deg) saturate(1) brightness(1.15) grayscale(1) sepia(0); }
#phone .album-backdrop[data-scene="2"] .bd-tex { opacity: .24; filter: hue-rotate(40deg) saturate(1.4) brightness(1.2) grayscale(0) sepia(0); }
#phone .album-backdrop[data-scene="3"] .bd-tex { opacity: .6; filter: hue-rotate(0deg) saturate(1.2) brightness(.42) grayscale(0) sepia(0); }
#phone .album-backdrop[data-scene="4"] .bd-tex { opacity: .15; filter: hue-rotate(-8deg) saturate(.9) brightness(1.5) grayscale(0) sepia(0); }
#phone .album-backdrop[data-scene="5"] .bd-tex { opacity: .2; filter: hue-rotate(-5deg) saturate(1) brightness(.5) grayscale(1) sepia(1); }
#phone .bd-sheen {
  position: absolute; inset: -20%;
  background: linear-gradient(115deg, transparent 38%, #ffffff1c 50%, transparent 62%);
  animation: album-sheen 15s ease-in-out infinite alternate;
}
#phone .bd-vignette {
  position: absolute; inset: 0; opacity: .55; transition: opacity 1.3s ease;
  background: radial-gradient(ellipse at 50% 46%, transparent 52%, #00000066 100%);
}
#phone .album-backdrop[data-scene="1"] .bd-vignette, #phone .album-backdrop[data-scene="4"] .bd-vignette { opacity: .2; }
#phone .album-backdrop[data-scene="3"] .bd-vignette, #phone .album-backdrop[data-scene="5"] .bd-vignette { opacity: 1; }
@keyframes album-drift { to { transform: translate3d(calc(-1 * var(--tex-t, 600px)), var(--tex-t, 600px), 0); } }
@keyframes album-sheen { from { transform: translate3d(-26%, 0, 0); } to { transform: translate3d(26%, 0, 0); } }

#phone .album-particles { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; pointer-events: none; }

/* ---- chrome follows the scene ---- */
#phone .album-viewer-chrome, #phone .album-viewer-chrome * { transition: color .8s ease, background-color .8s ease, border-color .8s ease, opacity .35s ease .2s; }
#phone .album-viewer-search { background: var(--album-chip); color: var(--album-ivory); border-color: var(--album-line); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
#phone .album-viewer-chrome > i { background: #8a8a8a2e; }
#phone .album-chapter-continue, #phone .album-return, #phone .album-empty-search { background: var(--album-btn-bg); color: var(--album-btn-fg); border-color: var(--album-line); }
#phone .album-close-ending { color: var(--album-ivory); border-color: var(--album-line); }
#phone .album-scene-whisper { position: absolute; left: 0; right: 0; bottom: 42px; z-index: 9998; display: flex; justify-content: center; pointer-events: none; opacity: 0; }
#phone .album-scene-whisper span { font-family: var(--serif); font-style: italic; font-size: 21px; letter-spacing: .02em; color: var(--album-ivory); white-space: nowrap; }
#phone .album-scene-whisper span::before, #phone .album-scene-whisper span::after { content: ''; display: inline-block; width: 26px; height: 1px; margin: 0 12px; vertical-align: middle; background: var(--album-gold); opacity: .85; }
#phone .album-scene-whisper.is-on { animation: album-whisper 2.2s ease both; }
@keyframes album-whisper { 0% { opacity: 0; translate: 0 10px; } 18% { opacity: 1; translate: 0 0; } 78% { opacity: 1; } 100% { opacity: 0; translate: 0 -6px; } }

/* ---- every photograph wears the scene's frame ---- */
#phone .album-scroll [data-scene] .album-space {
  background: var(--space-bg);
  border-style: solid; border-color: var(--space-bc); border-width: var(--space-bw);
  border-radius: var(--space-radius);
  box-shadow: var(--space-shadow);
  overflow: hidden;
}
#phone .album-scroll [data-scene] .album-space span { color: var(--album-muted); }
#phone .album-scroll [data-scene] .album-space b { color: var(--album-muted); opacity: .9; }
#phone .album-scroll [data-scene] .album-space i, #phone .album-scroll [data-scene] .album-space i::before, #phone .album-scroll [data-scene] .album-space i::after { border-color: var(--album-line); }
#phone .album-scroll [data-scene] .album-space::selection { background: transparent; }
#phone .album-scroll > [data-scene="2"] .album-space { overflow: visible; }
#phone .album-scroll > [data-scene="2"] .album-space b { right: auto; left: 0; width: 100%; bottom: -29px; text-align: center; color: #7a3a05; font-family: var(--serif); font-style: italic; font-size: 16px; letter-spacing: 0; text-transform: none; opacity: 1; }
#phone .album-scroll > [data-scene="2"] .album-photo-1 { rotate: -2.2deg; }
#phone .album-scroll > [data-scene="2"] .album-photo-2 { rotate: 2deg; }
#phone .album-scroll > [data-scene="4"].album-layout--portrait .album-space,
#phone .album-scroll > [data-scene="4"].album-layout--portraits .album-space,
#phone .album-scroll > [data-scene="4"].album-layout--tall .album-space { border-radius: 999px 999px 18px 18px; }
#phone .album-scroll > [data-scene="3"] .album-space span, #phone .album-scroll > [data-scene="3"] .album-space b { color: #e8c36fb3; }
#phone .album-frame-panel[data-scene]::before { border-color: transparent; }
#phone .album-scroll > .album-frame-panel[data-scene="1"]::before, #phone .album-scroll > .album-frame-panel[data-scene="4"]::before { opacity: .9; }
#phone .album-chapter-panel[data-scene], #phone .album-closing-panel[data-scene], #phone .album-empty-panel[data-scene] {
  background: linear-gradient(90deg, transparent, var(--album-line), transparent) 50% 31% / 72% 1px no-repeat, radial-gradient(circle at 50% 48%, #ffffff12, transparent 40%);
}
#phone .album-chapter-panel h2, #phone .album-closing-panel h2 { text-shadow: 0 2px 22px #00000026; }
#phone .album-card-deck .album-stack-card { border-color: var(--space-bc); }

/* ---- entrance motion: each scene arrives its own way ---- */
#phone .album-fullscreen.js-anim .album-scroll > .album-frame-panel:not(.is-live) .album-space,
#phone .album-fullscreen.js-anim .album-scroll > .album-interlude:not(.is-live) > *,
#phone .album-fullscreen.js-anim .album-scroll > .album-chapter-panel:not(.is-live) > *,
#phone .album-fullscreen.js-anim .album-scroll > .album-closing-panel:not(.is-live) > * { opacity: 0 !important; }
#phone .album-fullscreen.js-anim .album-scroll > .album-frame-panel.is-live .album-space { animation: var(--enter) .95s cubic-bezier(.2, .8, .2, 1) backwards; }
#phone .album-fullscreen.js-anim .album-scroll > .album-frame-panel.is-live .album-photo-2 { animation-delay: .22s; }
#phone .album-fullscreen.js-anim .album-scroll > .album-interlude.is-live > p { animation: album-in-fade .8s ease backwards .05s; }
#phone .album-fullscreen.js-anim .album-scroll > .album-interlude.is-live > :not(p) { animation: var(--enter) .95s cubic-bezier(.2, .8, .2, 1) backwards .16s; }
#phone .album-fullscreen.js-anim .album-scroll > .album-chapter-panel.is-live > *,
#phone .album-fullscreen.js-anim .album-scroll > .album-closing-panel.is-live > * { animation: album-in-rise .9s cubic-bezier(.2, .8, .2, 1) backwards; }
#phone .album-fullscreen.js-anim .album-scroll > .is-live > :nth-child(2) { animation-delay: .12s; }
#phone .album-fullscreen.js-anim .album-scroll > .is-live > :nth-child(3) { animation-delay: .24s; }
#phone .album-fullscreen.js-anim .album-scroll > .is-live > :nth-child(4) { animation-delay: .36s; }
@keyframes album-in-fade { from { opacity: 0; } }
@keyframes album-in-rise { from { opacity: 0; translate: 0 38px; scale: .94; } }
@keyframes album-in-blur { from { opacity: 0; filter: blur(14px); scale: 1.06; } }
@keyframes album-in-drop { from { opacity: 0; translate: 0 -52px; rotate: -6deg; scale: .96; } }
@keyframes album-in-curtain { from { opacity: 0; clip-path: inset(0 0 100% 0); } to { opacity: 1; clip-path: inset(0 0 0 0); } }
@keyframes album-in-bloom { from { opacity: 0; scale: .55; } }
@keyframes album-in-slide { from { opacity: 0; translate: 52px 0; } }

/* ---- the locked cover: crimson wallpaper and gold frame ---- */
.wedding-album .album-lock-frame { background: #7a0a15; box-shadow: var(--frame-shadow-x) 24px 32px -15px #18100b4a, 0 0 0 6px #fbf4e6, 0 0 0 7px #c9a24f99; }
.wedding-album .album-lock-photo {
  background: #8d0f1c url(https://fnnwwqcvrhmefilduzih.supabase.co/storage/v1/object/public/relive-showcase/showcase/assets/bg.webp) 50% 36% / 420px auto;
  box-shadow: inset 0 0 0 10px #7a0a15, inset 0 0 0 11px #e8c36fb3;
}
.wedding-album .album-lock-kicker { color: #f3cd80; }
.wedding-album .album-lock-note { color: #fbe9dd; }
#phone .album-camera-card { box-shadow: 0 28px 70px #00000070, 0 0 0 6px #fbf4e6; }
#phone .album-camera-card .album-lock-photo { background: #8d0f1c url(https://fnnwwqcvrhmefilduzih.supabase.co/storage/v1/object/public/relive-showcase/showcase/assets/bg.webp) 50% 36% / 420px auto; box-shadow: inset 0 0 0 10px #7a0a15, inset 0 0 0 11px #e8c36fb3; }
#phone .album-camera-card .album-lock-photo::before, #phone .album-camera-card .album-lock-photo::after { display: none; }

@media (prefers-reduced-motion: reduce) {
  #phone .bd-tex, #phone .bd-sheen { animation: none !important; }
  #phone .album-particles { display: none; }
}

#phone .album-backdrop[data-scene="1"] .bd-vignette, #phone .album-backdrop[data-scene="4"] .bd-vignette { background: radial-gradient(ellipse at 50% 46%, transparent 58%, #9a6a3a38 100%); opacity: 1; }
#phone .album-backdrop[data-scene="1"] .bd-sheen, #phone .album-backdrop[data-scene="4"] .bd-sheen { opacity: .55; }

/* marigold polaroids: only the lone photographs carry a caption strip; stacked cards keep theirs inside */
#phone .album-scroll > [data-scene="2"] .album-stack-card b,
#phone .album-scroll > [data-scene="2"] .album-fan-photo b,
#phone .album-scroll > [data-scene="2"] .album-peel-back b { left: auto; right: 12px; bottom: 11px; width: auto; text-align: right; font-family: inherit; font-style: normal; font-size: 8px; letter-spacing: .14em; text-transform: uppercase; color: var(--album-muted); }
#phone .album-scroll > [data-scene="2"] .album-card-deck .album-stack-card { border-width: 9px; }
