:root {
  color-scheme: light;
  --ink: #2a1d28;
  --muted: #6e5f6a;
  --faint: #9c8e98;
  --line: #ebe1d4;
  --line-soft: #f1e9dd;
  --paper: #fbf8f3;
  --paper-2: #f4eee4;
  --panel: #ffffff;
  --brand: #8a2f3d;
  --brand-dark: #661f2a;
  --brand-soft: #b65a66;
  --blush: #ebcbc5;
  --blush-2: #f6e4df;
  --danger: #b42318;
  --gold: #be9a54;
  --sage: #7e8c6e;
  --shadow-sm: 0 4px 18px -10px rgba(42, 29, 40, 0.28);
  --shadow: 0 24px 60px -30px rgba(42, 29, 40, 0.42);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  background-image:
    radial-gradient(60vw 40vh at 85% -5%, rgba(235, 203, 197, 0.5), transparent 70%),
    radial-gradient(50vw 40vh at -10% 20%, rgba(190, 154, 84, 0.14), transparent 70%);
  background-repeat: no-repeat;
}

a {
  color: inherit;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px clamp(16px, 4vw, 42px);
  border-bottom: 1px solid var(--line-soft);
  background: rgba(251, 248, 243, 0.78);
  backdrop-filter: blur(14px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: 0;
}

.brand-mark {
  position: relative;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(140deg, var(--brand), var(--brand-soft));
  box-shadow: var(--shadow-sm);
}

.brand-mark::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 2px solid rgba(255, 255, 255, 0.92);
  border-radius: 4px;
}

.brand-mark::after {
  content: "";
  position: absolute;
  width: 6px;
  height: 6px;
  left: 14px;
  top: 14px;
  background: #fff;
  border-radius: 1px;
  box-shadow: 0 0 0 3px var(--brand);
}

.brand-word {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
}

.brand-word span {
  color: var(--brand);
}

nav {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 14px;
}

.page {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 56px;
}

.toolbar,
.manage-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: start;
  margin-bottom: 24px;
}

h1,
h2 {
  margin: 0 0 10px;
  letter-spacing: 0;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.08;
}

p {
  color: var(--muted);
}

.button,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.button.has-icon,
button.has-icon {
  gap: 8px;
}

.button-icon {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.button.primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  border-color: var(--brand);
  color: #fff;
  box-shadow: 0 14px 30px -14px var(--brand);
}

.button.primary:hover {
  background: var(--brand-dark);
}

.password-cta {
  min-height: 48px;
  padding-inline: 20px;
  border-color: var(--brand-dark);
  box-shadow: 0 18px 34px -16px var(--brand-dark), 0 0 0 4px rgba(138, 47, 61, 0.1);
}

.password-cta::before {
  content: "";
  width: 16px;
  height: 16px;
  margin-right: 8px;
  border: 2px solid currentColor;
  border-radius: 4px;
  box-shadow: inset 0 5px 0 rgba(255, 255, 255, 0.22);
}

.zip-cta {
  min-height: 48px;
  padding-inline: 20px;
  background: linear-gradient(135deg, #1f6f56, #174b3e);
  border-color: #174b3e;
  box-shadow: 0 18px 34px -16px #174b3e, 0 0 0 4px rgba(31, 111, 86, 0.1);
}

.zip-cta:hover {
  background: #174b3e;
}

.button.danger {
  color: var(--danger);
}

.button:disabled,
button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
  box-shadow: none;
}

.button-lg {
  min-height: 52px;
  padding: 14px 24px;
  font-size: 16px;
}

.nav-button {
  min-height: 38px;
  padding: 8px 14px;
}

.link-button {
  border: 0;
  background: transparent;
  padding: 0;
  min-height: auto;
  font: inherit;
}

.inline-form {
  display: inline;
}

.auth-panel,
.panel,
.hero-panel,
.empty-state,
.print-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: clamp(18px, 4vw, 30px);
  box-shadow: var(--shadow-sm);
}

.auth-panel {
  width: min(520px, 100%);
  margin: 40px auto;
}

.form-stack,
.settings-form {
  display: grid;
  gap: 14px;
}

.form-stack p,
.settings-form p {
  display: grid;
  gap: 6px;
  margin: 0;
}

.settings-field {
  display: grid;
  gap: 7px;
}

.settings-field label {
  color: var(--ink);
  font-weight: 800;
}

.field-help {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}

.settings-status-grid {
  display: grid;
  gap: 10px;
}

.settings-page {
  display: grid;
  gap: 18px;
}

.manage-page {
  position: relative;
  left: 50%;
  width: min(1320px, calc(100vw - 36px));
  transform: translateX(-50%);
}

.manage-page .manage-grid {
  grid-template-columns: minmax(0, 1fr) minmax(360px, 400px);
  gap: 20px;
  align-items: start;
  margin-bottom: 0;
}

.manage-page .hero-panel {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: clamp(24px, 3vw, 34px);
  border-color: rgba(42, 29, 40, 0.1);
  background: #fff;
  box-shadow: 0 18px 46px -34px rgba(42, 29, 40, 0.38);
}

.settings-overview-panel {
  align-self: start;
}

.manage-main-stack {
  display: grid;
  min-width: 0;
  gap: 18px;
}

.manage-side-stack {
  display: grid;
  width: 100%;
  gap: 16px;
  align-self: start;
  position: sticky;
  top: 88px;
}

.section-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.section-title-row.compact {
  align-items: flex-start;
}

.section-title-row h2 {
  margin: 0;
}

.settings-indicator-grid {
  display: grid;
  gap: 10px;
}

.settings-indicator-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
}

.settings-toggle-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  cursor: pointer;
}

.settings-toggle-copy {
  display: grid;
  gap: 3px;
}

.settings-toggle-copy strong {
  color: var(--ink);
}

.settings-toggle-copy small {
  color: var(--muted);
  line-height: 1.4;
}

.settings-toggle-input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
}

.settings-toggle-control {
  position: relative;
  display: inline-block;
  width: 54px;
  height: 30px;
  border-radius: 999px;
  background: #d8cfc5;
  transition: background 0.18s ease;
}

.settings-toggle-control::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 3px 10px rgba(42, 29, 40, 0.2);
  transition: transform 0.18s ease;
}

.settings-toggle-input:checked + .settings-toggle-control {
  background: var(--brand);
}

.settings-toggle-input:checked + .settings-toggle-control::after {
  transform: translateX(24px);
}

.settings-toggle-input:focus-visible + .settings-toggle-control {
  outline: 3px solid rgba(138, 47, 61, 0.22);
  outline-offset: 3px;
}

.settings-state {
  min-width: 86px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  text-align: center;
}

.settings-state.is-on {
  border-color: rgba(22, 101, 52, 0.18);
  background: rgba(22, 163, 74, 0.12);
  color: #166534;
}

.settings-state.is-off {
  border-color: rgba(180, 35, 24, 0.14);
  background: rgba(180, 35, 24, 0.07);
  color: var(--danger);
}

.errorlist {
  margin: 4px 0 0;
  padding-left: 18px;
  color: var(--danger);
  font-weight: 700;
}

.form-errors {
  padding: 10px 12px;
  border: 1px solid rgba(180, 35, 24, 0.18);
  border-radius: 12px;
  background: rgba(180, 35, 24, 0.08);
}

.form-note {
  margin: 18px 0 0;
  font-size: 14px;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 11px 12px;
  font: inherit;
  background: #fff;
}

.messages {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.message {
  border: 1px solid var(--blush);
  background: var(--blush-2);
  border-radius: 14px;
  padding: 12px;
}

.inline-success {
  margin: 2px 0 0;
  padding: 10px 12px;
  border: 1px solid rgba(22, 101, 52, 0.18);
  border-radius: 12px;
  background: rgba(22, 163, 74, 0.12);
  color: #166534;
  font-weight: 800;
}

.expiry-notice {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-top: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--blush-2);
}

.expiry-notice p {
  margin: 0;
  font-weight: 800;
}

.account-prompt {
  display: grid;
  gap: 12px;
  margin: 0 0 24px;
  border-color: rgba(138, 47, 61, 0.22);
  background:
    linear-gradient(135deg, rgba(246, 228, 223, 0.78), rgba(255, 255, 255, 0.96) 58%),
    #fff;
  box-shadow: 0 22px 50px -34px var(--brand-dark);
}

.account-prompt h2,
.account-prompt p {
  margin: 0;
}

.account-prompt .button {
  justify-self: start;
  margin-top: 4px;
}

.manage-account-prompt {
  margin: 0;
}

.gallery-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.help-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 0 0 24px;
}

.help-strip article {
  display: grid;
  gap: 6px;
  align-content: start;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.help-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 4px;
  border-radius: 12px;
  background: var(--blush-2);
  color: var(--brand);
}

.help-icon svg,
.gallery-card-icon svg,
.gallery-pill svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.help-strip strong {
  color: var(--brand-dark);
}

.help-strip article > span:not(.help-icon) {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.gallery-card,
.photo-admin-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  box-shadow: var(--shadow-sm);
}

.gallery-card {
  display: grid;
  gap: 14px;
  align-content: start;
}

.gallery-card-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.gallery-card-head h2 {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 24px;
}

.gallery-card-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(246, 228, 223, 0.94), rgba(255, 255, 255, 0.92)),
    var(--blush-2);
  color: var(--brand);
  box-shadow: inset 0 0 0 1px rgba(138, 47, 61, 0.12);
}

.gallery-card-icon svg {
  width: 24px;
  height: 24px;
}

.gallery-card-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.gallery-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.gallery-pill svg {
  width: 16px;
  height: 16px;
}

.gallery-pill.is-on {
  border-color: rgba(22, 101, 52, 0.18);
  background: rgba(22, 163, 74, 0.11);
  color: #166534;
}

.gallery-pill.is-off {
  border-color: rgba(180, 35, 24, 0.16);
  background: rgba(180, 35, 24, 0.07);
  color: var(--danger);
}

.gallery-expiry {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid rgba(180, 35, 24, 0.16);
  border-radius: 12px;
  background: rgba(180, 35, 24, 0.07);
  color: var(--danger);
  font-size: 13px;
  font-weight: 800;
}

.gallery-manage-button {
  width: 100%;
  min-height: 46px;
  justify-self: stretch;
  border-color: var(--brand);
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff;
  box-shadow: 0 14px 28px -16px var(--brand-dark);
}

.gallery-manage-button:hover {
  background: var(--brand-dark);
}

.gallery-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 22px 0 16px;
}

.gallery-metrics article {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.74);
}

.gallery-metrics span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.gallery-metrics strong {
  display: block;
  margin-top: 5px;
  color: var(--brand-dark);
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.08;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.eyebrow {
  color: var(--brand);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 12px;
}

.key-warning,
.danger-note {
  margin-top: 14px;
  color: var(--danger);
  font-weight: 700;
}

.key-warning.safe {
  color: #166534;
}

.key-recovery-form {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  padding: 14px;
  border: 1px solid rgba(138, 47, 61, 0.16);
  border-radius: 14px;
  background: var(--blush-2);
}

.key-recovery-form[hidden] {
  display: none;
}

.key-recovery-form .button {
  justify-self: start;
}

.danger-zone {
  border-color: rgba(180, 35, 24, 0.22);
}

.danger-zone h2 {
  color: var(--danger);
}

.danger-zone form {
  margin-top: 12px;
}

.gallery-danger-zone,
.account-danger-zone {
  margin-top: 24px;
}

.manage-main-stack .gallery-danger-zone {
  margin-top: 0;
}

.confirm-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  place-items: center;
  padding: 18px;
}

.confirm-modal[aria-hidden="false"] {
  display: grid;
}

.confirm-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(28, 20, 27, 0.62);
}

.confirm-dialog {
  position: relative;
  z-index: 1;
  width: min(460px, 100%);
  padding: 22px;
  border: 1px solid rgba(180, 35, 24, 0.2);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 24px 70px -28px rgba(28, 20, 27, 0.55);
}

.confirm-dialog h2 {
  margin: 0 0 8px;
  color: var(--danger);
  font-size: clamp(24px, 6vw, 34px);
}

.confirm-dialog p {
  margin: 0;
}

.confirm-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

.download-status {
  min-height: 22px;
  margin: 10px 0 0;
  color: var(--muted);
  font-weight: 700;
}

.photo-admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 360px));
  justify-content: center;
  gap: 24px;
}

.photo-empty-placeholder {
  grid-column: 1 / -1;
  margin: 0;
  padding: 18px;
  border: 1px dashed var(--blush);
  border-radius: 14px;
  background: var(--blush-2);
  color: var(--brand-dark);
  font-weight: 800;
  line-height: 1.55;
}

.photo-admin-card {
  display: grid;
  gap: 18px;
  align-content: start;
  width: 100%;
  padding: clamp(16px, 3vw, 24px);
}

.photo-page-loader {
  grid-column: 1 / -1;
  padding: 14px;
  border: 1px dashed var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--muted);
  text-align: center;
  font-weight: 800;
}

.admin-photo-preview {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper-2);
  color: var(--muted);
  text-align: center;
  font-size: 13px;
  font-weight: 700;
}

.admin-photo-preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  background: var(--paper-2);
}

.admin-photo-meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.guest-app {
  display: grid;
  gap: 18px;
}

.guest-header {
  padding: 28px 0 6px;
}

.guest-admin-button {
  margin: 4px 0 10px;
}

.upload-panel {
  display: grid;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
}

.file-drop {
  display: grid;
  place-items: center;
  min-height: 150px;
  border: 2px dashed var(--blush);
  border-radius: 18px;
  background: var(--blush-2);
  font-weight: 800;
}

.file-drop input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
}

.queue {
  display: grid;
  gap: 8px;
}

.guest-limit {
  display: inline-flex;
  margin: 6px 0 0;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.guest-limit:empty,
.guest-limit[hidden] {
  display: none;
}

.guest-limit.is-full {
  border-color: rgba(180, 35, 24, 0.24);
  background: rgba(180, 35, 24, 0.08);
  color: var(--danger);
}

.queue-item {
  padding: 10px 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.guest-download-all {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(31, 111, 86, 0.16);
  border-radius: 14px;
  background: rgba(31, 111, 86, 0.07);
}

.guest-download-all[hidden] {
  display: none;
}

.guest-download-all .button {
  flex: 0 0 auto;
}

.guest-zip-status {
  margin: 0;
  color: #174b3e;
  font-size: 14px;
  font-weight: 800;
  text-align: right;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 8px;
}

.guest-private-notice {
  grid-column: 1 / -1;
  padding: 18px;
  border: 1px solid rgba(138, 47, 61, 0.22);
  border-radius: 8px;
  background: #fff;
  color: var(--brand-dark);
  font-size: 18px;
  font-weight: 900;
  box-shadow: var(--shadow-sm);
}

.photo-thumb {
  display: block;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.photo-thumb img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.photo-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  place-items: stretch;
  padding: 0;
  background:
    radial-gradient(circle at 50% 35%, rgba(255, 255, 255, 0.08), transparent 38%),
    #100b0f;
}

.photo-lightbox[aria-hidden="false"] {
  display: grid;
}

.lightbox-open,
.modal-open {
  overflow: hidden;
}

.photo-lightbox-inner {
  position: relative;
  overflow: hidden;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  color: #fff;
}

.photo-lightbox-top {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: calc(env(safe-area-inset-top) + 14px) 16px 44px;
  background: linear-gradient(rgba(0, 0, 0, 0.58), transparent);
  pointer-events: none;
}

.photo-lightbox-top > * {
  pointer-events: auto;
}

.photo-lightbox-top span {
  color: rgba(255, 255, 255, 0.78);
  font-weight: 800;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.65);
}

.photo-lightbox-stage {
  position: absolute;
  inset: 0;
  display: block;
  min-height: 0;
}

.photo-lightbox-image {
  box-sizing: border-box;
  display: grid;
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 76px 104px 112px;
  place-items: center;
}

.photo-lightbox-image img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  border-radius: 10px;
  object-fit: contain;
  box-shadow: 0 34px 90px -52px rgba(0, 0, 0, 0.9);
}

.icon-button {
  display: inline-grid;
  place-items: center;
  min-width: 44px;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(16, 11, 15, 0.48);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  backdrop-filter: blur(12px);
}

.nav-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 56px;
  height: 56px;
  min-width: 56px;
  min-height: 56px;
  padding: 0;
  font-size: 44px;
  transform: translateY(-50%);
}

[data-lightbox-prev] {
  left: max(28px, env(safe-area-inset-left));
}

[data-lightbox-next] {
  right: max(28px, env(safe-area-inset-right));
}

.photo-lightbox-actions {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 3;
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  padding: 54px 16px calc(env(safe-area-inset-bottom) + 18px);
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.58));
  pointer-events: none;
}

.photo-lightbox-actions .button {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  backdrop-filter: blur(12px);
  pointer-events: auto;
}

.photo-lightbox-actions .button.primary {
  border-color: rgba(180, 82, 91, 0.75);
  background: rgba(180, 82, 91, 0.88);
}

.photo-lightbox-actions .button.danger {
  border-color: rgba(248, 113, 113, 0.72);
  background: rgba(127, 29, 29, 0.72);
  color: #fff;
}

.photo-lightbox-status {
  position: absolute;
  right: 16px;
  bottom: calc(env(safe-area-inset-bottom) + 82px);
  left: 16px;
  z-index: 4;
  min-height: 22px;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  text-align: center;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.75);
  pointer-events: none;
}

.qr-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 22px;
  align-items: start;
}

.qr-poster-card {
  position: relative;
  overflow: hidden;
  min-height: 680px;
  padding: clamp(26px, 5vw, 48px);
  border: 1px solid rgba(42, 29, 40, 0.1);
  border-radius: 18px;
  background: #fff;
  text-align: center;
  box-shadow: 0 24px 58px -38px rgba(42, 29, 40, 0.45);
}

.qr-poster-card::before {
  content: "";
  position: absolute;
  inset: 16px;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  pointer-events: none;
}

.qr-poster-brand {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.qr-poster-card h1 {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  margin: 8px auto 12px;
  font-size: clamp(34px, 5vw, 54px);
}

.qr-poster-custom {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  margin: 0 auto 20px;
  color: var(--brand-dark);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.55;
}

.qr-poster-custom.after {
  margin-top: 22px;
  margin-bottom: 10px;
}

.qr-poster-footnote {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  margin: 18px auto 0;
  color: var(--muted);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.45;
}

.qr-box {
  position: relative;
  z-index: 1;
  display: grid;
  justify-content: center;
  gap: 8px;
  margin: 26px 0;
}

.qr-box canvas {
  width: min(340px, 74vw);
  height: auto;
  border: 12px solid #fff;
  border-radius: 14px;
  box-shadow: 0 18px 42px -30px rgba(42, 29, 40, 0.55), 0 0 0 1px var(--line);
}

.manage-qr-card {
  position: relative;
  display: grid;
  gap: 16px;
  padding: clamp(18px, 3vw, 24px);
  border-color: rgba(42, 29, 40, 0.1);
  background: #fff;
  box-shadow: 0 18px 46px -34px rgba(42, 29, 40, 0.38);
}

.manage-qr-card .eyebrow {
  margin: 0 0 4px;
}

.manage-qr-card .section-title-row {
  margin-bottom: 0;
}

.manage-qr-layout {
  display: grid;
  gap: 16px;
  align-items: stretch;
}

.manage-qr-box {
  position: relative;
  display: grid;
  min-height: 0;
  place-items: center;
  padding: 6px 0 8px;
}

.manage-qr-box canvas {
  width: min(180px, 100%);
  height: auto;
  border: 10px solid #fff;
  border-radius: 14px;
  box-shadow: 0 14px 32px -24px rgba(42, 29, 40, 0.52), 0 0 0 1px var(--line);
}

.manage-qr-copy {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.manage-qr-copy .copy-row.stacked {
  margin: 0;
}

.manage-qr-copy .secure-link-preview {
  background: #faf7f2;
}

.manage-qr-actions {
  margin: 0;
}

.manage-qr-actions .button {
  min-height: 38px;
  padding: 8px 12px;
  flex: 1 1 104px;
  white-space: nowrap;
}

.manage-qr-actions .button.primary {
  box-shadow: 0 12px 26px -16px var(--brand-dark);
}

.qr-share-panel {
  display: grid;
  gap: 14px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.qr-share-panel h2 {
  margin-bottom: 0;
}

.qr-share-panel p {
  margin: 0;
  line-height: 1.55;
}

.qr-text-form {
  display: grid;
  gap: 14px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
}

.qr-text-form .button {
  justify-self: start;
}

.copy-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: end;
}

.copy-row span {
  grid-column: 1 / -1;
  color: var(--ink);
  font-weight: 900;
}

.copy-row input,
.copy-row textarea {
  min-width: 0;
  font-size: 13px;
}

.secure-link-preview {
  min-width: 0;
  overflow: hidden;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(246, 228, 223, 0.42), rgba(255, 255, 255, 0.96)),
    #fff;
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.secure-link-preview.large {
  padding: 13px 14px;
  font-size: 14px;
}

.secure-link-preview.full {
  overflow-wrap: anywhere;
  text-overflow: clip;
  white-space: normal;
}

.copy-row.stacked {
  grid-template-columns: 1fr;
  margin-top: 12px;
}

.qr-link-details {
  padding: 12px 0 0;
  border-top: 1px solid var(--line-soft);
}

.qr-link-details summary {
  cursor: pointer;
  color: var(--brand);
  font-weight: 900;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 34px clamp(16px, 4vw, 42px);
  color: var(--muted);
}

.footer-inner {
  width: min(1120px, 100%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  font-size: 14px;
}

.landing-hero {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 56px;
  align-items: center;
  padding: 50px 0 70px;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  padding: 7px 14px;
  border: 1px solid var(--blush);
  border-radius: 999px;
  background: var(--blush-2);
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.kicker span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand);
}

.kicker.compact {
  margin-bottom: 12px;
}

.landing-hero h1 {
  max-width: 12ch;
  font-size: clamp(42px, 6.4vw, 72px);
}

.hero-italic {
  display: inline-block;
  color: var(--brand);
  font-style: italic;
  font-weight: 400;
}

.lead {
  max-width: 32ch;
  margin: 24px 0 32px;
  font-size: 19.5px;
  color: var(--muted);
}

.hero-actions,
.trust-row {
  display: flex;
  gap: 13px;
  flex-wrap: wrap;
  align-items: center;
}

.trust-row {
  margin-top: 32px;
}

.trust-chip {
  min-width: 136px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.trust-chip b {
  display: block;
  font-size: 22px;
  line-height: 1;
  white-space: nowrap;
}

.trust-chip span {
  color: var(--muted);
  font-size: 12px;
}

.keepsake-stage {
  position: relative;
  display: flex;
  min-height: 460px;
  align-items: center;
  justify-content: center;
}

.keepsake-stage::before {
  content: "";
  position: absolute;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(235, 203, 197, 0.9), transparent 65%);
}

.sample-photo {
  position: absolute;
  z-index: 1;
  width: 190px;
  height: 150px;
  overflow: hidden;
  border: 6px solid #fff;
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.sample-photo::after {
  content: attr(data-caption);
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 16px 10px 7px;
  color: #fff;
  font-size: 12px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.42));
}

.sample-photo-a {
  transform: rotate(-10deg) translate(-100px, -66px);
  background: linear-gradient(135deg, #caa4a0, var(--brand));
}

.sample-photo-b {
  transform: rotate(9deg) translate(104px, -40px);
  background: linear-gradient(135deg, #e0cc9c, var(--gold));
}

.sample-photo-c {
  transform: rotate(6deg) translate(72px, 100px);
  background: linear-gradient(135deg, #a6b596, var(--sage));
}

.keepsake-card {
  position: relative;
  z-index: 3;
  width: 285px;
  padding: 26px 24px 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  text-align: center;
  box-shadow: 0 40px 90px -40px rgba(42, 29, 40, 0.5);
  transform: rotate(-2deg);
}

.scan-seal {
  position: absolute;
  top: -17px;
  right: -14px;
  display: grid;
  place-items: center;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-soft));
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.15;
  transform: rotate(12deg);
}

.keepsake-small {
  color: var(--gold);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.keepsake-title {
  margin-top: 6px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30px;
  font-style: italic;
}

.fake-qr {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 5px;
  width: 150px;
  height: 150px;
  margin: 16px auto 12px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.fake-qr span {
  background: var(--ink);
  border-radius: 2px;
}

.fake-qr span:nth-child(3n) {
  background: transparent;
}

.keepsake-card p {
  margin: 0;
  font-size: 13px;
}

.landing-section {
  padding: 74px 0;
}

.section-head {
  max-width: 650px;
  margin: 0 auto 44px;
  text-align: center;
}

.section-head p {
  margin: 0 0 12px;
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section-head h2 {
  font-size: clamp(30px, 4.2vw, 46px);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.step-card {
  position: relative;
  padding: 30px 26px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.step-card span {
  display: grid;
  place-items: center;
  position: absolute;
  top: 18px;
  right: 18px;
  min-width: 42px;
  height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(138, 47, 61, 0.16);
  border-radius: 999px;
  background: rgba(246, 228, 223, 0.72);
  color: var(--brand);
  font-size: 13px;
  font-weight: 900;
}

.step-card h3 {
  max-width: calc(100% - 54px);
  margin: 0 0 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
}

.step-card p {
  margin: 0;
}

.event-band {
  margin-inline: calc(50% - 50vw);
  padding-top: 68px;
  padding-bottom: 78px;
  padding-inline: max(16px, calc((100vw - 1120px) / 2));
  background: linear-gradient(180deg, var(--paper-2), var(--paper));
}

.event-band .section-head {
  margin-bottom: 30px;
}

.event-type-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.event-type-card {
  display: grid;
  gap: 12px;
  align-content: start;
  margin: 0;
  min-height: 254px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.event-type-card h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 21px;
}

.event-type-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.event-graphic {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border-radius: 18px;
  color: var(--brand-dark);
}

.event-graphic svg {
  width: 48px;
  height: 48px;
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.event-cabin .event-graphic {
  background: #e6f0e2;
  color: #37583f;
}

.event-party .event-graphic {
  background: #f6e4df;
  color: #8a2f3d;
}

.event-camp .event-graphic {
  background: #f1e7c7;
  color: #7b6428;
}

.event-parents .event-graphic {
  background: #e4edf4;
  color: #2f566b;
}

.event-work .event-graphic {
  background: #ebe7f2;
  color: #51436a;
}

.event-family .event-graphic {
  background: #f3e2e8;
  color: #7b3653;
}

.event-trip .event-graphic {
  background: #e2eee9;
  color: #315c50;
}

.event-community .event-graphic {
  background: #f0e7dc;
  color: #76563b;
}

.tile-wine {
  background: linear-gradient(135deg, #caa4a0, var(--brand));
}

.tile-gold {
  background: linear-gradient(135deg, #e0cc9c, var(--gold));
}

.tile-sage {
  background: linear-gradient(135deg, #a6b596, var(--sage));
}

.tile-blush {
  background: linear-gradient(135deg, #f3ded9, #d3a29c);
}

.tile-ink {
  background: linear-gradient(135deg, #6b5563, var(--ink));
}

.landing-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow);
}

.landing-cta h2 {
  max-width: 16ch;
  font-size: clamp(28px, 4vw, 42px);
}

.landing-cta p:not(.kicker) {
  max-width: 58ch;
}

.doc-page {
  width: min(820px, 100%);
  margin: 34px auto 70px;
  padding: clamp(26px, 5vw, 48px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow);
}

.join-panel {
  width: min(580px, 100%);
  margin: 48px auto 76px;
  padding: clamp(28px, 5vw, 46px);
  border: 1px solid var(--line);
  border-radius: 26px;
  background: #fff;
  box-shadow: var(--shadow);
}

.join-panel h1 {
  font-size: clamp(34px, 5vw, 48px);
}

.join-subtitle,
.join-note {
  line-height: 1.65;
}

.join-form {
  display: grid;
  gap: 16px;
  margin: 28px 0 18px;
}

.join-form label {
  display: grid;
  gap: 8px;
  font-weight: 800;
}

.join-form input {
  font-size: 16px;
}

.form-error {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid rgba(180, 35, 24, 0.24);
  border-radius: 12px;
  background: rgba(180, 35, 24, 0.08);
  color: var(--danger);
  font-weight: 800;
}

.doc-page h1 {
  font-size: clamp(32px, 5vw, 46px);
}

.doc-page h2 {
  margin-top: 34px;
  font-size: 23px;
}

.doc-page h3 {
  margin: 20px 0 8px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  font-weight: 800;
}

.doc-page p {
  line-height: 1.7;
}

.doc-page ul,
.doc-page ol {
  margin: 0 0 16px;
  padding-left: 22px;
  color: var(--muted);
  line-height: 1.7;
}

.doc-page li {
  margin-bottom: 7px;
}

.doc-page table {
  width: 100%;
  margin: 14px 0 20px;
  border-collapse: collapse;
  font-size: 14px;
}

.doc-page th,
.doc-page td {
  padding: 10px 12px;
  border: 1px solid var(--line);
  color: var(--muted);
  text-align: left;
  vertical-align: top;
}

.doc-page th {
  background: var(--blush-2);
  color: var(--ink);
  font-weight: 800;
}

.doc-page a {
  color: var(--brand);
  font-weight: 800;
}

.doc-updated {
  margin-top: 4px;
  font-size: 14px;
}

.legal-note {
  margin: 22px 0;
  padding: 14px 16px;
  border: 1px solid var(--blush);
  border-radius: 14px;
  background: var(--blush-2);
  color: var(--brand-dark);
  font-weight: 700;
}

.legal-doc {
  width: min(800px, 100%);
  margin-top: 44px;
}

.form-box {
  margin: 14px 0 18px;
  padding: 18px 20px;
  border: 1px dashed var(--brand-soft);
  border-radius: 12px;
  background: var(--paper);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.faq-hero {
  padding: 48px 0 28px;
  text-align: center;
}

.faq-eye {
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.faq-hero h1 {
  margin: 14px 0 10px;
  font-size: clamp(34px, 5vw, 50px);
  font-weight: 500;
}

.faq-hero p {
  max-width: 36ch;
  margin: 0 auto;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

.faq-list {
  width: min(820px, 100%);
  margin: 0 auto;
  padding: 20px 0 80px;
}

.faq-list details {
  margin-bottom: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  transition: box-shadow 0.2s ease;
}

.faq-list details[open] {
  box-shadow: 0 18px 46px -28px rgba(42, 29, 40, 0.4);
}

.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  cursor: pointer;
  font-size: 16.5px;
  font-weight: 800;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-plus {
  display: grid;
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 1px solid var(--blush);
  border-radius: 50%;
  background: var(--blush-2);
  color: var(--brand);
  font-size: 16px;
  line-height: 1;
  transition: transform 0.2s ease;
}

.faq-list details[open] .faq-plus {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 24px 22px;
}

.faq-answer p {
  margin: 0 0 10px;
  color: var(--muted);
  line-height: 1.7;
}

.faq-answer a {
  color: var(--brand);
  font-weight: 800;
}

.faq-cta {
  margin: 28px 0 0;
  padding: 40px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--brand-dark), var(--brand));
  color: #fff;
  text-align: center;
}

.faq-cta h2 {
  margin-bottom: 10px;
  color: #fff;
  font-size: 28px;
  font-weight: 500;
}

.faq-cta p {
  max-width: 44ch;
  margin: 0 auto 20px;
  color: rgba(255, 255, 255, 0.86);
}

.faq-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 28px;
  border-radius: 999px;
  background: #fff;
  color: var(--brand);
  font-weight: 800;
  text-decoration: none;
}

@media (max-width: 960px) {
  .manage-page {
    left: auto;
    width: 100%;
    transform: none;
  }

  .manage-page .manage-grid {
    grid-template-columns: 1fr;
  }

  .manage-side-stack {
    position: static;
  }

  .manage-qr-layout {
    grid-template-columns: 1fr;
  }

  .manage-qr-box canvas {
    width: min(180px, 100%);
  }
}

@media (max-width: 720px) {
  .toolbar,
  .manage-grid,
  .qr-page,
  .landing-hero,
  .steps-grid,
  .help-strip {
    grid-template-columns: 1fr;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .manage-page {
    left: auto;
    width: 100%;
    transform: none;
  }

  .manage-page .manage-grid {
    grid-template-columns: 1fr;
  }

  .manage-main-stack {
    gap: 16px;
  }

  nav {
    width: 100%;
    flex-wrap: wrap;
  }

  .landing-hero {
    gap: 20px;
    padding-top: 28px;
  }

  .landing-hero h1 {
    max-width: none;
  }

  .keepsake-stage {
    min-height: 390px;
  }

  .event-type-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .landing-cta {
    align-items: flex-start;
    flex-direction: column;
  }

  .gallery-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .guest-download-all {
    align-items: flex-start;
    flex-direction: column;
  }

  .guest-zip-status {
    text-align: left;
  }

  .section-title-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .settings-indicator-row {
    grid-template-columns: 1fr;
  }

  .manage-side-stack {
    width: 100%;
  }

  .manage-qr-layout {
    grid-template-columns: 1fr;
  }

  .manage-qr-box canvas {
    width: min(176px, 100%);
  }

  .settings-toggle-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .settings-toggle-control {
    grid-column: 2;
    grid-row: 1 / span 2;
  }

  .settings-state {
    grid-column: 1 / -1;
    width: fit-content;
  }

  .qr-poster-card {
    min-height: auto;
  }

  .copy-row {
    grid-template-columns: 1fr;
  }

  .photo-lightbox-top {
    padding-inline: 12px;
  }

  .photo-lightbox-image {
    padding: 0;
  }

  .photo-lightbox-image img {
    border-radius: 0;
    box-shadow: none;
  }

  .nav-arrow {
    width: 46px;
    height: 46px;
    min-width: 46px;
    min-height: 46px;
    font-size: 36px;
  }

  [data-lightbox-prev] {
    left: max(12px, env(safe-area-inset-left));
  }

  [data-lightbox-next] {
    right: max(12px, env(safe-area-inset-right));
  }

  .photo-lightbox-actions {
    flex-wrap: wrap;
    padding-inline: 12px;
  }

  .photo-lightbox-actions .button {
    min-height: 40px;
    padding: 8px 12px;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media print {
  .topbar,
  .no-print,
  .messages {
    display: none;
  }

  body {
    background: #fff;
  }

  .print-card {
    border: 0;
  }

  .page {
    width: 100%;
    padding: 0;
  }

  .qr-page {
    display: block;
  }

  .qr-poster-card {
    min-height: 100vh;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
}
