:root {
  color-scheme: light;
  --body-font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --heading-font: Georgia, "Times New Roman", serif;
  --card-radius: 8px;
  --button-radius: 999px;
  --image-radius: 8px;
  --logo-radius: 50%;
  --ink: #171412;
  --muted: #6c625c;
  --paper: #faf7f2;
  --panel: #ffffff;
  --line: #ddd4ca;
  --accent: #a84f3d;
  --accent-dark: #733429;
  --olive: #2f6655;
  --gold: #c99a3c;
  --charcoal: #252321;
  --shadow: 0 18px 52px rgba(37, 35, 33, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 108px;
}

section {
  scroll-margin-top: 108px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body-font);
}

img {
  display: block;
  width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 56px);
  background: rgba(250, 247, 242, 0.84);
  border-bottom: 1px solid rgba(221, 212, 202, 0.82);
  backdrop-filter: blur(16px);
}

.brand,
.nav,
.hero-actions,
.filters {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  background: var(--charcoal);
  color: #fff;
  border-radius: var(--logo-radius);
  font-size: 0.7rem;
}

.nav {
  gap: clamp(12px, 3vw, 32px);
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--accent-dark);
}

.hero {
  position: relative;
  min-height: 78vh;
  display: grid;
  align-items: end;
  padding: 104px clamp(18px, 5vw, 72px) 40px;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(23, 20, 18, 0.78), rgba(23, 20, 18, 0.26) 58%, rgba(23, 20, 18, 0.1)),
    linear-gradient(0deg, rgba(23, 20, 18, 0.58), transparent 42%);
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  height: 100%;
  object-fit: cover;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 940px;
  color: #fff;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #f1c3b7;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  hyphens: none;
  overflow-wrap: normal;
}

h1,
h2 {
  margin: 0;
  font-family: var(--heading-font);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: 0;
}

h1 {
  max-width: 1040px;
  font-size: clamp(3rem, 5.35vw, 5.5rem);
}

h2 {
  font-size: clamp(2.15rem, 5vw, 4.65rem);
}

h3 {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.18;
}

.hero-content p:not(.eyebrow) {
  max-width: 620px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1rem, 2vw, 1.22rem);
  line-height: 1.65;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: var(--button-radius);
  padding: 0 22px;
  cursor: pointer;
  font-weight: 850;
  transition:
    transform 180ms ease,
    background 180ms ease,
    border-color 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.primary {
  background: var(--accent);
  color: #fff;
}

.primary:hover,
.primary:focus-visible {
  background: var(--accent-dark);
}

.ghost {
  border-color: rgba(255, 255, 255, 0.48);
  color: #fff;
}

.dark {
  background: var(--charcoal);
  color: #fff;
}

.dark:hover,
.dark:focus-visible {
  background: var(--accent-dark);
}

.intro {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--line);
}

.intro div {
  min-height: 146px;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 28px clamp(18px, 4vw, 56px);
  border-right: 1px solid var(--line);
}

.intro div:last-child {
  border-right: 0;
}

.stat {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 3rem;
  line-height: 1;
}

.intro span:last-child {
  color: var(--muted);
  font-weight: 700;
}

.section,
.booking-section {
  padding: 86px clamp(18px, 5vw, 72px);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 34px;
}

.section-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.section-heading h2 {
  max-width: 780px;
}

.compact {
  align-items: start;
}

.filters {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.protection-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: -10px 0 24px;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--card-radius);
}

.protection-note span {
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.protection-note p {
  max-width: 840px;
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.filter {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--button-radius);
  padding: 0 15px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-weight: 800;
}

.filter.active,
.filter:hover,
.filter:focus-visible {
  background: var(--charcoal);
  border-color: var(--charcoal);
  color: #fff;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 260px;
  gap: 14px;
}

.photo-card {
  position: relative;
  min-height: 240px;
  overflow: hidden;
  border-radius: var(--image-radius);
  background: var(--charcoal);
  box-shadow: 0 1px 0 rgba(23, 20, 18, 0.08);
  user-select: none;
}

.photo-card.hidden {
  display: none;
}

.photo-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(23, 20, 18, 0.7), rgba(23, 20, 18, 0.04) 58%);
}

.protected-image::before {
  content: "DJR PHOTOGRAPHY";
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.38);
  font-size: clamp(1.2rem, 3vw, 2.4rem);
  font-weight: 950;
  letter-spacing: 0.18em;
  text-align: center;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.36);
  transform: rotate(-16deg);
  pointer-events: none;
}

.protected-image::after {
  z-index: 1;
}

.photo-card img {
  height: 100%;
  object-fit: cover;
  transition: transform 420ms ease;
}

.photo-card:hover img {
  transform: scale(1.045);
}

.photo-card div {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 18px;
  z-index: 3;
  color: #fff;
}

.photo-card span,
.package-label {
  display: block;
  margin-bottom: 7px;
  color: #f1c3b7;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.tall {
  grid-row: span 2;
}

.wide {
  grid-column: span 2;
}

.sessions {
  background: #fff;
  border-block: 1px solid var(--line);
}

.client-galleries {
  background: #fff;
  border-top: 1px solid var(--line);
}

.delivery-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: stretch;
}

.gallery-browser {
  overflow: hidden;
  background: var(--charcoal);
  border-radius: var(--card-radius);
  box-shadow: var(--shadow);
}

.browser-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  color: rgba(255, 255, 255, 0.76);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.86rem;
  font-weight: 850;
}

.proof-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  grid-template-rows: repeat(2, 220px);
  gap: 10px;
  padding: 10px;
}

.proof {
  position: relative;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  border-radius: var(--image-radius);
}

.proof:first-child {
  grid-row: span 2;
}

.proof img {
  height: 100%;
  object-fit: cover;
}

.feature-list {
  display: grid;
  gap: 14px;
}

.feature-list article,
.platform-card {
  padding: 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--card-radius);
}

.feature-list p,
.platform-card p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

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

.package-note {
  max-width: 980px;
  margin: -12px 0 28px;
  color: var(--muted);
  font-size: 1.03rem;
  font-weight: 750;
  line-height: 1.6;
}

.package {
  display: grid;
  gap: 18px;
  align-content: start;
  min-height: 330px;
  padding: 28px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--card-radius);
}

.package.featured {
  background: var(--olive);
  color: #fff;
  border-color: var(--olive);
  box-shadow: var(--shadow);
}

.package.featured p,
.package.featured .package-label {
  color: rgba(255, 255, 255, 0.78);
}

.package p:not(.package-label) {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.package.featured p:not(.package-label),
.package.featured .package-label {
  color: rgba(255, 255, 255, 0.78);
}

.package strong {
  display: block;
  margin-top: auto;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  font-weight: 500;
}

.package small {
  display: block;
  margin-top: -8px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 850;
  line-height: 1.45;
}

.package.featured small {
  color: rgba(255, 255, 255, 0.78);
}

.quote-band {
  padding: 72px clamp(18px, 7vw, 112px);
  background: var(--charcoal);
  color: #fff;
}

.platform {
  background: #f1ece4;
  border-bottom: 1px solid var(--line);
}

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

.platform-card span {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 26px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--charcoal);
  font-size: 0.82rem;
  font-weight: 950;
}

.view-preview {
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.view-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.experience-panel {
  display: grid;
  align-content: start;
  gap: 22px;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--card-radius);
  background: var(--paper);
}

.admin-panel {
  background: var(--charcoal);
  color: #fff;
}

.client-panel {
  background: #f6f1ea;
}

.panel-topline {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.admin-panel .panel-topline,
.admin-panel .control-list {
  color: rgba(255, 255, 255, 0.72);
}

.panel-topline strong {
  color: var(--accent-dark);
}

.admin-panel .panel-topline strong {
  color: #f1c3b7;
}

.dashboard-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.dashboard-metrics div {
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.dashboard-metrics span {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  line-height: 1;
}

.dashboard-metrics p,
.control-list {
  margin: 0;
}

.dashboard-metrics p {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.35;
}

.control-list {
  display: grid;
  gap: 11px;
  padding: 0;
  list-style: none;
  color: var(--muted);
  line-height: 1.5;
}

.control-list li {
  position: relative;
  padding-left: 22px;
}

.control-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-actions .tool-button.light {
  color: var(--charcoal);
}

.tool-button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  cursor: pointer;
  font-weight: 850;
}

.tool-button.light {
  border-color: var(--line);
  background: #fff;
  color: var(--charcoal);
}

.client-phone {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--card-radius);
  background: #fff;
}

.phone-bar {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--charcoal);
  font-weight: 950;
}

.phone-hero {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.phone-hero img {
  height: 100%;
  object-fit: cover;
}

.client-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 14px;
}

.client-steps span {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
}

.admin-view-grid {
  align-items: stretch;
}

.public-view-panel {
  background: #fff;
}

.view-mockup {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--card-radius);
  background: #fff;
}

.mockup-topbar,
.mockup-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px;
  color: var(--charcoal);
  font-size: 0.78rem;
  font-weight: 950;
}

.mockup-topbar {
  border-bottom: 1px solid var(--line);
}

.mockup-topbar span:last-child {
  color: var(--accent-dark);
  text-transform: uppercase;
}

.mockup-hero-strip {
  height: 138px;
  background:
    linear-gradient(180deg, rgba(37, 35, 33, 0.12), rgba(37, 35, 33, 0.5)),
    url("https://images.unsplash.com/photo-1461896836934-ffe607ba8211?auto=format&fit=crop&w=800&q=72")
      center/cover;
}

.mockup-photo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 12px;
  background: #ede7df;
}

.mockup-photo-grid span {
  min-height: 82px;
  border: 7px solid #fff;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(37, 35, 33, 0.08), rgba(37, 35, 33, 0.24)),
    url("https://images.unsplash.com/photo-1524504388940-b1c1722653e1?auto=format&fit=crop&w=500&q=72")
      center/cover;
}

.mockup-photo-grid span:nth-child(2) {
  background-image:
    linear-gradient(180deg, rgba(37, 35, 33, 0.08), rgba(37, 35, 33, 0.24)),
    url("https://images.unsplash.com/photo-1511895426328-dc8714191300?auto=format&fit=crop&w=500&q=72");
}

.mockup-photo-grid span:nth-child(3) {
  background-image:
    linear-gradient(180deg, rgba(37, 35, 33, 0.08), rgba(37, 35, 33, 0.24)),
    url("https://images.unsplash.com/photo-1546519638-68e109498ffc?auto=format&fit=crop&w=500&q=72");
}

.mockup-photo-grid span:nth-child(4) {
  background-image:
    linear-gradient(180deg, rgba(37, 35, 33, 0.08), rgba(37, 35, 33, 0.24)),
    url("https://images.unsplash.com/photo-1519741497674-611481863552?auto=format&fit=crop&w=500&q=72");
}

.mockup-row {
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.experience-panel p {
  color: var(--muted);
  line-height: 1.55;
}

.photo-roll-body {
  background: #f4eee7;
}

.photo-roll-page {
  padding: 126px clamp(18px, 5vw, 72px) 72px;
}

.photo-roll-hero {
  max-width: 1040px;
  margin-bottom: 40px;
}

.photo-roll-hero p:not(.eyebrow),
.photo-roll-cta p {
  max-width: 720px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.photo-roll-layout {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--card-radius);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
}

.gallery-feed-panel {
  background: #f8f4ee;
}

.gallery-feed-toolbar {
  position: sticky;
  top: 74px;
  z-index: 4;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  padding: 24px;
  background: rgba(248, 244, 238, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.gallery-feed-toolbar h2 {
  font-family: inherit;
  font-size: clamp(1.35rem, 3vw, 2rem);
  font-weight: 950;
  line-height: 1.05;
}

.photo-roll-filters {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  max-width: min(680px, 100%);
  padding: 2px 0 4px;
}

.photo-roll-filters .filter {
  min-width: max-content;
  background: #fff;
}

.photo-roll-filters .filter.active {
  border-color: var(--charcoal);
  background: var(--charcoal);
  color: #fff;
}

.scrolling-photo-feed {
  column-count: 2;
  column-gap: 18px;
  padding: clamp(16px, 3vw, 28px);
}

.feed-photo {
  position: relative;
  display: inline-block;
  width: 100%;
  margin: 0 0 18px;
  overflow: hidden;
  border: clamp(7px, 1vw, 11px) solid #fff;
  border-radius: var(--image-radius);
  background: #fff;
  break-inside: avoid;
  box-shadow: 0 16px 40px rgba(37, 35, 33, 0.15);
}

.feed-photo img {
  aspect-ratio: 4 / 5;
  height: auto;
  object-fit: cover;
  border-radius: max(2px, calc(var(--image-radius) - 4px));
}

.feed-photo-open {
  display: block;
  width: 100%;
  border: 0;
  padding: 0;
  background: #fff;
  cursor: zoom-in;
}

.roll-lightbox[hidden] {
  display: none;
}

.roll-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(10px, 2vw, 22px);
  padding: clamp(14px, 3vw, 34px);
  background: rgba(12, 17, 15, 0.96);
  color: #fff;
  touch-action: pan-y;
}

.roll-lightbox-stage {
  position: relative;
  min-width: 0;
  min-height: 180px;
  display: grid;
  place-items: center;
}

.roll-lightbox-stage img {
  max-width: 100%;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.48);
  transition: opacity 180ms ease;
  backface-visibility: hidden;
  will-change: opacity, transform;
}

.roll-lightbox button {
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  padding: 0 18px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  cursor: pointer;
  font-weight: 900;
}

.roll-lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 3;
  width: 46px;
  min-width: 46px;
  padding: 0 !important;
  border-radius: 50% !important;
  font-size: 1.7rem;
  line-height: 1;
}

.roll-lightbox-position {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 3;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 11px 14px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.84);
  font-weight: 900;
}

.roll-lightbox-nav {
  width: 54px;
  min-width: 54px;
  padding: 0 !important;
  font-size: 1.45rem;
}

.roll-lightbox-loader {
  position: absolute;
  width: 42px;
  height: 42px;
  border: 3px solid rgba(255, 255, 255, 0.24);
  border-top-color: #fff;
  border-radius: 50%;
  animation: galleryLoaderSpin 700ms linear infinite;
}

.roll-lightbox-loader[hidden] {
  display: none;
}

.roll-lightbox.is-loading .roll-lightbox-stage img:not([src=""]) {
  opacity: 0.58;
}

.roll-lightbox-swipe-hint {
  position: absolute;
  left: 50%;
  bottom: 16px;
  margin: 0;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.82rem;
  font-weight: 850;
  white-space: nowrap;
}

@keyframes galleryImageEnterNext {
  from { opacity: 0.3; transform: translateX(26px) scale(0.99); }
  to { opacity: 1; transform: translateX(0) scale(1); }
}

@keyframes galleryImageEnterPrevious {
  from { opacity: 0.3; transform: translateX(-26px) scale(0.99); }
  to { opacity: 1; transform: translateX(0) scale(1); }
}

@keyframes galleryLoaderSpin {
  to { transform: rotate(360deg); }
}

.roll-lightbox-image-next,
.client-lightbox-image-next {
  animation: galleryImageEnterNext 340ms ease-out both;
}

.roll-lightbox-image-previous,
.client-lightbox-image-previous {
  animation: galleryImageEnterPrevious 340ms ease-out both;
}

.feed-photo.wide img {
  aspect-ratio: 16 / 10;
}

.feed-photo.tall img {
  aspect-ratio: 3 / 4;
}

.feed-photo figcaption {
  display: grid;
  gap: 12px;
  padding: 12px 4px 2px;
  background: #fff;
  color: var(--charcoal);
}

.feed-photo figcaption span {
  color: var(--accent-dark);
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.feed-photo figcaption strong {
  font-size: 1rem;
  line-height: 1.2;
}

.feed-product-row {
  display: grid;
  gap: 10px;
}

.feed-product-row small {
  color: var(--muted);
  font-weight: 850;
  line-height: 1.35;
}

.feed-card-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.feed-card-actions button {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: var(--button-radius);
  padding: 0 8px;
  background: #fff;
  color: var(--charcoal);
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 950;
}

.feed-card-actions button:first-child {
  border-color: var(--charcoal);
  background: var(--charcoal);
  color: #fff;
}

.feed-card-actions button:hover,
.feed-card-actions button:focus-visible {
  border-color: var(--accent);
}

.empty-feed {
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--card-radius);
  background: #fff;
  color: var(--muted);
  font-weight: 850;
}

.photo-roll-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 clamp(16px, 3vw, 28px) clamp(16px, 3vw, 28px);
}

.photo-roll-cta p {
  margin: 0;
}

.photo-roll-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.feed-action-note {
  min-height: 24px;
  margin: 0;
  padding: 0 clamp(16px, 3vw, 28px) clamp(16px, 3vw, 28px);
  color: var(--olive);
  font-weight: 850;
  line-height: 1.45;
}

/* Dark public homepage layout for DJR Photography. */
.public-site {
  --public-bg: #070707;
  --public-panel: #111111;
  --public-panel-soft: #171717;
  --public-line: rgba(255, 255, 255, 0.12);
  --public-text: #f7f2eb;
  --public-muted: rgba(247, 242, 235, 0.68);
  --public-accent: #caa574;
  background: var(--public-bg);
  color: var(--public-text);
}

.public-site .public-header {
  position: sticky;
  top: 0;
  background: rgba(7, 7, 7, 0.82);
  border-bottom: 1px solid var(--public-line);
  backdrop-filter: blur(18px);
}

.public-site .brand {
  color: var(--public-text);
}

.public-site .brand-mark {
  background: #fff;
  color: #0a0a0a;
}

.public-site .public-nav {
  color: var(--public-muted);
}

.public-site .public-nav a:hover,
.public-site .public-nav a:focus-visible {
  color: var(--public-accent);
}

.public-site .button {
  letter-spacing: 0;
}

.public-hero {
  position: relative;
  min-height: 88vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  padding: clamp(96px, 12vw, 160px) clamp(18px, 6vw, 90px) clamp(42px, 7vw, 86px);
}

.public-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 7, 7, 0.92), rgba(7, 7, 7, 0.38) 58%, rgba(7, 7, 7, 0.62)),
    linear-gradient(0deg, rgba(7, 7, 7, 0.96), transparent 52%);
}

.public-hero-media {
  position: absolute;
  inset: 0;
}

.public-hero-media img {
  height: 100%;
  object-fit: cover;
}

.public-hero-content {
  position: relative;
  z-index: 1;
  max-width: 940px;
  padding-top: clamp(24px, 5vw, 72px);
}

.public-site .eyebrow {
  color: var(--public-accent);
}

.public-hero h1 {
  max-width: 900px;
  color: #fff;
  font-size: clamp(3.2rem, 8vw, 8.8rem);
  line-height: 0.88;
  overflow-wrap: anywhere;
}

.public-hero p:not(.eyebrow) {
  max-width: 690px;
  margin: 24px 0 0;
  color: var(--public-muted);
  font-size: clamp(1rem, 1.6vw, 1.22rem);
  line-height: 1.75;
}

.public-site .primary {
  background: var(--public-accent);
  color: #0c0c0c;
}

.public-site .primary:hover,
.public-site .primary:focus-visible {
  background: #ead2ad;
}

.public-site .ghost {
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff;
}

.public-section {
  padding: clamp(70px, 9vw, 126px) clamp(18px, 6vw, 90px);
}

.public-section-heading {
  display: grid;
  gap: 14px;
  max-width: 850px;
  margin-bottom: 34px;
}

.public-section-heading h2 {
  text-wrap: balance;
}

.public-section-heading h2,
.about-copy h2,
.public-booking h2 {
  color: var(--public-text);
}

.public-section-heading p:not(.eyebrow),
.about-copy p,
.public-booking .booking-copy p:not(.eyebrow) {
  color: var(--public-muted);
  font-size: 1.04rem;
  line-height: 1.7;
}

.public-section-heading code {
  color: #fff;
  font-size: 0.92em;
}

.public-featured-gallery {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-auto-rows: 210px;
  gap: 14px;
}

.public-gallery-card {
  position: relative;
  min-height: 210px;
  overflow: hidden;
  border: 1px solid var(--public-line);
  border-radius: var(--image-radius);
  background: var(--public-panel);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.3);
}

.public-gallery-card:nth-child(1),
.public-gallery-card.wide {
  grid-column: span 3;
}

.public-gallery-card:nth-child(2),
.public-gallery-card.tall {
  grid-column: span 3;
  grid-row: span 2;
}

.public-gallery-card:not(.wide):not(.tall) {
  grid-column: span 2;
}

.public-gallery-card img {
  height: 100%;
  object-fit: cover;
  opacity: 0.92;
  transition: transform 420ms ease, opacity 420ms ease;
}

.public-gallery-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 44%, rgba(0, 0, 0, 0.78));
}

.public-gallery-card:hover img,
.public-gallery-card:focus-within img {
  opacity: 1;
  transform: scale(1.045);
}

.public-gallery-card div {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 1;
  padding-top: 60px;
}

.public-gallery-card span,
.service-card span {
  color: var(--public-accent);
  font-size: 0.76rem;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.public-gallery-card h3 {
  margin-top: 6px;
  color: #fff;
}

.public-services,
.public-booking {
  background: #0b0b0b;
  border-top: 1px solid var(--public-line);
  border-bottom: 1px solid var(--public-line);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.service-card {
  min-height: 280px;
  display: grid;
  align-content: end;
  gap: 14px;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid var(--public-line);
  border-radius: var(--card-radius);
  background: linear-gradient(180deg, var(--public-panel-soft), #0e0e0e);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.22);
}

.service-card p {
  margin: 0;
  color: var(--public-muted);
  line-height: 1.65;
}

.about-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(320px, 1.05fr);
  gap: clamp(28px, 6vw, 74px);
  align-items: center;
}

.about-image-card {
  overflow: hidden;
  border: 1px solid var(--public-line);
  border-radius: var(--image-radius);
  background: var(--public-panel);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
}

.about-image-card img {
  aspect-ratio: 4 / 5;
  height: auto;
  object-fit: cover;
}

.about-copy {
  max-width: 720px;
}

.public-booking {
  grid-template-columns: minmax(280px, 0.85fr) minmax(320px, 1.15fr);
}

.public-booking .booking-copy {
  color: var(--public-text);
}

.public-site .booking-form {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--public-line);
  box-shadow: none;
}

.public-site label {
  color: rgba(255, 255, 255, 0.82);
}

.public-site input,
.public-site select,
.public-site textarea {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.public-site input::placeholder,
.public-site textarea::placeholder {
  color: rgba(255, 255, 255, 0.42);
}

.public-site .form-note {
  color: var(--public-accent);
}

.public-footer {
  background: #050505;
  border-top: 1px solid var(--public-line);
  color: var(--public-muted);
}

.public-footer span:first-child {
  color: #fff;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-links a {
  color: #fff;
  font-weight: 850;
}

.portal-body {
  background: #f6f4ef;
  overflow-x: hidden;
}

.admin-login-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(120deg, rgba(23, 20, 18, 0.9), rgba(23, 20, 18, 0.72)),
    url("./photos/website/sports/track/track-001-track-img-0010.jpg") center / cover;
}

.admin-login-card {
  width: min(100%, 460px);
  display: grid;
  gap: 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  padding: clamp(24px, 5vw, 38px);
  background: rgba(250, 247, 242, 0.94);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.32);
}

.admin-login-card h1 {
  margin: 0;
  color: var(--ink);
  font-family: inherit;
  font-size: clamp(2rem, 7vw, 3rem);
  font-weight: 950;
  line-height: 1;
}

.admin-login-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.portal-body.admin-locked .portal-header,
.portal-body.admin-locked .admin-shell {
  display: none;
}

.portal-body.admin-unlocked .admin-login-screen {
  display: none;
}

.portal-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px clamp(18px, 4vw, 56px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.portal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ghost-dark {
  border-color: var(--line);
  color: var(--charcoal);
}

.admin-shell {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  min-height: calc(100vh - 76px);
}

.admin-sidebar {
  position: sticky;
  top: 76px;
  height: calc(100vh - 76px);
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 28px 18px;
  background: #171412;
  color: rgba(255, 255, 255, 0.72);
}

.sidebar-label {
  margin-bottom: 14px;
  color: #f1c3b7;
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.admin-sidebar a {
  padding: 12px 14px;
  border-radius: 8px;
  font-weight: 850;
}

.admin-sidebar a.active,
.admin-sidebar a:hover,
.admin-sidebar a:focus-visible {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.admin-main,
.client-gallery-page {
  padding: clamp(24px, 5vw, 64px);
}

.admin-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}

.admin-heading h1 {
  color: var(--ink);
  font-family: inherit;
  font-size: clamp(2.1rem, 4vw, 3.35rem);
  font-weight: 950;
  line-height: 1;
}

.client-gallery-hero h1 {
  color: var(--ink);
  font-size: clamp(2.6rem, 6vw, 5.6rem);
}

.client-gallery-hero h1 {
  max-width: 760px;
  font-size: clamp(2.2rem, 7vw, 4.25rem);
  line-height: 1.02;
  overflow-wrap: anywhere;
}

.admin-status,
.admin-status-pill,
.toggle-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border-radius: 999px;
  padding: 0 12px;
  background: #fff;
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.admin-status-pill {
  background: var(--charcoal);
  color: #fff;
}

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

.admin-stat,
.admin-board {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(37, 35, 33, 0.06);
}

.admin-stat {
  padding: 20px;
}

.admin-stat span {
  display: block;
  font-family: inherit;
  font-size: 2.35rem;
  font-weight: 950;
  line-height: 1;
}

.admin-stat p {
  margin: 10px 0 0;
  color: var(--muted);
  font-weight: 850;
}

.admin-board {
  margin-top: 18px;
  padding: 22px;
}

.board-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.board-heading h2 {
  font-family: inherit;
  font-size: 1.35rem;
  font-weight: 950;
  line-height: 1.2;
}

.board-heading p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.editor-form {
  display: grid;
  gap: 16px;
}

.editor-grid,
.price-settings {
  margin-top: 14px;
}

.board-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-note {
  min-height: 0;
}

.admin-table {
  display: grid;
  gap: 10px;
}

.admin-table div[role="row"] {
  display: grid;
  grid-template-columns: 1.2fr 0.7fr 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.admin-table span {
  color: var(--muted);
  font-weight: 850;
}

.admin-table span:first-child {
  color: var(--ink);
}

.admin-table button,
.admin-table .table-action {
  min-height: 36px;
  border: 0;
  border-radius: 999px;
  padding: 0 12px;
  background: var(--charcoal);
  color: #fff;
  cursor: pointer;
  font-weight: 850;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.table-action-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.message-center-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.9fr);
  gap: 18px;
}

.message-center-grid h3,
.sent-message-panel h3,
.message-compose h3 {
  margin: 0 0 12px;
}

.message-list {
  display: grid;
  gap: 10px;
}

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

.message-card.compact {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.message-card strong,
.message-card span {
  display: block;
}

.message-card span,
.message-card p {
  color: var(--muted);
}

.message-card p {
  margin: 0;
  line-height: 1.5;
}

.message-compose {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: var(--paper);
}

.admin-password-form {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.sent-message-panel {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.disabled-link {
  opacity: 0.5;
  pointer-events: none;
}

.gallery-controls,
.settings-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.gallery-controls article,
.payment-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.gallery-controls p,
.payment-card p {
  color: var(--muted);
  line-height: 1.5;
}

.payment-card strong {
  display: block;
  margin: 8px 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  line-height: 1;
}

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

.payment-card h3 {
  margin-top: 0;
}

.link-field {
  width: 100%;
  min-height: 42px;
  margin: 12px 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  background: var(--soft);
  color: var(--ink);
  font: inherit;
  font-size: 0.85rem;
}

.pricing-fieldset {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
}

.pricing-fieldset legend {
  padding: 0 8px;
  font-weight: 900;
}

.pricing-fieldset .full {
  grid-column: 1 / -1;
}

.compact-admin-form {
  margin-top: 18px;
}

.admin-gallery-summary {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 18px;
  margin-top: 22px;
}

.admin-gallery-summary h3 {
  margin-top: 0;
}

.gallery-tab-list,
.admin-photo-list {
  display: grid;
  gap: 10px;
}

.admin-photo-list {
  max-height: 720px;
  overflow: auto;
  padding-right: 4px;
}

.gallery-tab-chip {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fff;
  font-weight: 900;
}

.gallery-tab-chip small {
  color: var(--muted);
  font-weight: 800;
}

.gallery-tab-chip button,
.admin-photo-item button {
  border: 0;
  border-radius: 999px;
  padding: 8px 12px;
  background: var(--charcoal);
  color: #fff;
  cursor: pointer;
  font-weight: 850;
}

.admin-photo-item {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
}

.admin-photo-item img {
  width: 72px;
  height: 56px;
  border-radius: 6px;
  object-fit: cover;
  background: var(--soft);
}

.admin-photo-item strong,
.admin-photo-item span {
  display: block;
}

.admin-photo-item span,
.empty-gallery-note {
  color: var(--muted);
}

.public-photo-tools {
  display: grid;
  grid-template-columns: minmax(180px, 0.8fr) minmax(220px, 1fr);
  gap: 12px;
}

.public-photo-actions {
  margin: 0 0 12px;
}

.photo-select-check {
  width: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #171412;
  font-weight: 900;
  white-space: nowrap;
}

.photo-select-check input {
  width: 18px;
  height: 18px;
  padding: 0;
  accent-color: var(--accent-dark);
}

.photo-select-check span {
  color: #171412;
}

.gallery-upload-form {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.booking-editor {
  margin-top: 16px;
}

.client-gallery-page {
  display: grid;
  gap: 24px;
}

.client-gallery-hero {
  padding: clamp(28px, 5vw, 54px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.client-gallery-hero p:not(.eyebrow) {
  max-width: 760px;
  color: var(--muted);
  line-height: 1.65;
  font-size: 1.05rem;
}

.client-gallery-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.client-gallery-tools {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.client-gallery-tools span {
  padding: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-weight: 850;
}

.client-download-workflow,
.client-device-guide {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(22px, 4vw, 38px);
  background: #fff;
  box-shadow: 0 12px 36px rgba(37, 35, 33, 0.06);
}

.client-download-workflow[hidden],
.client-download-actions[hidden],
.client-device-panel[hidden] {
  display: none !important;
}

.client-download-workflow {
  scroll-margin-top: 100px;
}

.client-download-workflow-heading,
.client-device-guide-heading,
.client-download-progress-meta,
.client-download-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.client-download-workflow h2,
.client-device-guide h2 {
  margin: 0;
  font-size: clamp(1.6rem, 4vw, 2.7rem);
  line-height: 1.08;
}

.client-download-close {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 13px;
  background: var(--paper);
  color: var(--charcoal);
  cursor: pointer;
  font-weight: 900;
}

.client-download-workflow progress {
  width: 100%;
  height: 14px;
  margin: 24px 0 12px;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  accent-color: var(--accent-dark);
  background: #e5e0d8;
}

.client-download-workflow progress::-webkit-progress-bar {
  border-radius: 999px;
  background: #e5e0d8;
}

.client-download-workflow progress::-webkit-progress-value,
.client-download-workflow progress::-moz-progress-bar {
  border-radius: 999px;
  background: var(--accent-dark);
}

.client-download-progress-meta {
  align-items: baseline;
  color: var(--muted);
}

.client-download-progress-meta strong {
  flex: 0 0 auto;
  color: var(--charcoal);
}

.client-download-actions {
  justify-content: flex-start;
  flex-wrap: wrap;
  margin-top: 22px;
}

.client-download-actions .button.ghost {
  border-color: var(--line);
  background: #f2eee8;
  color: var(--charcoal);
}

.client-device-guide-heading {
  align-items: end;
}

.client-download-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 28px 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
  list-style: none;
}

.client-download-steps li {
  min-width: 0;
  display: grid;
  gap: 7px;
  padding: 18px;
  background: var(--paper);
  color: var(--muted);
  line-height: 1.5;
}

.client-download-steps strong {
  color: var(--charcoal);
}

.client-device-tabs {
  width: min(460px, 100%);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  border-radius: 8px;
  background: #ebe7e1;
}

.client-device-tab {
  min-height: 44px;
  border: 0;
  border-radius: 6px;
  padding: 0 14px;
  background: transparent;
  color: #57514c;
  cursor: pointer;
  font-weight: 900;
}

.client-device-tab.active {
  background: var(--charcoal);
  color: #fff;
  box-shadow: 0 3px 12px rgba(37, 35, 33, 0.15);
}

.client-device-panel {
  margin-top: 18px;
  border-left: 4px solid var(--accent-dark);
  padding: 2px 0 2px 24px;
  color: #4b4641;
  line-height: 1.65;
}

.client-device-panel ol {
  margin: 0;
  padding-left: 20px;
}

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

.client-proof-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.client-proof {
  position: relative;
  min-height: 310px;
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  background: var(--charcoal);
}

.client-proof img {
  height: 100%;
  object-fit: cover;
}

.client-proof figcaption {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 3;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0 12px;
  background: #fff;
  color: var(--charcoal);
  font-weight: 900;
}

.admin-check-option {
  display: flex;
  min-height: 64px;
  align-items: center;
  gap: 12px;
  border: 2px solid #252321;
  border-radius: 8px;
  padding: 14px 16px;
  background: #fff;
  color: #171412;
  font-size: 1rem;
  font-weight: 950;
  line-height: 1.25;
}

.admin-check-option span {
  color: #171412;
  font-weight: 950;
}

.client-access-settings {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(240px, 1fr) repeat(2, minmax(210px, 0.8fr));
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #fff;
}

.client-access-settings legend {
  padding: 0 8px;
  color: #171412;
  font-weight: 950;
}

.client-access-settings .passcode-field {
  display: grid;
  gap: 8px;
  color: #171412;
  font-weight: 950;
}

.admin-check-option input {
  width: 24px;
  height: 24px;
  min-width: 24px;
  accent-color: var(--accent-dark);
}

.client-link-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
  gap: 20px;
  margin-top: 24px;
}

.client-link-workspace h3 {
  margin-top: 0;
}

.client-gallery-admin-list,
.client-quick-links {
  display: grid;
  gap: 12px;
}

.client-admin-preview {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  margin-bottom: 12px;
  min-height: 260px;
  display: grid;
  align-content: end;
  background: var(--charcoal);
  color: #fff;
}

.client-admin-preview::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(23, 20, 18, 0.82), rgba(23, 20, 18, 0.18));
}

.client-admin-preview img {
  position: absolute;
  inset: 0;
  height: 100%;
  object-fit: cover;
}

.client-admin-preview > *:not(img) {
  position: relative;
  z-index: 1;
}

.client-admin-preview h4 {
  margin: 6px 0;
  font-size: 1.55rem;
}

.client-admin-preview p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.76);
}

.client-preview-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.client-preview-actions span {
  border-radius: 999px;
  padding: 8px 12px;
  background: #fff;
  color: var(--charcoal);
  font-size: 0.8rem;
  font-weight: 950;
}

.client-gallery-admin-card {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fff;
}

.client-gallery-admin-cover {
  min-height: 150px;
  overflow: hidden;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--charcoal);
  color: #fff;
  font-weight: 950;
  letter-spacing: 0.12em;
}

.client-gallery-admin-cover img {
  height: 100%;
  object-fit: cover;
}

.client-gallery-admin-info {
  min-width: 0;
}

.client-gallery-admin-info h4 {
  margin: 0 0 6px;
  font-size: 1.15rem;
}

.client-gallery-admin-info p,
.client-quick-links p {
  margin: 0 0 10px;
  color: var(--muted);
  line-height: 1.45;
}

.client-gallery-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0;
}

.client-gallery-badges span {
  border-radius: 999px;
  padding: 7px 10px;
  background: var(--paper);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
}

.client-quick-links article {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #fff;
}

.tool-button.danger {
  color: #8a2a21;
}

.client-delivery-body {
  --paper: #faf7f2;
  --ink: #171412;
  min-height: 100vh;
  background: #f6f2eb;
  color: var(--ink);
  overflow-x: hidden;
}

.client-delivery-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid rgba(221, 212, 202, 0.78);
  padding: 16px clamp(18px, 4vw, 46px);
  background: rgba(246, 242, 235, 0.86);
  backdrop-filter: blur(18px);
}

.client-gallery-loading {
  min-height: 70vh;
}

.client-access-page {
  min-height: calc(100vh - 72px);
  display: grid;
  place-items: center;
}

.client-access-card {
  width: min(680px, 100%);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(28px, 6vw, 58px);
  background: #fff;
  box-shadow: var(--shadow);
}

.client-access-card h1 {
  margin: 0;
  font-size: clamp(2.2rem, 7vw, 4.6rem);
  line-height: 1;
}

.client-access-card p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.65;
}

.client-passcode-form {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.client-passcode-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 900;
}

.client-passcode-form input {
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
  background: var(--paper);
  color: var(--ink);
}

.client-collection-page {
  gap: 18px;
}

.client-collection-hero {
  position: relative;
  min-height: min(76vh, 720px);
  display: grid;
  align-items: end;
  overflow: hidden;
  border-radius: 8px;
  background: var(--charcoal);
  color: #fff;
}

.client-collection-cover,
.client-collection-shade {
  position: absolute;
  inset: 0;
}

.client-collection-cover {
  height: 100%;
  object-fit: cover;
}

.client-collection-shade {
  background:
    linear-gradient(90deg, rgba(23, 20, 18, 0.82), rgba(23, 20, 18, 0.36) 60%, rgba(23, 20, 18, 0.18)),
    linear-gradient(0deg, rgba(23, 20, 18, 0.76), rgba(23, 20, 18, 0.05) 58%);
}

.client-collection-copy {
  position: relative;
  z-index: 2;
  max-width: 880px;
  padding: clamp(28px, 6vw, 64px);
}

.client-collection-copy h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(2.8rem, 8vw, 7.4rem);
  line-height: 0.95;
}

.client-collection-copy p:not(.eyebrow) {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.65;
  font-size: 1.06rem;
}

.client-collection-copy .button.ghost-dark {
  border-color: rgba(255, 255, 255, 0.62);
  background: rgba(10, 9, 8, 0.28);
  color: #fff;
  backdrop-filter: blur(10px);
}

.client-collection-copy [data-download-all-client] {
  border-color: #fff;
  background: #fff;
  color: var(--charcoal);
}

.client-muted-pill {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  border-radius: 999px;
  padding: 0 18px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-weight: 900;
}

.client-proof-card {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 12px 36px rgba(37, 35, 33, 0.08);
}

.client-proof-image {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  border: 0;
  padding: 0;
  background: var(--charcoal);
  cursor: zoom-in;
}

.client-proof-image img {
  aspect-ratio: 4 / 5;
  height: auto;
  object-fit: cover;
  transition: transform 420ms ease;
}

.client-proof-card:hover .client-proof-image img,
.client-proof-card:focus-within .client-proof-image img {
  transform: scale(1.035);
}

.client-proof-actions {
  display: flex;
  align-items: center;
  justify-content: end;
  gap: 12px;
  padding: 12px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 900;
}

.client-icon-action {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 10px;
  background: #fff;
  color: var(--charcoal);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 950;
}

.client-icon-action.active {
  border-color: var(--accent-dark);
  background: var(--accent-dark);
  color: #fff;
}

.client-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: clamp(12px, 3vw, 34px);
  background: rgba(11, 10, 9, 0.96);
  color: #fff;
  touch-action: pan-y;
}

.client-lightbox figure {
  max-height: 92vh;
  margin: 0;
  display: grid;
  gap: 12px;
}

.client-lightbox img {
  max-width: 100%;
  max-height: 82vh;
  object-fit: contain;
  transition: opacity 180ms ease;
  backface-visibility: hidden;
  will-change: opacity, transform;
}

.client-lightbox-stage {
  position: relative;
  min-width: 0;
  min-height: 180px;
  display: grid;
  place-items: center;
}

.client-lightbox-loader {
  position: absolute;
  width: 42px;
  height: 42px;
  border: 3px solid rgba(255, 255, 255, 0.24);
  border-top-color: #fff;
  border-radius: 50%;
  animation: galleryLoaderSpin 700ms linear infinite;
}

.client-lightbox-loader[hidden] {
  display: none;
}

.client-lightbox.is-loading .client-lightbox-stage img:not([src=""]) {
  opacity: 0.58;
}

.client-lightbox-swipe-hint {
  position: absolute;
  top: 20px;
  left: 50%;
  margin: 0;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.82rem;
  font-weight: 850;
  white-space: nowrap;
}

.client-lightbox figcaption {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  color: rgba(255, 255, 255, 0.74);
  font-weight: 900;
}

.client-lightbox figcaption a,
.client-lightbox figcaption button,
.client-lightbox-close,
.client-lightbox-nav {
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
  font-weight: 900;
}

.client-lightbox figcaption button {
  font: inherit;
}

.client-lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
}

.client-lightbox-nav {
  min-width: 72px;
}

.compact-filter {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--muted);
  font-weight: 900;
}

.hidden-public-photos {
  display: grid;
  gap: 10px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.hidden-public-photos h4 {
  margin: 0;
}

.admin-photo-item.compact {
  grid-template-columns: 54px 1fr auto;
}

.admin-photo-item.compact img {
  width: 54px;
  height: 44px;
}

.quote-band blockquote {
  max-width: 1050px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 5vw, 5rem);
  line-height: 1.05;
}

.quote-band p {
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.64);
  font-weight: 800;
}

.booking-section {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 1.2fr);
  gap: clamp(32px, 6vw, 86px);
  align-items: start;
}

.booking-copy {
  position: sticky;
  top: 110px;
}

.booking-copy p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.7;
  font-size: 1.05rem;
}

.booking-list {
  display: grid;
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.booking-list li {
  padding-left: 22px;
  color: var(--charcoal);
  font-weight: 800;
  position: relative;
}

.booking-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.58em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.booking-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: clamp(20px, 4vw, 36px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

label {
  display: grid;
  gap: 8px;
  color: var(--charcoal);
  font-size: 0.88rem;
  font-weight: 850;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 13px 14px;
  outline: none;
}

.checkbox-row {
  display: flex;
  align-items: start;
  gap: 10px;
  color: var(--muted);
  line-height: 1.45;
}

.checkbox-row input {
  width: 18px;
  min-width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--accent);
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(168, 79, 61, 0.15);
}

.full {
  grid-column: 1 / -1;
}

.form-note {
  grid-column: 1 / -1;
  margin: 0;
  min-height: 24px;
  color: var(--olive);
  font-weight: 800;
  line-height: 1.45;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 30px clamp(18px, 5vw, 72px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-weight: 750;
}

.footer span:first-child {
  color: var(--ink);
  font-weight: 900;
}

@media (max-width: 900px) {
  .section-heading,
  .booking-section,
  .footer {
    display: grid;
  }

  .booking-section {
    grid-template-columns: 1fr;
  }

  .service-grid,
  .about-section,
  .public-booking {
    grid-template-columns: 1fr;
  }

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

  .public-gallery-card:nth-child(1),
  .public-gallery-card:nth-child(2),
  .public-gallery-card.wide,
  .public-gallery-card.tall,
  .public-gallery-card:not(.wide):not(.tall) {
    grid-column: auto;
    grid-row: auto;
  }

  .filters {
    justify-content: start;
  }

  .section-tools {
    justify-content: start;
  }

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

  .package-grid,
  .platform-grid,
  .delivery-layout,
  .view-grid,
  .admin-shell,
  .admin-grid,
  .gallery-controls,
  .settings-list,
  .client-link-workspace,
  .client-access-settings,
  .client-gallery-tools,
  .client-proof-grid,
  .message-center-grid,
  .public-photo-tools,
  .intro {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: static;
    height: auto;
    display: flex;
    align-items: center;
    overflow-x: auto;
    gap: 8px;
    scrollbar-width: thin;
  }

  .sidebar-label,
  .admin-sidebar a {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .sidebar-label {
    margin: 0 8px 0 0;
  }

  .admin-heading,
  .portal-header,
  .board-heading {
    display: grid;
  }

  .admin-table div[role="row"] {
    grid-template-columns: 1fr;
  }

  .dashboard-metrics {
    grid-template-columns: 1fr;
  }

  .intro div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .intro div:last-child {
    border-bottom: 0;
  }

  .booking-copy {
    position: static;
  }

  .gallery-feed-toolbar {
    position: static;
    display: grid;
    align-items: start;
  }

  .roll-lightbox {
    grid-template-columns: 1fr;
    padding: 68px 12px 84px;
  }

  .roll-lightbox-stage {
    grid-column: 1;
    width: 100%;
  }

  .roll-lightbox-nav {
    position: absolute;
    top: auto;
    bottom: 14px;
    width: calc(50% - 18px);
    min-width: 0;
    height: 52px;
  }

  .roll-lightbox-nav.prev {
    left: 12px;
  }

  .roll-lightbox-nav.next {
    right: 12px;
  }

  .roll-lightbox-swipe-hint {
    bottom: 76px;
  }

  .scrolling-photo-feed {
    column-count: 2;
  }

  .protection-note {
    display: grid;
  }
}

@media (max-width: 640px) {
  html {
    scroll-padding-top: 172px;
  }

  section {
    scroll-margin-top: 172px;
  }

  .site-header {
    position: sticky;
    display: grid;
    gap: 12px;
    padding: 14px;
  }

  .public-site .site-header {
    background: rgba(7, 7, 7, 0.9);
  }

  .nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
    font-size: 0.84rem;
  }

  .nav a {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: var(--button-radius);
    background: rgba(255, 255, 255, 0.52);
  }

  .public-site .nav a {
    border-color: rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.06);
    color: var(--public-text);
  }

  .public-hero {
    min-height: auto;
    padding: 64px 18px 42px;
  }

  .public-hero h1 {
    font-size: clamp(2.55rem, 12.5vw, 3.85rem);
    line-height: 0.94;
  }

  .public-hero p:not(.eyebrow) {
    line-height: 1.62;
  }

  .hero {
    min-height: auto;
    padding: 48px 18px 28px;
  }

  .hero::after {
    background:
      linear-gradient(0deg, rgba(23, 20, 18, 0.82), rgba(23, 20, 18, 0.12)),
      linear-gradient(90deg, rgba(23, 20, 18, 0.68), rgba(23, 20, 18, 0.2));
  }

  h1 {
    font-size: clamp(2.35rem, 11vw, 3.15rem);
    line-height: 1.02;
  }

  h2 {
    font-size: clamp(2rem, 10vw, 2.75rem);
    line-height: 1.03;
  }

  h3 {
    font-size: 1.14rem;
  }

  .hero-content p:not(.eyebrow) {
    margin-top: 16px;
    font-size: 1rem;
    line-height: 1.55;
  }

  .hero-actions {
    margin-top: 24px;
  }

  .section,
  .booking-section {
    padding: 52px 18px;
  }

  .public-section,
  .public-booking {
    padding: 58px 18px;
  }

  .public-featured-gallery {
    grid-template-columns: 1fr;
    grid-auto-rows: 290px;
  }

  .service-grid {
    gap: 12px;
  }

  .service-card {
    min-height: 220px;
  }

  .about-image-card img {
    aspect-ratio: 16 / 12;
  }

  .public-site .footer-links {
    display: grid;
  }

  .photo-roll-page {
    padding: 40px 14px 48px;
  }

  .section-heading {
    gap: 18px;
    margin-bottom: 24px;
  }

  .section-tools {
    display: grid;
    width: 100%;
  }

  .filters {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
  }

  .filter {
    width: 100%;
    min-height: 44px;
    padding: 0 10px;
  }

  .photo-roll-filters .filter {
    width: auto;
  }

  .gallery-feed-toolbar {
    padding: 18px;
  }

  .scrolling-photo-feed {
    column-count: 1;
    padding: 14px;
  }

  .feed-photo {
    margin-bottom: 14px;
  }

  .photo-roll-cta {
    display: grid;
    padding: 0 14px 14px;
  }

  .photo-roll-actions {
    display: grid;
  }

  .feed-card-actions {
    grid-template-columns: 1fr;
  }

  .protection-note {
    gap: 8px;
    padding: 14px;
  }

  .gallery {
    grid-template-columns: 1fr;
    grid-auto-rows: 300px;
    gap: 12px;
  }

  .photo-card {
    min-height: 300px;
  }

  .photo-card div {
    left: 16px;
    right: 16px;
    bottom: 16px;
  }

  .proof-grid {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(3, 220px);
  }

  .proof:first-child {
    grid-row: auto;
  }

  .wide,
  .tall {
    grid-column: auto;
    grid-row: auto;
  }

  .booking-form {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .package,
  .feature-list article,
  .platform-card,
  .experience-panel,
  .admin-board,
  .client-gallery-hero {
    padding: 20px;
  }

  .package {
    min-height: auto;
  }

  .package-grid,
  .platform-grid,
  .feature-list,
  .view-grid {
    gap: 12px;
  }

  .panel-topline {
    display: grid;
    gap: 6px;
  }

  .client-steps {
    grid-template-columns: 1fr;
  }

  .button {
    min-height: 52px;
    width: 100%;
  }

  .portal-header {
    gap: 12px;
    padding: 14px;
  }

  .portal-actions {
    width: 100%;
    gap: 8px;
    flex-wrap: nowrap;
  }

  .portal-actions .button {
    width: auto;
    min-width: 0;
    min-height: 44px;
    flex: 1 1 0;
    padding: 0 10px;
    font-size: 0.86rem;
    white-space: nowrap;
  }

  .admin-main,
  .client-gallery-page {
    padding: 20px;
  }

  .admin-sidebar {
    padding: 22px 18px;
  }

  .admin-gallery-summary,
  .pricing-fieldset {
    grid-template-columns: 1fr;
  }

  .admin-photo-list {
    max-height: 58vh;
  }

  .admin-photo-item {
    grid-template-columns: 64px 1fr;
  }

  .message-card.compact {
    grid-template-columns: 1fr;
  }

  .photo-select-check {
    grid-column: 1 / -1;
  }

  .admin-photo-item button,
  .admin-photo-item.compact button {
    grid-column: 1 / -1;
  }

  .admin-heading {
    margin-bottom: 22px;
  }

  .admin-heading h1,
  .client-gallery-hero h1 {
    font-size: clamp(2.25rem, 11vw, 3rem);
  }

  .client-gallery-hero h1 {
    font-size: clamp(2rem, 9vw, 2.6rem);
  }

  .admin-stat span {
    font-size: 2.35rem;
  }

  .client-proof {
    min-height: 280px;
  }

  .client-gallery-admin-card {
    grid-template-columns: 1fr;
  }

  .client-lightbox {
    grid-template-columns: 1fr;
    padding: 68px 12px 82px;
  }

  .client-lightbox figure {
    grid-column: 1;
    width: 100%;
  }

  .client-gallery-admin-cover {
    min-height: 220px;
  }

  .client-lightbox-nav {
    position: absolute;
    top: auto;
    bottom: 12px;
    width: calc(50% - 18px);
    height: 52px;
    min-width: 0;
  }

  .client-lightbox-nav.prev {
    left: 12px;
  }

  .client-lightbox-nav.next {
    right: 12px;
  }

  .client-lightbox-swipe-hint {
    display: none;
  }

  .client-gallery-actions {
    display: grid;
  }

  .client-download-workflow-heading,
  .client-device-guide-heading,
  .client-download-progress-meta {
    align-items: flex-start;
    flex-direction: column;
  }

  .client-download-steps {
    grid-template-columns: 1fr;
  }

  .client-download-actions {
    display: grid;
    grid-template-columns: 1fr;
    justify-content: stretch;
  }

  .client-download-actions .button {
    width: 100%;
  }

  .client-device-panel {
    padding-left: 18px;
  }

  .client-collection-copy {
    padding: 28px;
  }

  .client-collection-copy h1 {
    font-size: clamp(2.35rem, 12vw, 3.15rem);
    line-height: 0.98;
    overflow-wrap: anywhere;
  }

  .client-collection-copy p:not(.eyebrow) {
    font-size: 0.96rem;
    line-height: 1.5;
  }
}

@media (max-width: 380px) {
  .brand {
    gap: 8px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
    font-size: 0.62rem;
  }

  .nav {
    font-size: 0.78rem;
    gap: 7px;
  }

  .nav a {
    min-height: 36px;
  }

  h1 {
    font-size: 2.18rem;
  }

  h2 {
    font-size: 1.88rem;
  }
}

/* DJR studio collections dashboard */
.portal-body.admin-unlocked {
  --admin-teal: #18b99f;
  --admin-teal-dark: #087c6b;
  --admin-canvas: #f6f8f8;
  background: var(--admin-canvas);
  color: #202725;
}

.portal-body.admin-unlocked .portal-header {
  min-height: 72px;
  padding: 12px 28px;
  background: rgba(255, 255, 255, 0.96);
  border-color: #dde6e3;
  box-shadow: 0 1px 0 rgba(22, 53, 46, 0.04);
}

.portal-body.admin-unlocked .brand-mark {
  background: var(--admin-teal);
  color: #fff;
}

.portal-body.admin-unlocked .button.primary,
.portal-body.admin-unlocked .admin-status {
  border-color: var(--admin-teal);
  background: var(--admin-teal);
  color: #fff;
}

.portal-body.admin-unlocked .admin-shell {
  grid-template-columns: 250px minmax(0, 1fr);
  min-height: calc(100vh - 72px);
}

.portal-body.admin-unlocked .admin-sidebar {
  top: 72px;
  height: calc(100vh - 72px);
  gap: 4px;
  padding: 28px 18px;
  background: #fff;
  border-right: 1px solid #dde6e3;
  color: #4f5d59;
}

.portal-body.admin-unlocked .sidebar-label {
  margin: 0 10px 18px;
  color: #1d2926;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}

.portal-body.admin-unlocked .admin-sidebar a {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 12px;
  color: #45534f;
}

.portal-body.admin-unlocked .admin-sidebar a.active,
.portal-body.admin-unlocked .admin-sidebar a:hover,
.portal-body.admin-unlocked .admin-sidebar a:focus-visible {
  background: #e8f8f4;
  color: #086f60;
}

.admin-nav-mark {
  width: 12px;
  height: 12px;
  flex: 0 0 12px;
  border-radius: 50%;
  background: #9aa4a1;
}

.admin-nav-mark.teal { background: #18b99f; }
.admin-nav-mark.green { background: #4ab76c; }
.admin-nav-mark.blue { background: #2f9bc7; }
.admin-nav-mark.yellow { background: #f0b80d; }
.admin-nav-mark.red { background: #ef5757; }
.admin-nav-mark.violet { background: #7d6bd1; }
.admin-nav-mark.coral { background: #ec7e64; }
.admin-nav-mark.gray { background: #899491; }

.portal-body.admin-unlocked .admin-main {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 36px clamp(22px, 4vw, 58px) 70px;
}

.portal-body.admin-unlocked .admin-heading { order: 0; }
.portal-body.admin-unlocked .admin-grid { order: 1; }
.portal-body.admin-unlocked #client-links { order: 2; }
.portal-body.admin-unlocked #bookings { order: 3; }
.portal-body.admin-unlocked #message-center { order: 4; }
.portal-body.admin-unlocked #website { order: 5; }
.portal-body.admin-unlocked #gallery-tabs { order: 6; }
.portal-body.admin-unlocked #pricing { order: 7; }
.portal-body.admin-unlocked #payments { order: 8; }
.portal-body.admin-unlocked #site-setup { order: 9; }

.portal-body.admin-unlocked .admin-heading h1 {
  color: #121817;
  font-size: clamp(2.35rem, 5vw, 4rem);
  letter-spacing: 0;
}

.portal-body.admin-unlocked .admin-grid {
  gap: 12px;
}

.portal-body.admin-unlocked .admin-stat,
.portal-body.admin-unlocked .admin-board {
  border-color: #dce5e2;
  box-shadow: 0 8px 24px rgba(25, 54, 48, 0.05);
}

.portal-body.admin-unlocked .admin-stat {
  border-top: 3px solid var(--admin-teal);
}

.portal-body.admin-unlocked .admin-stat:nth-child(2) { border-top-color: #2f9bc7; }
.portal-body.admin-unlocked .admin-stat:nth-child(3) { border-top-color: #f0b80d; }
.portal-body.admin-unlocked .admin-stat:nth-child(4) { border-top-color: #ef5757; }

.portal-body.admin-unlocked .admin-board {
  margin-top: 18px;
  padding: 24px;
}

.portal-body.admin-unlocked .board-heading h2 {
  color: #151c1a;
  font-size: 1.6rem;
}

.collection-toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(190px, 0.35fr);
  gap: 12px;
  margin-bottom: 16px;
}

.collection-toolbar label,
.payment-link-fields label {
  display: grid;
  gap: 7px;
  color: #43514d;
  font-weight: 850;
}

.new-collection-panel {
  margin: 0 0 22px;
  border: 1px solid #d8e5e1;
  border-radius: 8px;
  background: #f8fbfa;
}

.new-collection-panel summary {
  width: fit-content;
  min-height: 44px;
  display: flex;
  align-items: center;
  margin: 14px;
  border-radius: 6px;
  padding: 0 18px;
  background: var(--admin-teal);
  color: #fff;
  cursor: pointer;
  font-weight: 900;
  list-style: none;
}

.new-collection-panel summary::-webkit-details-marker { display: none; }
.new-collection-panel[open] summary { background: var(--admin-teal-dark); }
.new-collection-panel .editor-form { padding: 0 16px 18px; }

.portal-body.admin-unlocked .client-access-settings {
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  border-color: #d7e5e1;
  background: #f9fbfa;
}

.portal-body.admin-unlocked .admin-check-option {
  min-height: 58px;
  border: 1px solid #b9d8d0;
  background: #fff;
  color: #1c2a26;
}

.portal-body.admin-unlocked .admin-check-option input {
  accent-color: var(--admin-teal);
}

.portal-body.admin-unlocked .admin-check-option span {
  color: #1c2a26;
}

.portal-body.admin-unlocked .passcode-field input:disabled {
  opacity: 0.55;
  background: #edf1f0;
}

.portal-body.admin-unlocked .client-link-workspace {
  grid-template-columns: 1fr;
}

.portal-body.admin-unlocked .client-gallery-admin-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.portal-body.admin-unlocked .client-gallery-admin-card {
  display: block;
  overflow: hidden;
  padding: 0;
  border-color: #d9e3e0;
  background: #fff;
  box-shadow: 0 8px 22px rgba(24, 54, 47, 0.06);
}

.portal-body.admin-unlocked .client-gallery-admin-cover {
  min-height: 0;
  height: 220px;
  border-radius: 0;
  background: #dde9e5;
}

.portal-body.admin-unlocked .client-gallery-admin-cover img {
  width: 100%;
}

.portal-body.admin-unlocked .client-gallery-admin-info {
  padding: 16px;
}

.portal-body.admin-unlocked .client-gallery-admin-info h4 {
  color: #18201e;
  font-size: 1.2rem;
}

.portal-body.admin-unlocked .client-gallery-badges span {
  border-radius: 999px;
  background: #e9f7f3;
  color: #236659;
}

.portal-body.admin-unlocked .client-gallery-admin-info .board-actions {
  gap: 6px;
}

.portal-body.admin-unlocked .client-gallery-admin-info .tool-button {
  min-height: 36px;
  padding: 0 10px;
  font-size: 0.78rem;
}

.portal-body.admin-unlocked .client-link-workspace > div:last-child {
  display: grid;
  grid-template-columns: minmax(280px, 0.7fr) minmax(320px, 1.3fr);
  gap: 16px;
}

.portal-body.admin-unlocked .client-link-workspace > div:last-child > h3 {
  grid-column: 1 / -1;
}

.portal-body.admin-unlocked .client-admin-preview {
  margin: 0;
}

.payment-settings-panel {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.payment-link-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.payment-link-fields.full,
.client-access-settings .full {
  grid-column: 1 / -1;
}

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

.website-editor-form {
  display: grid;
  gap: 16px;
}

.website-editor-group {
  margin: 0;
  border: 1px solid #d8e5e1;
  border-radius: 8px;
  padding: 18px;
  background: #f9fbfa;
}

.website-editor-group legend {
  padding: 0 8px;
  color: #1b2824;
  font-size: 1rem;
  font-weight: 950;
}

.admin-upload-field {
  border: 1px dashed #9ec9be;
  border-radius: 8px;
  padding: 12px;
  background: #eff9f6;
}

.website-editor-actions {
  position: sticky;
  bottom: 12px;
  z-index: 3;
  border: 1px solid #d7e4e0;
  border-radius: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 26px rgba(25, 54, 48, 0.1);
  backdrop-filter: blur(12px);
}

.website-live-preview {
  position: sticky;
  top: 92px;
  overflow: hidden;
  border: 1px solid #d6e1de;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(25, 54, 48, 0.08);
}

.website-live-preview > span {
  display: block;
  padding: 12px 14px;
  border-bottom: 1px solid #dce5e2;
  color: #4b5a56;
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.website-preview-hero {
  position: relative;
  min-height: 430px;
  display: flex;
  align-items: end;
  overflow: hidden;
  padding: 24px;
  background: #17231f;
  color: #fff;
}

.website-preview-hero img,
.website-preview-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.website-preview-hero img {
  object-fit: cover;
}

.website-preview-shade {
  background: linear-gradient(0deg, rgba(16, 31, 26, 0.95), rgba(16, 31, 26, 0.25));
}

.website-preview-copy {
  position: relative;
  z-index: 1;
}

.website-preview-copy small {
  color: #f0d38a;
  font-weight: 900;
}

.website-preview-copy h3 {
  margin: 10px 0;
  color: #fff;
  font-size: 2rem;
  line-height: 1;
}

.website-preview-copy p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.55;
}

@media (max-width: 1120px) {
  .website-editor-layout {
    grid-template-columns: 1fr;
  }

  .website-live-preview {
    position: static;
    order: -1;
  }

  .website-preview-hero {
    min-height: 340px;
  }
}

@media (max-width: 1180px) {
  .portal-body.admin-unlocked .client-gallery-admin-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .portal-body.admin-unlocked .admin-shell {
    grid-template-columns: 1fr;
  }

  .portal-body.admin-unlocked .admin-sidebar {
    position: sticky;
    top: 72px;
    z-index: 8;
    height: auto;
    padding: 10px 14px;
    border-right: 0;
    border-bottom: 1px solid #dde6e3;
  }

  .portal-body.admin-unlocked .sidebar-label { display: none; }
  .portal-body.admin-unlocked .admin-sidebar a { padding: 9px 10px; }

  .portal-body.admin-unlocked .client-gallery-admin-list,
  .portal-body.admin-unlocked .client-link-workspace > div:last-child,
  .collection-toolbar,
  .payment-link-fields,
  .portal-body.admin-unlocked .client-access-settings {
    grid-template-columns: 1fr;
  }

  .portal-body.admin-unlocked .client-link-workspace > div:last-child > h3,
  .payment-link-fields.full,
  .client-access-settings .full {
    grid-column: auto;
  }
}

@media (max-width: 640px) {
  .portal-body.admin-unlocked .portal-header {
    align-items: stretch;
    padding: 10px 12px;
  }

  .portal-body.admin-unlocked .portal-header .brand span:last-child { display: none; }
  .portal-body.admin-unlocked .portal-actions .button.primary { display: none; }
  .portal-body.admin-unlocked .admin-main { padding: 22px 14px 50px; }
  .portal-body.admin-unlocked .admin-board { padding: 16px; }
  .portal-body.admin-unlocked .client-gallery-admin-list { grid-template-columns: 1fr; }
  .portal-body.admin-unlocked .client-gallery-admin-cover { height: 250px; }
  .portal-body.admin-unlocked .admin-heading { align-items: center; }
  .portal-body.admin-unlocked .admin-heading h1 { font-size: 2.35rem; }
}

/* Client download chooser inspired by professional gallery delivery tools. */
body.client-download-chooser-open {
  overflow: hidden;
}

.client-download-chooser-backdrop {
  position: fixed;
  inset: 0;
  z-index: 140;
  display: grid;
  place-items: center;
  overflow-y: auto;
  padding: 24px;
  background: rgba(17, 24, 21, 0.74);
  backdrop-filter: blur(5px);
}

.client-download-chooser-backdrop[hidden] {
  display: none !important;
}

.client-download-chooser {
  position: relative;
  width: min(690px, 100%);
  border: 1px solid #d7dfdc;
  border-radius: 8px;
  padding: clamp(26px, 5vw, 48px);
  background: #fff;
  box-shadow: 0 24px 70px rgba(17, 27, 23, 0.28);
  color: #1b211f;
}

.client-download-chooser h2 {
  margin: 5px 0 30px;
  color: #18201d;
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1;
  letter-spacing: 0;
}

.client-download-chooser-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  color: #59615e;
  cursor: pointer;
  font-size: 2rem;
  line-height: 1;
}

.client-download-option-group {
  display: grid;
  gap: 10px;
  margin: 0 0 26px;
  border: 0;
  padding: 0;
}

.client-download-option-group legend {
  margin-bottom: 12px;
  color: #69716e;
  font-size: 0.82rem;
  font-weight: 950;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.client-download-choice,
.client-download-destination {
  min-height: 84px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  border: 1px solid #d8dfdc;
  border-radius: 6px;
  padding: 14px 18px;
  background: #fff;
  cursor: pointer;
}

.client-download-choice:has(input:checked) {
  border-color: #176f60;
  box-shadow: 0 0 0 2px rgba(23, 111, 96, 0.12);
}

.client-download-choice input {
  width: 22px;
  height: 22px;
  margin: 0;
  accent-color: #176f60;
}

.client-download-choice span,
.client-download-destination > span:last-child {
  display: grid;
  gap: 4px;
}

.client-download-choice strong,
.client-download-destination strong {
  color: #252b29;
  font-size: 1rem;
}

.client-download-choice small,
.client-download-destination small {
  color: #6d7572;
  font-weight: 700;
  line-height: 1.4;
}

.client-download-destination {
  grid-template-columns: 28px 30px minmax(0, 1fr);
  cursor: default;
}

.client-download-destination-check {
  color: #176f60;
  font-size: 1.15rem;
  font-weight: 950;
}

.client-download-phone-icon {
  width: 20px;
  height: 31px;
  border: 2px solid #59645f;
  border-radius: 4px;
  position: relative;
}

.client-download-phone-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 3px;
  width: 4px;
  height: 2px;
  border-radius: 2px;
  background: #59645f;
  transform: translateX(-50%);
}

.client-download-remember {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 6px 0 22px;
  color: #4f5855;
}

.client-download-remember input {
  width: 20px;
  height: 20px;
  accent-color: #176f60;
}

.client-download-confirm {
  width: 100%;
  min-height: 58px;
  border: 0;
  border-radius: 6px;
  padding: 0 20px;
  background: #173b33;
  color: #fff;
  cursor: pointer;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.client-download-confirm:hover,
.client-download-confirm:focus-visible {
  background: #0d6e5c;
}

@media (max-width: 640px) {
  .client-download-chooser-backdrop {
    align-items: end;
    padding: 0;
  }

  .client-download-chooser {
    max-height: 94vh;
    overflow-y: auto;
    border-radius: 8px 8px 0 0;
    padding: 28px 18px calc(24px + env(safe-area-inset-bottom));
  }

  .client-download-chooser h2 {
    margin-bottom: 24px;
    font-size: 2rem;
  }

  .client-download-choice,
  .client-download-destination {
    min-height: 76px;
    padding: 12px;
  }
}

/* Admin workspaces, collection management, and visible batch uploads. */
.admin-board[hidden],
.admin-grid[hidden] {
  display: none !important;
}

.admin-workspace-description {
  max-width: 720px;
  margin: 8px 0 0;
  color: #60706b;
  line-height: 1.5;
}

.portal-body.admin-unlocked .client-gallery-admin-list {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.portal-body.admin-unlocked .client-gallery-admin-card {
  min-width: 0;
}

.portal-body.admin-unlocked .client-gallery-admin-cover {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
}

.client-collection-meta {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #6e7774 !important;
  font-size: 0.86rem;
}

.client-collection-live-dot {
  width: 9px;
  height: 9px;
  flex: 0 0 9px;
  border-radius: 50%;
  background: var(--admin-teal);
}

.client-collection-primary-actions {
  margin-top: 12px;
}

.client-collection-manager {
  margin-top: 14px;
  border-top: 1px solid #dce5e2;
  padding-top: 12px;
}

.client-collection-manager > summary {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 6px;
  padding: 0 11px;
  background: #edf5f2;
  color: #205f54;
  cursor: pointer;
  font-size: 0.84rem;
  font-weight: 950;
  list-style: none;
}

.client-collection-manager > summary::after {
  content: "+";
  font-size: 1.1rem;
}

.client-collection-manager[open] > summary::after {
  content: "−";
}

.client-collection-manager > summary::-webkit-details-marker {
  display: none;
}

.client-collection-settings,
.client-collection-upload {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  border: 1px solid #dde8e4;
  border-radius: 6px;
  padding: 12px;
  background: #f9fbfa;
}

.client-collection-settings .admin-check-option.compact {
  min-height: 46px;
  padding: 9px 10px;
  font-size: 0.82rem;
}

.client-collection-settings .admin-check-option.compact input {
  width: 20px;
  height: 20px;
  min-width: 20px;
}

.client-collection-passcode {
  font-size: 0.8rem;
}

.client-collection-photo-manager {
  margin: 14px 0;
}

.client-collection-photo-manager h5 {
  margin: 0 0 9px;
  color: #26332f;
  font-size: 0.84rem;
}

.client-collection-photo-manager p {
  margin: 8px 0 0;
  color: #6b7672;
  font-size: 0.78rem;
}

.client-collection-photo-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
}

.client-collection-photo-strip figure {
  position: relative;
  aspect-ratio: 1;
  margin: 0;
  overflow: hidden;
  border-radius: 4px;
  background: #dce5e2;
}

.client-collection-photo-strip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.client-collection-photo-strip figure > div {
  position: absolute;
  inset: auto 3px 3px;
  display: flex;
  justify-content: center;
  gap: 3px;
  opacity: 0;
  transition: opacity 160ms ease;
}

.client-collection-photo-strip figure:hover > div,
.client-collection-photo-strip figure:focus-within > div {
  opacity: 1;
}

.client-collection-photo-strip button {
  min-height: 28px;
  border: 0;
  border-radius: 4px;
  padding: 0 6px;
  background: rgba(255, 255, 255, 0.94);
  color: #26322f;
  cursor: pointer;
  font-size: 0.66rem;
  font-weight: 950;
}

.admin-upload-dropzone {
  border: 1px dashed #82bbae;
  border-radius: 6px;
  padding: 16px;
  background: #edf8f5;
  cursor: pointer;
}

.admin-upload-dropzone span {
  color: #163f36;
  font-size: 0.95rem;
  font-weight: 950;
}

.admin-upload-dropzone small {
  color: #5d6f6a;
  font-weight: 700;
  line-height: 1.45;
}

.admin-upload-dropzone input {
  border-color: #b6d6ce;
  background: #fff;
}

.admin-upload-dropzone.compact {
  padding: 11px;
}

.admin-upload-queue {
  margin: 14px 0;
  border: 1px solid #d4e4df;
  border-radius: 6px;
  padding: 14px;
  background: #fff;
}

.admin-upload-queue[hidden] {
  display: none !important;
}

.admin-upload-queue-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: #25332f;
}

.admin-upload-queue-heading span {
  color: #087c6b;
  font-weight: 950;
}

.admin-upload-queue progress {
  width: 100%;
  height: 11px;
  margin: 12px 0;
  border: 0;
  border-radius: 999px;
  accent-color: var(--admin-teal);
  background: #dfeae7;
}

.admin-upload-file-list {
  max-height: 250px;
  overflow: auto;
  border-top: 1px solid #e4ece9;
}

.admin-upload-file {
  min-width: 0;
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid #edf2f0;
  padding: 9px 2px;
}

.admin-upload-file-icon {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #a4afac;
}

.admin-upload-file[data-upload-state="complete"] .admin-upload-file-icon {
  background: var(--admin-teal);
}

.admin-upload-file[data-upload-state="error"] .admin-upload-file-icon {
  background: #b63f34;
}

.admin-upload-file-name {
  overflow: hidden;
  color: #34423e;
  font-size: 0.82rem;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-upload-file small {
  color: #7b8582;
}

.admin-upload-file strong {
  color: #176c5d;
  font-size: 0.75rem;
  white-space: nowrap;
}

.admin-upload-more {
  margin: 10px 0 0;
  color: #66736f;
  font-size: 0.8rem;
}

@media (max-width: 1500px) {
  .portal-body.admin-unlocked .client-gallery-admin-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1180px) {
  .portal-body.admin-unlocked .client-gallery-admin-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .portal-body.admin-unlocked .client-gallery-admin-list {
    grid-template-columns: 1fr;
  }

  .client-collection-photo-strip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .client-collection-photo-strip figure > div {
    opacity: 1;
  }

  .admin-upload-file {
    grid-template-columns: 10px minmax(0, 1fr) auto;
  }

  .admin-upload-file small {
    display: none;
  }
}

/* Final public homepage polish: desktop depth + phone-first navigation. */
.public-site {
  color-scheme: dark;
  --public-bg: #080808;
  --public-panel: #111111;
  --public-panel-soft: #181818;
  --public-line: rgba(255, 255, 255, 0.12);
  --public-text: #f7f2eb;
  --public-muted: rgba(247, 242, 235, 0.7);
  --public-accent: #d4ad78;
  --public-accent-strong: #f0d5af;
}

.public-site .public-header {
  position: fixed;
  z-index: 50;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto;
  align-items: center;
  gap: clamp(14px, 2vw, 28px);
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(8, 8, 8, 0.84);
  border-bottom: 1px solid var(--public-line);
  backdrop-filter: blur(18px);
}

.public-site .brand {
  min-width: 0;
  gap: 12px;
}

.public-site .brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
  color: #080808;
  font-weight: 950;
}

.brand-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
  line-height: 1;
}

.brand-copy span,
.brand-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-copy small {
  color: var(--public-muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.public-site .public-nav {
  display: flex;
  gap: clamp(14px, 2.5vw, 28px);
}

.public-site .header-booking-button {
  min-height: 44px;
  padding: 0 18px;
  white-space: nowrap;
}

.mobile-menu-button {
  display: none;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--public-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.mobile-menu-button svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.public-hero {
  min-height: 100vh;
  align-items: center;
  padding: clamp(104px, 11vw, 150px) clamp(18px, 5vw, 72px) clamp(52px, 7vw, 92px);
}

.public-hero::after {
  background:
    linear-gradient(90deg, rgba(8, 8, 8, 0.94), rgba(8, 8, 8, 0.72) 48%, rgba(8, 8, 8, 0.3)),
    linear-gradient(0deg, rgba(8, 8, 8, 0.98), transparent 56%, rgba(8, 8, 8, 0.25));
}

.public-hero-inner {
  position: relative;
  z-index: 1;
  width: min(100%, 1240px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.78fr);
  align-items: center;
  gap: clamp(34px, 5vw, 72px);
}

.public-hero-content {
  max-width: 820px;
  padding-top: 0;
}

.public-hero-badge {
  width: fit-content;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.08);
  color: #f4e0c4;
  backdrop-filter: blur(16px);
}

.public-hero h1 {
  font-size: clamp(3.4rem, 7.4vw, 7.4rem);
  line-height: 0.91;
}

.hero-feature-card {
  overflow: hidden;
  border: 1px solid var(--public-line);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(16px);
}

.hero-feature-card img {
  aspect-ratio: 4 / 5;
  border-radius: 8px;
  object-fit: cover;
}

.hero-feature-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.hero-feature-stats span {
  min-width: 0;
  display: grid;
  gap: 3px;
  padding: 13px 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.52);
  text-align: center;
}

.hero-feature-stats strong,
.hero-feature-stats small {
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-feature-stats strong {
  color: #fff;
  font-size: clamp(0.92rem, 1.3vw, 1.08rem);
}

.hero-feature-stats small {
  color: var(--public-muted);
  font-size: 0.74rem;
  font-weight: 800;
}

.public-section {
  width: min(100%, 1360px);
  margin: 0 auto;
}

.public-services,
.public-booking {
  width: auto;
  max-width: none;
}

.public-featured-gallery {
  gap: 16px;
}

.public-gallery-card {
  border-color: rgba(255, 255, 255, 0.14);
}

.public-gallery-card h3 {
  font-size: clamp(1.3rem, 2vw, 1.85rem);
}

.service-grid {
  gap: 16px;
}

.service-card {
  min-height: 320px;
  align-content: start;
  gap: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.03)),
    #101010;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.service-card:hover,
.service-card:focus-within {
  border-color: rgba(212, 173, 120, 0.48);
  box-shadow: 0 24px 62px rgba(0, 0, 0, 0.3);
  transform: translateY(-3px);
}

.service-card .service-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #fff;
  color: #080808;
  letter-spacing: 0;
}

.service-card .service-icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-card small {
  color: var(--public-accent);
  font-size: 0.76rem;
  font-weight: 950;
}

.about-section {
  width: min(100%, 1360px);
}

.about-copy p + p {
  margin-top: 18px;
}

.about-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 30px;
}

.about-stat-grid div {
  display: grid;
  gap: 6px;
  padding: 18px;
  border: 1px solid var(--public-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.about-stat-grid strong {
  color: #fff;
  font-size: clamp(1.5rem, 2.6vw, 2.2rem);
}

.about-stat-grid span {
  color: var(--public-muted);
  font-size: 0.88rem;
  font-weight: 800;
}

.public-booking {
  display: block;
  padding: clamp(70px, 9vw, 120px) clamp(18px, 5vw, 72px);
  background: #0b0b0b;
}

.booking-panel {
  width: min(100%, 1100px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  gap: clamp(28px, 4vw, 52px);
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  padding: clamp(24px, 5vw, 52px);
  background: linear-gradient(135deg, #fff, #e9e3d8);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.42);
  color: #111;
}

.booking-panel .booking-copy {
  position: static;
}

.booking-panel .eyebrow {
  color: #71512f;
}

.public-booking .booking-copy h2,
.public-booking .booking-copy p:not(.eyebrow) {
  color: #111;
}

.booking-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.public-site .light-outline {
  border-color: rgba(17, 17, 17, 0.18);
  color: #111;
}

.public-site .light-outline:hover,
.public-site .light-outline:focus-visible {
  background: rgba(17, 17, 17, 0.07);
}

.public-site .booking-form {
  background: #fff;
  border-color: rgba(17, 17, 17, 0.1);
  box-shadow: 0 18px 44px rgba(17, 17, 17, 0.12);
}

.public-site .booking-form label {
  color: #3a332d;
}

.public-site .booking-form input,
.public-site .booking-form select,
.public-site .booking-form textarea {
  background: #f7f5f1;
  border-color: rgba(17, 17, 17, 0.14);
  color: #111;
}

.public-site .booking-form input::placeholder,
.public-site .booking-form textarea::placeholder {
  color: rgba(17, 17, 17, 0.44);
}

.public-site .booking-form .form-note {
  color: #66523a;
  font-size: 0.78rem;
  text-align: center;
}

.public-site .dark {
  background: #111;
  color: #fff;
}

.public-site .dark:hover,
.public-site .dark:focus-visible {
  background: #303030;
}

@media (max-width: 1040px) {
  .public-hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-feature-card {
    display: none;
  }

  .public-hero-content {
    max-width: 900px;
  }
}

@media (max-width: 900px) {
  .public-site .public-header {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .public-site .header-booking-button {
    display: none;
  }

  .mobile-menu-button {
    display: grid;
  }

  .public-site .public-nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 16px;
    right: 16px;
    display: none;
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 12px;
    border: 1px solid var(--public-line);
    border-radius: 8px;
    background: #080808;
    box-shadow: 0 22px 48px rgba(0, 0, 0, 0.44);
  }

  .public-nav-open .public-nav {
    display: grid;
  }

  .public-site .public-nav a {
    min-height: 44px;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
  }

  .booking-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  body.public-site section {
    scroll-margin-top: 92px;
  }

  .public-site .public-header {
    display: grid;
    padding: 12px 14px;
  }

  .brand-copy small {
    font-size: 0.7rem;
  }

  .public-hero {
    min-height: auto;
    padding: 106px 18px 54px;
  }

  .public-hero h1 {
    font-size: clamp(2.72rem, 13.5vw, 4.2rem);
    line-height: 0.93;
  }

  .public-hero p:not(.eyebrow) {
    font-size: 1rem;
    line-height: 1.62;
  }

  .public-site .hero-actions {
    display: grid;
  }

  .public-site .button,
  .public-site .hero-actions .button,
  .public-site .booking-actions .button,
  .public-site .public-contact-form .button {
    width: 100%;
  }

  .public-section,
  .public-booking {
    padding-top: 76px;
    padding-right: 18px;
    padding-left: 18px;
  }

  .public-featured-gallery {
    grid-template-columns: 1fr;
    grid-auto-rows: 315px;
  }

  .service-grid,
  .about-stat-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: auto;
    padding: 24px;
  }

  .booking-panel {
    padding: 20px;
  }

  .booking-actions {
    display: grid;
  }

  .public-footer {
    display: grid;
    text-align: center;
  }
}

/* DJR client delivery: full-width collection wall */
.client-delivery-body {
  --client-green: #263d34;
  --client-green-deep: #17231f;
  --client-ivory: #f8f5ef;
  --client-gold: #f0d38a;
  background: var(--client-ivory);
}

.client-delivery-header {
  min-height: 64px;
  padding: 10px clamp(14px, 3vw, 34px);
  border-bottom-color: #ded8cd;
  background: rgba(248, 245, 239, 0.96);
  box-shadow: 0 1px 10px rgba(23, 35, 31, 0.05);
}

.client-delivery-header .brand-mark {
  background: var(--client-green);
  color: var(--client-gold);
}

.client-delivery-title {
  position: absolute;
  left: 50%;
  max-width: min(42vw, 560px);
  margin: 0;
  overflow: hidden;
  transform: translateX(-50%);
  color: var(--client-green-deep);
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.client-delivery-tools {
  display: flex;
  align-items: center;
  gap: 3px;
}

.client-delivery-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  padding: 0;
  background: transparent;
  color: var(--client-green);
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.client-delivery-icon[hidden] {
  display: none;
}

.client-delivery-icon:hover,
.client-delivery-icon:focus-visible,
.client-delivery-icon.active {
  background: #e4ebe5;
  color: var(--client-green-deep);
}

.client-delivery-icon:active {
  transform: scale(0.94);
}

.client-delivery-icon svg,
.client-icon-action svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.client-delivery-icon.active svg,
.client-icon-action.active svg {
  fill: currentColor;
}

.client-gallery-page.client-collection-page {
  gap: 0;
  padding: 0;
}

.client-collection-page .client-collection-hero {
  min-height: min(74svh, 720px);
  border-radius: 0;
  background: var(--client-green-deep);
}

.client-collection-page .client-collection-shade {
  background:
    linear-gradient(90deg, rgba(23, 35, 31, 0.88), rgba(23, 35, 31, 0.38) 62%, rgba(23, 35, 31, 0.14)),
    linear-gradient(0deg, rgba(23, 35, 31, 0.78), rgba(23, 35, 31, 0.03) 60%);
}

.client-collection-page .client-collection-copy .eyebrow {
  color: var(--client-gold);
}

.client-collection-page .client-collection-copy .button.primary {
  border-color: var(--client-ivory);
  background: var(--client-ivory);
  color: var(--client-green-deep);
}

.client-collection-page .client-collection-copy [data-download-all-client] {
  border-color: var(--client-gold);
  background: var(--client-gold);
  color: var(--client-green-deep);
}

.client-collection-page .client-gallery-tools {
  display: flex;
  justify-content: center;
  gap: 0;
  padding: 14px 20px;
  overflow-x: auto;
  border-bottom: 1px solid #e2ddd4;
  background: var(--client-ivory);
  scrollbar-width: none;
}

.client-collection-page .client-gallery-tools::-webkit-scrollbar {
  display: none;
}

.client-collection-page .client-gallery-tools span {
  position: relative;
  flex: 0 0 auto;
  border: 0;
  border-radius: 0;
  padding: 4px 15px;
  background: transparent;
  color: #59655f;
  font-size: 0.76rem;
  font-weight: 800;
}

.client-collection-page .client-gallery-tools span + span::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--client-gold);
  transform: translateY(-50%);
}

.client-collection-page .client-download-workflow,
.client-collection-page .client-device-guide {
  width: min(1120px, calc(100% - 40px));
  margin-right: auto;
  margin-left: auto;
}

.client-collection-page .client-download-workflow {
  margin-top: 28px;
  margin-bottom: 28px;
}

.client-collection-page .client-device-guide {
  margin-top: 48px;
  margin-bottom: 48px;
  border-color: #ded8cd;
  box-shadow: none;
}

.client-collection-page .client-device-tab.active,
.client-collection-page .client-download-workflow progress::-webkit-progress-value,
.client-collection-page .client-download-workflow progress::-moz-progress-bar {
  background: var(--client-green);
}

.client-collection-page .client-device-panel {
  border-left-color: var(--client-gold);
}

.client-collection-page .client-proof-grid {
  display: block;
  column-count: 4;
  column-gap: 2px;
  padding: 2px 0 0;
  background: #fff;
  scroll-margin-top: 64px;
}

.client-collection-page .client-proof-grid.is-empty {
  column-count: auto;
  padding: 68px 20px;
  background: var(--client-ivory);
}

.client-collection-page .client-proof-card {
  position: relative;
  width: 100%;
  margin: 0 0 2px;
  overflow: hidden;
  break-inside: avoid;
  border: 0;
  border-radius: 0;
  background: var(--client-green-deep);
  box-shadow: none;
}

.client-collection-page .client-proof-image {
  background: var(--client-green-deep);
}

.client-collection-page .client-proof-image img {
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
  transform: none;
}

.client-collection-page .client-proof-card:hover .client-proof-image img,
.client-collection-page .client-proof-card:focus-within .client-proof-image img {
  transform: none;
}

.client-collection-page .client-proof-actions {
  position: absolute;
  top: 9px;
  right: 9px;
  z-index: 5;
  display: flex;
  gap: 6px;
  padding: 0;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.client-collection-page .client-proof-card:hover .client-proof-actions,
.client-collection-page .client-proof-card:focus-within .client-proof-actions {
  opacity: 1;
  transform: translateY(0);
}

.client-collection-page .client-icon-action {
  width: 40px;
  height: 40px;
  min-height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 50%;
  padding: 0;
  background: rgba(248, 245, 239, 0.94);
  color: var(--client-green-deep);
  box-shadow: 0 5px 16px rgba(23, 35, 31, 0.18);
  backdrop-filter: blur(8px);
}

.client-collection-page .client-icon-action:hover,
.client-collection-page .client-icon-action:focus-visible {
  background: #fff;
}

.client-collection-page .client-icon-action.active {
  border-color: var(--client-gold);
  background: var(--client-gold);
  color: var(--client-green-deep);
}

.client-proof-empty {
  max-width: 520px;
  margin: 0 auto;
  text-align: center;
}

.client-proof-empty h2 {
  margin: 0 0 8px;
  color: var(--client-green-deep);
  font-size: clamp(1.8rem, 5vw, 2.8rem);
}

.client-proof-empty p:not(.eyebrow) {
  color: #66716c;
}

.client-proof-empty .button {
  width: auto;
  margin-top: 14px;
  background: var(--client-green);
}

@media (max-width: 1100px) {
  .client-collection-page .client-proof-grid {
    column-count: 3;
  }
}

@media (max-width: 700px) {
  .client-delivery-header {
    min-height: 58px;
    padding: 8px 10px;
  }

  .client-delivery-header .brand > span:last-child,
  .client-delivery-title {
    display: none;
  }

  .client-delivery-header .brand-mark {
    width: 38px;
    height: 38px;
  }

  .client-delivery-tools {
    gap: 0;
  }

  .client-delivery-icon {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
  }

  .client-collection-page .client-collection-hero {
    min-height: min(72svh, 620px);
  }

  .client-collection-page .client-gallery-tools {
    justify-content: flex-start;
    padding: 11px 8px;
  }

  .client-collection-page .client-gallery-tools span {
    padding: 4px 11px;
    font-size: 0.7rem;
  }

  .client-collection-page .client-proof-grid {
    column-count: 2;
    column-gap: 2px;
    scroll-margin-top: 58px;
  }

  .client-collection-page .client-proof-actions {
    top: 7px;
    right: 7px;
    gap: 5px;
    opacity: 1;
    transform: none;
  }

  .client-collection-page .client-icon-action {
    width: 36px;
    height: 36px;
    min-height: 36px;
  }

  .client-collection-page .client-icon-action svg {
    width: 18px;
    height: 18px;
  }

  .client-collection-page .client-download-workflow,
  .client-collection-page .client-device-guide {
    width: calc(100% - 24px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .roll-lightbox-image-next,
  .roll-lightbox-image-previous,
  .client-lightbox-image-next,
  .client-lightbox-image-previous,
  .roll-lightbox-loader,
  .client-lightbox-loader {
    animation: none;
  }

  .roll-lightbox-stage img,
  .client-lightbox img {
    transition: none;
  }
}

/* DJR production portfolio polish */
.photo-roll-body {
  background: #f8f5ef;
  color: #17231f;
}

.photo-roll-body .site-header {
  position: sticky;
  color: #17231f;
  background: rgba(248, 245, 239, 0.96);
  border-bottom-color: #ded8cd;
}

.photo-roll-body .site-header .brand,
.photo-roll-body .site-header .nav {
  color: #263d34;
}

.photo-roll-body .site-header .brand-mark {
  border-radius: 8px;
  background: #263d34;
  color: #f0d38a;
}

.photo-roll-page {
  padding-top: 56px;
}

.photo-roll-hero {
  margin-bottom: 52px;
}

.photo-roll-hero h1,
.gallery-feed-toolbar h2 {
  color: #17231f;
  font-family: var(--body-font);
  font-weight: 850;
  letter-spacing: 0;
}

.photo-roll-hero h1 {
  max-width: 860px;
  font-size: 4rem;
  line-height: 1.02;
}

.photo-roll-hero p:not(.eyebrow),
.photo-roll-cta p {
  color: #59655f;
}

.photo-roll-body .eyebrow {
  color: #8b692b;
}

.photo-roll-layout {
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.gallery-feed-panel {
  background: transparent;
}

.gallery-feed-toolbar {
  top: 0;
  align-items: center;
  border: 1px solid #ded8cd;
  border-radius: 8px;
  background: rgba(248, 245, 239, 0.94);
  box-shadow: 0 8px 28px rgba(23, 35, 31, 0.08);
}

.photo-roll-filters .filter {
  border-color: #d8d2c8;
  color: #263d34;
}

.photo-roll-filters .filter.active {
  border-color: #263d34;
  background: #263d34;
}

.scrolling-photo-feed {
  column-count: 3;
  column-gap: 8px;
  padding: 24px 0;
}

.feed-photo {
  margin-bottom: 8px;
  border-width: 5px;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(23, 35, 31, 0.1);
}

.feed-photo img {
  border-radius: 4px;
}

.photo-roll-cta {
  padding: 24px 0 0;
  border-top: 1px solid #ded8cd;
}

@media (max-width: 900px) {
  .scrolling-photo-feed {
    column-count: 2;
  }
}

@media (max-width: 640px) {
  .photo-roll-body .site-header {
    display: grid;
    gap: 12px;
    padding: 12px 14px;
  }

  .photo-roll-body .site-header .nav {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    width: 100%;
  }

  .photo-roll-body .site-header .nav a {
    min-width: 0;
    border: 1px solid #ded8cd;
    border-radius: 8px;
    padding: 9px 6px;
    background: #fff;
    text-align: center;
  }

  .photo-roll-page {
    padding: 34px 10px 44px;
  }

  .photo-roll-hero {
    margin-bottom: 34px;
    padding: 0 4px;
  }

  .photo-roll-hero h1 {
    font-size: 2.55rem;
    line-height: 1.04;
  }

  .gallery-feed-toolbar {
    top: 0;
    display: grid;
    gap: 16px;
    padding: 16px 12px;
  }

  .gallery-feed-toolbar h2 {
    font-size: 1.45rem;
  }

  .scrolling-photo-feed {
    column-count: 2;
    column-gap: 4px;
    padding: 8px 0 18px;
  }

  .feed-photo {
    margin-bottom: 4px;
    border-width: 3px;
    box-shadow: none;
  }

  .photo-roll-cta {
    padding: 20px 4px 0;
  }

  .portal-body.admin-unlocked .admin-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .portal-body.admin-unlocked .admin-stat {
    min-height: 126px;
    padding: 20px 16px;
  }

  .portal-body.admin-unlocked .admin-stat span {
    font-size: 2rem;
  }

  .portal-body.admin-unlocked .portal-actions .button {
    padding-right: 8px;
    padding-left: 8px;
    font-size: 0.78rem;
  }
}

/* Public portfolio profile: compact photographer intro with a fast photo grid. */
.photo-roll-body {
  --portfolio-bg: #101916;
  --portfolio-panel: #17231f;
  --portfolio-panel-soft: #22322c;
  --portfolio-line: #3a4b44;
  --portfolio-text: #f8f5ef;
  --portfolio-muted: #b9c4be;
  --portfolio-gold: #f0d38a;
  background: var(--portfolio-bg);
  color: var(--portfolio-text);
}

.photo-roll-body .site-header {
  top: 0;
  z-index: 20;
  width: 100%;
  border-bottom: 1px solid rgba(240, 211, 138, 0.16);
  background: rgba(16, 25, 22, 0.94);
  color: var(--portfolio-text);
  backdrop-filter: blur(18px);
}

.photo-roll-body .site-header .brand,
.photo-roll-body .site-header .nav {
  color: var(--portfolio-text);
}

.photo-roll-body .site-header .brand-mark {
  border: 1px solid rgba(240, 211, 138, 0.42);
  background: var(--portfolio-panel-soft);
  color: var(--portfolio-gold);
}

.photo-roll-body .site-header .nav a {
  color: var(--portfolio-muted);
}

.photo-roll-body .site-header .nav a:hover,
.photo-roll-body .site-header .nav a:focus-visible {
  color: var(--portfolio-text);
}

.photo-roll-page {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 44px 24px 64px;
}

.portfolio-profile {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 22px 34px;
  padding: 10px 10px 34px;
}

.portfolio-profile-topline {
  display: contents;
}

.portfolio-avatar-ring {
  grid-row: 1 / span 2;
  width: 168px;
  height: 168px;
  align-self: start;
  border: 3px solid var(--portfolio-gold);
  border-radius: 50%;
  padding: 5px;
  background: var(--portfolio-panel-soft);
  box-shadow: 0 0 0 3px var(--portfolio-bg), 0 0 0 4px rgba(240, 211, 138, 0.32);
}

.portfolio-avatar-ring img {
  width: 100%;
  height: 100%;
  border: 2px solid var(--portfolio-bg);
  border-radius: 50%;
  object-fit: cover;
  object-position: 54% 42%;
}

.portfolio-profile-overview {
  min-width: 0;
  align-self: end;
}

.portfolio-profile-role {
  margin: 0 0 20px;
  color: var(--portfolio-text);
  font-size: clamp(1.1rem, 2.3vw, 1.45rem);
  font-weight: 850;
}

.portfolio-profile-role span {
  margin: 0 8px;
  color: var(--portfolio-gold);
}

.portfolio-profile-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 150px));
  gap: 14px;
}

.portfolio-profile-stats span {
  display: grid;
  gap: 3px;
}

.portfolio-profile-stats strong {
  overflow-wrap: anywhere;
  color: var(--portfolio-text);
  font-size: clamp(1.2rem, 2.3vw, 1.65rem);
  line-height: 1;
}

.portfolio-profile-stats small {
  color: var(--portfolio-muted);
  font-size: 0.82rem;
}

.portfolio-profile-bio {
  min-width: 0;
}

.portfolio-profile-bio .eyebrow {
  margin: 0 0 7px;
  color: var(--portfolio-gold);
}

.portfolio-profile-bio h1 {
  margin: 0;
  color: var(--portfolio-text);
  font-family: var(--body-font);
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
}

.portfolio-profile-bio p:not(.eyebrow) {
  max-width: 720px;
  margin: 13px 0 8px;
  color: var(--portfolio-muted);
  font-size: 1rem;
  line-height: 1.55;
}

.portfolio-profile-bio a {
  color: var(--portfolio-text);
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration-color: rgba(240, 211, 138, 0.65);
  text-underline-offset: 4px;
}

.portfolio-profile-actions {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) 52px;
  gap: 10px;
}

.profile-action {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--portfolio-line);
  border-radius: 7px;
  padding: 10px 18px;
  background: var(--portfolio-panel-soft);
  color: var(--portfolio-text);
  font-weight: 850;
  text-align: center;
}

.profile-action.primary {
  border-color: var(--portfolio-gold);
  background: var(--portfolio-gold);
  color: #17231f;
}

.profile-action.icon {
  width: 52px;
  padding: 0;
}

.profile-action.icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.profile-action.icon svg circle:last-child {
  fill: currentColor;
  stroke: none;
}

.profile-action:hover,
.profile-action:focus-visible {
  border-color: var(--portfolio-gold);
  background: #2d4038;
}

.profile-action.primary:hover,
.profile-action.primary:focus-visible {
  background: #f7e1a8;
}

.portfolio-highlights {
  grid-column: 1 / -1;
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding: 10px 2px 4px;
  scrollbar-width: none;
}

.portfolio-highlights::-webkit-scrollbar {
  display: none;
}

.portfolio-highlight {
  width: 86px;
  min-width: 86px;
  display: grid;
  justify-items: center;
  gap: 9px;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--portfolio-muted);
  cursor: pointer;
}

.portfolio-highlight-ring {
  width: 76px;
  height: 76px;
  display: block;
  border: 2px solid #54645d;
  border-radius: 50%;
  padding: 4px;
  background: var(--portfolio-bg);
  transition: border-color 160ms ease, transform 160ms ease;
}

.portfolio-highlight-ring img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.portfolio-highlight-label {
  width: 100%;
  overflow: hidden;
  font-size: 0.78rem;
  font-weight: 750;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.portfolio-highlight.active,
.portfolio-highlight:hover,
.portfolio-highlight:focus-visible {
  color: var(--portfolio-text);
}

.portfolio-highlight.active .portfolio-highlight-ring,
.portfolio-highlight:hover .portfolio-highlight-ring,
.portfolio-highlight:focus-visible .portfolio-highlight-ring {
  border-color: var(--portfolio-gold);
  transform: translateY(-2px);
}

.photo-roll-layout,
.gallery-feed-panel {
  background: var(--portfolio-bg);
}

.portfolio-grid-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--portfolio-line);
  border-bottom: 1px solid var(--portfolio-line);
}

.portfolio-grid-tabs span,
.portfolio-grid-tabs a {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-bottom: 2px solid transparent;
  color: #86958e;
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.portfolio-grid-tabs .active {
  border-bottom-color: var(--portfolio-text);
  color: var(--portfolio-text);
}

.portfolio-grid-tabs svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.scrolling-photo-feed {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 3px;
  padding: 3px 0 0;
  column-count: auto;
  column-gap: 3px;
  background: #fff;
}

.feed-photo,
.feed-photo.wide,
.feed-photo.tall {
  width: 100%;
  aspect-ratio: 4 / 5;
  display: block;
  margin: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: var(--portfolio-panel);
  box-shadow: none;
}

.feed-photo-open {
  width: 100%;
  height: 100%;
  background: var(--portfolio-panel);
}

.feed-photo img,
.feed-photo.wide img,
.feed-photo.tall img {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  border-radius: 0;
  object-fit: cover;
  transition: filter 160ms ease, transform 260ms ease;
}

.feed-photo-open:hover img,
.feed-photo-open:focus-visible img {
  filter: brightness(0.9);
  transform: scale(1.018);
}

.photo-roll-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 34px 6px 0;
  border-top: 0;
}

.photo-roll-cta p {
  margin: 0;
  color: var(--portfolio-muted);
}

.photo-roll-body .photo-roll-actions .button.primary {
  background: var(--portfolio-gold);
  color: #17231f;
}

.photo-roll-body .photo-roll-actions .ghost-dark {
  border-color: var(--portfolio-line);
  color: var(--portfolio-text);
}

.empty-feed {
  grid-column: 1 / -1;
  padding: 60px 20px;
  color: var(--portfolio-muted);
  text-align: center;
}

@media (max-width: 760px) {
  .photo-roll-body .site-header {
    min-height: 58px;
    display: flex;
    gap: 10px;
    padding: 9px 12px;
  }

  .photo-roll-body .site-header .brand {
    flex: 0 0 auto;
  }

  .photo-roll-body .site-header .brand > span:last-child {
    display: none;
  }

  .photo-roll-body .site-header .nav {
    min-width: 0;
    display: flex;
    justify-content: flex-end;
    gap: 2px;
    overflow: hidden;
  }

  .photo-roll-body .site-header .nav a {
    min-width: 0;
    border: 0;
    border-radius: 6px;
    padding: 8px 7px;
    background: transparent;
    font-size: 0.7rem;
  }

  .photo-roll-page {
    width: 100%;
    padding: 0 0 38px;
  }

  .portfolio-profile {
    grid-template-columns: 98px minmax(0, 1fr);
    gap: 16px 18px;
    padding: 22px 14px 20px;
  }

  .portfolio-avatar-ring {
    width: 94px;
    height: 94px;
    border-width: 2px;
    padding: 3px;
  }

  .portfolio-profile-role {
    margin-bottom: 15px;
    font-size: 0.96rem;
    line-height: 1.3;
  }

  .portfolio-profile-role span {
    margin: 0 4px;
  }

  .portfolio-profile-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
  }

  .portfolio-profile-stats strong {
    font-size: 1rem;
  }

  .portfolio-profile-stats small {
    font-size: 0.67rem;
  }

  .portfolio-profile-bio {
    grid-column: 1 / -1;
  }

  .portfolio-profile-bio h1 {
    font-size: 1.8rem;
  }

  .portfolio-profile-bio p:not(.eyebrow) {
    margin-top: 10px;
    font-size: 0.9rem;
    line-height: 1.45;
  }

  .portfolio-profile-bio a {
    font-size: 0.8rem;
  }

  .portfolio-profile-actions {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) 46px;
    gap: 7px;
  }

  .profile-action {
    min-height: 44px;
    padding: 8px 10px;
    font-size: 0.8rem;
  }

  .profile-action.icon {
    width: 46px;
  }

  .portfolio-highlights {
    gap: 12px;
    margin-right: -14px;
    padding-top: 6px;
    padding-right: 14px;
  }

  .portfolio-highlight {
    width: 72px;
    min-width: 72px;
  }

  .portfolio-highlight-ring {
    width: 66px;
    height: 66px;
  }

  .portfolio-highlight-label {
    font-size: 0.69rem;
  }

  .portfolio-grid-tabs span,
  .portfolio-grid-tabs a {
    min-height: 52px;
    gap: 5px;
    font-size: 0.68rem;
  }

  .scrolling-photo-feed {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2px;
    padding-top: 2px;
  }

  .photo-roll-cta {
    display: grid;
    gap: 18px;
    padding: 28px 16px 0;
  }

  .photo-roll-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .photo-roll-actions .button {
    min-width: 0;
    padding-right: 12px;
    padding-left: 12px;
    font-size: 0.8rem;
  }
}

/* Public portfolio masonry and protected purchase controls. */
.scrolling-photo-feed {
  display: block;
  column-count: 3;
  column-gap: 3px;
  padding: 3px;
  background: #fff;
}

.scrolling-photo-feed .feed-photo,
.scrolling-photo-feed .feed-photo.wide,
.scrolling-photo-feed .feed-photo.tall {
  position: relative;
  width: 100%;
  aspect-ratio: auto;
  display: block;
  break-inside: avoid;
  margin: 0 0 3px;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: var(--portfolio-panel);
  box-shadow: none;
}

.scrolling-photo-feed .feed-photo-open {
  display: block;
  width: 100%;
  height: auto;
  min-height: 0;
}

.scrolling-photo-feed .feed-photo img,
.scrolling-photo-feed .feed-photo.wide img,
.scrolling-photo-feed .feed-photo.tall img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
}

.roll-lightbox-purchase {
  position: absolute;
  top: 18px;
  right: 104px;
  z-index: 5;
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid rgb(255 255 255 / 22%);
  border-radius: 999px;
  padding: 10px 18px;
  background: #f8f5ef;
  color: #17231f;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 16px 36px rgb(0 0 0 / 26%);
}

.roll-lightbox-purchase:hover,
.roll-lightbox-purchase:focus-visible {
  background: #fff;
}

.roll-lightbox-purchase svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.roll-purchase-short {
  display: none;
}

@media (max-width: 760px) {
  .scrolling-photo-feed {
    column-count: 2;
    column-gap: 2px;
    padding: 2px;
  }

  .scrolling-photo-feed .feed-photo,
  .scrolling-photo-feed .feed-photo.wide,
  .scrolling-photo-feed .feed-photo.tall {
    margin-bottom: 2px;
  }

  .roll-lightbox-purchase {
    top: 14px;
    right: 72px;
    min-height: 42px;
    padding: 9px 12px;
    font-size: 0.78rem;
  }

  .roll-lightbox-close {
    top: 14px;
    right: 14px;
    width: 42px;
    min-width: 42px;
    min-height: 42px;
  }

  .roll-purchase-full {
    display: none;
  }

  .roll-purchase-short {
    display: inline;
  }
}

@media (max-width: 380px) {
  .photo-roll-body .site-header .nav a {
    padding-right: 5px;
    padding-left: 5px;
    font-size: 0.65rem;
  }

  .portfolio-profile {
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 15px;
    padding-right: 12px;
    padding-left: 12px;
  }

  .portfolio-avatar-ring {
    width: 84px;
    height: 84px;
  }

  .portfolio-profile-role {
    font-size: 0.86rem;
  }

  .portfolio-profile-stats strong {
    font-size: 0.9rem;
  }
}

/* Private admin analytics dashboard. */
.admin-nav-mark.purple {
  background: #9467bd;
}

.portal-body.admin-unlocked #analytics { order: 2; }
.portal-body.admin-unlocked #client-links { order: 3; }
.portal-body.admin-unlocked #bookings { order: 4; }
.portal-body.admin-unlocked #message-center { order: 5; }
.portal-body.admin-unlocked #website { order: 6; }
.portal-body.admin-unlocked #gallery-tabs { order: 7; }
.portal-body.admin-unlocked #pricing { order: 8; }
.portal-body.admin-unlocked #payments { order: 9; }
.portal-body.admin-unlocked #site-setup { order: 10; }

.analytics-heading {
  align-items: center;
}

.analytics-toolbar,
.analytics-range-control {
  display: flex;
  align-items: center;
}

.analytics-toolbar {
  gap: 10px;
}

.analytics-range-control {
  border: 1px solid #d7e1de;
  border-radius: 7px;
  padding: 3px;
  background: #edf2f0;
}

.analytics-range-control button {
  min-height: 38px;
  border: 0;
  border-radius: 5px;
  padding: 7px 12px;
  background: transparent;
  color: #5d6b67;
  cursor: pointer;
  font-weight: 850;
}

.analytics-range-control button.active,
.analytics-range-control button:hover,
.analytics-range-control button:focus-visible {
  background: #fff;
  color: #087c6b;
  box-shadow: 0 2px 8px rgba(27, 58, 51, 0.1);
}

.analytics-metric-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin-top: 22px;
  border-top: 1px solid #dce5e2;
  border-bottom: 1px solid #dce5e2;
}

.analytics-metric-strip article {
  min-width: 0;
  display: grid;
  align-content: center;
  gap: 6px;
  min-height: 136px;
  border-right: 1px solid #dce5e2;
  padding: 20px 16px;
}

.analytics-metric-strip article:last-child {
  border-right: 0;
}

.analytics-metric-strip span,
.analytics-metric-strip small {
  color: #65736f;
  line-height: 1.3;
}

.analytics-metric-strip span {
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.analytics-metric-strip strong {
  color: #14211e;
  font-size: 2rem;
  line-height: 1;
}

.analytics-metric-strip small {
  min-height: 2.5em;
  font-size: 0.72rem;
  font-weight: 700;
}

.analytics-section {
  min-width: 0;
  border-top: 1px solid #dce5e2;
  padding-top: 22px;
}

.analytics-trend-section {
  margin-top: 26px;
}

.analytics-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.analytics-section-heading h3,
.analytics-section-heading p {
  margin: 0;
}

.analytics-section-heading h3 {
  color: #17231f;
  font-size: 1.05rem;
}

.analytics-section-heading p,
.analytics-section-heading > strong {
  color: #6b7874;
  font-size: 0.8rem;
}

.analytics-section-heading p {
  margin-top: 4px;
}

.analytics-chart-scroll {
  overflow-x: auto;
  padding: 8px 0 3px;
  scrollbar-color: #b6c7c1 transparent;
}

.analytics-chart {
  min-width: max(100%, calc(var(--analytics-day-count, 30) * 30px));
  height: 230px;
  display: grid;
  grid-template-columns: repeat(var(--analytics-day-count, 30), minmax(22px, 1fr));
  gap: 5px;
  align-items: end;
  border-bottom: 1px solid #cad6d2;
  padding-top: 24px;
}

.analytics-chart-day {
  min-width: 0;
  height: 100%;
  display: grid;
  grid-template-rows: 18px minmax(120px, 1fr) 24px;
  gap: 5px;
  align-items: end;
  text-align: center;
}

.analytics-chart-value {
  overflow: hidden;
  color: #61706b;
  font-size: 0.68rem;
  font-weight: 850;
  text-overflow: ellipsis;
}

.analytics-chart-track {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: end;
  justify-content: center;
  border-radius: 3px 3px 0 0;
  background: #edf2f0;
}

.analytics-chart-track span {
  width: min(100%, 20px);
  display: block;
  border-radius: 3px 3px 0 0;
  background: #18b99f;
  transition: height 220ms ease;
}

.analytics-chart-day small {
  overflow: hidden;
  color: #7a8783;
  font-size: 0.64rem;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.analytics-breakdown-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 36px;
  margin-top: 30px;
}

.analytics-list {
  display: grid;
  gap: 16px;
}

.analytics-list-row {
  display: grid;
  gap: 8px;
}

.analytics-list-row > div:first-child {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
}

.analytics-list-row strong {
  min-width: 0;
  overflow: hidden;
  color: #25332f;
  font-size: 0.88rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.analytics-list-row > div:first-child span {
  flex: 0 0 auto;
  color: #71807b;
  font-size: 0.75rem;
}

.analytics-list-meter {
  height: 7px;
  overflow: hidden;
  border-radius: 4px;
  background: #e6eeeb;
}

.analytics-list-meter span {
  height: 100%;
  display: block;
  border-radius: inherit;
  background: #2f9bc7;
}

.analytics-empty {
  margin: 0;
  border-left: 3px solid #d6e0dd;
  padding: 9px 12px;
  color: #71807b;
  font-size: 0.84rem;
}

.analytics-status {
  margin: 28px 0 0;
  border-top: 1px solid #dce5e2;
  padding-top: 18px;
}

@media (max-width: 1180px) {
  .analytics-metric-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .analytics-metric-strip article:nth-child(3) {
    border-right: 0;
  }

  .analytics-metric-strip article:nth-child(-n + 3) {
    border-bottom: 1px solid #dce5e2;
  }
}

@media (max-width: 760px) {
  .analytics-heading,
  .analytics-toolbar {
    align-items: stretch;
  }

  .analytics-heading,
  .analytics-toolbar,
  .analytics-section-heading {
    display: grid;
  }

  .analytics-toolbar {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .analytics-range-control button {
    flex: 1 1 0;
    padding-right: 8px;
    padding-left: 8px;
    font-size: 0.75rem;
  }

  .analytics-metric-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .analytics-metric-strip article,
  .analytics-metric-strip article:nth-child(3) {
    border-right: 1px solid #dce5e2;
    border-bottom: 1px solid #dce5e2;
  }

  .analytics-metric-strip article:nth-child(even) {
    border-right: 0;
  }

  .analytics-metric-strip article:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .analytics-metric-strip article {
    min-height: 124px;
    padding: 16px 12px;
  }

  .analytics-metric-strip strong {
    font-size: 1.7rem;
  }

  .analytics-breakdown-grid {
    grid-template-columns: 1fr;
  }

  .analytics-list-row > div:first-child {
    align-items: start;
  }

  .analytics-list-row > div:first-child span {
    max-width: 48%;
    text-align: right;
    white-space: normal;
  }
}
