
.entry-header {
  margin-bottom: 3px;
}
/* Match Bodybuilders-to-divider spacing to the other menu titles. */
html body .site-sidebar .portfolio-menu .dz-bodybuilders-divider {
  margin: 11px 0 -1px !important;
  transform: translateY(-1px);
}
.portfolio-menu .dz-about-divider {
  transform: translateY(-16px);
}

/* Dashed divider between Artist Statement and About; keeps existing spacing. */
.portfolio-menu > #menu-item-1029 > a {
  position: relative;
}
.portfolio-menu > #menu-item-1029 > a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 0;
  border-bottom: 1px dashed #777;
  pointer-events: none;
}

/* Homepage: name and menu left, with equal outer margins. */
@media (min-width: 1051px) {
  html:has(> body.home.dz-preview-overview:not([data-dz-home-sidebar="hide"])) {
    scrollbar-gutter: auto !important;
  }
  html body.home.dz-preview-overview:not([data-dz-home-sidebar="hide"]) {
    --dz-frame: 44px;
  }
  html body.home.dz-preview-overview:not([data-dz-home-sidebar="hide"]) .site-sidebar {
    float: left !important;
    width: calc(var(--dz-frame) + 232px) !important;
    inset: calc(var(--dz-frame) - 5px) auto auto 0 !important;
    height: calc(100dvh - var(--dz-frame) + 5px) !important;
    margin: calc(var(--dz-frame) - 5px) 0 0 !important;
    padding: 0 0 24px var(--dz-frame) !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    z-index: 20 !important;
  }
  html body.home.dz-preview-overview:not([data-dz-home-sidebar="hide"]) .site-sidebar > .site-title {
    position: static !important;
    inset: auto !important;
    width: auto;
    margin: 0 0 47px !important;
    padding: 0 !important;
    text-align: left;
  }
  html body.home.dz-preview-overview:not([data-dz-home-sidebar="hide"]) .site-sidebar > nav {
    margin-top: 0;
  }
  html body.home.dz-preview-overview:not([data-dz-home-sidebar="hide"]) .portfolio-menu a {
    text-align: left;
  }
  html body.home.dz-preview-overview:not([data-dz-home-sidebar="hide"]) .site-main {
    margin: 0 var(--dz-frame) 0 calc(var(--dz-frame) + 280px) !important;
    width: calc(100vw - var(--dz-frame) - var(--dz-frame) - 280px) !important;
    max-width: none !important;
    padding-top: calc(var(--dz-frame) + 95px) !important;
  }
  html body.home.dz-preview-overview:not([data-dz-home-sidebar="hide"]) .dz-top-right-nav {
    inset: 0 auto auto calc(var(--dz-frame) + 232px) !important;
    width: calc(100vw - var(--dz-frame) - 232px) !important;
    min-height: calc(var(--dz-frame) + 32px) !important;
    padding: var(--dz-frame) var(--dz-frame) 0 !important;
    justify-content: flex-end !important;
  }
}

/* Keep the short Bodybuilders label in the portfolio's uppercase typography. */
.portfolio-menu #menu-item-978 > a,
.work-card#work-10 .work-caption h2 {
  text-transform: uppercase;
}

/* Give the portfolio menu a quieter, regular weight. */
html body .site-sidebar .portfolio-menu a {
  font-weight: 400 !important;
}

/* Fine black frames and compact paragraphs for the site's text sections. */
body:not(.home) .project-description,
body:not(.home) .dz-contact-main:has(> p, > h2, > h3, > ul, > ol, > blockquote, > table),
body:not(.home) article[data-gallery-layout="text"]:not(:has(.project-description)) > .entry-content:has(> p) {
  box-sizing: border-box;
  border: 1px solid #dedede !important;
  padding: 24px !important;
  max-width: 100%;
  white-space: normal !important;
  box-shadow: none !important;
}
body:not(.home) .project-description p,
body:not(.home) .dz-contact-main p,
body:not(.home) article[data-gallery-layout="text"] .entry-content p {
  margin-top: 0 !important;
  margin-bottom: 10px !important;
}
body:not(.home) .project-description p:last-child,
body:not(.home) .dz-contact-main p:last-child,
body:not(.home) article[data-gallery-layout="text"] .entry-content p:last-child {
  margin-bottom: 0 !important;
}
@media (max-width: 760px) {
  body:not(.home) .project-description,
  body:not(.home) .dz-contact-main:has(> p, > h2, > h3, > ul, > ol, > blockquote, > table),
  body:not(.home) article[data-gallery-layout="text"]:not(:has(.project-description)) > .entry-content:has(> p) {
    padding: 18px !important;
  }
}

/* Text frames follow the right edge of their gallery. */
html body.dz-preview-theme:not(.home) .project-description {
  width: 100% !important;
  max-width: 920px !important;
}
html body.dz-preview-theme.gallery-layout-video:not(.home) .project-description {
  max-width: 780px !important;
}
@media (max-width: 1050px) {
  html body.dz-preview-theme.gallery-layout-video:not(.home) .project-description {
    max-width: 100% !important;
  }
}
/* Close controls and top arrows share one vertical axis. */
html body.dz-preview-theme {
  --dz-control-axis: 50px;
}
html body.dz-preview-theme .project-tools .project-close {
  right: calc(var(--dz-control-axis) - 28px) !important;
}
html body.dz-preview-theme .dz-masonry-footer {
  padding-right: calc(var(--dz-control-axis) - 22px) !important;
}
html body.dz-preview-theme .dz-masonry-footer-top,
html body.dz-preview-theme .back-to-top:not([hidden]),
html body.dz-preview-theme .dz-contact-back-top:not([hidden]) {
  box-sizing: border-box;
  width: 44px !important;
  height: 44px !important;
  padding: 0 !important;
}
html body.dz-preview-theme .dz-masonry-footer-top {
  flex: 0 0 44px !important;
}
html body.dz-preview-theme.home .back-to-top:not([hidden]),
html body.dz-preview-theme:not(.home) .back-to-top:not([hidden]),
html body.dz-preview-theme .dz-contact-back-top:not([hidden]) {
  left: auto !important;
  right: calc(var(--dz-control-axis) - 22px) !important;
}
@media (max-width: 760px) {
  html body.dz-preview-theme {
    --dz-control-axis: 42px;
  }
}
/* Compact paragraph spacing also applies to future work texts. */
html body.dz-preview-theme:not(.home) .entry-content p,
html body.dz-preview-theme:not(.home) .project-description p {
  margin-top: 0 !important;
  margin-bottom: 10px !important;
}
/* Frames for texts written directly in the page editor. */
html body.dz-preview-theme:not(.home) .dz-work-text {
  box-sizing: border-box;
  width: 100%;
  max-width: 920px;
  margin: 38px 0;
  border: 1px solid #dedede;
  padding: 24px;
  white-space: normal;
}
html body.dz-preview-theme:not(.home) .dz-work-text:first-child {
  margin-top: 0;
}
html body.dz-preview-theme:not(.home) .dz-work-text p,
html body.dz-preview-theme:not(.home) .dz-work-text h5 {
  max-width: none !important;
  margin-top: 0 !important;
  margin-bottom: 10px !important;
}
html body.dz-preview-theme:not(.home) .dz-work-text > :last-child {
  margin-bottom: 0 !important;
}
html body.dz-preview-theme:not(.home) article[data-gallery-layout]:not(:has(.project-description)) .entry-content > p.wp-block-paragraph:not(:has(img, iframe, video)) {
  box-sizing: border-box;
  width: 100% !important;
  max-width: 920px !important;
  margin: 0 !important;
  padding: 0 24px 10px !important;
  border-left: 1px solid #dedede;
  border-right: 1px solid #dedede;
}
html body.dz-preview-theme:not(.home) article[data-gallery-layout]:not(:has(.project-description)) .entry-content > p.wp-block-paragraph:not(:has(img, iframe, video)):not(.wp-block-paragraph + .wp-block-paragraph) {
  border-top: 1px solid #dedede;
  padding-top: 24px !important;
  margin-top: 38px !important;
}
html body.dz-preview-theme:not(.home) article[data-gallery-layout]:not(:has(.project-description)) .entry-content > p.wp-block-paragraph:not(:has(img, iframe, video)):not(:has(+ .wp-block-paragraph)) {
  border-bottom: 1px solid #dedede;
  padding-bottom: 24px !important;
  margin-bottom: 38px !important;
}
html body.dz-preview-theme.gallery-layout-video:not(.home) .dz-work-text,
html body.dz-preview-theme.gallery-layout-video:not(.home) article[data-gallery-layout]:not(:has(.project-description)) .entry-content > p.wp-block-paragraph {
  max-width: 780px !important;
}
@media (max-width: 1050px) {
  html body.dz-preview-theme.gallery-layout-video:not(.home) .dz-work-text,
  html body.dz-preview-theme.gallery-layout-video:not(.home) article[data-gallery-layout]:not(:has(.project-description)) .entry-content > p.wp-block-paragraph {
    max-width: 100% !important;
  }
}
@media (max-width: 760px) {
  html body.dz-preview-theme:not(.home) .dz-work-text {
    padding: 18px;
  }
  html body.dz-preview-theme:not(.home) article[data-gallery-layout]:not(:has(.project-description)) .entry-content > p.wp-block-paragraph {
    padding-left: 18px !important;
    padding-right: 18px !important;
  }
}
html body.dz-preview-theme:not(.home) .entry-content p:last-child,
html body.dz-preview-theme:not(.home) .project-description p:last-child {
  margin-bottom: 0 !important;
}
/* Centre video galleries and keep their text frames aligned. */
html body.dz-preview-theme:not(.home) .dz-gallery[data-mode="video"],
html body.dz-preview-theme:not(.home) .entry-content > .wp-block-video,
html body.dz-preview-theme:not(.home) .entry-content > .wp-block-embed.is-type-video,
html body.dz-preview-theme:not(.home) .entry-content > iframe,
html body.dz-preview-theme:not(.home) .entry-content > video {
  margin-left: auto !important;
  margin-right: auto !important;
}
html body.dz-preview-theme.gallery-layout-video:not(.home) .project-description,
html body.dz-preview-theme.gallery-layout-video:not(.home) .dz-work-text,
html body.dz-preview-theme.gallery-layout-video:not(.home) .entry-content > p,
html body.dz-preview-theme.gallery-layout-video:not(.home) article[data-gallery-layout]:not(:has(.project-description)) .entry-content > p.wp-block-paragraph {
  margin-left: auto !important;
  margin-right: auto !important;
}
/* Homepage: the sidebar, images and social links scroll with the page. */
@media (min-width: 1051px) {
  html body.home.dz-preview-overview:not([data-dz-home-sidebar="hide"]) .site-sidebar {
    position: relative !important;
    inset: auto !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
  }
  html body.home.dz-preview-overview:not([data-dz-home-sidebar="hide"]) .site-main {
    width: calc(100% - var(--dz-frame) - var(--dz-frame) - 280px) !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
  }
  html body.home.dz-preview-overview:not([data-dz-home-sidebar="hide"]) .dz-top-right-nav {
    position: absolute !important;
    width: calc(100% - var(--dz-frame) - 232px) !important;
  }
}
/* Centre the content blocks inside their project containers. */
html body.dz-preview-theme:not(.home) .dz-gallery,
html body.dz-preview-theme:not(.home) .project-description,
html body.dz-preview-theme:not(.home) .dz-work-text,
html body.dz-preview-theme:not(.home) .dz-contact-main,
html body.dz-preview-theme:not(.home) .entry-content > p,
html body.dz-preview-theme:not(.home) article[data-gallery-layout]:not(:has(.project-description)) .entry-content > p.wp-block-paragraph {
  margin-left: auto !important;
  margin-right: auto !important;
}
/* Homepage: one shared visible gap; images start at the wordmark's lower edge. */
@media (min-width: 1051px) {
  html body.home.dz-preview-overview:not([data-dz-home-sidebar="hide"]) {
    --dz-frame: 44px;
    --dz-home-brand-bottom: 56px;
  }
  html body.home.dz-preview-overview:not([data-dz-home-sidebar="hide"]) .site-sidebar > .site-title {
    margin-bottom: calc(var(--dz-frame) - 16px) !important;
  }
  html body.home.dz-preview-overview:not([data-dz-home-sidebar="hide"]) .site-main {
    padding-top: calc(var(--dz-frame) + var(--dz-home-brand-bottom)) !important;
  }
}
/* The poem frame follows the text's natural width. */
html body.dz-preview-theme.page-id-127 .dz-work-text {
  width: fit-content !important;
  max-width: 100% !important;
}
/* Responsive top arrows stay fixed at the lower right corner. */
@media (max-width: 1050px) {
  html body.dz-preview-theme.home .back-to-top:not([hidden]),
  html body.dz-preview-theme:not(.home) .back-to-top:not([hidden]),
  html body.dz-preview-theme .dz-contact-back-top:not([hidden]),
  html body.dz-preview-theme .dz-masonry-footer-top:not([hidden]) {
    position: fixed !important;
    top: auto !important;
    left: auto !important;
    right: calc(var(--dz-control-axis) - 22px) !important;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px)) !important;
    width: 44px !important;
    height: 44px !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: none !important;
    z-index: 40 !important;
  }
}
/* Use the same visible name-to-menu gap across the site. */
html body.dz-preview-theme .site-sidebar > .site-title {
  margin-bottom: 28px !important;
}
/* Begin responsive image content closer to the header. */
@media (max-width: 1050px) {
  html body.dz-preview-theme.home .site-main,
  html body.dz-preview-theme:not(.home) .site-main {
    padding-top: 24px !important;
  }
}
@media (max-width: 760px) {
  html body.dz-preview-theme.home .site-main,
  html body.dz-preview-theme:not(.home) .site-main {
    padding-top: 16px !important;
  }
}
/* Centre wide media in the eight-column Photograph gallery. */
@media (min-width: 1101px) {
  html body.dz-preview-theme.page-id-127 .dz-gallery[data-mode="masonry"].has-custom-thumb-sizes > figure.is-style-thumb-wide {
    grid-column: 2 / span 6 !important;
  }
}
.project-layout .project-description {
  margin-top: 60px;
}



/* Responsive layout: borderless text and media below the 64px header. */
@media (max-width: 1050px) {
  html body.dz-preview-theme:not(.home) .project-description,
  html body.dz-preview-theme:not(.home) .dz-work-text,
  html body.dz-preview-theme:not(.home) .dz-contact-main:has(> p, > h2, > h3, > ul, > ol, > blockquote, > table),
  html body.dz-preview-theme:not(.home) article[data-gallery-layout="text"]:not(:has(.project-description)) > .entry-content:has(> p),
  html body.dz-preview-theme:not(.home) article[data-gallery-layout]:not(:has(.project-description)) .entry-content > p.wp-block-paragraph:not(:has(img, iframe, video)) {
    border: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
    height: auto !important;
    min-height: 0 !important;
  }
  html body.dz-preview-theme.home .site-main {
    padding-top: 64px !important;
  }
  html body.dz-preview-theme:not(.home) .site-main:has(.dz-gallery) {
    padding-top: 0 !important;
  }
  html body.dz-preview-theme:not(.home) .site-main:has(.dz-gallery) > .project-tools {
    height: 0 !important;
  }
  html body.dz-preview-theme:not(.home) .site-main:has(.dz-gallery) > .project-tools .project-close {
    background: #fff !important;
  }
}

/* Clear paragraph frame edges set by the first/last paragraph rules. */
@media (max-width: 1050px) {
  html body.dz-preview-theme:not(.home) article[data-gallery-layout]:not(:has(.project-description)) .entry-content > p.wp-block-paragraph:not(:has(img, iframe, video)):not(.wp-block-paragraph + .wp-block-paragraph),
  html body.dz-preview-theme:not(.home) article[data-gallery-layout]:not(:has(.project-description)) .entry-content > p.wp-block-paragraph:not(:has(img, iframe, video)):not(:has(+ .wp-block-paragraph)) {
    border: 0 !important;
    padding: 0 !important;
  }
}

/* Keep the mobile back-to-top arrow fixed and available on every page. */
@media (max-width: 1050px) {
  html body.dz-preview-theme.home .back-to-top:not([hidden]),
  html body.dz-preview-theme:not(.home) .back-to-top:not([hidden]),
  html body.dz-preview-theme .dz-masonry-footer-top:not([hidden]),
  html body.dz-preview-theme .dz-contact-back-top:not([hidden]),
  html body.dz-preview-theme .back-to-top[hidden],
  html body.dz-preview-theme .dz-masonry-footer-top[hidden],
  html body.dz-preview-theme .dz-contact-back-top[hidden] {
    position: fixed !important;
    top: auto !important;
    left: auto !important;
    right: calc(20px + env(safe-area-inset-right, 0px)) !important;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px)) !important;
    width: 44px !important;
    height: 44px !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    background: #fff !important;
    z-index: 9999 !important;
  }
}

/* Keep native gallery scrollbars outside the artwork, with a quiet monochrome style. */
html body.dz-preview-theme:not(.home) .dz-gallery:is([data-mode="vertical"], [data-mode="horizontal"]) {
  --dz-gallery-scroll-gap: 16px;
  scrollbar-width: thin;
  scrollbar-color: #666666 #ededed;
}
html body.dz-preview-theme:not(.home) .dz-gallery[data-mode="vertical"] {
  padding-inline-end: var(--dz-gallery-scroll-gap);
  scrollbar-gutter: stable;
}
html body.dz-preview-theme:not(.home) .dz-gallery[data-mode="horizontal"] {
  padding-block-end: var(--dz-gallery-scroll-gap);
}
html body.dz-preview-theme:not(.home) .dz-gallery:is([data-mode="vertical"], [data-mode="horizontal"]):is(:hover, :focus-within) {
  scrollbar-color: #111111 #ededed;
}
html body.dz-preview-theme:not(.home) .dz-gallery:is([data-mode="vertical"], [data-mode="horizontal"])::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
html body.dz-preview-theme:not(.home) .dz-gallery:is([data-mode="vertical"], [data-mode="horizontal"])::-webkit-scrollbar-track {
  background: #ededed;
}
html body.dz-preview-theme:not(.home) .dz-gallery:is([data-mode="vertical"], [data-mode="horizontal"])::-webkit-scrollbar-thumb {
  background: #666666;
  border-radius: 0;
}
html body.dz-preview-theme:not(.home) .dz-gallery:is([data-mode="vertical"], [data-mode="horizontal"])::-webkit-scrollbar-thumb:hover {
  background: #111111;
}
@media (max-width: 1050px) {
  html body.dz-preview-theme:not(.home) .dz-gallery:is([data-mode="vertical"], [data-mode="horizontal"]) {
    --dz-gallery-scroll-gap: 12px;
  }
}
@media (forced-colors: active) {
  html body.dz-preview-theme:not(.home) .dz-gallery:is([data-mode="vertical"], [data-mode="horizontal"]) {
    scrollbar-color: auto;
  }
}

/* Keep artwork unchanged on hover and show a hand over clickable images. */
html body.dz-preview-theme {
  --dz-masonry-hover-opacity: 0 !important;
}
html body.dz-preview-theme .site-main .dz-gallery[data-mode] figure img,
html body.dz-preview-theme .site-main .work-card,
html body.dz-preview-theme .site-main .work-card .work-image,
html body.dz-preview-theme .site-main .work-card img,
html body.dz-preview-theme .site-main .dz-work-card,
html body.dz-preview-theme .site-main .dz-work-image,
html body.dz-preview-theme .site-main .dz-work-card img {
  opacity: 1 !important;
  filter: none !important;
}
html body.dz-preview-theme .site-main a:has(img),
html body.dz-preview-theme .site-main a:has(img) img,
html body.dz-preview-theme .site-main .dz-gallery[data-mode="masonry"] figure,
html body.dz-preview-theme .site-main .dz-gallery[data-mode="masonry"] figure img {
  cursor: pointer !important;
}
/* Desktop menu: a slightly wider text column with a shared right alignment. */
@media (min-width: 1051px) {
  html body.dz-preview-theme {
    --dz-menu-to-grid-gap: 48px;
    --dz-menu-content-width: 256px;
  }
  html body.home.dz-preview-overview:not([data-dz-home-sidebar="hide"]) .site-sidebar {
    width: calc(var(--dz-frame) + var(--dz-menu-content-width)) !important;
  }
  html body.home.dz-preview-overview:not([data-dz-home-sidebar="hide"]) .site-main {
    margin-left: calc(var(--dz-frame) + var(--dz-menu-content-width) + var(--dz-menu-to-grid-gap)) !important;
    width: calc(100% - var(--dz-frame) * 2 - var(--dz-menu-content-width) - var(--dz-menu-to-grid-gap)) !important;
  }
  html body.home.dz-preview-overview:not([data-dz-home-sidebar="hide"]) .dz-top-right-nav {
    left: calc(var(--dz-frame) + var(--dz-menu-content-width)) !important;
    width: calc(100% - var(--dz-frame) - var(--dz-menu-content-width)) !important;
  }
  html body.dz-preview-theme:not(.home) {
    --dz-sidebar-width: calc(var(--dz-menu-content-width) + 76px);
  }
}

/* Social/contact icons belong below the menu; align the home images with the wordmark top. */
html body.dz-preview-theme .dz-top-right-nav {
  display: none !important;
}
html body.dz-preview-theme .site-sidebar .sidebar-social-links {
  display: flex !important;
  position: static !important;
  inset: auto !important;
  order: 2 !important;
  margin: 16px 0 0 !important;
  transform: none !important;
}
@media (min-width: 1051px) {
  html body.home.dz-preview-overview:not([data-dz-home-sidebar="hide"]) .site-main {
    padding-top: var(--dz-frame, 44px) !important;
  }
}

/* Text frames always follow their content height. */
html body.dz-preview-theme:not(.home) .project-description,
html body.dz-preview-theme:not(.home) .dz-work-text,
html body.dz-preview-theme:not(.home) .dz-contact-main:has(> p, > h2, > h3, > ul, > ol, > blockquote, > table),
html body.dz-preview-theme:not(.home) article[data-gallery-layout="text"]:not(:has(.project-description)) > .entry-content:has(> p) {
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  align-self: start !important;
}
html body.dz-preview-theme:not(.home) .project-description > p:empty,
html body.dz-preview-theme:not(.home) .dz-work-text > p:empty {
  display: none !important;
}

/* Match the icons' visible gap to the Bodybuilders-to-divider gap.
   Menu text uses 14px/6px padding on desktop and 16px/8px on mobile;
   the 20px SVG drawings are inset within their 24px links. */
html body.dz-preview-theme .site-sidebar .sidebar-social-links {
  margin-top: 18px !important;
}
@media (max-width: 760px) {
  html body.dz-preview-theme .site-sidebar .sidebar-social-links {
    margin-top: 21px !important;
  }
}

/* Centre project media between the visible menu edge and the close/footer-control axis. */
html body.dz-preview-theme:not(.home) .site-main:has(> article[data-gallery-layout]) {
  --dz-project-menu-edge: 0px;
  --dz-project-control-edge: 0px;
  box-sizing: border-box !important;
  width: calc(100% - var(--dz-project-menu-edge) - var(--dz-project-control-edge)) !important;
  min-width: 0;
  max-width: none !important;
  margin-left: var(--dz-project-menu-edge) !important;
  margin-right: var(--dz-project-control-edge) !important;
  padding-inline: 20px !important;
}
@media (min-width: 1051px) {
  html body.dz-preview-theme:not(.home) .site-main:has(> article[data-gallery-layout]) {
    /* Align to the visible menu edge, excluding its fixed 38px right padding. */
    --dz-project-menu-edge: max(0px, calc(var(--dz-sidebar-width, 290px) - 38px));
    --dz-project-control-edge: var(--dz-control-axis, 50px);
    padding-inline: clamp(20px, 4vw, 74px) !important;
  }
}
html body.dz-preview-theme[data-dz-sidebar="hide"]:not(.home) .site-main:has(> article[data-gallery-layout]) {
  --dz-project-menu-edge: 0px;
}
html body.dz-preview-theme:not(.home) .site-main > article[data-gallery-layout],
html body.dz-preview-theme:not(.home) article[data-gallery-layout] > .project-layout:not(.project-layout-side):not(.project-layout-left),
html body.dz-preview-theme:not(.home) article[data-gallery-layout] > .project-layout:not(.project-layout-side):not(.project-layout-left) > .entry-content {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}
html body.dz-preview-theme:not(.home) article[data-gallery-layout] .dz-gallery,
html body.dz-preview-theme:not(.home) article[data-gallery-layout] .entry-content > :is(.wp-block-gallery, .gallery, .wp-block-image, .wp-block-video, .wp-block-embed),
html body.dz-preview-theme:not(.home) article[data-gallery-layout] .entry-content > p:has(img, video, iframe) {
  margin-left: auto !important;
  margin-right: auto !important;
}
html body.dz-preview-theme:not(.home) article[data-gallery-layout] .entry-content :is(img, video, iframe) {
  display: block;
  float: none !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
html body.dz-preview-theme:not(.home) article[data-gallery-layout] .entry-content :is(img, video) {
  object-position: center center !important;
}
html body.dz-preview-theme:not(.home) article[data-gallery-layout] .dz-gallery[data-mode="vertical"] {
  padding-inline-start: var(--dz-gallery-scroll-gap, 16px);
  scrollbar-gutter: stable both-edges;
}

/* Each horizontal slide fits its gallery so the image shares the same centre. */
html body.dz-preview-theme:not(.home) article[data-gallery-layout] .dz-gallery[data-mode="horizontal"] > figure {
  flex: 0 0 100% !important;
  min-width: 0;
  max-width: 100%;
}

/* A wide image occupies six of eight tracks, centred with one empty track on either side. */
@media (min-width: 1101px) {
  html body.dz-preview-theme:not(.home) article[data-gallery-layout] .dz-gallery[data-mode="masonry"].has-custom-thumb-sizes > figure.is-style-thumb-wide {
    grid-column: 2 / -2 !important;
  }
}

/* Smaller close symbols and a permanently anchored footer arrow share one axis. */
html body.dz-preview-theme {
  --dz-control-icon-size: 28px;
}
@media (max-width: 760px) {
  html body.dz-preview-theme {
    --dz-control-axis: calc(42px + env(safe-area-inset-right, 0px));
  }
}
html body.dz-preview-theme .project-tools .project-close,
html body.dz-preview-theme .dz-contact-close,
html body.dz-preview-theme .dz-lightbox .lightbox-close {
  box-sizing: border-box;
  width: 44px !important;
  height: 44px !important;
  padding: 0 !important;
  right: calc(var(--dz-control-axis, 50px) - 22px) !important;
  align-items: center;
  justify-content: center;
  font-size: 28px !important;
  line-height: 1 !important;
  transform: none !important;
}
html body.dz-preview-theme .project-tools .project-close svg,
html body.dz-preview-theme .dz-contact-close svg,
html body.dz-preview-theme .dz-lightbox .lightbox-close svg,
html body.dz-preview-theme .dz-masonry-footer-top svg,
html body.dz-preview-theme > .back-to-top svg {
  width: var(--dz-control-icon-size) !important;
  height: var(--dz-control-icon-size) !important;
}
html body.dz-preview-theme:not(.home) .dz-masonry-footer {
  box-sizing: border-box;
  position: fixed !important;
  inset: auto 0 0 0 !important;
  width: auto !important;
  height: calc(76px + env(safe-area-inset-bottom, 0px)) !important;
  margin: 0 !important;
  padding: 16px calc(var(--dz-control-axis, 50px) - 22px) calc(16px + env(safe-area-inset-bottom, 0px)) 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  background: transparent !important;
  pointer-events: none;
  z-index: 9999 !important;
}
html body.dz-preview-theme:not(.home) .dz-masonry-footer .dz-masonry-footer-top {
  position: static !important;
  inset: auto !important;
  flex: 0 0 44px !important;
  width: 44px !important;
  height: 44px !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transform: none !important;
  background: #fff !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}
html body.dz-preview-theme > .back-to-top {
  box-sizing: border-box;
  position: fixed !important;
  top: auto !important;
  left: auto !important;
  right: calc(var(--dz-control-axis, 50px) - 22px) !important;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px)) !important;
  width: 44px !important;
  height: 44px !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transform: none !important;
  background: #fff !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  z-index: 9999 !important;
}

/* Desktop: align the close control with the first line of the website name. */
@media (min-width: 1051px) {
  html body.dz-preview-theme .project-tools .project-close,
  html body.dz-preview-theme .dz-contact-close {
    top: 40px !important;
  }
}

/* Keep the signed-in WordPress toolbar above the portfolio header. */
html body.admin-bar #wpadminbar {
  z-index: 100002 !important;
}
.portfolio-menu .current-menu-item > a,
.portfolio-menu .current_page_item > a,
.portfolio-menu a[aria-current="page"] {
  color: inherit !important;
  opacity: 1 !important;
  text-decoration: underline !important;
  text-decoration-thickness: 1px !important;
  text-underline-offset: 0.2em;
}

/* Project media legends: small, grey and right-aligned below the artwork. */
html body.dz-preview-theme:not(.home) .dz-gallery figure > figcaption,
html body.dz-preview-theme:not(.home) .entry-content > figure.wp-block-image > figcaption,
html body.dz-preview-theme:not(.home) .carousel-legend {
  position: static !important;
  inset: auto !important;
  width: 100% !important;
  margin: 8px 0 0 !important;
  padding: 0 !important;
  color: #707070 !important;
  background: transparent !important;
  border: 0 !important;
  font-size: 12px !important;
  font-weight: 400 !important;
  line-height: 1.45 !important;
  text-align: right !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  overflow-wrap: anywhere;
}
html body.dz-preview-theme:not(.home) .dz-gallery figure > figcaption p { margin: 0; }
html body.dz-preview-theme:not(.home) .dz-gallery figure > figcaption a { color: inherit; }
/* Fixed-height slides reserve room for an authored legend. */
html body.dz-preview-theme:not(.home) .dz-gallery:is([data-mode="vertical"], [data-mode="horizontal"]) > figure:has(> figcaption:not(:empty)) {
  display: flex;
  flex-direction: column;
  min-height: 0;
}
html body.dz-preview-theme:not(.home) .dz-gallery:is([data-mode="vertical"], [data-mode="horizontal"]) > figure:has(> figcaption:not(:empty)) > :is(a, img, video, iframe) {
  flex: 1 1 0;
  min-height: 0;
}
html body.dz-preview-theme:not(.home) .dz-gallery:is([data-mode="vertical"], [data-mode="horizontal"]) > figure:has(> figcaption:not(:empty)) > a { display: block; }
html body.dz-preview-theme:not(.home) .dz-gallery:is([data-mode="vertical"], [data-mode="horizontal"]) > figure > figcaption { flex: 0 0 auto; }


/* Confirmed portfolio spacing, compact language links and footer-only arrow. */
html body.dz-preview-theme .dzpc-language-unavailable { color:#707070; cursor:default; }
html body.dz-preview-theme .dzpc-empty-paragraph { display:none!important; }
html.dzpc-footer-arrows body.dz-preview-theme:not(.dzpc-footer-visible) :is(.back-to-top,.dz-masonry-footer-top,.dz-contact-back-top)[aria-hidden="true"] { display:none!important;visibility:hidden!important;pointer-events:none!important; }
html body.dz-preview-theme:not(.home) .project-layout.project-layout-below { row-gap:0!important; }
html body.dz-preview-theme:not(.home) .project-layout.project-layout-below > .project-description { margin-top:var(--dzpc-media-text-gap,40px)!important;margin-bottom:0!important; }
html body.dz-preview-theme:not(.home) .project-layout > .entry-content { margin-block:0!important; }
html body.dz-preview-theme:not(.home) .project-layout > .entry-content > :last-child { margin-bottom:0!important; }
html body.dz-preview-theme:not(.home) .entry-content > .dz-work-text { margin-top:var(--dzpc-media-text-gap,40px)!important;margin-bottom:0!important; }
html body.dz-preview-theme:not(.home) .entry-content > .dz-work-text:first-child { margin-top:0!important; }

/* Remove only the unused trailing grid-row space, preserving artwork and caption height. */
html body.dz-preview-theme:not(.home) .project-layout > .entry-content > .dz-gallery[data-mode="masonry"] { margin-bottom:calc(-1 * var(--dzpc-gallery-tail,0px))!important; }

/* Legacy video project text uses the same shared spacing as framed descriptions. */
html body.dz-preview-theme:not(.home) article[data-gallery-layout]:not(:has(.project-description)) .entry-content > p.wp-block-paragraph:not(:has(img,iframe,video)):not(.wp-block-paragraph + .wp-block-paragraph) { margin-top:var(--dzpc-media-text-gap,40px)!important; }


/* Language choice beside the symbols; use the measured title-to-divider gap. */
html body.dz-preview-theme .site-sidebar .dz-about-divider { margin-bottom:0!important; }
html body.dz-preview-theme .site-sidebar .sidebar-social-links { display:flex!important; flex-wrap:wrap; column-gap:12px; row-gap:12px; justify-content:flex-start; align-items:center; }
html body.dz-preview-theme .site-sidebar .sidebar-social-links > .dzpc-language { justify-content:flex-start; min-height:20px; margin:0; }


/* About: a centred A4-width sheet. Artist Statement: unframed text. */
html body.dz-preview-theme:is(.page-id-464,.page-id-1028) .site-main { --dz-project-menu-edge:0px; --dz-project-control-edge:0px; box-sizing:border-box!important; width:calc(100% - var(--dz-project-menu-edge) - var(--dz-project-control-edge))!important; max-width:none!important; margin-left:var(--dz-project-menu-edge)!important; margin-right:var(--dz-project-control-edge)!important; padding-inline:20px!important; }
@media(min-width:1051px) {
 html body.dz-preview-theme:is(.page-id-464,.page-id-1028) .site-main { --dz-project-menu-edge:max(0px,calc(var(--dz-sidebar-width,290px) - 38px)); --dz-project-control-edge:var(--dz-control-axis,50px); padding-inline:clamp(20px,4vw,74px)!important; }
 html body.dz-preview-theme[data-dz-sidebar="hide"]:is(.page-id-464,.page-id-1028) .site-main { --dz-project-menu-edge:0px; }
}
html body.dz-preview-theme.page-id-464 .dz-contact-page { box-sizing:border-box; width:100%!important; max-width:210mm!important; margin-inline:auto!important; }
html body.dz-preview-theme.page-id-464 .dz-contact-main.entry-content { box-sizing:border-box!important; width:100%!important; max-width:none!important; margin:0!important; padding:clamp(24px,4vw,56px)!important; border:1px solid #dedede!important; background:#fff!important; box-shadow:none!important; height:auto!important; min-height:0!important; }
html body.dz-preview-theme.page-id-1028 .dz-contact-main.entry-content { border:0!important; outline:0!important; box-shadow:none!important; background:transparent!important; }
@media(max-width:760px) {
 html body.dz-preview-theme.page-id-464 .dz-contact-main.entry-content { border:0!important; box-shadow:none!important; padding:20px!important; }
}


/* About: omit only the grey address directly below the CV; retain the site footer. */
html body.dz-preview-theme.page-id-464 .dz-contact-page-footer { display:none!important; }


/* Artist Statement: align the heading to the text and increase both sizes by about two points. */
html body.dz-preview-theme.page-id-1028 .dz-contact-main.entry-content,
html body.dz-preview-theme.page-id-1028 .dz-contact-main.entry-content p { font-size:17px!important; line-height:1.55!important; }
html body.dz-preview-theme.page-id-1028 .dz-artist-paper-title { box-sizing:border-box; width:calc(100% - 48px)!important; max-width:632px!important; margin-inline:auto!important; font-size:19px!important; line-height:1.3!important; }
@media(max-width:760px) {
 html body.dz-preview-theme.page-id-1028 .dz-artist-paper-title { width:calc(100% - 36px)!important; max-width:644px!important; }
}


/* Smartphone home: image frame matches the thin black title frame. */
@media (max-width: 760px) {
  html body.home.dz-preview-overview .work-card .work-image {
    box-sizing: border-box !important;
    border: 1px solid #000 !important;
  }
}


/* Hand cursor over portfolio images. */
html body .site-main img,
html body .work-card,
html body .work-card *,
html body .dz-gallery figure,
html body .dz-gallery figure a,
html body .dz-gallery figure img { cursor: pointer !important; }

/* Even, narrow masonry gutters; one-pixel rows avoid coarse vertical rounding. */
html body .site-main .dz-gallery[data-mode="masonry"] { column-gap:12px!important; }
html body .site-main .dz-gallery[data-mode="masonry"]:not(.has-custom-thumb-sizes)>figure { margin-bottom:12px!important; }
html body .site-main .dz-gallery[data-mode="masonry"].has-custom-thumb-sizes { column-gap:12px!important; row-gap:0!important; grid-auto-rows:1px!important; }
html body .site-main .dz-gallery[data-mode="masonry"].has-custom-thumb-sizes>figure { margin:0!important; padding-bottom:12px!important; background-clip:content-box; }
/* Marker lies on the lettering, while the three fixed dividers keep their width. */
html body .site-sidebar .portfolio-menu :is(.menu-artist-statement-item,#menu-item-1029,.menu-contact-item)>a { text-decoration:none!important; }
html body .site-sidebar .portfolio-menu :is(.menu-artist-statement-item,#menu-item-1029,.menu-contact-item)>a:is(:hover,:focus-visible,:active) .dz-fixed-link-label,
html body .site-sidebar .portfolio-menu :is(.menu-artist-statement-item,#menu-item-1029,.menu-contact-item):is(.current-menu-item,.current_page_item)>a .dz-fixed-link-label,
html body .site-sidebar .portfolio-menu :is(.menu-artist-statement-item,#menu-item-1029,.menu-contact-item)>a[aria-current="page"] .dz-fixed-link-label {
  background:linear-gradient(transparent 35%,var(--dz-fixed-link-highlight,#fff200) 35%,var(--dz-fixed-link-highlight,#fff200) 88%,transparent 88%);
  -webkit-box-decoration-break:clone; box-decoration-break:clone;
}
/* Out of the Dark: one continuous page scroll, including all media and the project text. */html body.dz-preview-theme.page-id-1189 article[data-gallery-layout="vertical"] .dz-gallery[data-mode="vertical"] {  height: auto !important;  max-height: none !important;  overflow: visible !important;  scroll-snap-type: none !important;  scrollbar-gutter: auto !important;}html body.dz-preview-theme.page-id-1189 .dz-gallery[data-mode="vertical"] > figure {  height: min(75vh, 800px) !important;  scroll-snap-align: none !important;}@media (max-width: 760px) {  html body.dz-preview-theme.page-id-1189 .dz-gallery[data-mode="vertical"] > figure {    height: 58vh !important;  }}/* Lighter media captions. */html body.dz-preview-theme:not(.home) .dz-gallery figure > figcaption,html body.dz-preview-theme:not(.home) .entry-content > figure.wp-block-image > figcaption,html body.dz-preview-theme:not(.home) .carousel-legend {  color: #a6a6a6 !important;}
/* Artist Statement: subtle frame and shadow matching About. */html body.dz-preview-theme.page-id-1028 .dz-contact-main.entry-content {border:1px solid #dedede!important;box-shadow:0 3px 12px rgba(0,0,0,.07)!important;background:#fff!important;}
/* Artist Statement without a visible heading above the text frame. */html body.dz-preview-theme.page-id-1028 .dz-artist-paper-title{display:none!important;}/* Captions: explicit full-width rows for Firefox, with lighter typography. */html body.dz-preview-theme:not(.home) .dz-gallery figure>figcaption,html body.dz-preview-theme:not(.home) .entry-content figure.wp-block-image>figcaption,html body.dz-preview-theme:not(.home) .carousel-legend{float:none!important;clear:both!important;box-sizing:border-box!important;min-width:0!important;max-width:100%!important;align-self:stretch!important;font-family:"Albert Sans","Helvetica Neue",Arial,sans-serif!important;font-weight:300!important;}html body.dz-preview-theme:not(.home) .dz-gallery:not([data-mode="carousel"]) figure>figcaption:not(:empty),html body.dz-preview-theme:not(.home) .entry-content figure.wp-block-image>figcaption:not(:empty){display:block!important;}html body.dz-preview-theme:not(.home) .dz-gallery:is([data-mode="vertical"],[data-mode="horizontal"])>figure:has(>figcaption:not(:empty)){display:flex!important;flex-direction:column!important;flex-wrap:nowrap!important;align-items:stretch!important;}html body.dz-preview-theme:not(.home) .dz-gallery:is([data-mode="vertical"],[data-mode="horizontal"])>figure:has(>figcaption:not(:empty))>a{float:none!important;width:100%!important;min-width:0!important;min-height:0!important;}html body.dz-preview-theme:not(.home) .entry-content figure.wp-block-image>img,html body.dz-preview-theme:not(.home) .entry-content figure.wp-block-image>a{float:none!important;display:block;}html body.dz-preview-theme:not(.home) .entry-content .dz-gallery[data-mode="carousel"] figure.wp-block-image>figcaption:not(:empty){display:none!important;}/* Preview images without the old one-pixel black border. */html body.home.dz-preview-overview .work-card .work-image{border:0!important;outline:0!important;box-shadow:none!important;}/* Bodybuilders: prevent a fractional black gap from contain sizing. */html body.home.dz-preview-overview .work-card#work-10 .work-image{background:transparent!important;}/* Technical monospace image captions. */body.dz-preview-theme:not(.home) .dz-gallery figcaption,body.dz-preview-theme:not(.home) .carousel-legend{}html body.dz-preview-theme:not(.home) .entry-content :is(figcaption,.carousel-legend){font-family:Menlo,Consolas,"Liberation Mono",monospace!important;font-weight:400!important;}html body.dz-preview-theme .entry-content.entry-content :is(figcaption,.carousel-legend){font-family:Menlo,Consolas,"Liberation Mono",monospace!important;font-weight:400!important;}body:not(#dz-caption-default) .entry-content :is(figcaption,.carousel-legend){font-family:Menlo,Consolas,"Liberation Mono",monospace!important;font-weight:400!important;}