:root {
  --gold: #F5A623;
  --gold-hover: #f0c050;
  --black: #0A0A0A;
  --card: #141414;
  --text: #FFFFFF;
  --text-muted: rgba(255, 255, 255, 0.62);
  --line: rgba(255, 255, 255, 0.1);
  --content-max: 720px;
  --page-gutter: 40px;
  --radius: 4px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  min-height: 100vh;
  background: var(--black);
  color: var(--text);
  font-family: 'Barlow', sans-serif;
  font-size: 18px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

main {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 18vh var(--page-gutter) 64px;
}

p.kicker {
  font-family: 'Barlow Condensed', sans-serif;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  font-size: 14px;
  font-weight: 600;
}

h1 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: clamp(48px, 8vw, 84px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin: 12px 0 20px;
  text-transform: uppercase;
}

.logo {
  display: block;
  margin: 0 0 28px;
  line-height: 0;
}

.logo img {
  display: block;
  width: min(100%, 440px);
  height: auto;
}

p.lede {
  color: var(--text-muted);
  max-width: 38ch;
}

a {
  color: var(--gold);
}

a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.stripe {
  height: 8px;
  background: repeating-linear-gradient(
    -45deg,
    var(--gold),
    var(--gold) 12px,
    var(--black) 12px,
    var(--black) 24px
  );
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--gold);
  color: var(--black);
  padding: 10px 16px;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
}

.skip-link:focus {
  left: 12px;
  top: 12px;
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-nav-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.nav-brand-logo {
  height: 42px;
  width: auto;
  display: block;
}

.nav-brand-copy {
  display: flex;
  flex-direction: column;
}

.nav-brand-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  line-height: 1;
}

.nav-brand-tagline {
  margin-top: 3px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.52);
}

.site-nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
}

.site-nav-link {
  color: rgba(255, 255, 255, 0.65);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
}

.site-nav-link:hover,
.site-nav-link[aria-current="page"] {
  color: #fff;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-left: auto;
  padding: 0;
  border: 1px solid var(--line);
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.nav-toggle-icon,
.nav-toggle-icon::before,
.nav-toggle-icon::after {
  display: block;
  width: 18px;
  height: 2px;
  background: #fff;
  position: relative;
}

.nav-toggle-icon::before,
.nav-toggle-icon::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-icon::before {
  top: -6px;
}

.nav-toggle-icon::after {
  top: 6px;
}

.site-nav.is-open .nav-toggle-icon {
  background: transparent;
}

.site-nav.is-open .nav-toggle-icon::before {
  top: 0;
  transform: rotate(45deg);
}

.site-nav.is-open .nav-toggle-icon::after {
  top: 0;
  transform: rotate(-45deg);
}

.nav-drop {
  position: relative;
}

.nav-drop-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  padding: 10px 0;
  background: #141414;
  border: 1px solid var(--line);
  z-index: 2;
}

.nav-drop:hover .nav-drop-menu,
.nav-drop:focus-within .nav-drop-menu {
  display: grid;
}

.nav-drop-menu a {
  padding: 8px 14px;
  color: rgba(255, 255, 255, 0.78);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
}

.nav-drop-menu a:hover {
  color: var(--gold);
}

.crumbs {
  margin: 0 0 18px;
}

.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  color: var(--text-muted);
  font-size: 14px;
}

.crumbs li:not(:last-child)::after {
  content: "/";
  margin-left: 8px;
  color: rgba(255, 255, 255, 0.35);
}

.crumbs a {
  color: var(--gold);
}

.site-foot-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: 22px;
}

.site-foot-grid h2 {
  margin: 0 0 8px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-foot-grid a {
  display: block;
  margin: 4px 0;
  color: var(--text-muted);
}

.hire-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 8px 0 22px;
}

.hire-grid article {
  padding: 16px;
  background: var(--card);
  border: 1px solid var(--line);
}

.hire-grid h2 {
  margin-bottom: 8px;
  font-size: 28px;
}

.plain-list {
  margin: 8px 0 22px 18px;
}

.pickup-note {
  margin-top: 28px;
}

.home-cover {
  display: block;
  margin: 0 0 20px;
  background: var(--card);
  aspect-ratio: 16 / 9;
  max-height: 52vh;
  overflow: hidden;
}

.home-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.license-note {
  margin: 0 0 22px;
  max-width: 68ch;
  padding: 12px 14px;
  border-left: 4px solid var(--gold);
  background: var(--card);
  color: rgba(255, 255, 255, 0.78);
  font-size: 15px;
}

.site-foot {
  margin-top: 28px;
}

.site-foot-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 22px 20px 40px;
  color: var(--text-muted);
  font-size: 14px;
}

.site-foot-inner p + p {
  margin-top: 8px;
}

.site-foot a {
  color: var(--gold);
}

.site-foot-legal {
  display: flex;
  gap: 16px;
  margin-top: 10px;
}

.site-foot-legal a {
  display: inline;
  margin: 0;
}

body.staff {
  --content-max: 1120px;
  --line: rgba(255, 255, 255, 0.12);
  color-scheme: dark;
}

body.staff main.dash {
  max-width: 1120px;
  padding: 16px var(--page-gutter) 72px;
}

body.staff h1 {
  font-size: clamp(40px, 6vw, 64px);
  margin: 8px 0 0;
}

body.gallery {
  --content-max: 1120px;
  --line: rgba(255, 255, 255, 0.12);
  color-scheme: dark;
}

body.gallery main {
  max-width: 1240px;
  padding: 28px 20px 48px;
}

body.gallery h1 {
  font-size: clamp(40px, 6vw, 72px);
  margin: 4px 0 8px;
}

body.gallery .lede {
  margin-bottom: 24px;
}

body.staff .logo,
body.gallery .logo {
  margin: 0 0 10px;
}

body.staff .logo img,
body.gallery .logo img {
  width: 148px;
  height: auto;
}

.album-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 28px 20px;
}

.album-card {
  color: inherit;
  text-decoration: none;
  display: block;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.album-card:hover {
  border-color: var(--gold);
}

.album-card img,
.album-card .thumb-empty {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  display: block;
  background: #141414;
}

.album-card h2,
.album-card h3 {
  margin: 14px 14px 0;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 0.95;
  text-transform: uppercase;
}

.album-card p {
  margin: 6px 14px 14px;
  color: var(--text-muted);
}

.catalog-section + .catalog-section {
  margin-top: 36px;
}

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

.catalog-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
}

.catalog-card h3 {
  margin: 0;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 0.95;
  text-transform: uppercase;
}

.catalog-size,
.catalog-price {
  margin: 8px 0 0;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.catalog-price {
  color: var(--gold);
}

.catalog-card p:last-child {
  margin: 10px 0 0;
  color: var(--text-muted);
}

.bib-search-wrap,
.bib-results {
  margin: 0 0 36px;
}

.bib-search-wrap h2,
.bib-results h2,
.events-heading {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 28px;
  letter-spacing: -0.02em;
  line-height: 1;
  text-transform: uppercase;
  margin: 0 0 14px;
}

.events-heading {
  margin-top: 8px;
}

.bib-search,
.bib-search.finder {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px 16px;
  align-items: end;
  max-width: 820px;
}

.bib-search label[hidden] {
  display: none;
}

.checks {
  border: 0;
  margin: 14px 0 8px;
  padding: 0;
}

.checks legend {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.bib-search label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.bib-search select,
.bib-search input {
  width: 100%;
  min-height: 48px;
  background: var(--black);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
  font-family: 'Barlow', sans-serif;
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

.bib-search select:focus-visible,
.bib-search input:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.bib-search .btn {
  margin: 0;
  width: 100%;
  min-height: 48px;
  justify-content: center;
  font-size: 18px;
}

.pickup-text-wrap {
  max-width: 36rem;
}

.pickup-text {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.pickup-text label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.pickup-text input[type="text"],
.pickup-text input[type="email"],
.pickup-text input[type="tel"],
.pickup-text select,
.pickup-text textarea {
  width: 100%;
  min-height: 48px;
  background: var(--black);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
  font-family: 'Barlow', sans-serif;
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

.pickup-text textarea {
  min-height: 140px;
  resize: vertical;
}

.pickup-text input:focus-visible,
.pickup-text select:focus-visible,
.pickup-text textarea:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.pickup-text .consent-copy {
  margin: 0;
  font-size: 16px;
  line-height: 1.45;
}

.pickup-text .consent {
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
  font-family: 'Barlow', sans-serif;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1.45;
}

.pickup-text .consent input {
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.2rem;
  flex: 0 0 auto;
  accent-color: var(--gold);
}

.pickup-text .btn {
  justify-self: start;
}

.form-note {
  color: var(--gold);
}

.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.bib-results .lede {
  max-width: 68ch;
  margin-bottom: 16px;
}

@media (min-width: 800px) {
  .bib-search {
    grid-template-columns: minmax(0, 1.6fr) minmax(8rem, 0.7fr) auto;
  }

  .bib-search.finder {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }

  .bib-search .btn {
    width: auto;
  }

  .site-foot-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .hire-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.stage {
  margin: 8px 0 24px;
}

.stage img {
  display: block;
  width: 100%;
  height: auto;
  background: #141414;
}

.photo-grid a,
.photo-tile {
  color: inherit;
  text-decoration: none;
}

.photo-tile {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  cursor: pointer;
}

.photo-tile:hover img,
.photo-grid figure.is-selected .photo-tile img {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.stage-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.stage-nav a {
  text-decoration: none;
}

.stage-count,
.shadowbox-count {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.stage figcaption,
.shadowbox-caption {
  margin-top: 10px;
  color: var(--text-muted);
}

.stage img {
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
}

.download-form {
  margin-top: 8px;
}

.download-email {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 8px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.download-email input {
  width: 100%;
  background: var(--black);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 12px;
  font-family: 'Barlow', sans-serif;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

.download-email input:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.download-list {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  margin-top: 8px;
}

.download-list .btn,
.shadowbox-drawer .btn:not(.shadowbox-close) {
  width: 100%;
  margin: 0 0 8px;
}

.watermark-note,
.purchase-status {
  margin: 4px 0 14px;
  color: var(--text-muted);
  font-size: 15px;
}

.purchase-status:empty {
  display: none;
}

.grant-list {
  margin: 12px 0 18px;
  padding-left: 18px;
}

.grant-list li + li {
  margin-top: 6px;
}

.photo-grid figure.is-selected img {
  outline: 1px solid var(--gold);
  outline-offset: 3px;
}

body.gallery .btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 8px 8px 0;
  background: var(--gold);
  color: var(--black);
  border: 0;
  border-radius: var(--radius);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 10px 14px;
  cursor: pointer;
  text-decoration: none;
}

@media (hover: hover) and (pointer: fine) {
  body.gallery .btn:hover {
    background: var(--gold-hover);
  }

  body.gallery .btn.quiet:hover {
    border-color: var(--gold);
    background: transparent;
  }

  .shadowbox-arrow:hover {
    background: var(--gold);
    color: var(--black);
  }
}

body.gallery .btn:disabled {
  opacity: 0.6;
  cursor: wait;
}

body.gallery .btn.quiet {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--line);
}

body.gallery .btn.quiet.is-on {
  border-color: var(--gold);
  background: transparent;
}

body.gallery .btn.quiet.is-on {
  background: rgba(245, 166, 35, 0.16);
}

body.gallery .btn[hidden],
.shadowbox-arrow[hidden],
#inline-stage[hidden],
.shadowbox[hidden] {
  display: none;
}

body.gallery .btn:focus-visible,
.shadowbox-arrow:focus-visible,
.photo-tile:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.buy {
  margin: 16px 0 28px;
}

.buy-note {
  margin-top: 8px;
  color: var(--text-muted);
}

.preview-buy-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
}

.preview-buy-actions .btn {
  width: 100%;
  margin: 0;
  text-align: center;
  text-decoration: none;
}

.account-form {
  max-width: 420px;
}

.account-form .btn {
  margin-top: 12px;
}

.account-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.account-photo {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.account-photo img {
  width: 100%;
  height: auto;
  background: var(--card);
}

.account-photo .btn {
  width: 100%;
}

@media (max-width: 640px) {
  .account-photo {
    grid-template-columns: 1fr;
  }
}

.cart-line {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.cart-line img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  background: #141414;
  display: block;
}

.cart-line p {
  color: var(--text-muted);
}

.cart-total {
  margin: 18px 0 8px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 28px;
  font-weight: 700;
}

.dash-bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 36px;
}

.dash-who {
  color: var(--text-muted);
  text-align: right;
  margin-bottom: 6px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 36px;
}

.stat {
  padding: 18px 0 16px;
}

.stat + .stat {
  padding-left: 20px;
  border-left: 1px solid var(--line);
}

.stat-value {
  display: block;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 0.9;
  color: var(--gold);
}

.stat-label {
  display: block;
  margin-top: 8px;
  color: var(--text-muted);
  font-size: 16px;
}

.dash-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(260px, 0.8fr);
  gap: 28px;
  align-items: start;
  margin-bottom: 28px;
}

.panel h2 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.panel-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

body.staff .panel-actions form {
  margin: 0;
}

body.staff .panel-actions button.quiet {
  margin-top: 0;
}

body.staff button.quiet.danger {
  color: #ff8d8d;
}

.panel-head h2 {
  margin-bottom: 0;
}

a.sync-link {
  display: inline-block;
  border: 1px solid var(--gold);
  color: var(--gold);
  padding: 8px 14px;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}

a.sync-link:hover {
  background: var(--gold);
  color: var(--black);
}

.panel + .panel {
  margin-top: 8px;
}

.empty {
  color: var(--text-muted);
  max-width: 42ch;
}

.table-wrap {
  overflow-x: auto;
}

body.staff table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 16px;
}

body.staff th {
  text-align: left;
  font-weight: 500;
  color: var(--text-muted);
  padding: 0 16px 10px 0;
  border-bottom: 1px solid var(--line);
}

body.staff td {
  padding: 14px 16px 14px 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

body.staff td.num,
body.staff th.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.sub {
  display: block;
  color: var(--text-muted);
  font-size: 14px;
  margin-top: 2px;
}

body.staff form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

body.staff label {
  margin-top: 8px;
  color: var(--text-muted);
  font-size: 15px;
}

body.staff label.check {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px 0 8px;
  color: var(--text);
}

body.staff input[type="text"],
body.staff input[type="date"],
body.staff input[type="number"],
body.staff textarea,
body.staff input:not([type="checkbox"]) {
  width: 100%;
  background: var(--black);
  color: var(--text);
  border: 1px solid var(--line);
  padding: 10px 12px;
  font: inherit;
}

body.staff textarea {
  min-height: 72px;
  resize: vertical;
}

.product-lookup {
  margin: 16px 0 28px;
}

.product-lookup h3 {
  margin: 0 0 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 16px;
  font-weight: 500;
}

.product-edit {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.product-edit h3 {
  margin: 0 0 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 16px;
  font-weight: 500;
}

body.staff input:focus-visible,
body.staff textarea:focus-visible,
body.staff button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

body.staff button {
  margin-top: 8px;
  align-self: flex-start;
  background: var(--gold);
  color: var(--black);
  border: 0;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 12px 16px;
  cursor: pointer;
}

.form-error {
  color: var(--gold);
  margin-bottom: 8px;
}

.upload-zone {
  position: relative;
  border: 1px dashed rgba(255, 255, 255, 0.35);
  padding: 22px;
  margin-bottom: 22px;
}

.upload-zone.is-hot {
  border-color: var(--gold);
}

.upload-zone p:first-child {
  margin-bottom: 14px;
}

body.staff .upload-zone label.upload-vision {
  margin: 8px 0 0;
}

.file-label {
  display: inline-block;
  margin: 0 8px 8px 0;
  background: var(--gold);
  color: var(--black);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 10px 14px;
  cursor: pointer;
}

.file-label:focus-within,
.file-label:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

body.staff input.file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  border: 0;
}

.album-title {
  display: flex;
  align-items: flex-end;
  gap: 16px;
}

.cover-thumb,
.album-row-thumb,
.thumb-empty {
  display: block;
  object-fit: cover;
  background: #141414;
}

.album-row-thumb,
.thumb-cell .thumb-empty {
  width: 56px;
  height: 56px;
}

.cover-thumb,
.album-title .thumb-empty {
  width: 84px;
  height: 84px;
}

.thumb-cell {
  width: 72px;
  padding-right: 12px;
}

.photo-grid figure.is-cover {
  outline: 1px solid var(--gold);
  outline-offset: 4px;
}

body.staff form.bib-read {
  margin: 0 0 12px;
}

body.staff form.bib-read button {
  margin-top: 0;
}

body.staff form.bib-bar {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin-bottom: 16px;
}

body.staff form.bib-bar label,
body.staff form.bib-bar label.check {
  margin: 0;
}

body.staff form.bib-bar input[name="bib"] {
  width: 7.5rem;
  flex: 0 0 auto;
}

body.staff form.bib-bar button {
  margin-top: 0;
}

body.staff form.bib-bar button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.bib-count {
  margin: 0;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 13px;
}

.photo-grid.photo-pick {
  grid-template-columns: repeat(auto-fill, 112px);
  gap: 12px;
}

body.staff label.photo-pick-tile {
  margin: 0;
  color: inherit;
}

.photo-pick-tile {
  position: relative;
  display: block;
}

body.staff button.photo-view {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  letter-spacing: 0;
  text-transform: none;
  cursor: zoom-in;
  align-self: stretch;
}

.photo-pick-tile input {
  position: absolute;
  top: 6px;
  left: 6px;
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(10, 10, 10, 0.72);
  z-index: 1;
}

.photo-pick figure.is-picked img,
.photo-pick figure.is-picked .photo-fallback {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.photo-grid.photo-pick figcaption {
  font-size: 12px;
}

body.staff .photo-pick button.quiet {
  font-size: 13px;
  line-height: 1.2;
  padding: 4px 6px;
  white-space: normal;
}

.bib-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 4px;
}

body.staff form.bib-chip {
  flex-direction: row;
  align-items: center;
  gap: 4px;
  margin: 0;
  color: var(--text-muted);
  font-size: 12px;
}

body.staff form.bib-chip button {
  margin: 0;
  padding: 0 4px;
  background: transparent;
  color: var(--gold);
  font-size: 16px;
  line-height: 1;
  letter-spacing: 0;
  text-transform: none;
}

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

.photo-grid figure {
  min-width: 0;
}

.photo-grid img,
.photo-fallback {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
  background: #141414;
}

.photo-fallback {
  display: grid;
  place-items: center;
  color: var(--text-muted);
  font-family: 'Barlow Condensed', sans-serif;
  letter-spacing: 0.08em;
}

.photo-grid figcaption {
  margin-top: 8px;
  font-size: 14px;
  overflow-wrap: anywhere;
}

/* Public albums keep each photo's shape: every row fills the width at about
   --row tall, and the last row keeps its natural size. */
.photo-grid.justified {
  --row: 220px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* A booth session has a handful of photos, so they show large. */
.photo-grid.justified.few {
  --row: 360px;
}

.photo-grid.justified::after {
  content: '';
  flex-grow: 100000;
}

.photo-grid.justified figure {
  position: relative;
  margin: 0;
}

.photo-grid.justified img {
  height: auto;
}

.photo-grid.justified .shape-50 { flex: 50 1 calc(var(--row) * 0.5); }
.photo-grid.justified .shape-56 { flex: 56 1 calc(var(--row) * 0.56); }
.photo-grid.justified .shape-67 { flex: 67 1 calc(var(--row) * 0.67); }
.photo-grid.justified .shape-75 { flex: 75 1 calc(var(--row) * 0.75); }
.photo-grid.justified .shape-80 { flex: 80 1 calc(var(--row) * 0.8); }
.photo-grid.justified .shape-100 { flex: 100 1 calc(var(--row) * 1); }
.photo-grid.justified .shape-125 { flex: 125 1 calc(var(--row) * 1.25); }
.photo-grid.justified .shape-133 { flex: 133 1 calc(var(--row) * 1.33); }
.photo-grid.justified .shape-150 { flex: 150 1 calc(var(--row) * 1.5); }
.photo-grid.justified .shape-178 { flex: 178 1 calc(var(--row) * 1.78); }
.photo-grid.justified .shape-200 { flex: 200 1 calc(var(--row) * 2); }
.photo-grid.justified .shape-250 { flex: 250 1 calc(var(--row) * 2.5); }
.photo-grid.justified .shape-50 img { aspect-ratio: 1 / 2; }
.photo-grid.justified .shape-56 img { aspect-ratio: 9 / 16; }
.photo-grid.justified .shape-67 img { aspect-ratio: 2 / 3; }
.photo-grid.justified .shape-75 img { aspect-ratio: 3 / 4; }
.photo-grid.justified .shape-80 img { aspect-ratio: 4 / 5; }
.photo-grid.justified .shape-100 img { aspect-ratio: 1; }
.photo-grid.justified .shape-125 img { aspect-ratio: 5 / 4; }
.photo-grid.justified .shape-133 img { aspect-ratio: 4 / 3; }
.photo-grid.justified .shape-150 img { aspect-ratio: 3 / 2; }
.photo-grid.justified .shape-178 img { aspect-ratio: 16 / 9; }
.photo-grid.justified .shape-200 img { aspect-ratio: 2; }
.photo-grid.justified .shape-250 img { aspect-ratio: 5 / 2; }

.photo-grid.justified + .license-note {
  margin-top: 28px;
}

.photo-grid.justified figcaption {
  position: absolute;
  left: 8px;
  bottom: 8px;
  margin: 0;
  padding: 3px 8px;
  border-radius: var(--radius);
  background: rgba(10, 10, 10, 0.8);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px;
  pointer-events: none;
}

@media (max-width: 800px) {
  .photo-grid.justified {
    --row: 110px;
    gap: 4px;
  }

  .photo-grid.justified.few {
    --row: 200px;
  }

  .photo-grid.justified figcaption {
    left: 4px;
    bottom: 4px;
    padding: 2px 6px;
    font-size: 11px;
  }
}

body.staff button.quiet {
  margin-top: 8px;
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--line);
  font-size: 15px;
  padding: 6px 8px;
}

@media (max-width: 800px) {
  .dash-bar,
  .dash-grid,
  .stats {
    display: block;
  }

  .dash-who {
    text-align: left;
    margin-top: 16px;
  }

  .stat {
    padding: 16px 0;
    border-top: 1px solid var(--line);
  }

  .stat + .stat {
    padding-left: 0;
    border-left: 0;
  }

  .dash-grid {
    margin-bottom: 8px;
  }

  .dash-grid .panel + .panel {
    margin-top: 32px;
  }

  .nav-brand-copy {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav-inner {
    flex-wrap: wrap;
    align-items: center;
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .site-nav-links {
    display: none;
    flex: 1 0 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin-top: 8px;
    padding: 4px 0 10px;
    border-top: 1px solid var(--line);
  }

  .site-nav.is-open .site-nav-links {
    display: flex;
  }

  .site-nav-link {
    padding: 12px 2px;
  }

  .nav-drop-menu,
  .nav-drop:hover .nav-drop-menu,
  .nav-drop:focus-within .nav-drop-menu {
    display: grid;
    position: static;
    min-width: 0;
    padding: 0 0 8px 12px;
    border: 0;
    background: transparent;
  }

  .site-foot-grid,
  .hire-grid {
    grid-template-columns: 1fr;
  }
}

body.shadowbox-open {
  overflow: hidden;
}

.shadowbox:not([hidden]) {
  display: grid;
}

.shadowbox {
  position: fixed;
  inset: 0;
  height: 100dvh;
  z-index: 80;
  background: #0a0a0a;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
}

body.gallery .shadowbox {
  grid-template-rows: minmax(0, 1fr) auto auto;
}

.shadowbox-stage {
  position: relative;
  display: grid;
  place-items: center;
  padding: 28px 72px;
  min-width: 0;
  overflow: hidden;
}

.crop-frame {
  position: absolute;
  z-index: 2;
  border: 2px solid var(--gold);
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.55);
  cursor: move;
  touch-action: none;
  user-select: none;
}

.crop-frame[hidden] {
  display: none;
}

.crop-handle {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 3;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 2px 0 0 0;
  background: var(--gold);
  cursor: nwse-resize;
  touch-action: none;
}

@media (max-width: 800px), (pointer: coarse) {
  .crop-handle {
    width: 44px;
    height: 44px;
  }
}

body.crop-dragging,
body.crop-dragging * {
  user-select: none;
}

.shadowbox-stage img {
  max-width: 100%;
  max-height: calc(100vh - 48px);
  object-fit: contain;
  background: #141414;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.72), 0 0 0 1px rgba(255, 255, 255, 0.06);
}

body.gallery .shadowbox-stage {
  grid-row: 1;
  min-height: 0;
  height: 100%;
  padding: 64px 72px 20px;
}

body.gallery .shadowbox-stage img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  min-height: 0;
}

.shadowbox-meta {
  position: absolute;
  z-index: 4;
  top: max(12px, env(safe-area-inset-top));
  left: max(16px, env(safe-area-inset-left));
  right: max(96px, calc(env(safe-area-inset-right) + 84px));
  padding-bottom: 28px;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(10, 10, 10, 0.92) 0%, rgba(10, 10, 10, 0.7) 62%, rgba(10, 10, 10, 0) 100%);
}

.shadowbox-meta .shadowbox-caption {
  margin-top: 2px;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.crop-dock,
.save-dock {
  position: absolute;
  z-index: 4;
  left: max(16px, env(safe-area-inset-left));
  right: max(16px, env(safe-area-inset-right));
  bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  background: rgba(10, 10, 10, 0.9);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.crop-dock[hidden],
.save-dock[hidden] {
  display: none;
}

.crop-bar {
  display: flex;
  align-items: center;
  gap: 12px;
}

.crop-size {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

@media (max-height: 520px) {
  .crop-dock .buy-note {
    display: none;
  }
}

.crop-dock .crop-bar .btn {
  width: auto;
  flex: 0 0 auto;
  min-height: 44px;
  margin: 0;
}

.crop-dock .btn,
.crop-dock .buy-note,
.save-dock .btn,
.save-dock .buy-note,
.save-dock .download-email {
  width: 100%;
  margin: 0;
}

.email-modal {
  position: absolute;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.55);
}

@media (max-height: 700px) {
  .email-modal {
    align-items: end;
    padding-bottom: max(16px, env(safe-area-inset-bottom));
  }
}

.email-modal[hidden] {
  display: none;
}

.email-modal-card {
  width: min(420px, 100%);
  pointer-events: auto;
  background: rgba(10, 10, 10, 0.96);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
}

.email-modal-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
}

.email-modal-actions .btn {
  width: 100%;
  margin: 0;
  justify-content: center;
}

.account-heading {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin: 28px 0 16px;
}

.action-bar {
  position: relative;
  grid-row: 3;
  z-index: 6;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  gap: 8px;
  padding: 12px max(16px, env(safe-area-inset-right)) calc(12px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  background: rgba(10, 10, 10, 0.96);
  border-top: 1px solid var(--line);
}

.action-bar .btn {
  width: 100%;
  min-height: 44px;
  margin: 0;
  justify-content: center;
}

.action-bar.has-buy {
  grid-template-columns: 1fr 1fr 2fr;
}

body.gallery .action-bar .btn {
  justify-content: center;
}

body.gallery .action-bar .btn.quiet {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.3);
}

body.gallery .action-bar .btn.quiet.is-on {
  border-color: var(--gold);
  color: var(--gold);
}

.save-heart::before {
  content: '♡';
  font-size: 18px;
  line-height: 1;
}

.save-heart.is-on::before {
  content: '♥';
}

body.gallery .action-bar .buy-cta {
  font-size: 18px;
}

body.gallery .action-bar .buy-cta.is-on {
  background: var(--gold-hover);
}

.buy-cta-from {
  font-weight: 600;
  opacity: 0.78;
}

@media (min-width: 801px) {
  .action-bar,
  .action-bar.has-buy {
    display: flex;
    align-items: center;
  }

  body.gallery .action-bar .btn {
    width: auto;
    min-width: 132px;
  }

  body.gallery .action-bar .buy-cta {
    min-width: 260px;
    margin-left: auto;
  }
}

/* Nearby photos, under the photo. Hidden when the screen is too short to spare
   the room. */
.filmstrip {
  grid-row: 2;
  display: flex;
  justify-content: safe center;
  gap: 6px;
  min-width: 0;
  padding: 8px max(16px, env(safe-area-inset-right)) 8px max(16px, env(safe-area-inset-left));
  overflow-x: auto;
  scrollbar-width: none;
  background: rgba(10, 10, 10, 0.96);
  border-top: 1px solid var(--line);
}

.filmstrip::-webkit-scrollbar {
  display: none;
}

.filmstrip[hidden] {
  display: none;
}

.filmstrip-thumb {
  flex: 0 0 auto;
  width: 64px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 2px;
  background: #141414;
  opacity: 0.5;
  cursor: pointer;
}

.filmstrip-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 2px;
}

.filmstrip-thumb.is-on {
  opacity: 1;
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.filmstrip-thumb:focus-visible {
  opacity: 1;
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

@media (hover: hover) and (pointer: fine) {
  .filmstrip-thumb:hover {
    opacity: 1;
  }
}

@media (max-width: 800px) {
  .filmstrip-thumb {
    width: 52px;
    height: 40px;
  }
}

@media (max-height: 640px) {
  .filmstrip {
    display: none;
  }
}

.shadowbox-drawer {
  position: absolute;
  z-index: 5;
  overflow: auto;
  overscroll-behavior: contain;
  background: rgba(10, 10, 10, 0.96);
  visibility: hidden;
  pointer-events: none;
}

body.gallery .shadowbox.drawer-open .shadowbox-drawer {
  visibility: visible;
  pointer-events: auto;
}

@media (min-width: 801px) {
  body.gallery .shadowbox-drawer {
    top: 0;
    right: 0;
    bottom: 0;
    width: min(380px, 100%);
    border-left: 1px solid var(--line);
    padding: 64px 20px calc(88px + env(safe-area-inset-bottom));
    transform: translateX(100%);
    transition: transform 180ms ease, visibility 0s linear 180ms;
  }

  body.gallery .shadowbox.drawer-open .shadowbox-drawer {
    transform: translateX(0);
    transition: transform 180ms ease, visibility 0s linear;
  }

  body.gallery .shadowbox.drawer-open .action-bar,
  body.gallery .shadowbox.drawer-open .filmstrip {
    width: calc(100% - min(380px, 100%));
  }

  body.gallery .shadowbox.drawer-open .shadowbox-arrow.next {
    right: calc(min(380px, 100%) + 12px);
  }
}

@media (min-width: 801px) and (max-height: 520px) {
  body.gallery .shadowbox.drawer-open .shadowbox-stage {
    padding-right: calc(min(380px, 100%) + 16px);
  }
}

@media (prefers-reduced-motion: reduce) {
  body.gallery .shadowbox-drawer {
    transition: none;
  }
}

.shadowbox-arrow {
  position: absolute;
  z-index: 3;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 72px;
  border: 0;
  border-radius: var(--radius);
  background: rgba(10, 10, 10, 0.78);
  color: var(--gold);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 40px;
  line-height: 1;
  cursor: pointer;
}

.shadowbox-arrow.prev { left: max(12px, env(safe-area-inset-left)); }
.shadowbox-arrow.next { right: max(12px, env(safe-area-inset-right)); }

.shadowbox-close {
  float: right;
  width: auto;
  margin: 0 0 12px 12px;
}

body.gallery .shadowbox-close {
  position: absolute;
  top: max(12px, env(safe-area-inset-top));
  right: max(12px, env(safe-area-inset-right));
  z-index: 7;
  display: grid;
  place-items: center;
  float: none;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  background: rgba(10, 10, 10, 0.72);
  color: var(--text);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

body.gallery .shadowbox-close:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

@media (hover: hover) and (pointer: fine) {
  body.gallery .shadowbox-close:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--black);
  }
}

body.staff .shadowbox.staff-preview {
  grid-template-columns: 1fr;
}

body.staff .shadowbox.staff-preview .shadowbox-arrow,
body.staff .shadowbox.staff-preview .shadowbox-close {
  margin-top: 0;
  align-self: auto;
  text-transform: none;
  letter-spacing: 0;
}

body.staff .shadowbox.staff-preview .shadowbox-arrow {
  padding: 0;
  width: 48px;
  height: 72px;
  background: rgba(10, 10, 10, 0.78);
  color: var(--gold);
  font-size: 40px;
}

body.staff .shadowbox.staff-preview .shadowbox-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 4;
  float: none;
}

body.staff .staff-preview-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4;
  margin: 0;
  padding: 14px 20px;
  background: rgba(10, 10, 10, 0.86);
  color: var(--text);
}

.shadowbox-count {
  font-size: 18px;
  color: var(--gold);
  margin-bottom: 6px;
}

.kicker {
  font-family: 'Barlow Condensed', sans-serif;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  font-size: 14px;
  font-weight: 600;
}

body.gallery .shadowbox.has-dock .shadowbox-arrow {
  top: var(--arrow-top, 50%);
}

@media (max-width: 800px) {
  body.gallery .shadowbox-stage {
    padding: 52px max(44px, calc(env(safe-area-inset-right) + 36px)) 12px max(44px, calc(env(safe-area-inset-left) + 36px));
  }

  body.gallery .shadowbox-drawer {
    left: 0;
    right: 0;
    bottom: 0;
    max-height: min(52vh, 480px);
    border-top: 1px solid var(--line);
    padding: 16px max(16px, env(safe-area-inset-right)) calc(84px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
    transform: translateY(110%);
    transition: transform 180ms ease, visibility 0s linear 180ms;
  }

  body.gallery .shadowbox.drawer-open .shadowbox-drawer {
    transform: translateY(0);
    transition: transform 180ms ease, visibility 0s linear;
  }

  body.gallery .shadowbox.drawer-open .shadowbox-stage {
    padding-bottom: min(52vh, 480px);
  }

  body.gallery .shadowbox.drawer-open .shadowbox-arrow {
    top: 26%;
  }

  body.gallery .shadowbox-arrow {
    width: 44px;
    height: 48px;
    font-size: 28px;
  }

  body.gallery .shadowbox-arrow.prev { left: max(6px, env(safe-area-inset-left)); }
  body.gallery .shadowbox-arrow.next { right: max(6px, env(safe-area-inset-right)); }
}

@media (max-width: 800px) and (max-height: 500px) {
  body.gallery .shadowbox-drawer {
    max-height: 148px;
    padding-top: 8px;
  }

  body.gallery .shadowbox.drawer-open .shadowbox-stage {
    padding-bottom: 148px;
  }
}

.sync-albums {
  padding: 0;
  list-style: none;
}

.sync-albums li + li {
  margin-top: 8px;
}

.sync-status[data-state="sending"] {
  color: var(--gold);
}

.sync-status[data-state="sent"] {
  color: var(--text);
}

.sync-status[data-state="failed"] {
  color: var(--gold);
}

.print-review-img {
  display: block;
  width: 100%;
  max-height: min(56vh, 420px);
  object-fit: contain;
  margin: 8px 0 12px;
  background: #000;
  border-radius: var(--radius);
}

.print-review-img.is-soft {
  outline: 2px solid var(--gold);
}

/* In the order drawer, products are choices and Buy now is the one solid
   button. */
body.gallery .shadowbox-drawer .buy [data-add-sku],
body.gallery .shadowbox-drawer .buy [data-frame-sku],
body.gallery .shadowbox-drawer .preview-buy-actions a.btn {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

@media (hover: hover) and (pointer: fine) {
  body.gallery .shadowbox-drawer .buy [data-add-sku]:hover,
  body.gallery .shadowbox-drawer .buy [data-frame-sku]:hover,
  body.gallery .shadowbox-drawer .preview-buy-actions a.btn:hover {
    background: rgba(245, 166, 35, 0.12);
    border-color: var(--gold);
  }
}

/* Home: a photo-backed hero with one search, three short steps, then events. */
.home-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: end;
  min-height: min(68vh, 600px);
  margin: 0 0 32px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}

.home-hero.plain {
  min-height: 0;
  background:
    repeating-linear-gradient(-45deg, rgba(245, 166, 35, 0.07) 0 14px, transparent 14px 28px),
    var(--card);
}

.home-hero-img,
.home-mosaic {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
}

.home-hero-img {
  object-fit: cover;
}

.home-mosaic {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 1fr;
  gap: 4px;
  opacity: 0.55;
}

.home-mosaic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(10, 10, 10, 0.88) 0%, rgba(10, 10, 10, 0.4) 75%),
    linear-gradient(0deg, rgba(10, 10, 10, 0.95) 0%, rgba(10, 10, 10, 0) 70%);
}

.home-hero.plain::after {
  display: none;
}

.home-hero-body {
  max-width: 880px;
  padding: 48px 40px 40px;
}

body.gallery .home-hero h1 {
  font-size: clamp(52px, 9vw, 112px);
  line-height: 0.88;
  margin: 6px 0 12px;
}

.home-hero-lede {
  max-width: 44ch;
  margin: 0 0 22px;
  font-size: 20px;
  color: rgba(255, 255, 255, 0.86);
}

.home-hero .form-error {
  margin: 0 0 14px;
}

.bib-search.home-find {
  max-width: none;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) auto;
  padding: 14px;
  background: rgba(10, 10, 10, 0.78);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  backdrop-filter: blur(6px);
}

.label-note {
  color: var(--text-muted);
  font-weight: 600;
}

.home-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 0 0 48px;
  padding: 0;
  list-style: none;
}

.home-steps li {
  padding: 18px 18px 16px;
  border-top: 3px solid var(--gold);
  background: var(--card);
  border-radius: 0 0 var(--radius) var(--radius);
}

.home-steps h2 {
  margin: 0 0 6px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.home-steps p {
  margin: 0;
  color: var(--text-muted);
  font-size: 16px;
}

.home-more {
  margin-top: 24px;
}

.album-card .booth-cover {
  display: grid;
  place-items: center;
  background:
    repeating-linear-gradient(-45deg, rgba(245, 166, 35, 0.12) 0 12px, transparent 12px 24px),
    #141414;
}

.booth-cover span {
  padding: 6px 12px;
  border: 1px solid rgba(245, 166, 35, 0.5);
  border-radius: var(--radius);
  background: rgba(10, 10, 10, 0.85);
  color: var(--gold);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@media (max-width: 800px) {
  .home-hero {
    min-height: min(78vh, 620px);
    margin: 0 -4px 24px;
  }

  .home-mosaic {
    grid-template-columns: repeat(3, 1fr);
  }

  .home-hero-body {
    padding: 32px 16px 16px;
  }

  .home-hero-lede {
    font-size: 18px;
  }

  .bib-search.home-find {
    grid-template-columns: 1fr;
    padding: 12px;
  }

  .home-steps {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 36px;
  }
}

/* "All your photos" offer above a session or bib result. */
.bundle-bar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 16px 28px;
  align-items: center;
  margin: 0 0 24px;
  padding: 18px 20px;
  border: 1px solid rgba(245, 166, 35, 0.45);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
  background: linear-gradient(90deg, rgba(245, 166, 35, 0.1), rgba(245, 166, 35, 0.02)), var(--card);
}

.bundle-copy h2 {
  margin: 2px 0 6px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1;
  text-transform: uppercase;
}

.bundle-copy p:last-child {
  margin: 0;
  max-width: 60ch;
  color: rgba(255, 255, 255, 0.8);
  font-size: 16px;
}

.bundle-actions {
  display: grid;
  grid-template-columns: auto auto;
  gap: 8px;
  justify-items: stretch;
}

body.gallery .bundle-actions .btn {
  margin: 0;
  min-height: 48px;
  justify-content: center;
}

body.gallery .bundle-actions .btn:not(.quiet) {
  font-size: 18px;
  padding: 10px 22px;
}

.bundle-actions .buy-note,
.bundle-actions .form-error {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 15px;
}

.bundle-actions .buy-note:empty {
  display: none;
}

/* A fan of up to three thumbs, used by the bundle bar and the cart line.
   Card size and offset come from custom properties so each place can scale it. */
.bundle-stack {
  --card-w: 68px;
  --card-h: 84px;
  --step: 22px;
  position: relative;
  width: calc(var(--card-w) + 2 * var(--step));
  height: calc(var(--card-h) + 10px);
  flex: none;
}

.bundle-stack.stack-2 {
  width: calc(var(--card-w) + var(--step));
}

.bundle-stack.stack-1 {
  width: var(--card-w);
}

.bundle-stack img {
  position: absolute;
  top: 5px;
  left: 0;
  width: var(--card-w);
  height: var(--card-h);
  object-fit: cover;
  background: #141414;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 4px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45);
}

.bundle-stack img:nth-child(1) {
  z-index: 1;
}

.bundle-stack img:nth-child(2) {
  z-index: 2;
  left: var(--step);
}

.bundle-stack img:nth-child(3) {
  z-index: 3;
  left: calc(2 * var(--step));
}

.bundle-stack.stack-2 img:nth-child(1),
.bundle-stack.stack-3 img:nth-child(1) {
  transform: rotate(-7deg);
}

.bundle-stack.stack-2 img:nth-child(2),
.bundle-stack.stack-3 img:nth-child(3) {
  transform: rotate(7deg);
}

.stack-more {
  position: absolute;
  z-index: 4;
  right: -6px;
  bottom: -2px;
  min-width: 32px;
  padding: 3px 7px;
  border-radius: 999px;
  background: var(--gold);
  color: #111;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.1;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.cart-line .bundle-stack {
  --card-w: 46px;
  --card-h: 58px;
  --step: 11px;
  justify-self: center;
}

.cart-line .bundle-stack img {
  border-width: 1.5px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.45);
}

.cart-line .stack-more {
  right: -8px;
  min-width: 26px;
  padding: 2px 5px;
  font-size: 13px;
}

@media (max-width: 800px) {
  .bundle-bar {
    grid-template-columns: auto minmax(0, 1fr);
    padding: 16px;
  }

  .bundle-bar .bundle-stack {
    --card-w: 54px;
    --card-h: 68px;
    --step: 16px;
  }

  .bundle-actions {
    grid-column: 1 / -1;
    grid-template-columns: 1fr;
  }
}
