:root {
  color-scheme: light;
  --paper: #f8f7f3;
  --paper-bright: #fffefa;
  --ink: #211f1b;
  --muted: #68665f;
  --accent: #596342;
  --accent-ink: #fffefa;
  --line: #d7d4cc;
  --gutter: clamp(18px, 3.1vw, 48px);
  --body: "DM Sans", "Helvetica Neue", sans-serif;
  --display: "Newsreader", Georgia, serif;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-in-out: cubic-bezier(.76, 0, .24, 1);
  --t-hover: 180ms;
  --t-ui: 300ms;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 32px;
  background: var(--paper);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button, input, textarea, select { font: inherit; }
*[hidden] { display: none !important; }
button { color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

::selection { background: #dce1d2; color: var(--ink); }

a { color: inherit; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 10px; left: 10px; z-index: 100; transform: translateY(-160%); padding: 10px 14px; background: var(--ink); color: var(--paper-bright); }
.skip-link:focus { transform: translateY(0); }

.site-header {
  min-height: 86px;
  padding: 20px var(--gutter);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 28px;
}

.wordmark, .footer-name { text-decoration: none; }
.wordmark { width: fit-content; color: #65635e; font-size: 19px; letter-spacing: -.025em; }
.site-nav { display: flex; align-items: center; gap: clamp(19px, 2.6vw, 42px); }
.site-nav a, .footer-link, .text-button { text-decoration: none; }
.site-nav a { color: var(--muted); font-size: 14px; transition: color var(--t-hover) ease; }
.site-nav a:hover, .site-nav a[aria-current="location"] { color: var(--ink); }
.header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 18px; }
.text-button, .footer-link {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 14px;
  cursor: pointer;
  text-underline-offset: .24em;
  text-decoration-thickness: 1px;
  transition: color var(--t-hover) ease, text-decoration-color var(--t-hover) ease;
}
.text-button:hover, .footer-link:hover { color: var(--accent); text-decoration: underline; }
.add-button {
  min-height: 42px;
  padding: 0 19px;
  border: 0;
  border-radius: 2px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 14px;
  cursor: pointer;
  transition: background-color var(--t-hover) ease, color var(--t-hover) ease, transform 140ms var(--ease-out);
}
.add-button:hover { background: transparent; color: var(--accent); }
.add-button:active { transform: scale(.98); }
.add-button--dark { background: var(--ink); border-color: var(--ink); color: white; }
.add-button--dark:hover { background: transparent; color: var(--ink); }
.menu-toggle { display: none; }

main { overflow: clip; }
.hero { padding: 10px var(--gutter) 0; }
.hero-frame {
  position: relative;
  display: grid;
  width: 100%;
  min-height: min(66vw, 680px);
  max-height: 78svh;
  aspect-ratio: 1.34;
  overflow: hidden;
  background: #e9e6de;
}
.hero-frame.is-dragging { outline: 3px solid var(--accent); outline-offset: -8px; background: #eceee7; }
.hero-empty {
  display: flex;
  min-height: 380px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 40px 24px;
  text-align: center;
}
.empty-orbit { position: relative; width: 76px; height: 76px; margin-bottom: 6px; border: 2px solid #a9a79e; border-radius: 50%; }
.empty-orbit::before, .empty-orbit::after { position: absolute; content: ""; background: #a9a79e; }
.empty-orbit::before { width: 2px; height: 38px; left: calc(50% - 1px); top: 18px; }
.empty-orbit::after { width: 38px; height: 2px; left: 18px; top: calc(50% - 1px); }
.empty-orbit span { position: absolute; width: 8px; height: 8px; left: calc(50% - 4px); top: calc(50% - 4px); border-radius: 50%; background: var(--accent); }
.empty-note { margin: 0; font: 400 clamp(25px, 3vw, 42px)/1.1 var(--display); letter-spacing: -.025em; }
.local-note { color: var(--muted); font-size: 13px; }
.hero-media { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-media img, .hero-media video { display: block; width: 100%; height: 100%; object-fit: cover; }
.hero-caption {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 0;
  display: flex;
  max-width: min(90%, 460px);
  min-height: 54px;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  padding: 11px 18px;
  border: 0;
  background: var(--paper-bright);
  text-align: left;
  cursor: pointer;
}
.hero-caption__title { font-size: 13px; }
.hero-caption__meta { color: var(--muted); font-size: 12px; }
.hero-bottom { display: flex; align-items: baseline; justify-content: space-between; gap: 30px; padding: 21px 1px 0; }
h1, h2, p { margin-top: 0; }
h1 { max-width: 24ch; margin-bottom: 0; font: 400 clamp(25px, 3.05vw, 42px)/1.06 var(--display); letter-spacing: -.025em; }
.hero-intro { max-width: 42ch; margin: 0; color: var(--muted); font-size: 14px; text-align: right; }

.collection { padding: clamp(108px, 15vw, 210px) var(--gutter) 0; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 34px; }
.section-heading h2, .about-copy h2, .text-section h2 { margin: 0; font: 400 clamp(31px, 4vw, 50px)/1.05 var(--display); letter-spacing: -.025em; }
.section-count { margin: 0; color: var(--muted); font-size: 13px; }
.empty-collection { min-height: 92px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 12px; }
.empty-collection p { margin: 0; color: var(--muted); font-size: 14px; }
.work-list { display: grid; grid-template-columns: 1fr 1fr; align-items: start; column-gap: clamp(10px, 2.2vw, 32px); row-gap: clamp(42px, 7vw, 100px); }
.work-item { min-width: 0; }
.work-item:nth-child(3n + 1) { grid-column: 1 / -1; }
.work-item__image {
  display: block;
  width: 100%;
  max-height: 76svh;
  background: #e8e5dd;
  object-fit: cover;
  cursor: zoom-in;
}
.work-item:nth-child(3n + 1) .work-item__image { aspect-ratio: 1.8; }
.work-item:nth-child(3n + 2) .work-item__image { aspect-ratio: .96; }
.work-item:nth-child(3n) .work-item__image { aspect-ratio: 1.3; }
.work-item__video { width: 100%; aspect-ratio: 1.78; background: #24231f; object-fit: cover; }
.work-item__caption { display: flex; justify-content: space-between; gap: 16px; padding-top: 11px; color: var(--muted); font-size: 13px; }
.work-item__caption strong { color: var(--ink); font-weight: 400; }
.work-item__edit { border: 0; background: transparent; color: var(--muted); font-size: 12px; cursor: pointer; text-decoration: underline; text-underline-offset: .2em; }
.work-item__edit:hover { color: var(--ink); }
.moving-feature { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(180px, .7fr); gap: clamp(20px, 4vw, 60px); align-items: end; margin-bottom: 40px; }
.moving-feature__media { width: 100%; aspect-ratio: 1.78; background: #24231f; object-fit: cover; }
.moving-feature__copy { padding-bottom: 4px; }
.moving-feature__copy h3 { margin: 0 0 10px; font: 400 clamp(24px, 2.7vw, 34px)/1.1 var(--display); }
.moving-feature__copy p { margin: 0; color: var(--muted); font-size: 14px; }
.moving-feature__copy button { margin-top: 18px; }

.about-section { display: grid; grid-template-columns: 1fr minmax(0, 2fr) 1fr; gap: 30px; align-items: start; margin: clamp(128px, 18vw, 240px) var(--gutter) 0; }
.about-label { color: var(--muted); font-size: 13px; }
.about-copy { max-width: 680px; }
.about-copy h2 { max-width: 16ch; font-size: clamp(27px, 3.2vw, 40px); }
.bio-copy { max-width: 60ch; margin: 20px 0 0; color: var(--muted); font-size: 16px; line-height: 1.65; white-space: pre-line; }
.contact-link { display: inline-block; margin-top: 24px; font-size: 14px; text-underline-offset: .25em; }
.cv-copy { margin-top: 34px; color: var(--muted); font-size: 14px; white-space: pre-line; }
.about-edit { justify-self: end; }
.text-section { display: grid; grid-template-columns: 1fr minmax(0, 2fr) 1fr; gap: 30px; margin: 80px var(--gutter) 0; }
.text-section h2 { font-size: clamp(25px, 2.5vw, 34px); }
.text-section__content { white-space: pre-line; color: var(--muted); font-size: 14px; line-height: 1.8; }

.site-footer { display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 20px; margin-top: clamp(120px, 17vw, 220px); padding: 28px var(--gutter) 24px; }
.footer-name { font: 400 clamp(27px, 3.4vw, 42px)/1 var(--display); letter-spacing: -.025em; }
.site-footer > p { margin: 0; color: var(--muted); font-size: 13px; }
.footer-link { justify-self: end; }
.footer-credit { grid-column: 1 / -1; padding-top: 18px; color: var(--muted); font-size: 12px; }

dialog { color: var(--ink); }
dialog::backdrop { background: rgb(25 23 19 / 42%); }
.editor-dialog, .backup-dialog { width: min(600px, calc(100% - 28px)); max-height: min(88svh, 900px); overflow-y: auto; padding: clamp(24px, 5vw, 44px); border: 0; background: var(--paper); box-shadow: 0 18px 70px rgb(26 23 18 / 22%); /* taste-skill-ignore: modal overlay elevation */ }
.dialog-top { display: flex; align-items: center; justify-content: space-between; }
.editor-dialog h2, .backup-dialog h2 { margin: 21px 0 12px; font: 400 clamp(35px, 5vw, 48px)/1 var(--display); letter-spacing: -.025em; }
.dialog-intro { max-width: 56ch; margin: 0 0 27px; color: var(--muted); font-size: 14px; }
.icon-button { display: grid; width: 42px; height: 42px; place-content: center; gap: 5px; border: 1px solid var(--line); background: transparent; cursor: pointer; /* taste-skill-ignore: visible close control */ }
.icon-button span { display: block; width: 15px; height: 1px; background: var(--ink); /* taste-skill-ignore: cross icon stroke */ }
.icon-button span:first-child { transform: translateY(3px) rotate(45deg); }
.icon-button span:last-child { transform: translateY(-3px) rotate(-45deg); }
.field { display: grid; gap: 7px; margin: 0 0 18px; }
.field > span { font-size: 13px; }
.field input, .field textarea, .field select { width: 100%; min-height: 46px; padding: 11px 12px; border: 1px solid #c7c4bc; border-radius: 0; background: var(--paper-bright); color: var(--ink); font-size: 14px; }
.field textarea { min-height: 100px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #77756d; opacity: 1; }
.editor-actions { display: flex; justify-content: flex-end; align-items: center; gap: 22px; margin-top: 25px; }
.editor-actions--spread { justify-content: space-between; }
.text-button--danger { color: #8b382c; }
.photo-dialog { display: grid; width: min(1100px, calc(100% - 28px)); max-height: min(90svh, 900px); grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr); padding: 0; border: 0; background: var(--paper); box-shadow: 0 18px 70px rgb(26 23 18 / 22%); /* taste-skill-ignore: modal overlay elevation */ }
.photo-dialog__media { display: grid; min-height: 360px; max-height: 90svh; place-items: center; background: #e9e6de; }
.photo-dialog__media img, .photo-dialog__media video { display: block; width: 100%; height: 100%; max-height: 90svh; object-fit: contain; }
.photo-dialog__details { overflow: auto; padding: clamp(22px, 4vw, 38px); }
.photo-dialog__details h2 { margin: 24px 0 4px; font: 400 30px/1.1 var(--display); overflow-wrap: anywhere; }
.photo-kind { margin: 0 0 22px; color: var(--muted); font-size: 13px; }
.backup-actions { display: flex; align-items: center; gap: 22px; }
.storage-status { min-height: 1.5em; margin: 22px 0 0; color: var(--muted); font-size: 13px; }
.toast { position: fixed; z-index: 20; right: 20px; bottom: 20px; max-width: min(420px, calc(100vw - 40px)); padding: 13px 17px; transform: translateY(140%); opacity: 0; background: var(--ink); color: white; font-size: 14px; transition: transform 260ms var(--ease-out), opacity 200ms ease; }
.toast.is-visible { transform: translateY(0); opacity: 1; }
.noscript-note { position: fixed; z-index: 30; inset: auto 12px 12px; margin: 0; padding: 14px; background: var(--ink); color: white; }

@media (min-width: 1500px) {
  .site-header, .hero, .collection { max-width: 1920px; margin-inline: auto; }
}

@media (max-width: 860px) {
  .site-header { grid-template-columns: 1fr auto; min-height: 72px; gap: 12px; }
  .menu-toggle { display: grid; width: 44px; height: 44px; justify-self: end; align-content: center; gap: 6px; border: 0; background: transparent; cursor: pointer; }
  .menu-toggle span { width: 22px; height: 1px; background: var(--ink); transition: transform var(--t-ui) var(--ease-out); /* taste-skill-ignore: menu icon stroke */ }
  .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
  .site-nav { position: absolute; z-index: 8; top: 70px; left: var(--gutter); right: var(--gutter); display: none; align-items: stretch; flex-direction: column; gap: 7px; padding: 10px 20px; background: var(--paper-bright); box-shadow: 0 12px 32px rgb(26 23 18 / 10%); /* taste-skill-ignore: open mobile navigation overlay */ }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 12px 0; font-size: 15px; }
  .header-actions { grid-column: 1 / -1; justify-content: flex-start; margin-top: 4px; }
  .hero { padding-top: 3px; }
  .hero-frame { min-height: 58svh; max-height: 68svh; aspect-ratio: 1.04; }
  .about-section, .text-section { grid-template-columns: .55fr 1.75fr; gap: 20px; }
  .about-edit { grid-column: 2; justify-self: start; }
}

@media (max-width: 560px) {
  :root { --gutter: 17px; }
  body { font-size: 16px; }
  .site-header { padding-block: 12px; }
  .wordmark { font-size: 18px; }
  .header-actions { gap: 18px; }
  .header-actions .text-button { min-height: 36px; }
  .header-actions .add-button { min-height: 38px; padding-inline: 14px; }
  .hero-frame { min-height: 50svh; max-height: 58svh; aspect-ratio: .94; }
  .hero-empty { min-height: 320px; gap: 15px; }
  .empty-orbit { width: 62px; height: 62px; }
  .empty-orbit::before { height: 30px; top: 15px; }
  .empty-orbit::after { width: 30px; left: 15px; }
  .hero-bottom { display: block; padding-top: 18px; }
  h1 { font-size: clamp(27px, 8vw, 36px); }
  .hero-intro { margin-top: 8px; font-size: 14px; text-align: left; }
  .collection { padding-top: 105px; }
  .section-heading { margin-bottom: 24px; }
  .section-heading h2 { font-size: 36px; }
  .empty-collection { align-items: flex-start; flex-direction: column; justify-content: center; padding-block: 20px; }
  .work-list { grid-template-columns: 1fr; row-gap: 38px; }
  .work-item:nth-child(n) { grid-column: auto; }
  .work-item:nth-child(n) .work-item__image { aspect-ratio: 1.2; }
  .moving-feature { grid-template-columns: 1fr; gap: 17px; }
  .moving-feature__copy h3 { margin-bottom: 7px; }
  .about-section, .text-section { grid-template-columns: 1fr; gap: 13px; margin-top: 116px; }
  .about-copy h2 { font-size: 34px; }
  .about-edit { grid-column: auto; }
  .site-footer { grid-template-columns: 1fr auto; gap: 10px; }
  .site-footer > p { grid-column: 1 / -1; grid-row: 2; }
  .footer-link { grid-column: 2; grid-row: 1; }
  .footer-credit { grid-row: 3; }
  .photo-dialog { display: block; width: min(580px, calc(100% - 18px)); max-height: calc(100svh - 18px); overflow-y: auto; }
  .photo-dialog__media { min-height: 220px; max-height: 45svh; }
  .photo-dialog__media img, .photo-dialog__media video { max-height: 45svh; }
  .photo-dialog__details { overflow: visible; padding: 22px; }
  .backup-actions { align-items: flex-start; flex-direction: column; gap: 6px; }
}

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

/* Reference direction: quiet white canvas, left-side menu, one large photograph. */
:root {
  color-scheme: light;
  --paper: #fff;
  --paper-bright: #fff;
  --ink: #111;
  --muted: #777;
  --accent: #555;
  --accent-ink: #fff;
  --line: #e8e8e8;
  --gutter: clamp(18px, 5.7vw, 82px);
  --sidebar-width: clamp(220px, 24vw, 340px);
  --body: Arial, Helvetica, sans-serif;
  --display: Arial, Helvetica, sans-serif;
}

html, body { background: #fff; }
body { color: #111; font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 1.45; }
.site-header {
  position: fixed;
  z-index: 10;
  inset: 0 auto 0 0;
  display: block;
  width: var(--sidebar-width);
  min-height: 100svh;
  padding: 48px 20px 32px var(--gutter);
  background: #fff;
}
.wordmark { display: inline-block; color: #8a8a8a; font: 400 14px/1.2 Arial, Helvetica, sans-serif; letter-spacing: 0; }
.site-nav { display: flex; align-items: flex-start; flex-direction: column; gap: 7px; margin-top: 74px; }
.site-nav a { color: #111; font-size: 14px; line-height: 1.5; text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="location"] { color: #777; }
.header-actions { position: absolute; left: var(--gutter); bottom: 32px; display: flex; align-items: flex-start; flex-direction: column; gap: 2px; }
.header-actions .text-button, .header-actions .add-button { min-height: 30px; padding: 0; border: 0; border-radius: 0; background: transparent; color: #777; font-size: 12px; }
.header-actions .text-button:hover, .header-actions .add-button:hover { color: #111; text-decoration: underline; }
.menu-toggle { display: none; }
main { margin-left: var(--sidebar-width); overflow: visible; }
.hero { padding: 109px clamp(32px, 8.5vw, 124px) 0 0; }
.hero-frame { display: block; width: 100%; min-height: 0; max-height: none; aspect-ratio: 1.42; overflow: hidden; background: #fff; }
.hero-frame.is-dragging { outline: 1px solid #777; outline-offset: -1px; background: #fafafa; }
.hero-empty { min-height: 0; height: 100%; gap: 8px; padding: 24px; background: #fff; }
.empty-orbit { display: none; }
.empty-note { margin: 0; color: #777; font: 400 14px/1.45 Arial, Helvetica, sans-serif; letter-spacing: 0; }
.local-note { color: #888; font-size: 11px; }
.hero-empty .add-button { min-height: auto; padding: 2px 0; border: 0; border-radius: 0; background: transparent; color: #111; font-size: 12px; text-decoration: underline; text-underline-offset: 3px; }
.hero-empty .add-button:hover { color: #777; }
.hero-media img, .hero-media video { object-fit: contain; }
.hero-caption { padding: 8px 10px; background: rgb(255 255 255 / 94%); }
.hero-bottom { gap: 20px; padding: 11px 0 0; }
.hero-bottom h1 { max-width: 60ch; color: #777; font: 400 13px/1.5 Arial, Helvetica, sans-serif; letter-spacing: 0; }
.hero-intro { color: #777; font-size: 12px; font-weight: 400; text-align: left; }
.collection { padding: 90px clamp(32px, 8.5vw, 124px) 0 0; }
.section-heading { justify-content: flex-start; gap: 16px; margin-bottom: 20px; }
.section-heading h2, .about-copy h2, .text-section h2 { color: #111; font: 400 16px/1.4 Arial, Helvetica, sans-serif; letter-spacing: 0; }
.section-count { color: #888; font-size: 11px; }
.empty-collection { min-height: 54px; align-items: center; justify-content: flex-start; gap: 18px; padding-block: 8px; }
.empty-collection p { color: #777; font-size: 13px; }
.empty-collection .text-button { min-height: 28px; color: #111; font-size: 12px; }
.work-list { display: flex; flex-direction: column; align-items: flex-start; gap: 30px; }
.work-item { width: 100%; }
.work-item:nth-child(n) { grid-column: auto; }
.work-item__image { width: 100%; height: auto; max-height: 78svh; aspect-ratio: auto !important; background: #fff; object-fit: contain; object-position: left top; }
.work-item__video { width: 100%; max-height: 78svh; background: #111; object-fit: contain; }
.work-item__caption { justify-content: flex-start; gap: 10px; padding-top: 7px; color: #888; font-size: 12px; }
.work-item__caption strong { color: #111; }
.work-item__edit { margin-left: auto; }
.moving-feature { grid-template-columns: 1fr; gap: 10px; margin-bottom: 30px; }
.moving-feature__media { max-height: 78svh; object-fit: contain; }
.moving-feature__copy h3 { font: 400 14px/1.5 Arial, Helvetica, sans-serif; }
.moving-feature__copy p { color: #777; font-size: 12px; }
.about-section { display: block; max-width: 700px; margin: 100px clamp(32px, 8.5vw, 124px) 0 0; }
.about-label { margin-bottom: 12px; color: #777; font-size: 12px; }
.about-copy { max-width: 60ch; }
.about-copy h2 { margin-bottom: 12px; }
.bio-copy, .cv-copy { color: #555; font-size: 14px; line-height: 1.65; }
.about-edit { justify-self: auto; margin-top: 15px; color: #777; font-size: 12px; }
.text-section { display: grid; grid-template-columns: 100px minmax(0, 1fr); gap: 22px; margin: 70px clamp(32px, 8.5vw, 124px) 0 0; }
.text-section h2 { font-size: 14px; }
.text-section__content { color: #555; font-size: 13px; line-height: 1.7; }
.text-section__empty { grid-column: 2; color: #777; font-size: 13px; }
.text-section__empty p { margin-bottom: 5px; }
.text-section__empty .text-button { color: #111; font-size: 12px; }
.site-footer { grid-template-columns: 1fr auto; margin: 100px clamp(32px, 8.5vw, 124px) 0 0; padding: 22px 0 24px; }
.footer-name { color: #888; font: 400 13px/1.4 Arial, Helvetica, sans-serif; letter-spacing: 0; }
.site-footer > p, .footer-link, .footer-credit { color: #888; font-size: 11px; }
.footer-credit { padding-top: 10px; }

@media (max-width: 860px) {
  .site-header { position: sticky; inset: auto; display: grid; width: 100%; min-height: 66px; grid-template-columns: 1fr auto; align-items: center; gap: 10px; padding: 14px 20px; }
  .wordmark { font-size: 14px; }
  .menu-toggle { display: grid; width: 38px; height: 38px; justify-self: end; align-content: center; gap: 6px; border: 0; background: transparent; cursor: pointer; }
  .menu-toggle span { width: 20px; height: 2px; background: #111; }
  .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
  .site-nav { position: absolute; z-index: 11; top: 58px; left: 0; right: 0; display: none; margin: 0; gap: 0; padding: 9px 20px 15px; background: #fff; }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 7px 0; }
  .header-actions { position: static; display: flex; grid-column: 1 / -1; align-items: center; flex-direction: row; gap: 20px; padding-top: 5px; }
  main { margin-left: 0; }
  .hero { padding: 14px 20px 0; }
  .hero-frame { aspect-ratio: 1.2; }
  .hero-bottom { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
  .hero-intro { margin: 0; }
  .collection { padding: 70px 20px 0; }
  .about-section { margin: 80px 20px 0; }
  .text-section { grid-template-columns: 80px minmax(0, 1fr); margin: 55px 20px 0; }
  .site-footer { margin: 75px 20px 0; }
}

@media (max-width: 560px) {
  .hero { padding: 14px 15px 0; }
  .hero-frame { aspect-ratio: 1; }
  .collection { padding: 60px 15px 0; }
  .empty-collection { align-items: flex-start; gap: 4px; }
  .work-list { gap: 23px; }
  .about-section { margin: 70px 15px 0; }
  .text-section { grid-template-columns: 1fr; gap: 8px; margin: 42px 15px 0; }
  .site-footer { margin: 65px 15px 0; }
  .text-section__empty { grid-column: auto; }
}

/* Section-based browsing: compact previews open the full image or film on click. */
.section-heading { align-items: center; }
.section-upload { margin-left: auto; min-height: 30px; color: #555; font-size: 12px; }
.section-upload:hover { color: #111; }
.work-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; gap: 28px 18px; }
.work-item { width: auto; min-width: 0; }
.work-item:nth-child(n) { grid-column: auto; }
.work-item__preview {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: #f2f2f0;
  cursor: zoom-in;
  text-align: left;
}
.work-item__preview-media {
  display: block;
  width: 100%;
  aspect-ratio: 1.25;
  object-fit: cover;
  transition: transform 320ms cubic-bezier(.22, 1, .36, 1);
}
.work-item__preview:hover .work-item__preview-media { transform: scale(1.025); }
.work-item__zoom-hint {
  position: absolute;
  right: 8px;
  bottom: 8px;
  padding: 4px 7px;
  background: rgb(255 255 255 / 94%);
  color: #111;
  font-size: 10px;
  opacity: 0;
  transition: opacity 180ms ease;
}
.work-item__preview:hover .work-item__zoom-hint,
.work-item__preview:focus-visible .work-item__zoom-hint { opacity: 1; }
.work-item__caption { align-items: baseline; flex-wrap: wrap; gap: 2px 9px; padding-top: 6px; font-size: 11px; }
.work-item__caption strong { max-width: 100%; overflow-wrap: anywhere; }
.work-item__edit { min-height: 24px; padding: 0; font-size: 11px; }
.moving-feature { display: none !important; }
.empty-collection .text-button { display: none; }
.still-album + .still-album { margin-top: 42px; }
.still-album__heading {
  display: flex;
  min-height: 40px;
  align-items: center;
  gap: 12px;
  margin-bottom: 15px;
  border-bottom: 1px solid #e8e8e8;
}
.still-album__heading h3 { margin: 0; color: #111; font-size: 14px; font-weight: 400; }
.still-album__count { margin: 0; color: #888; font-size: 11px; }
.still-album__heading .section-upload { margin-left: auto; }

@media (max-width: 860px) {
  .work-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px 14px; }
}
@media (max-width: 560px) {
  .section-heading { flex-wrap: wrap; gap: 8px 12px; }
  .section-upload { margin-left: auto; }
  .still-album + .still-album { margin-top: 30px; }
  .still-album__heading { gap: 8px; }
  .work-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 10px; }
  .work-item__preview-media { aspect-ratio: .9; }
  .work-item__caption { display: grid; grid-template-columns: 1fr auto; }
  .work-item__caption strong { grid-column: 1 / -1; }
}

/* A deployed portfolio is a read-only review page. */
body.is-shared-site .header-actions,
body.is-shared-site .about-edit,
body.is-shared-site .work-item__edit,
body.is-shared-site .footer-link,
body.is-shared-site .text-section__empty button,
body.is-shared-site .add-button,
body.is-shared-site #photo-form {
  display: none !important;
}
