:root {
  --paper: #e4e4e1;
  --ink: #20201f;
  --muted: #656560;
  --rule: #c8c8c2;
  --soft: #dcdcd7;
  --accent: #343430;
  --font: "Work Sans", "Helvetica Neue", sans-serif;
  --gutter: clamp(24px, 6vw, 100px);
  --ease: cubic-bezier(.2,.65,.25,1);
}
* { box-sizing: border-box; }
html { scroll-padding-top: 110px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 15px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
body[data-page="interior"] { --paper: #fff; }
body.editor-open, body:has(dialog[open]) { overflow: hidden; }
button, input, textarea, select { font: inherit; color: inherit; }
a { color: inherit; text-underline-offset: 5px; }
button, a { -webkit-tap-highlight-color: transparent; }
img, video { max-width: 100%; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-weight: 400; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 6px; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 100; padding: 10px 16px; color: var(--paper); background: var(--ink); transform: translateY(-160%); }
.skip-link:focus { transform: none; }
.progress-track, .rail-index, .nav-number, .floating-whatsapp, .custom-cursor { display: none; }
.side-rail { display: flex; align-items: baseline; justify-content: space-between; gap: 32px; padding: 55px var(--gutter) 50px; max-width: 1800px; margin: auto; }
.brand-link { flex-shrink: 0; font-size: 19px; text-transform: uppercase; text-decoration: none; letter-spacing: -.045em; }
.nav-list { display: flex; align-items: center; gap: clamp(22px, 4vw, 65px); margin: 0; padding: 0; list-style: none; }
.nav-link { font-size: 13px; text-transform: uppercase; text-decoration: none; }
.nav-link:hover, .nav-link[aria-current] { text-decoration: underline; }
.mobile-menu-button { display: none; }
.site-shell { margin: 0 auto; padding: 0 var(--gutter); max-width: 1800px; }
.site-shell:focus { outline: none; }
.section { margin: 0 auto; padding: 20px 0 80px; min-height: 55vh; }
.section-head { margin: 5px 0 55px; }
.section-heading { font-size: 15px; text-transform: uppercase; line-height: 1.4; margin: 0; }
.section-intro { margin: 10px 0 0; font-size: 13px; color: var(--muted); }
.eyebrow { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 14px; }
/* Full-screen cover slideshow with navigation over the artwork. */
body[data-page="home"] .side-rail, body[data-page="home"] .mobile-menu-button, body[data-page="home"] .site-footer { display: none; }
body[data-page="home"] .site-shell { max-width: none; padding: 0; }
.section-home { position: relative; isolation: isolate; display: grid; place-items: center; min-height: 640px; height: 100svh; padding: 0; overflow: hidden; background: #b5b5b0; color: #fff; }
.cover-image, .cover-image img, .cover-shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.cover-image { z-index: -2; background: #b5b5b0; }
.cover-slide { opacity: 0; transition: opacity 900ms ease-in-out; }
.cover-slide.is-active { opacity: 1; }
.cover-image img { object-fit: cover; object-position: center 5%; }
.cover-shade { z-index: -1; background: linear-gradient(180deg, rgba(20,20,19,.08), rgba(20,20,19,.18) 50%, rgba(20,20,19,.6)); }
.cover-title { text-align: center; padding: 0 20px 4vh; animation: enter .8s ease both; }
.cover-title h1 { margin: 0; font-size: clamp(42px, 7vw, 106px); line-height: 1.1; letter-spacing: -.06em; text-transform: uppercase; text-shadow: 0 2px 25px rgba(20,20,19,.25); }
.cover-title p { font-size: 11px; text-transform: uppercase; letter-spacing: .17em; margin: 20px 0 0; }
.cover-nav { position: absolute; bottom: 23%; left: var(--gutter); right: var(--gutter); display: flex; justify-content: space-around; align-items: center; gap: 30px; }
.cover-nav a { text-transform: uppercase; font-size: 15px; text-decoration: none; }
.cover-nav a:hover, .cover-nav a:focus-visible { text-decoration: underline; }
.cover-caption { position: absolute; bottom: 30px; left: 24px; right: 24px; text-align: center; font-size: 10px; letter-spacing: .06em; text-transform: uppercase; opacity: .8; }
@keyframes enter { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
/* Uniform gallery spacing lets the individual artworks establish the rhythm. */
.project-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 38px 30px; }
.project-card { min-width: 0; }
.project-card-button { display: block; width: 100%; padding: 0; border: 0; text-align: center; background: transparent; cursor: pointer; }
.project-image-frame { position: relative; display: grid; place-items: center; overflow: hidden; background: transparent; }
.project-image-frame picture { display: block; width: 100%; }
.project-image-frame img { display: block; width: 100%; height: auto; max-height: 540px; object-fit: contain; transition: opacity .25s ease; }
.project-card-button:hover img { opacity: .78; }
.project-card-body { display: block; padding-top: 19px; }
.project-card h3 { margin: 0; font-size: 13px; text-transform: uppercase; }
.project-card-meta { display: block; margin-top: 4px; font-size: 10px; color: var(--muted); }
.project-empty { padding: 35px 0; font-size: 13px; color: var(--muted); }
.project-dialog { width: 100vw; max-width: none; height: 100dvh; max-height: none; margin: 0; padding: 70px var(--gutter); border: 0; background: var(--paper); color: var(--ink); }
.project-dialog::backdrop, .zoom-dialog::backdrop { background: rgba(20,20,19,.85); }
.dialog-close { position: absolute; top: 24px; right: var(--gutter); display: grid; place-items: center; width: 44px; height: 44px; border: 0; background: transparent; font-size: 30px; font-weight: 300; cursor: pointer; }
.dialog-close:hover { opacity: .55; }
.dialog-head { max-width: 900px; padding-right: 30px; margin: 0 auto 55px; text-align: center; }
.dialog-head h2 { font-size: clamp(23px, 3vw, 40px); text-transform: uppercase; line-height: 1.2; margin-bottom: 16px; }
.dialog-description { font-size: 14px; max-width: 65ch; margin: 0 auto; color: var(--muted); }
.project-detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 250px; align-items: start; gap: 50px; max-width: 1450px; margin: auto; }
.detail-gallery { display: grid; grid-template-columns: 1fr; gap: 45px; }
.detail-image { margin: 0; cursor: zoom-in; }
.detail-image picture, .detail-image img { display: block; width: 100%; }
.detail-image img { max-height: 1100px; object-fit: contain; }
.detail-image figcaption { padding: 12px 0; font-size: 11px; color: var(--muted); }
.metadata { margin: 0; }
.metadata-row { padding: 0 0 19px; }
.metadata-row dt { font-size: 10px; text-transform: uppercase; color: var(--muted); }
.metadata-row dd { margin: 3px 0 0; font-size: 12px; }
.metadata-empty { font-size: 12px; color: var(--muted); }
.project-contact { margin-top: 20px; }
.process-section { max-width: 1450px; margin: 90px auto 0; border-top: 1px solid var(--rule); padding-top: 40px; }
.process-section h3 { font-size: 24px; }
.process-copy { max-width: 65ch; font-size: 14px; }
.process-gallery { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 30px; align-items: start; }
.zoom-dialog { width: 100vw; max-width: none; height: 100dvh; max-height: none; margin: 0; padding: 70px 20px 20px; border: 0; background: #f5f5f2; }
.zoom-dialog img { display: block; width: 100%; height: calc(100dvh - 100px); object-fit: contain; }
.detail-video video, .detail-video iframe { display: block; width: 100%; aspect-ratio: 16/9; border: 0; }
.video-load { width: 100%; min-height: 200px; background: var(--soft); border: 1px solid var(--rule); cursor: pointer; padding: 25px; }
.about-grid { display: grid; grid-template-columns: minmax(220px, .8fr) minmax(0, 1fr); gap: 10vw; max-width: 1100px; align-items: start; }
.portrait-wrap img { display: block; width: 100%; max-height: 650px; object-fit: contain; object-position: top; }
.about-copy { padding-top: 5px; max-width: 55ch; font-size: clamp(16px, 1.6vw, 20px); line-height: 1.7; font-weight: 300; }
.about-caption { margin-top: 35px; font-size: 11px; color: var(--muted); }
.section:has(.contact-layout) { min-height: 0; padding-top: 25px; }
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 10vw; max-width: 1100px; }
.contact-list { display: grid; gap: 18px; }
.contact-link { display: flex; align-items: center; justify-content: space-between; gap: 20px; text-decoration: none; }
.contact-link:hover .contact-value { text-decoration: underline; }
.contact-label { display: block; font-size: 10px; text-transform: uppercase; color: var(--muted); }
.contact-value { display: block; font-size: 16px; overflow-wrap: anywhere; }
.contact-note { max-width: 40ch; color: var(--muted); font-size: 14px; }
.cv-layout { display: grid; grid-template-columns: 1.3fr 1fr; gap: 10vw; max-width: 1200px; }
.timeline-item { margin-bottom: 40px; }
.timeline-item h3 { font-size: 19px; line-height: 1.4; margin-bottom: 6px; }
.timeline-item p { margin-bottom: 4px; font-size: 13px; color: var(--muted); }
.timeline-period { font-size: 11px; color: var(--muted); }
.cv-side { display: grid; gap: 28px; align-content: start; }
.cv-block h3 { text-transform: uppercase; font-size: 12px; margin-bottom: 12px; }
.tag-list, .cv-education { list-style: none; margin: 0; padding: 0; font-size: 13px; }
.tag-list { display: flex; flex-wrap: wrap; gap: 6px 17px; }
.cv-education li { margin-bottom: 15px; }
.cv-education strong, .cv-education span { display: block; font-weight: 400; }
.cv-education span { font-size: 11px; color: var(--muted); }
.site-footer { display: flex; align-items: center; gap: 30px; padding: 30px 0; border-top: 1px solid var(--rule); color: var(--muted); font-size: 10px; }
.site-footer > span:nth-child(2) { margin-left: auto; }
.edit-trigger { padding: 6px 0; background: transparent; border: 0; color: var(--muted); font-size: 10px; cursor: pointer; }
.edit-trigger:hover { text-decoration: underline; }
.custom-section-copy { max-width: 65ch; white-space: pre-wrap; }
.project-description { width: 100%; max-width: none; height: auto; max-height: none; overflow: visible; text-align: justify; overflow-wrap: anywhere; font-size: var(--descriptionSize, 15px); }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 44px; padding: 11px 16px; border: 1px solid var(--ink); text-decoration: none; font-size: 11px; background: transparent; cursor: pointer; }
.button:hover { background: var(--ink); color: var(--paper); }
.button-dark { background: var(--ink); color: #fff; }
.button-quiet { border-color: var(--rule); }
.button-row { display: flex; gap: 12px; margin-top: 20px; }
.password-dialog { width: min(430px,calc(100vw - 30px)); padding: 32px; border: 1px solid var(--ink); }
.password-dialog::backdrop { background: rgba(18,17,16,.55); }
.password-dialog h2 { margin-bottom: 20px; font-size: 28px; }
.password-dialog label, .editor-field label { display: block; margin-bottom: 6px; color: var(--muted); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.password-dialog input, .editor-field input, .editor-field textarea, .editor-field select { width: 100%; padding: 10px; border: 1px solid var(--rule); background: white; color: var(--ink); }
.password-error { margin: 10px 0 0; color: var(--accent); font-size: 12px; }
.editor-backdrop { position: fixed; inset: 0; z-index: 68; background: rgba(0,0,0,.34); }
.editor-panel { position: fixed; z-index: 70; inset: 0 0 0 auto; width: min(680px, 96vw); overflow: auto; padding: 22px clamp(18px,3vw,34px) 38px; background: var(--paper); border-left: 1px solid var(--ink); transform: translateX(103%); transition: transform .28s var(--ease); }
.editor-panel.open { transform: translateX(0); }
.editor-header { position: sticky; top: -22px; z-index: 5; display: flex; justify-content: space-between; align-items: start; margin: -22px calc(clamp(18px,3vw,34px) * -1) 16px; padding: 22px clamp(18px,3vw,34px) 14px; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--rule); }
.editor-header h2 { margin: 0; font-size: 28px; }
.editor-header .dialog-close { position: static; }
.editor-note { padding: 12px; border-left: 2px solid var(--accent); background: #faf8f8; color: var(--muted); font-size: 11px; }
.editor-status { min-height: 22px; margin: 8px 0; color: var(--accent); font-size: 11px; }
.editor-fields { display: grid; gap: 18px; }
.editor-group { padding: 16px 0 6px; border-top: 1px solid var(--ink); }
.editor-group h3 { margin-bottom: 12px; font-size: 17px; }
.editor-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.editor-field { margin-bottom: 12px; }
.editor-field textarea { min-height: 90px; resize: vertical; }
.editor-field input[type="file"] { font-size: 11px; }
.editor-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: end; padding: 10px 0; border-bottom: 1px solid var(--rule); }
.editor-buttons { display: flex; flex-wrap: wrap; gap: 5px; }
.editor-buttons button { min-width: 34px; min-height: 34px; border: 1px solid var(--rule); background: white; cursor: pointer; }
.editor-buttons button:hover { border-color: var(--ink); }
.editor-project { margin: 8px 0; border: 1px solid var(--rule); }
.editor-project summary { display: flex; justify-content: space-between; gap: 14px; padding: 12px; cursor: pointer; list-style: none; }
.editor-project summary::-webkit-details-marker { display: none; }
.editor-project summary::after { content: "+"; color: var(--accent); }
.editor-project[open] summary::after { content: "−"; }
.editor-project-body { padding: 0 12px 14px; }
.editor-media-list { display: grid; gap: 8px; margin: 10px 0; }
.editor-media-item { display: grid; grid-template-columns: 76px 1fr auto; gap: 8px; align-items: center; padding: 7px; background: var(--soft); }
.editor-media-item img { width: 76px; height: 64px; object-fit: contain; background: white; }
.media-video-badge { display: grid; width: 76px; height: 64px; place-items: center; background: var(--ink); color: white; font-size: 10px; letter-spacing: .1em; }
.editor-media-item .editor-field { margin: 0; }
.editor-media-actions { display: grid; gap: 4px; }
.editor-add-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.editor-actions { position: sticky; bottom: -38px; display: grid; gap: 8px; margin: 20px calc(clamp(18px,3vw,34px) * -1) -38px; padding: 14px clamp(18px,3vw,34px) 24px; background: rgba(255,255,255,.97); border-top: 1px solid var(--rule); }
.editor-actions .button { width: 100%; }
@media (max-width: 900px) {
  .side-rail { padding-top: 35px; padding-bottom: 40px; }
  .brand-link { font-size: 17px; }
  .nav-list { gap: 24px; }
  .nav-link { font-size: 11px; }
  .project-list { gap: 40px 30px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project-detail-grid { grid-template-columns: minmax(0, 1fr) 200px; gap: 30px; }
  .cover-nav a { font-size: 13px; }
}
@media (max-width: 600px) {
  .side-rail { min-height: 115px; padding-top: 30px; padding-bottom: 35px; display: block; }
  .mobile-menu-button { display: block; position: absolute; top: 30px; right: var(--gutter); z-index: 45; padding: 0; border: 0; background: transparent; font-size: 12px; text-transform: uppercase; cursor: pointer; }
  .side-rail nav { display: none; }
  .side-rail.open nav { display: block; padding-top: 25px; }
  .nav-list { align-items: start; flex-direction: column; gap: 17px; }
  .nav-link { font-size: 13px; }
  .section-home { min-height: 520px; }
  .cover-image img { object-position: 50% 40%; }
  .cover-title h1 { font-size: clamp(36px, 10vw, 60px); letter-spacing: -.06em; }
  .cover-title p { margin-top: 16px; font-size: 9px; }
  .cover-nav { flex-direction: column; gap: 20px; bottom: 15%; }
  .cover-caption { font-size: 8px; bottom: 22px; }
  .section { padding-bottom: 55px; }
  .section-head { margin-bottom: 35px; }
  .project-list { gap: 35px 18px; }
  .project-card h3 { font-size: 11px; }
  .project-card-meta { font-size: 9px; }
  .project-card-body { padding-top: 12px; }
  .project-detail-grid, .about-grid, .cv-layout, .contact-layout { grid-template-columns: 1fr; gap: 35px; }
  .portrait-wrap { max-width: 330px; }
  .about-copy { font-size: 17px; }
  .project-detail-grid aside { padding-top: 15px; }
  .process-gallery { grid-template-columns: 1fr; gap: 25px; }
  .dialog-head { margin-bottom: 35px; }
  .project-dialog { padding-top: 85px; }
  .site-footer { flex-wrap: wrap; gap: 12px; font-size: 9px; }
  .site-footer > span:nth-child(2) { margin-left: 0; }
  .edit-trigger { margin-left: auto; }
  .editor-grid { grid-template-columns: 1fr; }
  .editor-panel { width: 100vw; }
  .editor-media-item { grid-template-columns: 58px minmax(0,1fr) auto; }
  .editor-media-item img { width: 58px; height: 58px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Portfolio organization from the supplied reference. */
.project-filters { display: flex; align-items: center; gap: clamp(16px,3.5vw,42px); margin: 28px 0 30px; overflow-x: auto; }
.project-filter { display: inline-flex; align-items: baseline; gap: 7px; padding: 5px 0; border: 0; border-bottom: 1px solid transparent; background: transparent; color: #555; font-size: 11px; text-transform: uppercase; white-space: nowrap; cursor: pointer; }
.project-filter span { color: #999; font-size: 10px; }
.project-filter[aria-pressed="true"], .project-filter:hover { color: #111; border-color: #111; }
.project-card[hidden] { display: none !important; }

@media (max-width: 760px) {
  .project-list { gap: 28px 14px; }
  .project-image-frame img { max-height: 390px; }
  .project-filters { gap: 20px; margin: 24px 0; }
}
@media (max-width: 420px) {
  .project-list { grid-template-columns: 1fr; }
  .project-card h3 { font-size: 13px; }
  .project-card-meta { font-size: 11px; }
}

/* Preserve the supplied folder hierarchy within the portfolio. */
.portfolio-block + .portfolio-block { margin-top: clamp(60px, 8vw, 110px); }
.portfolio-block-heading { margin: 0 0 30px; font-size: 15px; font-weight: 400; text-transform: uppercase; }
.portfolio-subproject + .portfolio-subproject { margin-top: clamp(48px, 6vw, 80px); }
.portfolio-subproject-heading { margin: 0 0 24px; font-size: 13px; text-transform: uppercase; }
.portfolio-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 38px 30px; align-items: start; }
.portfolio-image { display: block; width: 100%; min-width: 0; padding: 0; border: 0; background: transparent; text-align: inherit; }
.portfolio-image { aspect-ratio: 1; overflow: hidden; margin: 0; cursor: zoom-in; }
.portfolio-image picture { display: block; width: 100%; height: 100%; }
.portfolio-image img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; transition: opacity .2s ease; }
.portfolio-gallery > .detail-video { aspect-ratio: 1; overflow: hidden; }
.portfolio-gallery > .detail-video video { width: 100%; height: 100%; object-fit: contain; }
.portfolio-image:hover img { opacity: .8; }
@media (max-width: 760px) { .portfolio-gallery { gap: 28px 14px; } }

/* Image-led entry pages for categories and textile projects. */
.portfolio-cover { display: block; min-width: 0; text-decoration: none; }
.portfolio-cover-image { display: grid; place-items: center; aspect-ratio: 1; overflow: hidden; }
.portfolio-cover-image img { display: block; width: 100%; height: 100%; object-fit: cover; transition: opacity .2s ease; }
.portfolio-cover:hover img { opacity: .8; }
.portfolio-cover h2 { margin: 18px 0 0; font-size: 13px; text-align: center; text-transform: uppercase; }
.portfolio-back { display: inline-block; margin-bottom: 28px; font-size: 12px; text-decoration: none; }
.portfolio-back:hover { text-decoration: underline; }

/* A small crescent keeps the editing entrance discreet and always reachable. */
.edit-trigger { position: fixed; left: 24px; bottom: 24px; z-index: 45; width: 48px; height: 48px; padding: 10px; display: grid; place-items: center; border: 1px solid #d9d6d0; border-radius: 50%; background: #faf9f6; color: #35352f; box-shadow: 0 3px 15px #34342e0d; transition: transform .2s, background .2s; }
.edit-trigger:hover { transform: rotate(-16deg); background: #eeece6; }
.edit-trigger:focus-visible { outline: 2px solid #53534b; outline-offset: 4px; }
.editor-actions { position: sticky; bottom: 0; background: #faf9f6; padding: 16px 0; border-top: 1px solid #d9d6d0; }
.editor-media-actions { flex-wrap: wrap; }
.editor-media-actions label { font-size: 10px; cursor: pointer; padding: 7px; }
.grid-columns-1 { grid-template-columns: 1fr; }
.grid-columns-2 { grid-template-columns: repeat(2,minmax(0,1fr)); }
.grid-columns-3 { grid-template-columns: repeat(3,minmax(0,1fr)); }
.grid-columns-4 { grid-template-columns: repeat(4,minmax(0,1fr)); }
.custom-section-copy { white-space: pre-line; }
#publicStatus:empty { display: none; }
#publicStatus { font-size: 12px; padding: 12px; }
@media(max-width:760px) {
  .edit-trigger { left: 16px; bottom: 16px; }
  .grid-columns-3,.grid-columns-4 { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media(prefers-reduced-motion:reduce) { .edit-trigger { transition: none; } }
.brand-logo { display: block; max-width: 120px; max-height: 64px; object-fit: contain; }

/* Square cells share one layout rule across projects and custom pages. */
.project-grid {
  --columns: var(--requested-columns);
  --grid-gap: 30px;
  grid-template-columns: repeat(var(--columns), minmax(0, 1fr));
  gap: var(--grid-gap);
  width: 100%;
  max-width: calc(var(--columns) * var(--cell-size) + (var(--columns) - 1) * var(--grid-gap));
}
.editor-grid-settings { min-width: 0; margin: 16px 0; padding: 14px; border: 1px solid var(--rule); }
.editor-grid-settings legend { padding: 0 6px; font-size: 13px; }
.editor-grid-settings .editor-note { margin-bottom: 0; }
.zoom-dialog { padding: 0; overflow: hidden; }
.zoom-dialog[open] { display: flex; flex-direction: column; }
.zoom-toolbar { display: flex; flex: 0 0 auto; justify-content: center; align-items: center; flex-wrap: wrap; gap: 8px; padding: 12px; border-bottom: 1px solid var(--rule); background: var(--paper); }
.zoom-toolbar button { min-width: 44px; min-height: 44px; padding: 8px 12px; border: 1px solid var(--rule); background: transparent; cursor: pointer; }
.zoom-toolbar button:hover { background: var(--soft); }
.zoom-toolbar button:disabled { opacity: .35; cursor: default; }
.zoom-toolbar output { min-width: 54px; text-align: center; font-size: 13px; }
.zoom-viewport { flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain; }
.zoom-canvas { width: calc(100% * var(--zoom, 1)); height: calc(100% * var(--zoom, 1)); }
.zoom-canvas picture { display: block; width: 100%; height: 100%; }
.zoom-canvas img { display: block; width: 100%; height: 100%; max-width: none; object-fit: contain; }
@media (max-width: 760px) {
  .project-grid { --columns: 2; --grid-gap: 14px; }
  .project-grid.grid-columns-1 { --columns: 1; }
}

/* Project and gallery links use the same cell dimensions as images. */
.project-grid:empty { display: none; }
.gallery-links { margin-top: 38px; }
.project-grid .portfolio-cover-image { aspect-ratio: 1; }
.editor-project .editor-project { border-left: 1px solid var(--rule); padding-left: 12px; }
.editor-move-label { display: grid; gap: 4px; margin-top: 8px; font-size: 11px; }
.editor-move-label select { width: 100%; min-width: 0; padding: 6px; }
.editor-media-item > div { min-width: 0; }
.editor-media-item small { overflow-wrap: anywhere; }
.editor-media-item[aria-busy="true"] { outline: 1px solid var(--rule); }
.editor-media-item[aria-busy="true"] .editor-media-actions { pointer-events: none; opacity: .5; }
@media (min-width: 761px) and (max-width: 1100px) {
  .project-grid { --columns: min(var(--requested-columns), 4); }
}
.zoom-dialog { background: transparent; }
.zoom-dialog::backdrop { background: rgba(255,255,255,.78); }
.zoom-close { position: absolute; top: 12px; right: 16px; z-index: 2; width: 48px; height: 48px; border: 0; background: rgba(255,255,255,.85); font-size: 34px; cursor: pointer; }
.zoom-viewport { width: 100%; height: 100%; touch-action: pan-x pan-y; }
.zoom-canvas { width: calc(100% * var(--zoom, 1)); height: calc(100% * var(--zoom, 1)); }
.zoom-canvas img { user-select: none; -webkit-user-drag: none; cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cpath d='M2 14Q13 1 24 14Q13 27 2 14Z' fill='white' stroke='%23222222' stroke-width='1.5'/%3E%3Ccircle cx='13' cy='14' r='4' fill='none' stroke='%23222222'/%3E%3Ccircle cx='24' cy='24' r='7' fill='white' stroke='%23222222'/%3E%3Cpath d='M20 24h8m-4-4v8' stroke='%23222222' stroke-width='1.5'/%3E%3C/svg%3E") 13 14, zoom-in; }
.zoom-dialog.is-zoomed img { cursor: zoom-out; }
.zoom-dialog.is-zoomed .zoom-viewport:active img { cursor: grabbing; }
.zoom-dialog .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* PNG identity stays anchored to the original title and navigation positions. */
.cover-title h1 { position: relative; width: min(7em, 88vw); height: 1.1em; margin-inline: auto; }
.cover-title h1 img { position: absolute; left: 50%; top: 50%; width: 100%; max-width: none; transform: translate(-50%, -50%) scale(var(--titleSize, 1)); filter: invert(var(--titleInvert, 1)); opacity: var(--titleOpacity, 1); }
.cover-nav a { display: grid; place-items: center; min-height: 44px; }
.cover-nav img { display: block; height: 15px; width: auto; max-width: none; transform: scale(var(--buttonSize, 1)); filter: invert(var(--buttonInvert, 1)); opacity: var(--buttonOpacity, 1); transition: opacity .2s ease; }
.cover-nav a:hover img { opacity: calc(var(--buttonOpacity, 1) * .75); }
.brand-logo { width: var(--logoSize, 140px); max-width: min(var(--logoSize, 140px), 50vw); max-height: none; height: auto; }
.zoom-canvas { display: grid; place-items: center; }
.zoom-canvas picture { display: contents; }
.zoom-canvas img { width: auto; height: auto; max-width: none; max-height: none; object-fit: contain; flex-shrink: 0; }
.zoom-arrow { position: absolute; z-index: 2; top: calc(50% - 26px); width: 44px; height: 52px; padding: 0; border: 0; background: rgba(255,255,255,.88); color: var(--ink); font-size: 36px; line-height: 1; cursor: pointer; }
.zoom-prev { left: 6px; }
.zoom-next { right: 6px; }
.zoom-arrow:disabled { opacity: .25; cursor: default; }
.zoom-dialog.is-zoomed img { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cpath d='M2 14Q13 1 24 14Q13 27 2 14Z' fill='white' stroke='%23222222' stroke-width='1.5'/%3E%3Ccircle cx='13' cy='14' r='4' fill='none' stroke='%23222222'/%3E%3Ccircle cx='24' cy='24' r='7' fill='white' stroke='%23222222'/%3E%3Cpath d='M20 24h8' stroke='%23222222' stroke-width='1.5'/%3E%3C/svg%3E") 13 14, zoom-out; }
@media (max-width: 700px) {
  .cover-nav img { height: 13px; }
  .cover-nav { gap: 0; }
}

/* Shared typography for existing pages and newly created galleries. */
.site-shell { font-size: var(--textSize, 15px); }
.section-heading, .portfolio-cover h2 { font-size: var(--headingSize, 15px); overflow-wrap: anywhere; }
.portfolio-page .section-head { margin-bottom: 16px; }
.portfolio-page .project-description { margin-bottom: 24px; line-height: 1.6; }
.section-intro, .about-copy, .contact-note, .timeline-item p, .tag-list, .cv-education { font-size: var(--textSize, 15px); }
.custom-section-copy, .about-copy, .contact-note { overflow-wrap: anywhere; }
@media (max-width: 600px) {
  .portfolio-page .section-head { margin-bottom: 12px; }
  .portfolio-page .project-description { margin-bottom: 20px; }
}
