:root {
  color-scheme: dark;
  --ink: #20211d;
  --ink-soft: #56584f;
  --night: #141510;
  --night-raised: #1d1f19;
  --paper: #f4efe6;
  --paper-deep: #e8dfd1;
  --cream: #fffaf1;
  --gold: #c9a86a;
  --gold-bright: #e4c98f;
  --sage: #8e9a80;
  --rose: #b97872;
  --line-dark: rgb(255 255 255 / 0.14);
  --line-light: rgb(32 33 29 / 0.14);
  --shadow: 0 24px 70px rgb(0 0 0 / 0.3);
  --thumb-size: 270px;
  --header-min-height: 78px;
  --header-height: 78px;
  --slideshow-footer-height: 0px;
  --site-chrome-padding: .7rem max(1rem, env(safe-area-inset-right)) .7rem max(1rem, env(safe-area-inset-left));
  --timeline-panel-width: 4.85rem;
  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --font-serif: Iowan Old Style, Palatino Linotype, Book Antiqua, Palatino, Georgia, serif;
  --font-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--night);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--night);
  scroll-behavior: smooth;
  scrollbar-color: var(--gold) var(--night);
}

body {
  min-width: 300px;
  min-height: 100vh;
  margin: 0;
  overflow-x: clip;
  color: var(--paper);
  background:
    radial-gradient(circle at 15% -10%, rgb(142 154 128 / .14), transparent 32rem),
    radial-gradient(circle at 95% 15%, rgb(201 168 106 / .1), transparent 35rem),
    var(--night);
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
select,
input[type="range"] {
  touch-action: manipulation;
}

button {
  color: inherit;
}

button:focus-visible,
select:focus-visible,
input:focus-visible,
textarea:focus-visible,
summary:focus-visible,
a:focus-visible {
  outline: 3px solid var(--gold-bright);
  outline-offset: 3px;
}

svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

img,
video {
  display: block;
  max-width: 100%;
}

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: .75rem;
  left: .75rem;
  padding: .75rem 1rem;
  color: var(--ink);
  background: var(--cream);
  border-radius: .5rem;
  transform: translateY(-150%);
  transition: transform .2s;
}

.skip-link:focus {
  transform: translateY(0);
}

.app-shell {
  min-height: 100vh;
}

body.is-gallery-entry-transition {
  background: var(--paper);
}

.app-shell.is-gallery-entry-hidden {
  opacity: 0;
}

.app-shell.is-gallery-entry-hidden.is-gallery-entry-revealing {
  opacity: 1;
  transition: opacity 2s ease-in-out;
}

#gallery {
  width: 100%;
  min-width: 0;
}

@media (min-width: 761px) {
  .app-shell.is-timeline-open #gallery {
    width: calc(100% - var(--timeline-panel-width));
  }
}

.site-header {
  position: sticky;
  z-index: 40;
  top: 0;
  display: grid;
  grid-template-rows: 1fr;
  transition: grid-template-rows .38s var(--ease-out);
}

.site-header__clip {
  min-height: 0;
  overflow: hidden;
}

.site-header__pane {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: clamp(.75rem, 1.2vw, 1.35rem);
  align-items: center;
  min-height: var(--header-min-height);
  padding: var(--site-chrome-padding);
  background: rgb(20 21 16 / .88);
  border-bottom: 1px solid var(--line-dark);
  box-shadow: 0 10px 30px rgb(0 0 0 / .12);
  backdrop-filter: blur(18px) saturate(125%);
  transform: translateY(0);
  visibility: visible;
  transition: opacity .25s ease, transform .38s var(--ease-out), visibility 0s;
}

.header-grabber {
  position: absolute;
  z-index: 2;
  bottom: -1.05rem;
  left: 50%;
  display: grid;
  width: 2.75rem;
  height: 1.1rem;
  padding: 0;
  color: var(--gold-bright);
  background: rgb(20 21 16 / .94);
  border: 1px solid var(--line-dark);
  border-top: 0;
  border-radius: 0 0 .55rem .55rem;
  box-shadow: 0 .35rem .8rem rgb(0 0 0 / .22);
  cursor: pointer;
  place-items: center;
  transform: translateX(-50%);
}

.header-grabber:hover {
  color: var(--cream);
  background: var(--night-raised);
}

.header-grabber i {
  font-size: .62rem;
  transition: transform .2s var(--ease-out);
}

.site-header.site-header.is-collapsed {
  grid-template-rows: 0fr;
}

.site-header.is-collapsed .site-header__pane {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-100%);
  transition: opacity .25s ease, transform .38s var(--ease-out), visibility 0s linear .38s;
}

.site-header.is-collapsed .header-grabber i {
  transform: rotate(180deg);
}

.wordmark {
  display: grid;
  gap: .12rem;
  min-width: max-content;
  padding: .2rem;
  text-align: left;
  background: none;
  border: 0;
  cursor: pointer;
}

.wordmark:disabled {
  cursor: default;
  opacity: 1;
}

.wordmark__eyebrow,
.control-label {
  color: var(--gold-bright);
  font-size: .67rem;
  font-weight: 700;
  letter-spacing: .16em;
  line-height: 1.2;
  text-transform: uppercase;
}

.wordmark__name {
  font-family: Iowan Old Style, Palatino Linotype, Book Antiqua, Palatino, Georgia, serif;
  font-size: clamp(1.18rem, 2.5vw, 1.55rem);
  line-height: 1;
}

.wordmark__name i {
  padding-inline: .2rem;
  color: var(--gold);
  font-size: .8em;
  font-style: italic;
}

.header-actions {
  display: flex;
  gap: .5rem;
  align-items: center;
}

.fa-icon-stack {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  width: 1.1em;
  height: 1.1em;
}

.fa-icon-stack > i {
  grid-area: 1 / 1;
}

.fa-requested-icon {
  display: none;
}

.fa-kit-ready .fa-requested-icon {
  display: inline-block;
}

.fa-kit-ready .fa-fallback-icon {
  display: none;
}

.icon-button.controls-toggle {
  display: none;
}

.icon-button,
.labeled-icon-button,
.round-button,
.dialog-close,
.stage-nav {
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line-dark);
  cursor: pointer;
  transition: background .2s, border-color .2s, color .2s, transform .2s var(--ease-out);
}

.icon-button {
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  color: var(--paper);
  background: rgb(255 255 255 / .045);
  border-radius: 50%;
}

.icon-button > i,
.stage-nav > i,
.dialog-close > i {
  font-size: 1.05rem;
  line-height: 1;
}

.icon-button:hover,
.icon-button[aria-expanded="true"],
.labeled-icon-button:hover,
.labeled-icon-button[aria-expanded="true"] {
  color: var(--gold-bright);
  background: rgb(255 255 255 / .1);
  border-color: rgb(228 201 143 / .5);
}

.labeled-icon-button {
  display: inline-flex;
  gap: .5rem;
  align-items: center;
  min-height: 2.75rem;
  padding: .55rem .75rem;
  color: var(--paper);
  background: rgb(255 255 255 / .045);
  border: 1px solid var(--line-dark);
  border-radius: .75rem;
  cursor: pointer;
  font-size: .72rem;
  font-weight: 700;
  white-space: nowrap;
}

.music-widget {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: .55rem;
  align-items: center;
  min-width: min(15rem, 22vw);
  max-width: 19rem;
  min-height: 2.75rem;
  padding: .38rem .62rem;
  color: var(--paper);
  text-align: left;
  background: rgb(255 255 255 / .045);
  border: 1px solid var(--line-dark);
  border-radius: .75rem;
  cursor: pointer;
}

.music-widget:hover {
  color: var(--gold-bright);
  background: rgb(255 255 255 / .1);
  border-color: rgb(228 201 143 / .5);
}

.music-widget:disabled {
  cursor: not-allowed;
  opacity: .5;
}

.music-widget__icon {
  display: grid;
  place-items: center;
  width: 1.35rem;
}

.music-widget .icon-pause,
.music-widget.is-playing .icon-play {
  display: none;
}

.music-widget.is-playing .icon-pause {
  display: inline-block;
}

.music-widget__body,
.music-widget__title {
  display: block;
  min-width: 0;
}

.music-widget__title {
  overflow: hidden;
  font-size: .68rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.music-widget progress {
  display: block;
  width: 100%;
  height: .25rem;
  margin-top: .3rem;
  overflow: hidden;
  appearance: none;
  background: rgb(255 255 255 / .16);
  border: 0;
  border-radius: 999px;
}

.music-widget progress::-webkit-progress-bar {
  background: rgb(255 255 255 / .16);
}

.music-widget progress::-webkit-progress-value {
  background: var(--gold-bright);
}

.music-widget progress::-moz-progress-bar {
  background: var(--gold-bright);
}

select,
input[type="number"],
input[type="date"],
input[type="month"],
input[type="text"] {
  min-height: 2.65rem;
  padding: .55rem 2rem .55rem .72rem;
  color: inherit;
  background: rgb(255 255 255 / .07);
  border: 1px solid currentColor;
  border-color: var(--line-dark);
  border-radius: .6rem;
}

.simple-dialog input {
  color: var(--ink);
  background: white;
  border-color: var(--line-light);
}

.round-button {
  width: 2.65rem;
  height: 2.65rem;
  padding: 0;
  background: transparent;
  border-radius: 50%;
}

.round-button:disabled {
  cursor: not-allowed;
  opacity: .38;
}

.round-button .icon-pause,
.round-button.is-playing .icon-play {
  display: none;
}

.round-button.is-playing .icon-pause {
  display: block;
}

input[type="range"] {
  accent-color: var(--gold);
  cursor: pointer;
}

.gallery-toolbar {
  display: flex;
  gap: clamp(.55rem, 1vw, 1rem);
  align-items: center;
  justify-content: center;
  min-width: 0;
  font-size: .75rem;
}

.toolbar-primary,
.toolbar-secondary {
  display: flex;
  gap: clamp(.45rem, .75vw, .7rem);
  align-items: center;
  min-width: 0;
}

.segmented-control {
  display: flex;
  padding: .25rem;
  background: rgb(255 255 255 / .055);
  border: 1px solid var(--line-dark);
  border-radius: .8rem;
}

.segmented-control button {
  min-height: 2.55rem;
  padding: .55rem clamp(.55rem, .72vw, .9rem);
  color: rgb(244 239 230 / .72);
  background: transparent;
  border: 0;
  border-radius: .58rem;
  cursor: pointer;
  transition: .2s ease;
}

.segmented-control button:hover {
  color: var(--cream);
  background: rgb(255 255 255 / .06);
}

.segmented-control button[aria-pressed="true"] {
  color: var(--ink);
  background: var(--paper);
  box-shadow: 0 3px 12px rgb(0 0 0 / .22);
}

.view-switcher button {
  display: flex;
  gap: .45rem;
  align-items: center;
}

.view-switcher svg {
  width: 1rem;
  height: 1rem;
}

.control-cluster,
.thumbnail-control {
  display: flex;
  gap: .4rem;
  align-items: center;
  color: rgb(244 239 230 / .68);
  font-size: inherit;
  font-weight: 650;
  letter-spacing: .03em;
}

.compact-segmented button {
  display: inline-flex;
  gap: .35rem;
  align-items: center;
  min-height: 2.35rem;
  padding: .45rem clamp(.48rem, .65vw, .72rem);
  font-size: inherit;
}

.media-filter button {
  justify-content: center;
}

.thumbnail-control {
  align-self: center;
  min-height: 3.05rem;
  padding: .35rem .55rem;
  background: rgb(255 255 255 / .055);
  border: 1px solid var(--line-dark);
  border-radius: .8rem;
}

.thumbnail-control > .fa-icon-stack {
  color: rgb(244 239 230 / .72);
  font-size: inherit;
}

.thumbnail-control input {
  width: clamp(5.5rem, 8vw, 8rem);
}

.control-button {
  display: inline-flex;
  gap: .4rem;
  align-items: center;
  min-height: 2.85rem;
  padding: .55rem .75rem;
  color: var(--gold-bright);
  background: rgb(255 255 255 / .055);
  border: 1px solid var(--line-dark);
  border-radius: .75rem;
  cursor: pointer;
  font-size: .76rem;
  font-weight: 700;
}

.control-button:hover {
  color: var(--cream);
  background: rgb(255 255 255 / .1);
  border-color: rgb(228 201 143 / .5);
}

.text-button {
  padding: .65rem .75rem;
  color: var(--gold-bright);
  background: transparent;
  border: 0;
  border-radius: .4rem;
  cursor: pointer;
  font-size: .82rem;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgb(228 201 143 / .4);
  text-underline-offset: .25em;
}

.text-button:hover {
  color: var(--cream);
  text-decoration-color: currentColor;
}

.loading-state {
  display: grid;
  place-items: center;
  align-content: center;
  min-height: calc(100vh - var(--header-height));
  color: rgb(244 239 230 / .7);
}

.loading-state p {
  margin-top: 1.5rem;
  font-family: Georgia, serif;
  font-size: 1.1rem;
  font-style: italic;
}

.paw-loader {
  position: relative;
  display: block;
  width: 3rem;
  height: 2.75rem;
  animation: breathe 1.6s infinite ease-in-out;
}

.paw-loader i {
  position: absolute;
  display: block;
  background: var(--gold);
  border-radius: 50%;
}

.paw-loader i:nth-child(1) { left: .95rem; bottom: 0; width: 1.25rem; height: 1.5rem; }
.paw-loader i:nth-child(2) { left: .15rem; top: .45rem; width: .7rem; height: .9rem; transform: rotate(-25deg); }
.paw-loader i:nth-child(3) { left: 1.15rem; top: 0; width: .72rem; height: .92rem; }
.paw-loader i:nth-child(4) { right: .15rem; top: .45rem; width: .7rem; height: .9rem; transform: rotate(25deg); }

@keyframes breathe {
  50% { opacity: .55; transform: scale(.92); }
}

.slideshow {
  position: relative;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  height: calc(100vh - var(--header-height));
  min-height: 0;
  overflow: hidden;
  background: #090a08;
}

.slideshow-viewport,
.lightbox-viewport {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: #090a08;
}

.slideshow-stage,
.lightbox-stage {
  position: relative;
  display: grid;
  min-height: 0;
  place-items: center;
  isolation: isolate;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.stage-backdrop {
  position: absolute;
  z-index: 0;
  inset: -2rem;
  background-position: center;
  background-size: cover;
  filter: blur(45px) saturate(.72) brightness(.52);
  opacity: .7;
  transform: scale(1.06);
}

.stage-backdrop::after {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, transparent 15%, rgb(8 9 7 / .72) 80%);
  content: "";
}

.stage-media {
  --stage-pad-block-start: 0px;
  --stage-pad-block-end: 0px;
  --stage-pad-inline: 0px;
  position: absolute;
  inset: 0;
  display: grid;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  place-items: center;
  padding: 0;
  opacity: 1;
  transform: translateX(0);
  z-index: 1;
}

.stage-media.is-preparing {
  opacity: 0;
  pointer-events: none;
}

.stage-media.is-entering {
  z-index: 2;
}

.stage-media > img,
.stage-media > video {
  position: absolute;
  top: var(--stage-pad-block-start);
  right: var(--stage-pad-inline);
  bottom: var(--stage-pad-block-end);
  left: var(--stage-pad-inline);
  width: calc(100% - var(--stage-pad-inline) - var(--stage-pad-inline));
  max-width: none;
  height: calc(100% - var(--stage-pad-block-start) - var(--stage-pad-block-end));
  max-height: none;
  object-fit: contain;
  box-shadow: 0 18px 60px rgb(0 0 0 / .38);
}

.stage-media > img {
  border-radius: .25rem;
}

.video-timeline,
.slide-timeline {
  position: absolute;
  z-index: 3;
  right: var(--stage-pad-inline);
  bottom: var(--stage-pad-block-end);
  left: var(--stage-pad-inline);
  width: calc(100% - var(--stage-pad-inline) - var(--stage-pad-inline));
  pointer-events: none;
}

.video-time,
.slide-time {
  display: block;
  width: max-content;
  margin: 0 0 .45rem .15rem;
  padding: .26rem .48rem;
  color: #fffaf3;
  background: rgb(17 17 14 / .72);
  border: 1px solid rgb(255 255 255 / .18);
  border-radius: .35rem;
  box-shadow: 0 2px 12px rgb(0 0 0 / .28);
  font-size: clamp(.72rem, 1.2vw, .86rem);
  font-variant-numeric: tabular-nums;
  font-weight: 650;
  letter-spacing: .025em;
  line-height: 1;
  text-shadow: 0 1px 2px rgb(0 0 0 / .7);
}

.slide-time {
  margin-right: .15rem;
  margin-left: auto;
}

.video-progress,
.slide-progress {
  display: block;
  width: 100%;
  height: 3px;
  overflow: hidden;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  border: 0;
  border-radius: 999px;
  opacity: .72;
}

.slide-progress {
  direction: rtl;
}

.video-progress::-webkit-progress-bar,
.slide-progress::-webkit-progress-bar {
  background: rgb(244 239 230 / .2);
  border-radius: 999px;
}

.video-progress::-webkit-progress-value,
.slide-progress::-webkit-progress-value {
  background: rgb(228 201 143 / .9);
  border-radius: 999px;
  transition: width .16s linear;
}

.video-progress::-moz-progress-bar,
.slide-progress::-moz-progress-bar {
  background: rgb(228 201 143 / .9);
  border-radius: 999px;
  transition: width .16s linear;
}

.slide-progress::-webkit-progress-value {
  background: #f4efe6;
}

.slide-progress::-moz-progress-bar {
  background: #f4efe6;
}

.stage-media--custom-slide .custom-slide {
  width: 100%;
  height: 100%;
  border-radius: .35rem;
  box-shadow: 0 18px 60px rgb(0 0 0 / .38);
}

.custom-slide {
  position: relative;
  isolation: isolate;
  display: grid;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  place-items: center;
  background: #713638;
  container-type: size;
}

.custom-slide__background {
  position: absolute;
  z-index: -1;
  inset: 0;
  background-position: center;
  background-size: cover;
}

.custom-slide.is-background-blurred .custom-slide__background {
  inset: -2.5rem;
  filter: blur(24px) brightness(.72);
  transform: scale(1.06);
}

.custom-slide__text {
  width: min(84%, 64rem);
  margin: 0;
  line-height: 1.28;
  overflow-wrap: anywhere;
  text-shadow: 0 2px 14px rgb(0 0 0 / .3);
}

.custom-slide__text > * {
  margin: 0;
}

.custom-slide__text > * + * {
  margin-top: .65em;
}

.custom-slide__text p,
.custom-slide__text blockquote {
  white-space: pre-wrap;
}

.custom-slide__text h1,
.custom-slide__text h2,
.custom-slide__text h3 {
  font: inherit;
  font-weight: 700;
  line-height: 1.08;
}

.custom-slide__text h1 { font-size: 2em; }
.custom-slide__text h2 { font-size: 1.5em; }
.custom-slide__text h3 { font-size: 1.25em; }

.custom-slide__text ul,
.custom-slide__text ol {
  padding-inline-start: 1.45em;
}

.custom-slide__text li + li {
  margin-top: .22em;
}

.custom-slide__text blockquote {
  padding-inline-start: .75em;
  border-inline-start: .14em solid currentColor;
  opacity: .9;
}

.custom-slide__text hr {
  width: 100%;
  border: 0;
  border-top: .08em solid currentColor;
  opacity: .65;
}

.custom-slide__text code {
  padding: .08em .28em;
  background: rgb(0 0 0 / .18);
  border-radius: .2em;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: .82em;
  text-shadow: none;
}

.custom-slide__link {
  color: inherit;
  text-decoration-thickness: .06em;
  text-underline-offset: .12em;
}

.custom-slide__media {
  display: grid;
  gap: .35rem;
  justify-items: center;
  width: 100%;
  margin-inline: auto;
  color: inherit;
  font-family: var(--font-sans);
  font-size: clamp(.7rem, 1.6cqi, 1rem);
  text-align: center;
  text-shadow: none;
}

.custom-slide__media--youtube {
  width: 100%;
  width: min(100%, 56rem, 112cqh);
}

.custom-slide__media iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #090a08;
  border: 0;
  border-radius: .35rem;
  box-shadow: 0 12px 36px rgb(0 0 0 / .32);
}

.custom-slide__media--image img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 34rem;
  max-height: min(62cqh, 34rem);
  margin-inline: auto;
  object-fit: contain;
  border-radius: .35rem;
  box-shadow: 0 12px 36px rgb(0 0 0 / .28);
}

.custom-slide__media figcaption {
  max-width: 100%;
  opacity: .82;
}

.custom-slide__media-placeholder {
  display: inline-flex;
  min-height: 2.8em;
  padding: .55em .8em;
  align-items: center;
  justify-content: center;
  border: .08em solid currentColor;
  border-radius: .35em;
  opacity: .78;
}

.custom-slide--compact .custom-slide__text {
  width: 82%;
  max-height: 82%;
  font-size: clamp(.72rem, 3vw, 2rem) !important;
  line-height: 1.22;
}

.transition-fade .stage-media.is-entering {
  animation: media-fade-in .48s var(--ease-out) both;
}

.transition-slide .stage-media.is-entering[data-direction="next"] {
  animation: media-slide-next .5s var(--ease-out) both;
}

.transition-slide .stage-media.is-entering[data-direction="previous"] {
  animation: media-slide-previous .5s var(--ease-out) both;
}

@keyframes media-fade-in {
  from { opacity: 0; }
}

@keyframes media-slide-next {
  from { opacity: .3; transform: translateX(7%); }
}

@keyframes media-slide-previous {
  from { opacity: .3; transform: translateX(-7%); }
}

.stage-nav {
  position: absolute;
  z-index: 4;
  top: calc(50% - 2.4rem);
  width: 3.2rem;
  height: 4.8rem;
  padding: 0;
  color: var(--paper);
  background: rgb(9 10 8 / .42);
  border-radius: 2rem;
  backdrop-filter: blur(8px);
}

.stage-nav:hover {
  color: var(--gold-bright);
  background: rgb(9 10 8 / .8);
  border-color: rgb(228 201 143 / .5);
  transform: scale(1.04);
}

.stage-nav:disabled,
.stage-nav:disabled:hover {
  color: var(--paper);
  cursor: default;
  opacity: .18;
  background: rgb(9 10 8 / .42);
  border-color: var(--line-dark);
  transform: none;
}

.stage-nav--previous { left: clamp(.55rem, 2vw, 1.5rem); }
.stage-nav--next { right: clamp(.55rem, 2vw, 1.5rem); }
.stage-nav > i { font-size: 1.45rem; }

.stage-nav.is-finish {
  display: inline-flex;
  gap: .55rem;
  width: auto;
  min-width: 3.2rem;
  padding: 0 1rem 0 1.15rem;
}

.stage-nav__finish-label {
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .015em;
  white-space: nowrap;
}

.slideshow-footer {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-areas: "details actions";
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  min-height: 5.4rem;
  padding: var(--site-chrome-padding);
  background: linear-gradient(180deg, rgb(20 21 16 / .84), var(--night));
  border-top: 1px solid var(--line-dark);
}

.slideshow-footer.has-user-caption {
  grid-template-areas: "details caption actions";
  grid-template-columns: minmax(12rem, max-content) minmax(0, 1fr) minmax(12rem, max-content);
}

.slideshow-footer__details {
  grid-area: details;
  display: flex;
  gap: .8rem;
  align-items: center;
  justify-self: start;
  min-width: 0;
}

.slideshow-footer > .memory-user-caption {
  grid-area: caption;
  justify-self: center;
  width: min(100%, 72rem);
  margin: 0;
  padding: .55rem .85rem;
  color: #201d18;
  background: rgb(255 252 246 / .96);
  border: 1px solid rgb(255 255 255 / .68);
  border-radius: .65rem;
  box-shadow: 0 5px 20px rgb(0 0 0 / .24);
  font-family: Iowan Old Style, Palatino, Georgia, serif;
  font-size: clamp(.82rem, 1.25vw, 1rem);
  line-height: 1.4;
  text-align: center;
  white-space: pre-wrap;
}

.slideshow-footer > .memory-user-caption[hidden] {
  display: none;
}

.slideshow-footer > .memory-actions {
  grid-area: actions;
  justify-self: end;
}

.slideshow-play {
  color: var(--night);
  background: var(--paper);
  border-color: transparent;
}

.memory-caption {
  min-width: 0;
}

.memory-caption p {
  margin: .12rem 0;
}

.memory-date {
  font-family: Iowan Old Style, Palatino, Georgia, serif;
  font-size: clamp(1rem, 2vw, 1.32rem);
}

.memory-detail {
  color: rgb(244 239 230 / .58);
  font-size: .76rem;
}

.slideshow-footer .memory-date {
  font-size: clamp(.9rem, 1.45vw, 1.12rem);
}

.slideshow-footer .memory-detail {
  font-size: .7rem;
}

.memory-actions {
  display: flex;
  gap: .5rem;
  align-items: center;
}

.action-button,
.heart-button,
.video-action {
  display: inline-flex;
  gap: .42rem;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
  padding: .5rem .72rem;
  color: var(--paper);
  background: rgb(255 255 255 / .055);
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  cursor: pointer;
  font-size: .78rem;
  font-weight: 700;
  text-decoration: none;
}

.action-button:hover,
.heart-button:hover,
.video-action:hover {
  color: var(--gold-bright);
  background: rgb(255 255 255 / .11);
}

.action-button:disabled,
.memory-card__visibility:disabled {
  cursor: wait;
  opacity: .45;
}

.heart-button svg {
  width: 1.15rem;
  height: 1.15rem;
}

.heart-button > i,
.action-button > i {
  font-size: 1rem;
}

.heart-button[aria-pressed="true"] {
  color: #ef9690;
}

.heart-button:disabled {
  cursor: not-allowed;
  opacity: .5;
}

.video-action {
  color: var(--ink);
  background: rgb(255 250 241 / .92);
  border-color: transparent;
  box-shadow: 0 5px 20px rgb(0 0 0 / .3);
}

.video-action:hover {
  color: var(--ink);
  background: white;
}

.collection {
  width: 100%;
  max-width: none;
  min-height: calc(100vh - var(--header-height));
  margin: 0;
  padding: 1.35rem 1rem 6rem;
}

.collection-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  min-height: 2.5rem;
  color: rgb(244 239 230 / .62);
  font-size: .8rem;
}

.gallery-grid {
  --gallery-gap: clamp(.45rem, 1vw, 1rem);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--thumb-size)), 1fr));
  gap: var(--gallery-gap);
  align-items: start;
}

.gallery-grid.is-masonry {
  display: block;
  min-height: 1px;
}

.masonry-row {
  display: flex;
  gap: var(--gallery-gap);
  align-items: stretch;
  margin-bottom: var(--gallery-gap);
}

.masonry-row:last-child {
  margin-bottom: 0;
}

.memory-card {
  position: relative;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  background: var(--night-raised);
  border: 1px solid rgb(255 255 255 / .08);
  border-radius: .55rem;
  box-shadow: 0 8px 28px rgb(0 0 0 / .16);
  scroll-margin-top: calc(var(--header-height) + 1rem);
}

.memory-card.is-hidden {
  border-color: rgb(239 150 144 / .62);
  opacity: .58;
}

.memory-card.is-hidden .memory-card__open::after {
  position: absolute;
  z-index: 4;
  bottom: .55rem;
  left: .55rem;
  padding: .32rem .5rem;
  color: white;
  background: rgb(84 20 25 / .88);
  border: 1px solid rgb(255 255 255 / .24);
  border-radius: 999px;
  content: "Hidden from visitors";
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .02em;
}

.gallery-grid.is-masonry .memory-card {
  flex: 0 0 auto;
}

.memory-card__open {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  color: inherit;
  background: #0c0d0a;
  border: 0;
  cursor: zoom-in;
}

.memory-card__open::before {
  position: absolute;
  z-index: 0;
  inset: -1rem;
  background-image: var(--memory-backdrop);
  background-position: center;
  background-size: cover;
  content: "";
  filter: blur(18px) saturate(.7) brightness(.38);
  opacity: .82;
  transform: scale(1.08);
}

.gallery-grid:not(.is-masonry) .memory-card__open {
  aspect-ratio: 1 / 1;
}

.memory-card__media {
  position: relative;
  z-index: 1;
  display: block;
}

.memory-card__media img {
  width: 100%;
  height: auto;
  transition: filter .3s;
}

.gallery-grid.is-masonry .memory-card__media,
.gallery-grid.is-masonry .memory-card__media img {
  height: 100%;
}

.slideshow-preload {
  position: fixed;
  z-index: -1;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-200vw);
  contain: strict;
}

.gallery-grid.is-masonry .memory-card__media img {
  object-fit: contain;
}

.gallery-grid:not(.is-masonry) .memory-card__media,
.gallery-grid:not(.is-masonry) .memory-card__media img {
  height: 100%;
}

.memory-card__media .custom-slide {
  height: 100%;
}

.gallery-grid:not(.is-masonry) .memory-card__media img {
  object-fit: contain;
}

.gallery-grid:not(.is-masonry) .memory-card[data-media-type="video"] .memory-card__media img {
  object-fit: contain;
  background: #000;
}

.memory-card__open:hover img {
  filter: brightness(1.06);
}

.memory-card__video-badge {
  position: absolute;
  z-index: 2;
  inset: 50% auto auto 50%;
  display: grid;
  place-items: center;
  width: 2.8rem;
  height: 2.8rem;
  color: rgb(255 250 241 / .92);
  background: rgb(20 21 16 / .44);
  border: 1px solid rgb(255 250 241 / .3);
  border-radius: 50%;
  box-shadow: 0 4px 16px rgb(0 0 0 / .24);
  pointer-events: none;
  transform: translate(-50%, -50%);
  backdrop-filter: blur(4px);
}

.memory-card__video-badge i {
  font-size: 1rem;
  transform: translateX(.08em);
}

.memory-card__meta {
  display: flex;
  gap: .5rem;
  align-items: center;
  justify-content: space-between;
  min-height: 3.15rem;
  padding: .48rem .55rem .48rem .75rem;
}

.memory-card__meta time {
  overflow: hidden;
  color: rgb(244 239 230 / .66);
  font-size: .72rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.memory-card > .memory-card__heart {
  position: absolute;
  z-index: 5;
  top: .55rem;
  right: .55rem;
  min-width: 2.5rem;
  min-height: 2.5rem;
  padding: .4rem;
  color: var(--paper);
  background: transparent;
  border: 0;
  box-shadow: none;
  filter: drop-shadow(0 2px 5px rgb(0 0 0 / .82));
  opacity: 0;
  pointer-events: none;
  transform: scale(.82);
  transition: color .2s, opacity .2s, transform .2s;
}

.memory-card > .memory-card__heart[aria-pressed="true"] {
  color: #ff625b;
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

.memory-card:hover > .memory-card__heart,
.memory-card:focus-within > .memory-card__heart {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

.memory-card > .memory-card__heart:hover {
  color: #ffb1ac;
}

.memory-card__heart .heart-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.memory-card__meta-actions {
  display: flex;
  flex: 0 0 auto;
  gap: .1rem;
  align-items: center;
}

.memory-card__note {
  display: flex;
  flex: 0 0 auto;
}

.memory-card__note-button {
  display: inline-grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  color: rgb(244 239 230 / .72);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 50%;
  cursor: help;
}

.memory-card__note-button:hover,
.memory-card__note-button:focus-visible,
.memory-card__note.is-open .memory-card__note-button {
  color: var(--cream);
  background: rgb(255 255 255 / .08);
  border-color: var(--line-dark);
}

.memory-card__note-tooltip {
  position: absolute;
  z-index: 8;
  right: .55rem;
  bottom: 3.4rem;
  left: .55rem;
  max-height: min(18rem, calc(100% - 4rem));
  padding: .75rem .85rem;
  overflow: auto;
  color: #201d18;
  background: rgb(255 252 246 / .97);
  border: 1px solid rgb(255 255 255 / .72);
  border-radius: .65rem;
  box-shadow: 0 12px 34px rgb(0 0 0 / .35);
  font-family: Iowan Old Style, Palatino, Georgia, serif;
  font-size: clamp(.78rem, 1.1vw, .95rem);
  line-height: 1.4;
  text-align: left;
  opacity: 0;
  overscroll-behavior: contain;
  pointer-events: none;
  transform: translateY(.45rem) scale(.985);
  transform-origin: right bottom;
  transition: opacity .18s ease, transform .24s var(--ease-out), visibility 0s linear .24s;
  visibility: hidden;
}

.memory-card__note-tooltip > * {
  margin: 0;
}

.memory-card__note-tooltip > * + * {
  margin-top: .45em;
}

.memory-card__note-tooltip h1,
.memory-card__note-tooltip h2,
.memory-card__note-tooltip h3 {
  font: inherit;
  font-weight: 700;
}

.memory-card__note-tooltip ul,
.memory-card__note-tooltip ol {
  padding-inline-start: 1.35em;
}

.memory-card__note-tooltip blockquote {
  padding-inline-start: .6em;
  border-inline-start: .12em solid currentColor;
  opacity: .82;
}

.memory-card__note-tooltip hr {
  border: 0;
  border-top: 1px solid currentColor;
  opacity: .3;
}

.memory-card__note.is-open .memory-card__note-tooltip,
.memory-card__note-button:focus-visible + .memory-card__note-tooltip {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
  transition-delay: 0s;
  visibility: visible;
}

@media (hover: hover) {
  .memory-card__note:hover .memory-card__note-tooltip {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
    transition-delay: 0s;
    visibility: visible;
  }
}

.memory-card__admin-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
}

.memory-card__edit,
.memory-card__visibility {
  display: inline-grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  color: var(--gold-bright);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 50%;
  cursor: pointer;
}

.memory-card__edit:hover,
.memory-card__visibility:hover {
  background: rgb(255 255 255 / .08);
  border-color: var(--line-dark);
}

.heart-count:empty {
  display: none;
}

.timeline {
  position: fixed;
  z-index: 30;
  top: var(--header-height);
  right: 0;
  bottom: 0;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: .45rem;
  width: var(--timeline-panel-width);
  padding: .6rem .35rem;
  color: rgb(244 239 230 / .58);
  background: rgb(20 21 16 / .75);
  border: 0;
  border-radius: 0;
  backdrop-filter: blur(14px);
  opacity: 0;
  pointer-events: none;
  transform: translateX(calc(100% + 1rem));
  transition: opacity .24s ease, transform .32s var(--ease-out);
  visibility: hidden;
}

.app-shell.is-slideshow-view .timeline {
  bottom: var(--slideshow-footer-height);
}

.app-shell.is-timeline-open .timeline {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
  visibility: visible;
}

.timeline-bound {
  justify-self: end;
  width: 3.35rem;
  padding: .25rem .1rem;
  overflow: hidden;
  color: var(--gold-bright);
  background: transparent;
  border: 0;
  border-radius: .3rem;
  cursor: pointer;
  font-size: .62rem;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.timeline-bound:hover {
  background: rgb(255 255 255 / .08);
}

.timeline-track-wrap {
  position: relative;
  min-height: 10.5rem;
  justify-self: end;
  width: 3.35rem;
  border-radius: .35rem;
}

.timeline-track-wrap:focus-within {
  outline: 2px solid var(--gold-bright);
  outline-offset: 2px;
}

.timeline-scale {
  position: absolute;
  inset: .75rem 0;
}

.timeline input[type="range"] {
  position: absolute;
  z-index: 2;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: .001;
  writing-mode: vertical-lr;
  direction: ltr;
  touch-action: none;
}

.timeline-scale::before {
  position: absolute;
  inset-block: 0;
  left: 50%;
  width: 2px;
  background: rgb(255 255 255 / .2);
  border-radius: 2px;
  content: "";
  transform: translateX(-50%);
}

.timeline-position-line {
  position: absolute;
  z-index: 3;
  top: var(--timeline-position, 0%);
  right: .18rem;
  left: .18rem;
  height: 2px;
  background: #ef4d4d;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgb(20 21 16 / .55), 0 0 8px rgb(239 77 77 / .7);
  pointer-events: none;
  transform: translateY(-50%);
}

.timeline-bubble {
  position: absolute;
  z-index: 4;
  top: var(--timeline-position, 0%);
  right: calc(100% + .45rem);
  display: grid;
  width: 7.25rem;
  max-width: 7.25rem;
  padding: .45rem .55rem;
  color: var(--ink);
  background: var(--cream);
  border-radius: .5rem;
  box-shadow: 0 6px 20px rgb(0 0 0 / .28);
  font-size: .65rem;
  line-height: 1.35;
  pointer-events: none;
  transform: translateY(-50%);
}

.timeline-bubble--selected {
  border: 1px solid rgb(32 33 29 / .12);
}

.timeline-bubble--preview {
  right: calc(100% + .45rem);
  color: var(--cream);
  background: var(--night-raised);
  border: 1px solid rgb(228 201 143 / .62);
  transform: translateY(calc(-50% + var(--timeline-preview-shift, 0px)));
}

.timeline-bubble--preview::after {
  border-left-color: var(--night-raised);
}

.timeline-bubble strong {
  font-size: .7rem;
}

.timeline-bubble::after {
  position: absolute;
  top: 50%;
  left: 100%;
  border: .35rem solid transparent;
  border-left-color: var(--cream);
  content: "";
  transform: translateY(-50%);
}

.timeline-ticks {
  position: absolute;
  inset: 0;
}

.timeline-tick {
  position: absolute;
  left: 50%;
  width: .85rem;
  height: 1px;
  background: rgb(255 255 255 / .28);
  transform: translate(-50%, -50%);
}

.timeline-tick.is-major {
  width: 1.45rem;
  background: rgb(228 201 143 / .72);
}

dialog {
  padding: 0;
  color: var(--ink);
  background: var(--paper);
  border: 0;
}

dialog::backdrop {
  background: rgb(6 7 5 / .75);
  backdrop-filter: blur(8px);
}

.dialog-close {
  z-index: 10;
  width: 2.7rem;
  height: 2.7rem;
  padding: 0;
  color: var(--ink);
  background: rgb(255 255 255 / .48);
  border-color: var(--line-light);
  border-radius: 50%;
}

.dialog-close:hover {
  background: white;
  transform: rotate(4deg);
}

.welcome-dialog {
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  overflow: hidden;
}

.welcome-dialog[open] {
  display: grid;
  grid-template-columns: minmax(18rem, 48%) 1fr;
}

.welcome-entry-wash {
  position: fixed;
  z-index: 100;
  inset: 0;
  pointer-events: none;
  background: var(--paper);
  opacity: 0;
  transition: opacity 2s ease-in-out;
}

.welcome-dialog .welcome-visual,
.welcome-dialog .welcome-content {
  transition: opacity 2s ease-in-out;
}

.welcome-dialog.is-entering-gallery {
  pointer-events: none;
}

.welcome-dialog.is-entering-gallery .welcome-entry-wash {
  opacity: 1;
}

.welcome-dialog.is-entering-gallery .welcome-visual,
.welcome-dialog.is-entering-gallery .welcome-content {
  opacity: 0;
}

.outro-dialog {
  background: transparent;
}

.outro-dialog::backdrop {
  background: transparent;
  backdrop-filter: none;
}

.outro-dialog .welcome-visual,
.outro-dialog .welcome-content {
  opacity: 0;
  transition: opacity 1.6s ease-in-out;
}

.outro-dialog .welcome-content {
  background: #f4efe6;
}

.outro-dialog.is-revealing .welcome-visual,
.outro-dialog.is-revealing .welcome-content,
.outro-dialog.is-visible .welcome-visual,
.outro-dialog.is-visible .welcome-content {
  opacity: 1;
}

.outro-transition-wash {
  position: fixed;
  z-index: 100;
  inset: 0;
  pointer-events: none;
  background: #000;
  opacity: 0;
  transition: opacity 1.6s ease-in-out, background-color 1.6s ease-in-out;
}

.outro-dialog.is-fading-black .outro-transition-wash {
  background: #000;
  opacity: 1;
}

.outro-dialog.is-fading-paper .outro-transition-wash {
  background: #f4efe6;
  opacity: 1;
}

.outro-dialog.is-revealing .outro-transition-wash,
.outro-dialog.is-visible .outro-transition-wash {
  background: #f4efe6;
  opacity: 0;
}

.outro-note {
  max-width: 40rem;
}

@media (min-width: 761px) {
  .outro-dialog .outro-content {
    display: flex;
    flex-direction: column;
    align-self: stretch;
    justify-content: center;
    min-height: 100dvh;
    max-height: none;
  }
}

.welcome-visual {
  position: relative;
  min-height: 18rem;
  overflow: hidden;
  background: radial-gradient(circle at 30% 30%, #8e9a80, #30342b 55%, #171813);
}

.welcome-visual__slide {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  opacity: 0;
  transform: scale(1.025);
  transition: opacity 1.6s ease-in-out, transform 8s linear;
  will-change: opacity, transform;
}

.welcome-visual__slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.welcome-visual::after {
  position: absolute;
  z-index: 2;
  inset: 0;
  background:
    linear-gradient(135deg, rgb(20 21 16 / .1), rgb(20 21 16 / .48)),
    linear-gradient(90deg, transparent 65%, var(--paper));
  content: "";
}

.welcome-content {
  position: relative;
  align-self: center;
  max-height: 100dvh;
  padding: clamp(2rem, 5vw, 5.5rem);
  overflow: auto;
}

.welcome-content > .dialog-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
}

.welcome-content > .dialog-close i {
  font-size: 1rem;
}

.welcome-content h1 {
  max-width: 14ch;
  margin: 0;
  color: var(--ink);
  font-family: Iowan Old Style, Palatino Linotype, Book Antiqua, Palatino, Georgia, serif;
  font-size: clamp(2.2rem, 5vw, 4.8rem);
  font-weight: 500;
  letter-spacing: -.035em;
  line-height: .98;
}

.welcome-lede {
  max-width: 40rem;
  margin: 1.25rem 0 1.6rem;
  color: var(--ink-soft);
  font-family: Iowan Old Style, Palatino, Georgia, serif;
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  line-height: 1.58;
}

.music-widget--welcome {
  grid-template-columns: 5.5rem 1.75rem minmax(0, 1fr);
  gap: .8rem;
  width: min(100%, 34rem);
  max-width: none;
  min-height: 6.7rem;
  margin: 0 0 1.4rem;
  padding: .58rem .85rem .58rem .58rem;
  color: var(--ink);
  background: rgb(255 255 255 / .72);
  border-color: rgb(128 101 54 / .32);
  border-radius: .95rem;
  box-shadow: 0 10px 28px rgb(32 33 29 / .12);
}

.music-widget__cover {
  display: block;
  width: 5.5rem;
  height: 5.5rem;
  object-fit: cover;
  border-radius: .65rem;
  box-shadow: 0 5px 16px rgb(32 33 29 / .23);
}

.music-widget--welcome .music-widget__icon {
  width: 1.75rem;
  font-size: 1.2rem;
}

.music-widget--welcome .music-widget__title {
  font-family: Iowan Old Style, Palatino Linotype, Book Antiqua, Palatino, Georgia, serif;
  font-size: clamp(.92rem, 1.25vw, 1.12rem);
}

.music-widget--welcome:hover {
  color: var(--ink);
  background: white;
  border-color: rgb(128 101 54 / .42);
}

.music-widget--welcome progress,
.music-widget--welcome progress::-webkit-progress-bar {
  background: rgb(32 33 29 / .14);
}

.music-widget--welcome progress {
  height: .42rem;
  margin-top: .65rem;
}

.music-widget--welcome progress::-webkit-progress-value,
.music-widget--welcome progress::-moz-progress-bar {
  background: #806536;
}

.visitor-sign-in {
  margin: 0 0 1.35rem;
}

.visitor-sign-in h2,
.welcome-chooser h2,
.welcome-experience h2 {
  margin: 0 0 .65rem;
  color: var(--ink);
  font-family: Iowan Old Style, Palatino Linotype, Book Antiqua, Palatino, Georgia, serif;
  font-size: clamp(1.05rem, 1.45vw, 1.3rem);
  font-weight: 750;
}

.visitor-sign-in input {
  width: min(100%, 26rem);
  min-height: 3.65rem;
  padding: .75rem 1rem;
  color: var(--ink);
  background: white;
  border-color: var(--line-light);
  border-radius: .78rem;
  font-size: 1.1rem;
}

.visitor-sign-in p {
  margin: .45rem 0 0;
  color: #806536;
  font-size: .76rem;
  line-height: 1.35;
}

.visitor-sign-in.is-signed-in input {
  border-color: rgb(128 101 54 / .45);
}

.welcome-chooser {
  padding: 0;
}

.welcome-experience {
  margin-top: 1rem;
}

.welcome-experience .segmented-control {
  width: min(100%, 34rem);
  background: rgb(32 33 29 / .06);
  border-color: var(--line-light);
}

.welcome-experience .segmented-control button {
  min-height: 2.75rem;
  color: var(--ink-soft);
}

.welcome-experience .segmented-control button:hover {
  color: var(--ink);
  background: rgb(255 255 255 / .7);
}

.welcome-experience .segmented-control button[aria-pressed="true"] {
  color: var(--cream);
  background: var(--ink);
}

.welcome-mode-toggle {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.welcome-speed {
  margin-top: .65rem;
}

.welcome-speed-toggle {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.welcome-speed-toggle button {
  display: grid;
  gap: .08rem;
  line-height: 1.15;
}

.welcome-speed-toggle small {
  color: inherit;
  font-size: .65rem;
  font-weight: 500;
  opacity: .72;
}

.welcome-duration-estimate {
  margin: .5rem 0 0;
  color: var(--ink-soft);
  font-size: .78rem;
  font-variant-numeric: tabular-nums;
}

.memorial-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .55rem;
}

.memorial-cards button {
  display: grid;
  gap: .22rem;
  min-height: 5.2rem;
  padding: .75rem;
  text-align: left;
  background: rgb(255 255 255 / .45);
  border: 1px solid var(--line-light);
  border-radius: .65rem;
  cursor: pointer;
  transition: .2s var(--ease-out);
}

.memorial-cards button:hover {
  background: white;
  border-color: rgb(128 101 54 / .45);
  transform: translateY(-2px);
}

.memorial-cards button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--cream);
  border-color: var(--ink);
}

.memorial-cards span {
  font-family: Georgia, serif;
  font-size: 1.12rem;
}

.memorial-cards small {
  color: inherit;
  font-size: .68rem;
  opacity: .68;
}

.welcome-note {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .75rem;
  margin: 1.2rem 0;
  padding: .85rem 1rem;
  color: #6c1720;
  background: rgb(220 58 74 / .2);
  border: 1px solid rgb(177 31 47 / .55);
  border-radius: .75rem;
  box-shadow: 0 6px 18px rgb(128 15 30 / .1);
}

.welcome-note svg {
  width: 1.35rem;
  height: 1.35rem;
  margin-top: .1rem;
  color: #d5223a;
  fill: currentColor;
  stroke: currentColor;
}

.welcome-note p {
  margin: 0;
  font-size: .8rem;
  line-height: 1.48;
}

.primary-button {
  min-height: 3rem;
  padding: .72rem 1.3rem;
  color: var(--cream);
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 999px;
  box-shadow: 0 6px 20px rgb(32 33 29 / .2);
  cursor: pointer;
  font-weight: 750;
  transition: .2s var(--ease-out);
}

.primary-button:hover {
  background: #3a3c34;
  transform: translateY(-1px);
}

.lightbox {
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  overflow: hidden;
  color: var(--paper);
  background: #080906;
}

.lightbox[open] {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
}

.dialog-close--light {
  position: absolute;
  top: max(1rem, env(safe-area-inset-top));
  right: max(1rem, env(safe-area-inset-right));
  color: var(--paper);
  background: rgb(9 10 8 / .55);
  border-color: var(--line-dark);
}

.lightbox-footer {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-areas: "details actions";
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  min-height: 4.6rem;
  padding: .65rem 5rem .65rem 1.2rem;
  background: var(--night);
  border-top: 1px solid var(--line-dark);
}

.lightbox-footer.has-user-caption {
  grid-template-areas: "details caption actions";
  grid-template-columns: minmax(10rem, 1fr) minmax(0, 2fr) minmax(10rem, 1fr);
}

.lightbox-footer > .memory-caption {
  grid-area: details;
}

.lightbox-footer > .memory-actions {
  grid-area: actions;
  justify-self: end;
}

.memory-user-caption {
  max-width: 58rem;
  margin: 0 auto;
  color: var(--cream);
  font-family: Iowan Old Style, Palatino, Georgia, serif;
  font-size: clamp(.92rem, 1.5vw, 1.15rem);
  line-height: 1.45;
  text-align: center;
  white-space: pre-wrap;
}

.memory-user-caption > * {
  margin: 0;
}

.memory-user-caption > * + * {
  margin-top: .42em;
}

.memory-user-caption h1,
.memory-user-caption h2,
.memory-user-caption h3 {
  font: inherit;
  font-weight: 700;
  line-height: 1.18;
}

.memory-user-caption h1 { font-size: 1.4em; }
.memory-user-caption h2 { font-size: 1.25em; }
.memory-user-caption h3 { font-size: 1.12em; }

.memory-user-caption ul,
.memory-user-caption ol {
  display: inline-block;
  padding-inline-start: 1.4em;
  text-align: left;
}

.memory-user-caption blockquote {
  padding-inline-start: .65em;
  border-inline-start: .12em solid currentColor;
  opacity: .82;
}

.memory-user-caption hr {
  width: 100%;
  border: 0;
  border-top: 1px solid currentColor;
  opacity: .35;
}

.memory-user-caption code {
  padding: .06em .25em;
  background: rgb(128 101 54 / .14);
  border-radius: .2em;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: .86em;
}

.memory-user-caption a {
  color: inherit;
  text-underline-offset: .12em;
}

.memory-user-caption.is-awaiting-entrance,
.memory-user-caption.is-entering {
  transform-origin: center bottom;
  will-change: opacity, filter, transform;
}

.memory-user-caption.is-awaiting-entrance {
  opacity: 0;
  filter: blur(7px);
  transform: translateY(calc(100% + 2rem)) scale(.96);
}

.memory-user-caption.is-entering {
  animation: memory-caption-rise .85s cubic-bezier(.16, 1, .3, 1) both;
}

@keyframes memory-caption-rise {
  0% {
    opacity: 0;
    filter: blur(7px);
    transform: translateY(calc(100% + 2rem)) scale(.96);
  }

  68% {
    opacity: 1;
    filter: blur(0);
    transform: translateY(-.3rem) scale(1.01);
  }

  100% {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0) scale(1);
  }
}

.lightbox-footer > .memory-user-caption {
  grid-area: caption;
  width: min(100%, 58rem);
  padding: .55rem .85rem;
  color: #201d18;
  background: rgb(255 252 246 / .96);
  border: 1px solid rgb(255 255 255 / .68);
  border-radius: .65rem;
  box-shadow: 0 5px 20px rgb(0 0 0 / .24);
}

.simple-dialog,
.mobile-timeline-sheet {
  width: min(31rem, calc(100vw - 2rem));
  max-width: none;
  padding: 1.35rem;
  border-radius: 1rem;
  box-shadow: var(--shadow);
}

.simple-dialog > div,
.simple-dialog form,
.mobile-timeline-sheet > div {
  position: relative;
}

.simple-dialog .dialog-close,
.mobile-timeline-sheet .dialog-close {
  position: absolute;
  top: -.45rem;
  right: -.45rem;
}

.simple-dialog h2,
.mobile-timeline-sheet h2 {
  margin: .4rem 3rem 1rem 0;
  font-family: Georgia, serif;
  font-weight: 500;
}

.admin-dialog {
  width: min(38rem, calc(100vw - 2rem));
  max-height: min(46rem, calc(100dvh - 2rem));
  overflow-y: auto;
}

.admin-visitor-report {
  display: grid;
  gap: .65rem;
  padding: .8rem;
  background: rgb(128 101 54 / .07);
  border: 1px solid var(--line-light);
  border-radius: .7rem;
}

.admin-visitor-report[hidden] {
  display: none;
}

.admin-visitor-report__header {
  display: flex;
  gap: .75rem;
  align-items: center;
  justify-content: space-between;
}

.admin-visitor-report__header h3 {
  margin: 0;
  font-family: Georgia, serif;
  font-size: 1.05rem;
  font-weight: 600;
}

.admin-visitor-report__count {
  padding: .2rem .5rem;
  color: var(--ink-soft);
  background: rgb(255 255 255 / .68);
  border: 1px solid var(--line-light);
  border-radius: 999px;
  font-size: .68rem;
  white-space: nowrap;
}

.admin-visitor-table-wrap {
  max-height: 14rem;
  overflow-y: auto;
  background: rgb(255 255 255 / .72);
  border: 1px solid var(--line-light);
  border-radius: .55rem;
}

.admin-visitor-table-wrap[hidden] {
  display: none;
}

.admin-visitor-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .78rem;
}

.admin-visitor-table th,
.admin-visitor-table td {
  padding: .5rem .65rem;
  border-bottom: 1px solid var(--line-light);
  text-align: left;
}

.admin-visitor-table thead th {
  position: sticky;
  top: 0;
  color: var(--ink-soft);
  background: #fbf8f1;
  font-size: .65rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.admin-visitor-table tbody tr:last-child > * {
  border-bottom: 0;
}

.admin-visitor-table td:last-child,
.admin-visitor-table thead th:last-child {
  width: 6.5rem;
  text-align: right;
}

.admin-visitor-empty {
  margin: 0;
  color: var(--ink-soft);
  font-size: .78rem;
}

.jump-dialog form,
.admin-dialog form,
.edit-dialog form,
.slide-dialog form {
  display: grid;
  gap: .75rem;
}

.jump-dialog label,
.admin-dialog label,
.edit-dialog label,
.slide-dialog label {
  display: grid;
  gap: .35rem;
  font-size: .78rem;
  font-weight: 700;
}

.admin-dialog input,
.edit-dialog input,
.edit-dialog select,
.edit-dialog textarea,
.slide-dialog input,
.slide-dialog select,
.slide-dialog textarea {
  width: 100%;
  padding: .7rem .75rem;
  color: var(--ink);
  background: white;
  border: 1px solid var(--line-light);
  border-radius: .55rem;
}

.edit-dialog textarea,
.slide-dialog textarea {
  resize: vertical;
}

.edit-date-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .65rem;
}

.edit-dialog .checkbox-row {
  display: flex;
  gap: .55rem;
  align-items: center;
  padding: .6rem .7rem;
  background: rgb(128 101 54 / .07);
  border: 1px solid var(--line-light);
  border-radius: .55rem;
}

.edit-dialog .checkbox-row input {
  flex: 0 0 auto;
  width: 1.1rem;
  height: 1.1rem;
  margin: 0;
  accent-color: #806536;
}

.slide-dialog {
  width: min(70rem, calc(100vw - 2rem));
  max-height: calc(100dvh - 2rem);
  overflow: auto;
}

.slide-editor-layout {
  display: grid;
  grid-template-columns: minmax(20rem, 1.15fr) minmax(17rem, .85fr);
  gap: 1.25rem;
  align-items: start;
}

.slide-editor-fields {
  display: grid;
  gap: .8rem;
}

.slide-dialog fieldset {
  display: grid;
  gap: .7rem;
  min-width: 0;
  padding: .8rem;
  border: 1px solid var(--line-light);
  border-radius: .7rem;
}

.slide-dialog legend {
  padding: 0 .35rem;
  font-family: var(--font-serif);
  font-size: .92rem;
  font-weight: 700;
}

.slide-option-control {
  display: grid;
  gap: .35rem;
  min-width: 0;
}

.slide-option-control__label {
  font-size: .78rem;
  font-weight: 700;
}

.slide-pill-toggle {
  display: grid;
  gap: .2rem;
  min-width: 0;
  padding: .22rem;
  background: rgb(128 101 54 / .08);
  border: 1px solid var(--line-light);
  border-radius: 999px;
}

.slide-pill-toggle--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.slide-pill-toggle--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.slide-pill-toggle--four { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.slide-pill-toggle button {
  display: inline-flex;
  gap: .42rem;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 2.35rem;
  padding: .48rem .65rem;
  overflow: hidden;
  color: var(--ink-soft);
  font: inherit;
  font-size: .75rem;
  font-weight: 700;
  white-space: nowrap;
  background: transparent;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: color .18s ease, background .18s ease, box-shadow .18s ease;
}

.slide-pill-toggle button:hover {
  color: var(--ink);
  background: rgb(255 255 255 / .6);
}

.slide-pill-toggle button[aria-pressed="true"] {
  color: var(--ink);
  background: white;
  box-shadow: 0 2px 8px rgb(65 45 20 / .16);
}

.slide-pill-toggle--icons button {
  padding-inline: .5rem;
  font-size: .95rem;
}

.slide-font-sample {
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -.03em;
}

.slide-font-sample--serif {
  font-family: var(--font-serif);
}

.slide-font-sample--sans {
  font-family: var(--font-sans);
}

[data-slide-font-color-value="light"] .fa-square {
  color: #fff;
}

[data-slide-font-color-value="dark"] .fa-square {
  color: #000;
}

.slide-pill-toggle button:focus-visible {
  outline: 2px solid #806536;
  outline-offset: 1px;
}

.slide-background-options,
.slide-typography-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .65rem;
}

.slide-background-options:not(.slide-color-options) {
  grid-template-columns: 1fr;
}

.slide-color-options {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: end;
}

.slide-color-pickers {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .65rem;
}

.slide-gradient-angle {
  grid-template-columns: auto minmax(8rem, 1fr) auto !important;
  align-items: center;
}

.slide-gradient-angle input {
  padding: 0;
}

.slide-gradient-angle output {
  min-width: 2.9rem;
  color: var(--ink-soft);
  text-align: right;
}

.slide-randomize-button {
  display: inline-flex;
  gap: .5rem;
  align-items: center;
  justify-content: center;
  min-height: 2.8rem;
  padding: .6rem .8rem;
  color: var(--ink);
  font: inherit;
  font-size: .82rem;
  font-weight: 700;
  background: rgb(128 101 54 / .09);
  border: 1px solid var(--line-light);
  border-radius: .55rem;
  cursor: pointer;
}

.slide-randomize-button:hover {
  color: #6f4f1f;
  background: rgb(128 101 54 / .16);
}

.slide-randomize-button:active {
  transform: translateY(1px);
}

.slide-palette-actions {
  display: flex;
  grid-column: 1 / -1;
  gap: .65rem;
  align-items: stretch;
  flex-wrap: wrap;
}

.slide-palette-actions .slide-randomize-button {
  flex: 0 0 auto;
}

.slide-gradient-mode {
  flex: 1 1 12rem;
  max-width: 18rem;
}

.slide-gradient-mode button:disabled {
  opacity: .46;
  cursor: not-allowed;
}

.slide-gradient-mode button:disabled:hover {
  color: var(--ink-soft);
  background: transparent;
}

.slide-color-options .slide-palette-actions {
  grid-column: 1 / -1;
}

.slide-dialog input[type="color"] {
  min-height: 2.8rem;
  padding: .25rem;
}

.slide-dialog input[type="file"] {
  min-width: 0;
  font-size: .72rem;
}

.slide-dialog .checkbox-row {
  display: flex;
  grid-template-columns: auto 1fr;
  gap: .55rem;
  align-items: center;
  padding: .55rem .65rem;
  background: rgb(128 101 54 / .07);
  border: 1px solid var(--line-light);
  border-radius: .55rem;
}

.slide-dialog .checkbox-row input {
  width: 1.1rem;
  height: 1.1rem;
  padding: 0;
  margin: 0;
  accent-color: #806536;
}

.slide-font-size {
  grid-template-columns: auto minmax(8rem, 1fr) auto !important;
  align-items: center;
}

.slide-font-size input {
  padding: 0;
}

.slide-font-size output {
  min-width: 3.1rem;
  color: var(--ink-soft);
  text-align: right;
}

.slide-read-time {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: .65rem;
  align-items: end;
}

.slide-read-time__input {
  display: grid;
  grid-template-columns: minmax(5rem, 1fr) auto;
  gap: .55rem;
  align-items: center;
}

.slide-read-time__input > span {
  color: var(--ink-soft);
  font-size: .78rem;
}

.slide-auto-time-button {
  min-height: 2.8rem;
  padding: .6rem .8rem;
  color: var(--ink);
  font: inherit;
  font-size: .78rem;
  font-weight: 700;
  background: rgb(128 101 54 / .09);
  border: 1px solid var(--line-light);
  border-radius: .55rem;
  cursor: pointer;
}

.slide-auto-time-button:hover {
  color: #6f4f1f;
  background: rgb(128 101 54 / .16);
}

.slide-auto-time-button i {
  margin-right: .4rem;
}

.slide-preview-wrap {
  position: sticky;
  top: 0;
  min-width: 0;
  padding: .8rem;
  background: #e8dfd1;
  border: 1px solid var(--line-light);
  border-radius: .8rem;
}

.slide-preview-wrap > .control-label {
  margin: 0 0 .5rem;
  color: var(--ink-soft);
}

[data-slide-preview] {
  aspect-ratio: 16 / 9;
  container-type: inline-size;
  overflow: hidden;
  background: var(--night);
  border-radius: .45rem;
  box-shadow: 0 10px 28px rgb(32 33 29 / .18);
}

[data-slide-preview] .custom-slide__text {
  font-size: var(--slide-preview-font-size) !important;
}

.form-intro {
  margin: -.35rem 0 .25rem;
  color: var(--ink-soft);
  font-size: .84rem;
  line-height: 1.5;
}

.form-error {
  margin: 0;
  padding: .65rem .75rem;
  color: #79251f;
  background: #fde8e5;
  border-radius: .5rem;
  font-size: .78rem;
}

.dialog-actions {
  display: flex;
  gap: .75rem;
  align-items: center;
  justify-content: space-between;
}

.slide-dialog-actions .primary-button {
  margin-left: auto;
}

.slide-delete-button {
  display: inline-flex;
  gap: .45rem;
  align-items: center;
  min-height: 2.8rem;
  padding: .65rem .85rem;
  color: #8b2922;
  background: #fff7f5;
  border: 1px solid rgb(139 41 34 / .28);
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-size: .78rem;
  font-weight: 750;
}

.slide-delete-button:hover {
  color: #fff;
  background: #8b2922;
  border-color: #8b2922;
}

.slide-delete-button:disabled {
  cursor: wait;
  opacity: .58;
}

.dialog-or {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: .55rem;
  align-items: center;
  color: var(--ink-soft);
  font-size: .68rem;
  text-transform: uppercase;
}

.dialog-or::before,
.dialog-or::after {
  height: 1px;
  background: var(--line-light);
  content: "";
}

.form-hint {
  margin: 0;
  color: var(--ink-soft);
  font-size: .7rem;
  line-height: 1.4;
}

.mobile-timeline-surface {
  position: relative;
  display: grid;
  align-items: center;
  min-height: 4.2rem;
  margin-top: 2.3rem;
}

.mobile-timeline-sheet input[type="range"] {
  width: 100%;
  min-height: 2.75rem;
  margin: 0;
  touch-action: none;
}

.mobile-timeline-preview {
  position: absolute;
  z-index: 2;
  bottom: calc(50% + 1.05rem);
  left: clamp(4rem, var(--timeline-position, 50%), calc(100% - 4rem));
  width: max-content;
  max-width: calc(100% - 1rem);
  min-width: 6.6rem;
  padding: .4rem .52rem;
  color: var(--cream);
  background: var(--night-raised);
  border: 1px solid rgb(228 201 143 / .62);
  border-radius: .5rem;
  box-shadow: 0 6px 20px rgb(0 0 0 / .25);
  font-size: .65rem;
  line-height: 1.35;
  pointer-events: none;
  transform: translateX(-50%);
}

.mobile-timeline-preview strong,
.mobile-timeline-preview span {
  display: block;
}

.mobile-timeline-bounds {
  display: flex;
  justify-content: space-between;
  margin-top: .35rem;
  color: var(--ink-soft);
  font-size: .68rem;
}

.toast-region {
  position: fixed;
  z-index: 1000;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  display: grid;
  gap: .5rem;
  pointer-events: none;
}

.toast {
  max-width: min(23rem, calc(100vw - 2rem));
  padding: .7rem .9rem;
  color: var(--ink);
  background: var(--cream);
  border-radius: .55rem;
  box-shadow: var(--shadow);
  font-size: .8rem;
  animation: toast-in .25s var(--ease-out) both;
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(.5rem); }
}

@media (max-width: 1540px) {
  .gallery-toolbar {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: space-between;
    padding-top: .7rem;
    border-top: 1px solid var(--line-dark);
  }

  .wordmark,
  .header-actions {
    grid-row: 1;
  }

  .header-actions {
    grid-column: 3;
  }
}

@media (max-width: 1120px) {
  .icon-button.controls-toggle {
    display: inline-grid;
  }

  .gallery-toolbar {
    align-items: stretch;
    display: none;
    flex-direction: column;
  }

  .site-header.is-controls-open .gallery-toolbar {
    display: flex;
  }

  .toolbar-primary,
  .toolbar-secondary {
    justify-content: space-between;
  }

  .toolbar-secondary {
    align-items: end;
    flex-wrap: wrap;
  }
}

@media (max-width: 760px) {
  :root {
    --header-min-height: 66px;
    --header-height: 66px;
  }

  .site-header__pane {
    gap: .55rem;
    min-height: var(--header-min-height);
  }

  .gallery-toolbar {
    min-height: 0;
    padding: .65rem 0 0;
  }

  .toolbar-primary,
  .toolbar-secondary {
    align-items: stretch;
    flex-direction: column;
  }

  .segmented-control {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }

  .view-switcher > button > span:not(.fa-icon-stack) {
    display: none;
  }

  .view-switcher button {
    justify-content: center;
  }

  .toolbar-secondary {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .media-filter-control {
    grid-column: 1 / -1;
  }

  .media-filter {
    grid-template-columns: repeat(4, 1fr);
  }

  .thumbnail-control {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: auto minmax(7rem, 1fr) auto;
    gap: .75rem;
  }

  .toolbar-secondary > .text-button {
    grid-column: 1 / -1;
  }

  .header-actions {
    display: flex;
    gap: .3rem;
    justify-content: end;
  }

  .music-widget--header {
    display: inline-grid;
    flex: 0 0 2.55rem;
    grid-template-columns: 1fr;
    width: 2.55rem;
    min-width: 2.55rem;
    max-width: 2.55rem;
    height: 2.55rem;
    min-height: 2.55rem;
    padding: 0;
    text-align: center;
    border-radius: 50%;
  }

  .music-widget--header .music-widget__icon {
    width: auto;
  }

  .music-widget--header .music-widget__body {
    display: none;
  }

  .labeled-icon-button {
    width: 2.55rem;
    height: 2.55rem;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
  }

  .labeled-icon-button > span {
    display: none;
  }

  .slideshow {
    height: calc(100dvh - var(--header-height));
    min-height: 0;
  }

  .stage-nav {
    top: calc(50% - 2rem);
    width: 2.75rem;
    height: 4rem;
    background: rgb(9 10 8 / .58);
  }

  .slideshow-footer {
    grid-template-areas: "details actions";
    grid-template-columns: minmax(0, 1fr) auto;
    gap: .65rem;
  }

  .slideshow-footer.has-user-caption {
    grid-template-areas:
      "caption caption"
      "details actions";
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .slideshow-footer__details {
    justify-self: start;
    text-align: left;
  }

  .slideshow-footer > .memory-actions {
    justify-self: end;
  }

  .slideshow-footer > .memory-user-caption {
    justify-self: stretch;
    width: 100%;
  }

  .slideshow-footer .memory-actions {
    justify-content: flex-end;
  }

  .slideshow-footer .memory-actions .action-button {
    width: 2.4rem;
    min-width: 2.4rem;
    min-height: 2.4rem;
    padding: .45rem;
  }

  .slideshow-footer .memory-actions .action-button > span {
    display: none;
  }

  .collection {
    padding: .75rem .65rem 6rem;
  }

  .timeline {
    display: none !important;
  }

  .welcome-dialog {
    overflow: auto;
  }

  .welcome-dialog[open] {
    display: block;
  }

  .welcome-visual {
    height: 80vh;
    height: 80svh;
    min-height: 28rem;
  }

  .welcome-visual::after {
    background: linear-gradient(180deg, transparent 55%, var(--paper));
  }

  .welcome-content {
    max-height: none;
    padding: 1.25rem 1.15rem 2rem;
    overflow: visible;
  }

  .welcome-content > .dialog-close {
    position: fixed;
    z-index: 4;
    top: 1rem;
    right: 1rem;
  }

  .welcome-content h1 {
    position: absolute;
    z-index: 3;
    right: 1.15rem;
    bottom: calc(100% + 1.15rem);
    left: 1.15rem;
    max-width: none;
    color: var(--ink);
    font-size: clamp(1.9rem, 9.25vw, 3rem);
    line-height: 1.02;
    text-shadow: none;
  }

  .music-widget--welcome {
    grid-template-columns: 4.6rem 1.5rem minmax(0, 1fr);
    min-height: 5.8rem;
  }

  .music-widget__cover {
    width: 4.6rem;
    height: 4.6rem;
  }

  .memorial-cards {
    grid-template-columns: 1fr;
  }

  .memorial-cards button {
    min-height: 4.2rem;
  }

  .welcome-mode-toggle {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .welcome-speed-toggle {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .lightbox-footer {
    grid-template-areas: "details actions";
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    padding: .65rem 4.2rem calc(.65rem + env(safe-area-inset-bottom)) .8rem;
  }

  .lightbox-footer.has-user-caption {
    grid-template-areas:
      "caption caption"
      "details actions";
  }

  .lightbox-footer > .memory-actions {
    justify-self: end;
  }

  .lightbox-footer > .memory-caption {
    justify-self: start;
    text-align: left;
  }

  .lightbox-footer > .memory-user-caption {
    grid-area: caption;
    justify-self: stretch;
    width: 100%;
  }

  .lightbox-footer .memory-actions .action-button {
    width: 2.4rem;
    min-width: 2.4rem;
    min-height: 2.4rem;
    padding: .45rem;
  }

  .lightbox-footer .memory-actions .action-button > span {
    display: none;
  }

  .stage-media .custom-slide__text {
    font-size: calc(var(--slide-font-size, 52px) * .66) !important;
  }

  [data-slide-preview] .custom-slide__text {
    font-size: calc(var(--slide-preview-font-size) * .66) !important;
  }

  .edit-date-fields,
  .slide-editor-layout,
  .slide-color-options,
  .slide-color-pickers,
  .slide-typography-options,
  .slide-read-time {
    grid-template-columns: 1fr;
  }

  .slide-palette-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .slide-randomize-button,
  .slide-palette-actions .slide-randomize-button,
  .slide-gradient-mode {
    width: 100%;
    max-width: none;
    grid-column: auto;
  }

  .slide-auto-time-button {
    width: 100%;
  }

  .slide-dialog {
    width: min(100vw - 1rem, 42rem);
    max-height: calc(100dvh - 1rem);
    padding: 1rem;
  }

  .slide-preview-wrap {
    position: static;
    grid-row: 1;
  }

}

@media (max-height: 560px) and (min-width: 761px) {
  .timeline-track-wrap {
    min-height: 3rem;
  }
}

@media (max-width: 430px) {
  .wordmark__eyebrow { display: none; }
  .header-actions { gap: .25rem; }
  .icon-button { width: 2.55rem; height: 2.55rem; }
  .control-cluster .control-label { font-size: .62rem; }
  .memory-card__meta { padding-inline: .45rem; }
  .memory-card__meta time { font-size: .64rem; }
  .memory-card > .memory-card__heart { min-width: 2.6rem; min-height: 2.6rem; padding-inline: .45rem; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
