/* Guest camera: a bounded application viewport, separate from the organiser pages. */
body.guest {
  --paper: #f5f2e9;
  --ink: #242620;
  --muted: #696b61;
  --line: #d6d3c9;
  background: #deddd6;
  color: var(--ink);
  height: 100dvh;
  height: var(--app-height, 100dvh);
  min-height: 0;
  font-family: Arial, sans-serif;
}
.guest > header,
.guest > footer {
  display: none;
}
.guest main {
  height: 100%;
  max-width: none;
  padding: 0;
  margin: 0;
  min-height: 0;
}
.guest * {
  box-sizing: border-box;
}
.guest [hidden] {
  display: none !important;
}
.guest button {
  font: inherit;
  letter-spacing: 0;
  border: 0;
  border-radius: 0;
  min-height: 44px;
  padding: 10px 16px;
  color: var(--ink);
  background: transparent;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.guest button:disabled {
  opacity: 0.35;
  cursor: default;
}
.guest svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}
.guest :focus-visible {
  outline: 2px solid #a1763d;
  outline-offset: -3px;
}
.guest .icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  min-width: 48px;
  height: 48px;
  padding: 12px;
  border-radius: 50%;
}
.guest .icon-button:hover {
  background: #8882;
}
.camera-app {
  height: 100%;
  width: min(100%, 560px);
  margin: auto;
  background: var(--paper);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  padding: env(safe-area-inset-top, 0px)
    max(12px, env(safe-area-inset-right, 0px)) env(safe-area-inset-bottom, 0px)
    max(12px, env(safe-area-inset-left, 0px));
  box-shadow: 0 0 80px #15181010;
  min-height: 0;
}
.camera-top {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 4px;
}
.event-identity {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.wordmark {
  font:
    25px/1 Georgia,
    serif;
  letter-spacing: -1px;
}
.tiny-plane {
  display: inline-block;
  font: 17px Arial;
  margin-left: 7px;
  transform: rotate(-15deg);
  color: var(--muted);
}
#event-title {
  font-size: 0.6875rem;
  letter-spacing: 1.3px;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  text-transform: uppercase;
  color: var(--muted);
  max-width: 100%;
}
.camera-screen {
  min-height: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 0;
}
.camera-frame {
  position: relative;
  background: #e9e7dd;
  border-radius: 18px;
  overflow: hidden;
  min-height: 0;
  isolation: isolate;
  display: grid;
  place-items: center;
}
.camera-frame:before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 15%, #fff8, transparent 70%);
  pointer-events: none;
}
.camera-frame[data-state="live"],
.camera-frame[data-state="review"] {
  background: #11130f;
}
.camera-frame video,
.camera-frame #shot {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: contain;
  position: absolute;
  inset: 0;
  background: #11130f;
  border: 0;
}
.camera-frame video.selfie {
  transform: scaleX(-1);
}
[data-filter="Noir"] {
  filter: grayscale(1);
}
[data-filter="Candlelight"] {
  filter: sepia(0.45) saturate(0.8) brightness(1.06);
}
[data-filter="Vintage"] {
  filter: sepia(0.25) saturate(0.5) brightness(1.08);
}
.camera-intro {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  padding: 18px 22px 40px;
  width: 100%;
  max-height: 100%;
  gap: 12px;
}
.rose-mark {
  display: block;
  width: 54px;
  height: 65px;
  background: url("/rose-mark.webp") center/contain no-repeat;
  mix-blend-mode: multiply;
  opacity: 0.8;
  flex-shrink: 0;
}
.guest .overline {
  font-size: 0.625rem;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  line-height: 1.5;
}
.camera-intro h1 {
  font:
    clamp(34px, 7vw, 46px)/1.04 Georgia,
    serif;
  letter-spacing: -1.7px;
  margin: 0;
}
.camera-intro h1 em {
  font-weight: 400;
}
.camera-intro p {
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--muted);
  max-width: 270px;
  margin: 0;
}
.guest #camera-start,
.guest .album-empty button,
.guest .invitation-error button {
  background: var(--ink);
  color: var(--paper);
  border-radius: 30px;
  padding: 12px 24px;
  font-size: 0.8125rem;
  min-height: 44px;
}
.frame-label {
  position: absolute;
  bottom: 15px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  font-size: 0.5625rem;
  letter-spacing: 1.4px;
  pointer-events: none;
  color: #77796f;
}
.frame-dot {
  width: 4px;
  height: 4px;
  background: currentColor;
  border-radius: 50%;
}
.camera-frame[data-state="live"] .frame-label,
.camera-frame[data-state="review"] .frame-label {
  color: #fff;
  text-shadow: 0 1px 3px #000;
  background: #1118;
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  border-radius: 20px;
  padding: 6px 9px;
  white-space: nowrap;
}
.frame-corner {
  position: absolute;
  width: 18px;
  height: 18px;
  border-color: #8e90856b;
  border-style: solid;
  pointer-events: none;
}
.frame-corner.one {
  top: 15px;
  left: 15px;
  border-width: 1px 0 0 1px;
}
.frame-corner.two {
  bottom: 15px;
  right: 15px;
  border-width: 0 1px 1px 0;
}
.camera-controls {
  display: grid;
  grid-template-rows: 30px 44px 100px;
  padding-top: 3px;
}
.guest .queue-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 0.6875rem;
  min-height: 30px;
  padding: 0 5px;
  color: var(--muted);
  line-height: 1.2;
}
.status-dot {
  width: 5px;
  height: 5px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #8d9183;
}
.queue-status[data-status="saved"] .status-dot {
  background: #50744c;
}
.queue-status[data-status="failed"] {
  color: #9a3c29;
}
.queue-status[data-status="failed"] .status-dot {
  background: #9a3c29;
}
.queue-status[data-status="pending"] .status-dot {
  background: #a1763d;
  animation: breathe 1.4s ease-in-out infinite;
}
.filter-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: center;
  gap: 3px;
  padding: 0 2px;
}
.guest .filter-row button {
  font-size: 0.6875rem;
  min-height: 44px;
  padding: 8px 1px;
  position: relative;
  white-space: nowrap;
  color: var(--muted);
}
.filter-row button[aria-pressed="true"] {
  color: var(--ink);
  font-weight: 700;
}
.filter-row button[aria-pressed="true"]:after {
  content: "";
  position: absolute;
  width: 16px;
  height: 2px;
  background: currentColor;
  bottom: 5px;
  left: calc(50% - 8px);
  border-radius: 2px;
}
.capture-row {
  display: grid;
  grid-template-columns: 1fr 100px 1fr;
  align-items: center;
  justify-items: center;
  padding-bottom: 3px;
}
.guest .control-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  max-width: 105px;
  height: 72px;
  padding: 8px;
  font-size: 0.625rem;
  color: var(--muted);
}
.guest .control-button svg {
  width: 23px;
  height: 23px;
  color: var(--ink);
}
.shutter-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}
.guest .shutter {
  padding: 5px;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  border: 1.5px solid var(--ink);
  background: var(--paper);
  display: grid;
  place-items: center;
}
.shutter-core {
  display: block;
  border-radius: 50%;
  background: var(--ink);
  width: 100%;
  height: 100%;
  transition: transform 0.12s;
}
.shutter:active .shutter-core {
  transform: scale(0.87);
}
.shutter svg {
  width: 33px;
  height: 33px;
}
.shutter-wrap > span {
  font-size: 0.625rem;
  letter-spacing: 0.4px;
}
.camera-nav {
  height: 56px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
  gap: 16px;
  margin: 0 8px;
}
.guest .camera-nav button {
  min-height: 48px;
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.75rem;
}
.camera-nav svg {
  width: 19px;
  height: 19px;
}
.camera-nav button[aria-current] {
  color: var(--ink);
  font-weight: 700;
}
.camera-nav button[aria-current]:before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
}
.camera-nav #photo-total {
  font-size: 0.625rem;
  display: inline-grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  background: #85877422;
  border-radius: 10px;
}
.camera-nav #photo-total:empty {
  display: none;
}
.album-screen {
  min-height: 0;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  gap: 8px;
  padding: 10px 0 4px;
}
.album-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 4px;
}
.album-heading > div {
  min-width: 0;
}
.album-heading .overline {
  color: var(--muted);
  font-size: 0.5625rem;
  letter-spacing: 0.8px;
}
.album-heading h1 {
  font:
    32px/1.1 Georgia,
    serif;
  letter-spacing: -1px;
  margin: 6px 0 0;
}
.album-privacy {
  font-size: 0.6875rem;
  line-height: 1.45;
  color: var(--muted);
  margin: 0 4px 3px;
}
.gallery-stage {
  min-height: 0;
  position: relative;
  border-radius: 16px;
  background: #e9e7df;
  overflow: hidden;
  display: grid;
}
.album-carousel {
  height: 100%;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  touch-action: pan-y pinch-zoom;
}
.album-track {
  display: flex;
  height: 100%;
  min-height: 0;
}
.album-slide {
  flex: 0 0 100%;
  min-width: 0;
  height: 100%;
  position: relative;
}
.album-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  color: var(--ink);
  text-align: center;
  font-size: 0.875rem;
}
.album-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 18px;
  gap: 12px;
  min-height: 0;
}
.album-empty > svg {
  width: 28px;
  height: 28px;
  color: var(--muted);
}
.album-empty h2 {
  font:
    clamp(25px, 6vw, 34px)/1.15 Georgia,
    serif;
  margin: 0;
  letter-spacing: -0.6px;
}
.album-empty p {
  font-size: 0.8125rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}
.album-pager {
  display: grid;
  grid-template-columns: 48px 1fr 48px;
  gap: 8px;
  align-items: center;
  min-height: 64px;
}
.album-pager > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  min-width: 0;
}
#photo-count {
  font-size: 0.75rem;
  letter-spacing: 1px;
}
#photo-caption {
  font-size: 0.625rem;
  text-align: center;
  color: var(--muted);
  line-height: 1.4;
}
.guest dialog {
  width: min(440px, calc(100% - 24px));
  max-height: calc(var(--app-height, 100dvh) - 32px);
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 24px 100px #0005;
}
.guest dialog[open] {
  display: flex;
  flex-direction: column;
}
.guest dialog::backdrop {
  background: #12150dc7;
  backdrop-filter: blur(6px);
}
.sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 12px 8px 22px;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}
.sheet-header h2 {
  font:
    24px Georgia,
    serif;
  margin: 0;
  letter-spacing: -0.6px;
}
.sheet-body {
  padding: 8px 22px 22px;
  overflow: auto;
  overscroll-behavior: contain;
  font-size: 0.875rem;
  line-height: 1.6;
  min-height: 0;
}
.sheet-body p {
  margin: 12px 0;
}
.sheet-event {
  font:
    27px Georgia,
    serif;
}
.sheet-body dl {
  border-block: 1px solid var(--line);
  padding: 14px 0;
}
.sheet-body dt {
  font-size: 0.6875rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
}
.sheet-body dd {
  margin: 8px 0 0;
}
.sheet-body small {
  display: block;
  color: var(--muted);
}
.sheet-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-underline-offset: 5px;
}
.queue-card {
  display: flex;
  align-items: center;
  flex-direction: column;
  text-align: center;
}
.queue-card > .queue-preview {
  width: 100%;
  height: clamp(70px, 23dvh, 180px);
  object-fit: contain;
  background: #e8e5db;
  border-radius: 8px;
  margin-top: 12px;
}
.queue-card > svg {
  width: 42px;
  height: 42px;
  margin: 20px 0 0;
}
.queue-card .queue-state {
  font:
    24px Georgia,
    serif;
  margin: 12px 0 0;
}
.queue-card p {
  font-size: 0.8125rem;
}
.queue-actions {
  display: flex;
  gap: 8px;
  width: 100%;
  justify-content: center;
}
.guest .queue-actions button {
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 0.8125rem;
}
.guest .queue-actions button:first-child {
  background: var(--ink);
  color: var(--paper);
}
.queue-pager {
  display: grid;
  grid-template-columns: 48px 1fr 48px;
  align-items: center;
  width: 100%;
  margin-top: 8px;
}
.queue-pager span {
  font-size: 0.75rem;
}
.guest #notice {
  position: fixed;
  left: 50%;
  top: max(66px, env(safe-area-inset-top));
  bottom: auto;
  transform: translateX(-50%);
  width: max-content;
  max-width: min(90%, 460px);
  font-size: 0.8125rem;
  line-height: 1.4;
  border-radius: 10px;
  padding: 12px 16px;
  pointer-events: none;
  background: #252820;
  color: #faf8ef;
  z-index: 10;
}
.invitation-error {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  gap: 20px;
  background: var(--paper);
  max-width: 560px;
  margin: auto;
}
.invitation-error h1 {
  font:
    42px/1.1 Georgia,
    serif;
  letter-spacing: -1px;
  margin: 0;
}
.invitation-error p {
  font-size: 0.875rem;
  line-height: 1.6;
  max-width: 300px;
  margin: 0;
}
.invitation-error a {
  font-size: 0.8125rem;
  min-height: 44px;
  display: grid;
  place-items: center;
}
.guest.midnight {
  --paper: #20231f;
  --ink: #f4f0e6;
  --muted: #b6b9ad;
  --line: #45493e;
  background: #121510;
}
.midnight .camera-frame,
.midnight .gallery-stage {
  background: #30362c;
}
.midnight .camera-frame:before {
  opacity: 0.08;
}
.midnight .rose-mark {
  filter: invert(1);
  mix-blend-mode: screen;
  opacity: 0.75;
}
.midnight .queue-card > .queue-preview {
  background: #30362c;
}
.midnight .frame-label {
  color: #b6b9ad;
}
@media (min-width: 700px) and (min-height: 600px) {
  .camera-app {
    max-height: 100%;
    width: 480px;
    padding-inline: 18px;
  }
  .camera-top {
    height: 72px;
  }
  .camera-controls {
    grid-template-rows: 34px 48px 108px;
  }
  .camera-nav {
    height: 62px;
  }
  .camera-frame {
    border-radius: 22px;
  }
  .camera-intro h1 {
    font-size: 48px;
  }
}
@media (max-height: 680px) and (orientation: portrait) {
  .camera-top {
    height: 54px;
  }
  .camera-controls {
    grid-template-rows: 28px 44px 90px;
  }
  .camera-nav {
    height: 50px;
  }
  .guest .shutter {
    width: 60px;
    height: 60px;
  }
  .camera-intro {
    gap: 8px;
    padding: 12px 20px 28px;
  }
  .camera-intro .rose-mark {
    width: 32px;
    height: 38px;
  }
  .camera-intro h1 {
    font-size: 34px;
  }
  .camera-intro p {
    font-size: 0.75rem;
  }
  .frame-label {
    bottom: 10px;
    font-size: 0.5rem;
  }
  .camera-intro .overline {
    font-size: 0.5625rem;
  }
  .album-heading h1 {
    font-size: 28px;
  }
  .album-pager {
    min-height: 55px;
  }
}
@media (max-height: 530px) and (orientation: portrait) {
  .camera-intro .rose-mark,
  .camera-intro > .overline {
    display: none;
  }
  .camera-intro h1 {
    font-size: 28px;
  }
  .camera-intro {
    gap: 6px;
  }
  .camera-intro p {
    font-size: 0.6875rem;
  }
  .camera-frame[data-state="error"] h1,
  .camera-frame[data-state="opening"] h1 {
    display: none;
  }
  .album-empty {
    gap: 8px;
  }
  .album-empty > svg {
    display: none;
  }
  .album-empty h2 {
    font-size: 24px;
  }
}
@media (orientation: landscape) and (max-height: 600px) {
  .camera-app {
    width: 100%;
    max-width: 1000px;
    grid-template-rows: 48px minmax(0, 1fr) 48px;
    padding-inline: max(12px, env(safe-area-inset-left))
      max(12px, env(safe-area-inset-right));
  }
  .camera-top {
    height: 48px;
  }
  .event-identity {
    flex-direction: row;
    align-items: baseline;
    gap: 16px;
  }
  .wordmark {
    font-size: 23px;
  }
  #event-title {
    max-width: 55vw;
  }
  .camera-screen {
    grid-template-columns: minmax(0, 1fr) 220px;
    grid-template-rows: minmax(0, 1fr);
    gap: 14px;
  }
  .camera-controls {
    grid-template-rows: 32px 48px minmax(84px, 1fr);
    align-content: center;
    padding: 12px 0;
  }
  .capture-row {
    grid-template-columns: 1fr 76px 1fr;
  }
  .guest .control-button {
    font-size: 0.5625rem;
    padding: 3px;
  }
  .guest .shutter {
    width: 60px;
    height: 60px;
  }
  .camera-nav {
    height: 48px;
    max-width: 440px;
    width: 100%;
    justify-self: center;
    margin-top: 0;
  }
  .camera-intro {
    gap: 6px;
    padding: 12px 20px 28px;
  }
  .camera-intro .rose-mark {
    display: none;
  }
  .camera-intro h1 {
    font-size: 32px;
  }
  .camera-intro h1 br {
    display: none;
  }
  .camera-intro h1 em {
    margin-left: 5px;
  }
  .camera-intro p {
    font-size: 0.75rem;
    max-width: 330px;
  }
  .camera-intro .overline {
    font-size: 0.5625rem;
  }
  .camera-frame[data-state="error"] h1 {
    display: none;
  }
  .album-screen {
    grid-template-columns: 210px minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr) auto;
    gap: 8px 16px;
    padding-block: 4px;
  }
  .album-heading {
    grid-column: 1;
    grid-row: 1;
  }
  .album-heading h1 {
    font-size: 27px;
  }
  .album-privacy {
    grid-column: 1;
    grid-row: 2;
    align-self: start;
  }
  .gallery-stage {
    grid-column: 2;
    grid-row: 1/4;
  }
  .album-pager {
    grid-column: 1;
    grid-row: 3;
    min-height: 50px;
    gap: 0;
  }
  .album-empty h2 {
    font-size: 26px;
  }
  .album-empty > svg {
    display: none;
  }
  .album-empty {
    gap: 8px;
  }
  .sheet-body {
    padding-top: 0;
  }
  .queue-card > .queue-preview {
    height: 60px;
  }
  .queue-card p {
    margin-block: 6px;
  }
  .queue-card .queue-state {
    font-size: 20px;
    margin-top: 6px;
  }
}
/* Exceptional zoom/large-text/keyboard cases retain access through an internal pane. */
@media (max-height: 260px), (max-width: 279px) {
  .camera-screen,
  .album-screen {
    overflow: auto;
    overscroll-behavior: contain;
  }
  .camera-screen {
    min-height: 0;
    display: flex;
    flex-direction: column;
  }
  .camera-frame {
    min-height: 180px;
  }
  .camera-controls {
    flex-shrink: 0;
  }
  .album-screen {
    display: flex;
    flex-direction: column;
  }
  .gallery-stage {
    min-height: 160px;
    flex-shrink: 0;
  }
  .camera-nav {
    flex-shrink: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
@keyframes breathe {
  50% {
    opacity: 0.35;
  }
}
.guest .shutter-core {
  width: 52px;
  height: 52px;
}
@media (max-height: 680px) and (orientation: portrait),
  (orientation: landscape) and (max-height: 600px) {
  .guest .shutter-core {
    width: 44px;
    height: 44px;
  }
}
.guest.large-text .camera-screen {
  display: flex;
  flex-direction: column;
  overflow: auto;
  overscroll-behavior: contain;
}
.guest.large-text .camera-frame {
  min-height: 340px;
  flex-shrink: 0;
}
.guest.large-text .camera-controls {
  flex-shrink: 0;
  grid-template-rows: 48px 100px 120px;
}
.guest.large-text .filter-row {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.guest.large-text .camera-top {
  height: 80px;
}
.guest.large-text .camera-nav {
  height: 80px;
}
.guest.large-text .camera-intro {
  overflow: auto;
  justify-content: safe center;
}
.guest.large-text .album-screen {
  overflow: auto;
}
.guest.large-text .gallery-stage {
  min-height: 200px;
}
.guest.large-text .album-heading h1 {
  font-size: 2rem;
}
@media (orientation: landscape) and (max-height: 600px) {
  .guest .camera-nav button {
    min-height: 44px;
  }
}
.guest .filter-row button,
.guest .control-button,
.shutter-wrap > span,
.guest .queue-status {
  font-size: 0.75rem;
}
.guest .camera-nav button {
  font-size: 0.8125rem;
}
#photo-caption {
  font-size: 0.6875rem;
}
@media (max-height: 530px) and (orientation: portrait) {
  .camera-intro p {
    font-size: 0.8125rem;
  }
}
@media (orientation: landscape) and (max-height: 600px) {
  .guest .control-button {
    font-size: 0.6875rem;
  }
  .guest .filter-row button {
    font-size: 0.6875rem;
  }
}
.camera-frame.just-captured:after {
  content: "";
  position: absolute;
  inset: 0;
  background: #fff5;
  z-index: 3;
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
  .camera-frame.just-captured:after {
    background: transparent;
    border: 3px solid #f5f2e9;
  }
}
/* Every interactive status/control remains a full touch target. */
.camera-controls {
  grid-template-rows: 44px 44px 100px;
}
.guest .queue-status {
  min-height: 44px;
}
@media (min-width: 700px) and (min-height: 600px) {
  .camera-controls {
    grid-template-rows: 44px 48px 108px;
  }
}
@media (max-height: 680px) and (orientation: portrait) {
  .camera-controls {
    grid-template-rows: 44px 44px 90px;
  }
}
@media (orientation: landscape) and (max-height: 600px) {
  .camera-controls {
    grid-template-rows: 44px 48px minmax(84px, 1fr);
  }
}
@media (max-height: 480px) and (orientation: portrait) {
  .camera-intro {
    padding: 8px 18px 24px;
  }
  .camera-intro h1 {
    font-size: 26px;
  }
}
@media (max-height: 450px) and (orientation: portrait) {
  .camera-intro h1 {
    display: none;
  }
}
.guest.large-text .camera-controls {
  grid-template-rows: 48px 100px 120px;
}
.invitation-loading {
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  justify-content: center;
  background: var(--paper);
  color: var(--ink);
}
.invitation-loading p {
  font-size: 0.875rem;
  color: var(--muted);
}
/* Camera controls share a compact, fixed frame; the album alone scrolls internally. */
.camera-top {
  height: 48px;
  gap: 6px;
  padding: 0;
}
.camera-top .wordmark {
  font-size: 21px;
  letter-spacing: -0.7px;
}
.event-identity {
  flex: 1;
  gap: 3px;
  overflow: hidden;
}
#event-title {
  font-size: 0.5625rem;
  letter-spacing: 1px;
}
.camera-top .queue-status {
  width: 100px;
  min-width: 70px;
  min-height: 44px;
  font-size: 0.625rem;
  line-height: 1.3;
  gap: 4px;
}
.camera-top .queue-status > span:last-child {
  display: none;
}
.camera-top .icon-button {
  width: 44px;
  min-width: 44px;
  height: 44px;
  padding: 11px;
}
.camera-controls {
  grid-template-rows: 52px 84px;
  padding: 0;
  min-width: 0;
}
.filter-row {
  display: flex;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  gap: 6px;
  padding: 4px 0;
  min-width: 0;
}
.filter-row::-webkit-scrollbar {
  display: none;
}
.guest .filter-row button {
  flex: 0 0 92px;
  scroll-snap-align: center;
  min-height: 44px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 25px;
  font-size: 0.6875rem;
  display: flex;
  gap: 6px;
  align-items: center;
  justify-content: center;
}
.filter-row button:before {
  content: "";
  width: 14px;
  height: 20px;
  border-radius: 6px;
  background: linear-gradient(145deg, #e8e0c7 45%, #434b3d 46%);
  flex-shrink: 0;
}
.filter-row button:nth-child(2):before {
  filter: grayscale(1);
}
.filter-row button:nth-child(3):before {
  filter: sepia(0.45);
}
.filter-row button:nth-child(4):before {
  filter: sepia(0.25) saturate(0.5);
}
.guest .filter-row button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
  font-weight: 600;
}
.capture-row {
  align-items: center;
}
.guest .control-button {
  height: 72px;
  min-height: 44px;
}
.guest .shutter {
  width: 62px;
  height: 62px;
}
.shutter-wrap {
  gap: 3px;
}
.camera-nav {
  height: 48px;
  min-height: 48px;
  margin: 0;
}
.camera-nav button {
  min-height: 44px;
}
.camera-intro h1 {
  font-size: clamp(30px, 7vw, 42px);
}
.camera-intro {
  gap: 10px;
}
.camera-frame {
  border-radius: 12px;
}
.flight-decoration {
  display: block;
  background: url("/flight-path.svg") center/contain no-repeat;
  width: min(100%, 320px);
  height: 92px;
  flex-shrink: 0;
  margin: 8px auto;
}
.guest.midnight .flight-decoration {
  filter: invert(1);
}
.album-screen {
  grid-template-columns: 1fr;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 5px;
  padding-top: 6px;
}
.album-heading {
  grid-column: 1;
  grid-row: 1;
}
.album-heading h1 {
  font-size: 30px;
}
.album-privacy {
  grid-column: 1;
  grid-row: 2;
  margin: 0 0 5px;
  line-height: 1.4;
  font-size: 0.6875rem;
}
.gallery-stage {
  grid-column: 1;
  grid-row: 3;
  position: relative;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  display: block;
  border-radius: 0;
  background: transparent;
  min-height: 0;
  scrollbar-width: thin;
  overflow-anchor: none;
  padding: 0 8px;
}
#grid-space {
  position: relative;
  width: 100%;
}
#grid-window {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: grid;
  gap: 8px;
  align-content: start;
}
.guest .memory-thumb {
  position: relative;
  aspect-ratio: 4/5;
  width: 100%;
  padding: 0;
  border-radius: 5px;
  overflow: hidden;
  background: #292b25;
  min-height: 0;
  display: block;
}
.memory-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.memory-thumb span {
  position: absolute;
  bottom: 5px;
  left: 6px;
  color: #fff;
  background: #0008;
  border-radius: 2px;
  padding: 2px 4px;
  font: 9px Arial;
}
.guest .album-tools {
  display: flex;
  align-items: center;
  gap: 7px;
}
.guest .album-tools .secondary {
  min-height: 36px;
  padding: 7px 11px;
  font-size: 11px;
}
.guest .selection-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 4px;
}
.guest .selection-tools span {
  flex: 1;
  font-size: 12px;
  color: var(--muted);
}
.guest .selection-tools button {
  min-height: 38px;
  padding: 8px 12px;
  font-size: 11px;
}
.guest .selection-tools button:disabled {
  opacity: 0.48;
}
.guest .memory-thumb.is-selected {
  outline: 3px solid #a47a3c;
  outline-offset: -3px;
}
.guest .memory-thumb.is-selected span {
  background: #78572a;
  font-size: 13px;
  font-weight: bold;
}
.guest .album-screen {
  grid-template-rows: auto auto auto minmax(0, 1fr);
}
.guest .selection-tools {
  grid-row: 3;
}
.guest .gallery-stage {
  grid-row: 4;
}
.guest #photo-viewer .viewer-top {
  display: flex;
  align-items: center;
  gap: 8px;
}
.guest #download-photo {
  min-height: 36px;
  padding: 7px 11px;
  font-size: 11px;
  margin-left: auto;
}
@media (max-width: 380px) {
  .guest .album-tools .secondary {
    padding: 6px 8px;
  }
  .guest .selection-tools {
    gap: 5px;
  }
  .guest .selection-tools button {
    padding: 7px 8px;
  }
}
#grid-message {
  text-align: center;
  font-size: 0.6875rem;
  color: var(--muted);
  padding: 12px 0;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 8px;
}
#grid-message strong {
  font: 26px Georgia;
  color: var(--ink);
}
#grid-message .rose-mark {
  width: 40px;
  height: 48px;
}
#load-more {
  width: 100%;
  min-height: 48px;
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
}
.guest #photo-viewer {
  max-width: none;
  max-height: none;
  width: 100vw;
  height: 100dvh;
  height: var(--app-height, 100dvh);
  margin: 0;
  padding: env(safe-area-inset-top) max(12px, env(safe-area-inset-right))
    env(safe-area-inset-bottom) max(12px, env(safe-area-inset-left));
  border: 0;
  border-radius: 0;
  background: #151713;
  color: #f5f2e9;
}
#photo-viewer[open] {
  display: grid;
  grid-template-rows: 52px minmax(0, 1fr) 64px;
}
#photo-viewer::backdrop {
  background: #151713;
}
.viewer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font: 17px Georgia;
  border-bottom: 1px solid #ffffff20;
}
.viewer-stage {
  min-height: 0;
  height: 100%;
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
}
.viewer-stage .album-carousel {
  height: 100%;
  width: 100%;
}
.viewer-stage .album-track,
.viewer-stage .album-slide {
  height: 100%;
}
.viewer-stage img {
  object-fit: contain;
  width: 100%;
  height: 100%;
}
#photo-viewer .album-pager {
  grid-column: auto;
  grid-row: auto;
  min-height: 0;
}
#photo-viewer #photo-caption {
  color: #bbbdb2;
}
#photo-viewer button {
  color: inherit;
}
@media (orientation: landscape) and (max-height: 600px) {
  .camera-app {
    grid-template-rows: 44px minmax(0, 1fr) 44px;
  }
  .camera-top {
    height: 44px;
  }
  .camera-controls {
    grid-template-rows: 60px 84px;
    align-content: center;
    padding: 0;
  }
  .camera-screen {
    grid-template-columns: minmax(0, 1fr) 210px;
    gap: 12px;
  }
  .camera-nav {
    height: 44px;
    min-height: 44px;
  }
  .event-identity {
    flex-direction: row;
    align-items: center;
  }
  .album-screen {
    grid-template-columns: 180px minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr);
  }
  .album-heading {
    grid-column: 1;
    grid-row: 1;
  }
  .album-privacy {
    grid-column: 1;
    grid-row: 2;
  }
  .gallery-stage {
    grid-column: 2;
    grid-row: 1/3;
  }
  #photo-viewer[open] {
    grid-template-rows: 44px minmax(0, 1fr) 48px;
  }
}
.guest.large-text .camera-top {
  height: auto;
  min-height: 60px;
}
.guest.large-text .camera-top .queue-status {
  font-size: 0.6rem;
}
.guest.large-text .camera-controls {
  grid-template-rows: auto 94px;
}
.camera-nav button {
  height: auto;
  align-self: stretch;
  min-height: 44px;
}
.filter-row button:after {
  display: none !important;
}
#album-eyebrow:after {
  content: "";
  display: inline-block;
  vertical-align: middle;
  width: 100px;
  height: 26px;
  margin-left: 12px;
  background: url("/flight-path.svg") center/contain no-repeat;
}
.midnight #album-eyebrow:after {
  filter: invert(1);
}
@media (orientation: landscape) and (max-height: 600px) {
  #album-eyebrow:after {
    display: none;
  }
}
.guest .camera-nav button {
  height: auto;
  min-height: 44px;
  align-self: stretch;
}
.guest.midnight .rose-mark {
  filter: grayscale(1) contrast(1.6) invert(1);
  mix-blend-mode: screen;
}
@media (orientation: landscape) and (max-height: 600px) {
  .camera-app {
    grid-template-rows: 44px minmax(0, 1fr) 45px;
  }
  .camera-nav {
    height: 45px;
    min-height: 45px;
  }
}
/* One transparent engraving replaces the separate plane and boxed rose. */
.wedding-emblem {
  display: block;
  width: 170px;
  height: 170px;
  flex-shrink: 0;
  background: url("/wedding-emblem-detail.webp") center/contain no-repeat;
  margin: 0 auto;
}
.camera-intro .wedding-emblem {
  width: 145px;
  height: 145px;
  background-image: url("/wedding-emblem-small.webp");
}
.invitation-error .wedding-emblem {
  width: 120px;
  height: 120px;
  background-image: url("/wedding-emblem-small.webp");
}
#grid-message .wedding-emblem {
  width: 180px;
  height: 180px;
}
#album-eyebrow:after {
  display: none;
}
@media (max-height: 600px) {
  .camera-intro .wedding-emblem {
    width: 90px;
    height: 90px;
  }
}
@media (max-height: 530px), (orientation: landscape) {
  .camera-intro .wedding-emblem {
    display: none;
  }
}
/* The invitation has one primary action; capture controls belong to a live camera. */
.camera-controls[hidden] {
  display: none !important;
}
.camera-screen:not([data-state="live"]) {
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
}
.camera-screen:not([data-state="live"]) .camera-frame {
  background: transparent;
  border-radius: 0;
}
.camera-screen:not([data-state="live"]) .camera-frame:before,
.camera-screen:not([data-state="live"]) .frame-label,
.camera-screen:not([data-state="live"]) .frame-corner {
  display: none;
}
.camera-screen:not([data-state="live"]) .camera-intro {
  padding: 12px 18px;
  gap: 12px;
  overflow: auto;
  justify-content: safe center;
}
.camera-intro h1 {
  font-size: clamp(1.8rem, 7vw, 2.7rem);
  line-height: 1.12;
  overflow-wrap: anywhere;
  margin: 0;
}
.camera-intro .wedding-emblem {
  display: block;
  width: clamp(120px, 25vh, 200px);
  height: clamp(120px, 25vh, 200px);
}
.guest .welcome-library {
  background: transparent;
  color: var(--muted);
  border: 0;
  padding: 8px 20px;
  min-height: 44px;
  text-decoration: underline;
  text-underline-offset: 4px;
}
@media (max-height: 600px) {
  .camera-intro .wedding-emblem {
    width: 110px;
    height: 110px;
  }
  .camera-screen:not([data-state="live"]) .camera-intro {
    gap: 7px;
  }
  .camera-intro h1 {
    font-size: 1.8rem;
  }
}
@media (max-height: 420px) {
  .camera-intro .wedding-emblem,
  .camera-intro > .overline {
    display: none;
  }
  .camera-intro p {
    margin: 0;
  }
}
.guest.large-text .camera-screen:not([data-state="live"]) .camera-frame {
  min-height: 0;
  flex: 1;
}
.guest.large-text .camera-intro .wedding-emblem {
  display: none;
}
@media (max-width: 600px) {
  .guest #guest-dialog {
    width: 100%;
    max-width: 100%;
    margin: auto 0 0;
    max-height: calc(var(--app-height, 100dvh) - 20px);
    border-radius: 22px 22px 0 0;
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  #guest-dialog .sheet-header {
    padding-top: 16px;
  }
}
.camera-app {
  grid-template-columns: minmax(0, 1fr);
}
.camera-top,
.camera-screen,
.camera-nav {
  min-width: 0;
}
.camera-nav {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.guest.large-text .camera-nav {
  gap: 4px;
}
.guest.large-text .camera-nav button {
  min-width: 0;
  flex-direction: column;
  gap: 2px;
  padding: 4px;
  font-size: 0.7rem;
}
.guest.large-text .camera-nav button:before {
  display: none;
}
.guest.large-text .camera-top {
  gap: 4px;
}
/* Center fitting filters, with auto margins collapsing safely when they overflow. */
.guest .filter-row button {
  flex: 0 0 auto;
  min-width: 78px;
  padding-inline: 8px;
  white-space: nowrap;
}
.filter-row button:first-child {
  margin-inline-start: auto;
}
.filter-row button:last-child {
  margin-inline-end: auto;
}
/* Explicit inset geometry avoids an oversized grid child offsetting the shutter disk. */
.guest .shutter {
  position: relative;
  display: block;
  padding: 0;
  margin: 0;
  line-height: 0;
  appearance: none;
  -webkit-appearance: none;
}
.guest .shutter-core {
  position: absolute;
  inset: 5px;
  width: auto;
  height: auto;
  margin: 0;
  border-radius: 50%;
}
