:root {
    --black: #11110f;
    --white: #f8f7f3;
    --page-bg: #f2f1ed;
    --line: rgba(17, 17, 15, 0.24);
    --brand-charcoal: #323232;
    --brand-ivory: #f3f1ea;
    --serif: "Bodoni Moda", Didot, "Bodoni 72", serif;
    --sans: Inter, Arial, sans-serif;
    --header-height: 104px;
    --content-gutter: clamp(22px, 5.2vw, 86px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { max-width: 100%; }
body {
    margin: 0;
    overflow-x: hidden;
    background: var(--white);
    color: var(--black);
    font-family: var(--sans);
    font-size: 14px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button, input, textarea { font: inherit; }
figure { margin: 0; }

/* Font choices registered in theme.json and selectable in the block editor. */
.has-bodoni-font-family { font-family: "Bodoni Moda", Didot, "Bodoni 72", "Times New Roman", serif !important; }
.has-inter-font-family { font-family: Inter, Arial, Helvetica, sans-serif !important; }
.has-didot-font-family { font-family: Didot, "Bodoni 72", "Bodoni MT", "Times New Roman", serif !important; }
.has-georgia-font-family { font-family: Georgia, "Times New Roman", serif !important; }
.has-times-new-roman-font-family { font-family: "Times New Roman", Times, serif !important; }
.has-arial-font-family { font-family: Arial, Helvetica, sans-serif !important; }
main { min-width: 0; }
.wp-block-columns, .wp-block-column { min-width: 0; }
.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Header: logo and every menu label/link remain editable in WordPress. */
.site-header {
    position: sticky;
    z-index: 1000;
    top: 0;
    width: 100%;
    min-height: var(--header-height);
    background: var(--brand-charcoal);
    color: var(--brand-ivory);
}
body.admin-bar .site-header { top: 32px; }
.site-header__bar {
    width: 100%;
    min-height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding: 13px clamp(22px, 3vw, 44px);
}
.brand-logo,
.brand-logo .custom-logo-link {
    display: inline-flex;
    min-width: 0;
    align-items: center;
    flex: 0 1 auto;
}
.brand-logo .custom-logo {
    width: clamp(220px, 23vw, 340px);
    max-width: 100%;
    height: auto;
    max-height: 76px;
    object-fit: contain;
    object-position: left center;
}
.brand-logo__text {
    display: block;
    overflow-wrap: anywhere;
    color: var(--brand-ivory);
    font-family: var(--serif);
    font-size: clamp(22px, 2.2vw, 32px);
    line-height: 1;
    letter-spacing: -.03em;
}
.primary-nav { flex: 0 0 auto; }
.primary-nav__list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 12px clamp(22px, 3vw, 48px);
    margin: 0;
    padding: 0;
    list-style: none;
}
.primary-nav__list > li > a {
    position: relative;
    display: inline-flex;
    align-items: center;
    color: var(--brand-ivory);
    font-size: 10px;
    font-weight: 400;
    line-height: 1.3;
    letter-spacing: .22em;
    text-transform: uppercase;
    white-space: nowrap;
}
.primary-nav__list > li:not(.menu-item-social) > a::after {
    content: "";
    display: block;
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 1px;
    background: currentColor;
    transition: width 240ms ease;
}
.primary-nav__list > li:not(.menu-item-social) > a:hover::after,
.primary-nav__list > li:not(.menu-item-social) > a:focus-visible::after { width: 100%; }
.menu-item-social > a {
    width: 24px;
    height: 24px;
    overflow: hidden;
    justify-content: center;
    font-size: 0 !important;
    letter-spacing: 0 !important;
}
.menu-item-social > a::before {
    content: "";
    width: 23px;
    height: 23px;
    background: currentColor;
}
.menu-item-instagram > a::before {
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='3' y='3' width='18' height='18' rx='5' fill='none' stroke='black' stroke-width='1.6'/%3E%3Ccircle cx='12' cy='12' r='4.2' fill='none' stroke='black' stroke-width='1.6'/%3E%3Ccircle cx='17.35' cy='6.75' r='1' fill='black'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='3' y='3' width='18' height='18' rx='5' fill='none' stroke='black' stroke-width='1.6'/%3E%3Ccircle cx='12' cy='12' r='4.2' fill='none' stroke='black' stroke-width='1.6'/%3E%3Ccircle cx='17.35' cy='6.75' r='1' fill='black'/%3E%3C/svg%3E") center / contain no-repeat;
}
.menu-item-facebook > a::before {
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M13.7 21v-8h2.7l.4-3.1h-3.1v-2c0-.9.3-1.5 1.6-1.5H17V3.6c-.7-.1-1.5-.2-2.3-.2-2.3 0-3.9 1.4-3.9 4.1v2.3H8.2V13h2.6v8h2.9Z' fill='black'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M13.7 21v-8h2.7l.4-3.1h-3.1v-2c0-.9.3-1.5 1.6-1.5H17V3.6c-.7-.1-1.5-.2-2.3-.2-2.3 0-3.9 1.4-3.9 4.1v2.3H8.2V13h2.6v8h2.9Z' fill='black'/%3E%3C/svg%3E") center / contain no-repeat;
}
.primary-nav__list > .menu-item-instagram + .menu-item-facebook,
.primary-nav__list > .menu-item-facebook + .menu-item-instagram {
    margin-left: clamp(-36px, -2.5vw, -16px);
}
.menu-toggle {
    display: none;
    flex: 0 0 34px;
    width: 34px;
    height: 30px;
    padding: 4px 0;
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
}
.menu-toggle span {
    display: block;
    width: 100%;
    height: 1px;
    margin: 7px 0;
    background: currentColor;
    transition: transform 220ms ease;
}

/* Home: the Cover/Image block is editable under Pages → Home. */
.home-page-content {
    width: 100%;
    min-height: calc(100vh - var(--header-height));
    min-height: calc(100svh - var(--header-height));
    overflow: hidden;
    background: #c4b69f;
}
.home-page-content > * { margin: 0 !important; }
.home-page-content .vbd-home-cover,
.home-page-content .vbd-home-image,
.home-page-content .wp-block-cover {
    width: 100%;
    min-height: calc(100vh - var(--header-height));
    min-height: calc(100svh - var(--header-height));
    margin: 0 !important;
    padding: 0;
}
.home-page-content .vbd-home-cover .wp-block-cover__image-background,
.home-page-content .vbd-home-image img,
.home-page-content .wp-block-cover__image-background {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}
.home-page-content .wp-block-cover__inner-container:empty { display: none; }
.home-page-content .vbd-home-cover--mobile { display: none !important; }
.home-page-content .vbd-home-cover--desktop { display: flex !important; }

/* Projects index: cards only. Project content never renders here. */
.projects-page-content {
    min-height: calc(100vh - var(--header-height));
    background: var(--page-bg);
}
.projects-index {
    min-height: calc(100vh - var(--header-height));
    padding: clamp(54px, 6vw, 92px) var(--content-gutter) clamp(78px, 8vw, 122px);
    background: var(--page-bg);
}
.projects-index__grid {
    display: grid;
    grid-template-columns: repeat(var(--project-columns, 3), minmax(0, 1fr));
    gap: clamp(46px, 5vw, 82px) clamp(22px, 3.4vw, 54px);
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
}
.project-card,
.project-card__link,
.project-card__media { display: block; width: 100%; min-width: 0; }
.project-card__link { outline-offset: 7px; }
.project-card__media {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #deddd8;
}
.project-card__image,
.project-card__placeholder { width: 100%; height: 100%; }
.project-card__image {
    object-fit: cover;
    transition: transform 650ms cubic-bezier(.2,.7,.2,1), opacity 350ms ease;
}
.project-card__placeholder { background: linear-gradient(135deg, #deddd8, #bdbbb3); }
.project-card__title {
    margin: 13px 0 0;
    overflow-wrap: anywhere;
    font-family: var(--sans);
    font-size: 10px;
    font-weight: 400;
    line-height: 1.4;
    letter-spacing: .09em;
    text-transform: uppercase;
}
.project-card__link:hover .project-card__image,
.project-card__link:focus-visible .project-card__image {
    transform: scale(1.012);
    opacity: .94;
}
.empty-projects {
    min-height: 50vh;
    display: grid;
    place-content: center;
    text-align: center;
}

/* Individual project: editable collage with scroll-triggered fade-in. */
.project-gallery-page {
    min-height: calc(100vh - var(--header-height));
    background: var(--page-bg);
}
.project-editor-flow {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: clamp(26px, 2.8vw, 48px) clamp(22px, 2.6vw, 44px);
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: clamp(42px, 5vw, 76px) var(--content-gutter) clamp(66px, 7vw, 108px);
}
.project-editor-flow > .wp-block-image,
.project-editor-flow > figure:not(.wp-block-gallery),
.project-editor-flow > img {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    overflow: hidden;
    background: #fff;
}
.project-editor-flow > .wp-block-image.is-style-vbd-wide,
.project-editor-flow > figure.is-style-vbd-wide {
    grid-column: 1 / -1;
}
.project-editor-flow .wp-block-image img,
.project-editor-flow > figure img,
.project-editor-flow > img {
    display: block;
    width: 100%;
    height: auto;
}
.project-editor-flow > .wp-block-gallery {
    grid-column: 1 / -1;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(26px, 2.8vw, 48px) clamp(22px, 2.6vw, 44px) !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    overflow: visible;
    background: transparent;
}
.project-editor-flow .wp-block-gallery figure.wp-block-image,
.project-editor-flow .wp-block-gallery figure {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    overflow: hidden;
    background: #fff;
}
.project-editor-flow .wp-block-gallery figure.is-style-vbd-wide {
    grid-column: 1 / -1;
}
.project-editor-flow .wp-block-gallery img {
    width: 100% !important;
    height: auto !important;
}
.project-editor-flow > p,
.project-editor-flow > h2,
.project-editor-flow > h3,
.project-editor-flow > h4,
.project-editor-flow > ul,
.project-editor-flow > ol,
.project-editor-flow > blockquote {
    grid-column: 1 / -1;
    width: min(760px, calc(100% - 16px));
    margin: 0 auto;
}
.project-editor-flow figcaption { display: none; }

/* The fade is progressive enhancement: content remains visible without JavaScript. */
body.vbd-reveal-ready .project-reveal {
    opacity: 0;
    transform: translate3d(0, 30px, 0);
    transition:
        opacity 760ms cubic-bezier(.2, .65, .25, 1),
        transform 900ms cubic-bezier(.2, .65, .25, 1);
    transition-delay: var(--project-reveal-delay, 0ms);
    will-change: opacity, transform;
}
body.vbd-reveal-ready .project-reveal.is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}
.project-return {
    display: flex;
    justify-content: center;
    padding: 0 24px 76px;
}
.project-return a {
    border-bottom: 1px solid currentColor;
    padding-bottom: 5px;
    font-size: 10px;
    letter-spacing: .22em;
    text-transform: uppercase;
}

.page-kicker {
    margin: 0 0 32px;
    letter-spacing: .24em;
    text-transform: uppercase;
}
.page-kicker:not([class*="-font-size"]) { font-size: 10px; }

/* About: heading, copy and image are ordinary editable blocks. */
.about-page-content {
    min-height: calc(100vh - var(--header-height));
    background: var(--white);
}
.about-intro { padding: clamp(42px, 5vw, 72px) 6vw clamp(72px, 8vw, 112px); }
.about-intro__columns {
    display: grid !important;
    grid-template-columns: minmax(0, .85fr) minmax(0, 1fr);
    column-gap: clamp(50px, 10vw, 150px);
    margin: 0;
}
.about-intro h1 {
    margin: 0;
    overflow-wrap: anywhere;
    font-weight: 400;
    line-height: .98;
    letter-spacing: -.045em;
}
.about-intro h1:not([class*="-font-family"]) { font-family: var(--serif); }
.about-intro h1:not([class*="-font-size"]) { font-size: clamp(48px, 7vw, 112px); }
.about-intro__copy {
    max-width: 650px;
    padding-top: 9px;
    font-size: clamp(15px, 1.35vw, 19px);
    line-height: 1.75;
}
.about-intro__copy p:first-child { margin-top: 0; }
.about-intro__copy p:last-child { margin-bottom: 0; }
.about-image { width: 100%; margin: 0 !important; }
.about-image img {
    width: 100%;
    height: min(86vh, 980px);
    object-fit: cover;
    object-position: center 42%;
}

/* Contact: every text block and all form settings are editable. */
.contact-page-content { min-height: calc(100vh - var(--header-height)); }
.contact-layout { padding: clamp(42px, 5vw, 72px) 6vw clamp(78px, 8vw, 110px); }
.contact-layout__columns {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(54px, 9vw, 140px);
    margin: 0;
}
.contact-intro h1 {
    max-width: 650px;
    margin: 0 0 36px;
    overflow-wrap: anywhere;
    font-weight: 400;
    line-height: .95;
    letter-spacing: -.05em;
}
.contact-intro h1:not([class*="-font-family"]) { font-family: var(--serif); }
.contact-intro h1:not([class*="-font-size"]) { font-size: clamp(50px, 7vw, 116px); }
.contact-intro > p:not(.page-kicker):not(.contact-meta__label) {
    max-width: 590px;
    font-size: 17px;
}
.contact-intro > .wp-block-separator {
    max-width: 590px;
    margin: 60px 0 22px;
    border: 0;
    border-top: 1px solid var(--line);
}
.contact-meta {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px;
    max-width: 590px;
    margin: 0;
}
.contact-meta .wp-block-column { min-width: 0; }
.contact-meta p { margin: 0; overflow-wrap: anywhere; }
.contact-meta__label,
.contact-form label > span {
    display: block;
    margin-bottom: 7px !important;
    font-size: 9px !important;
    letter-spacing: .2em;
    text-transform: uppercase;
}
.contact-form-column { padding-top: 48px; }
.contact-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 30px 24px;
}
.contact-form label { display: block; min-width: 0; }
.contact-form input,
.contact-form textarea {
    width: 100%;
    min-width: 0;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    outline: none;
    padding: 8px 0 12px;
    background: transparent;
    color: inherit;
}
.contact-form textarea { resize: vertical; }
.contact-form input:focus,
.contact-form textarea:focus { border-bottom-color: var(--black); }
.contact-form__message { grid-column: 1 / -1; }
.contact-form button {
    justify-self: start;
    border: 0;
    border-bottom: 1px solid currentColor;
    padding: 0 0 6px;
    background: transparent;
    cursor: pointer;
    font-size: 10px;
    letter-spacing: .22em;
    text-transform: uppercase;
}
.honeypot { position: absolute; left: -9999px; }
.form-status {
    margin: 0 0 34px;
    padding: 14px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.standard-page {
    min-height: 75vh;
    padding: clamp(54px, 7vw, 100px) 6vw 100px;
}
.standard-page__content { max-width: 900px; }
.standard-page__content h1 {
    overflow-wrap: anywhere;
    font-weight: 400;
}
.standard-page__content h1:not([class*="-font-family"]) { font-family: var(--serif); }
.standard-page__content h1:not([class*="-font-size"]) { font-size: clamp(48px, 7vw, 100px); }

.site-footer {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 18px 30px;
    padding: 28px 6vw 34px;
    border-top: 1px solid var(--line);
    font-size: 9px;
    letter-spacing: .16em;
    text-transform: uppercase;
}

/* Laptop/tablet: avoid squeezed three-column layouts and oversized navigation. */
@media (max-width: 1180px) {
    .projects-index__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .about-intro__columns { column-gap: 6vw; }
    .contact-layout__columns { gap: 6vw; }
}

@media (max-width: 1024px) {
    :root { --header-height: 82px; --content-gutter: clamp(20px, 4.5vw, 42px); }
    body.admin-bar .site-header { top: 32px; }
    .site-header__bar { padding: 10px 20px; }
    .brand-logo .custom-logo { width: min(230px, 62vw); max-height: 60px; }
    .menu-toggle { display: block; position: relative; z-index: 3; }
    .primary-nav {
        position: absolute;
        z-index: 2;
        top: 100%;
        left: 0;
        right: 0;
        min-height: calc(100vh - var(--header-height));
        min-height: calc(100dvh - var(--header-height));
        display: flex;
        justify-content: center;
        align-items: center;
        overflow-y: auto;
        padding: 34px 24px;
        opacity: 0;
        visibility: hidden;
        background: var(--brand-charcoal);
        color: var(--brand-ivory);
        transform: translateY(-8px);
        transition: opacity 200ms ease, visibility 200ms ease, transform 200ms ease;
    }
    .primary-nav--open { opacity: 1; visibility: visible; transform: translateY(0); }
    .primary-nav__list {
        display: grid;
        grid-template-columns: repeat(2, auto);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        flex-wrap: nowrap;
        gap: 24px;
    }
    .primary-nav__list > li:not(.menu-item-social) { grid-column: 1 / -1; justify-self: center; }
    .primary-nav__list > li.menu-item-social { justify-self: center; }
    .primary-nav__list > .menu-item-instagram + .menu-item-facebook,
    .primary-nav__list > .menu-item-facebook + .menu-item-instagram { margin-left: 0; }
    .primary-nav__list > li > a {
        max-width: calc(100vw - 48px);
        overflow-wrap: anywhere;
        white-space: normal;
        text-align: center;
        font-family: var(--serif);
        font-size: clamp(30px, 8vw, 44px);
        line-height: 1.05;
        letter-spacing: -.03em;
        text-transform: none;
    }
    .menu-item-social > a { width: 34px !important; height: 34px !important; margin-top: 8px; }
    .menu-item-social > a::before { width: 32px; height: 32px; }
    .menu-open .brand-logo { position: relative; z-index: 3; }
    .menu-open .menu-toggle span:first-child { transform: translateY(4px) rotate(45deg); }
    .menu-open .menu-toggle span:last-child { transform: translateY(-4px) rotate(-45deg); }

    .about-intro__columns,
    .contact-layout__columns { grid-template-columns: minmax(0, 1fr); }
    .about-intro__columns { gap: 32px; }
    .about-intro h1:not([class*="-font-size"]) { font-size: clamp(48px, 12vw, 72px); }
    .about-intro__copy { padding-top: 0; }
    .contact-layout__columns { gap: 58px; }
    .contact-intro h1:not([class*="-font-size"]) { font-size: clamp(48px, 12vw, 72px); }
    .contact-form-column { padding-top: 0; }
}

@media (max-width: 782px) {
    body.admin-bar .site-header { top: 46px; }
}

@media (max-width: 680px) {
    :root { --header-height: 72px; --content-gutter: 16px; }
    .site-header__bar { gap: 14px; padding: 9px 16px; }
    .brand-logo .custom-logo { width: min(200px, 66vw); max-height: 52px; }
    .brand-logo__text { font-size: 22px; }
    .menu-toggle { flex-basis: 31px; width: 31px; }

    .home-page-content .vbd-home-cover--desktop { display: none !important; }
    .home-page-content .vbd-home-cover--mobile { display: flex !important; }
    .home-page-content .vbd-home-cover--mobile .wp-block-cover__image-background {
        object-position: center center;
    }

    .projects-index { padding-top: 34px; padding-bottom: 72px; }
    .projects-index__grid { grid-template-columns: minmax(0, 1fr); gap: 44px; }
    .project-card__media { aspect-ratio: 3 / 4; }
    .project-card__title { margin-top: 10px; }

    .project-editor-flow {
        grid-template-columns: minmax(0, 1fr);
        gap: 18px;
        padding: 18px 12px 52px;
    }
    .project-editor-flow > .wp-block-gallery {
        grid-template-columns: minmax(0, 1fr);
        gap: 18px !important;
    }
    .project-editor-flow > .wp-block-image.is-style-vbd-wide,
    .project-editor-flow > figure.is-style-vbd-wide,
    .project-editor-flow .wp-block-gallery figure.is-style-vbd-wide {
        grid-column: 1;
    }
    .project-return { padding-bottom: 54px; }

    .about-intro { padding: 32px 20px 62px; }
    .page-kicker { margin-bottom: 24px; }
    .about-intro h1:not([class*="-font-size"]) { font-size: clamp(46px, 15vw, 64px); }
    .about-intro__copy { font-size: 16px; line-height: 1.65; }
    .about-image img { height: auto; }

    .contact-layout { padding: 32px 20px 70px; }
    .contact-intro h1 { margin-bottom: 28px; }
    .contact-intro h1:not([class*="-font-size"]) { font-size: clamp(46px, 15vw, 64px); }
    .contact-intro > p:not(.page-kicker):not(.contact-meta__label) { font-size: 16px; }
    .contact-intro > .wp-block-separator { margin-top: 44px; }
    .contact-meta { grid-template-columns: minmax(0, 1fr); gap: 24px; }
    .contact-form { grid-template-columns: minmax(0, 1fr); gap: 25px; }
    .contact-form__message { grid-column: 1; }

    .standard-page { padding: 42px 20px 70px; }
    .site-footer { padding: 24px 20px 28px; }
}

@media (max-width: 380px) {
    .brand-logo .custom-logo { width: min(176px, 64vw); }
    .primary-nav { padding-inline: 16px; }
    .primary-nav__list > li > a { max-width: calc(100vw - 32px); }
    .about-intro,
    .contact-layout { padding-left: 16px; padding-right: 16px; }
}

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

/* V10 homepage viewport lock: header + editable hero always occupy exactly one screen. */
html:has(body.home) {
    overflow: hidden;
}
body.home {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    min-height: 0;
    overflow: hidden;
}
body.home.admin-bar {
    height: calc(100vh - 32px);
    height: calc(100dvh - 32px);
}
body.home .site-header {
    position: relative;
    top: auto;
    flex: 0 0 auto;
}
body.home .home-page-content {
    flex: 1 1 auto;
    width: 100%;
    height: auto;
    min-height: 0;
    overflow: hidden;
}
body.home .home-page-content > * {
    width: 100%;
    height: 100% !important;
    min-height: 0 !important;
    max-height: 100% !important;
    margin: 0 !important;
    overflow: hidden;
}
body.home .home-page-content .vbd-home-cover,
body.home .home-page-content .vbd-home-image,
body.home .home-page-content .wp-block-cover {
    width: 100%;
    height: 100% !important;
    min-height: 0 !important;
    max-height: 100% !important;
    margin: 0 !important;
    overflow: hidden;
}
body.home .home-page-content .vbd-home-cover .wp-block-cover__image-background,
body.home .home-page-content .vbd-home-image img,
body.home .home-page-content .wp-block-cover__image-background {
    width: 100%;
    height: 100% !important;
    max-height: 100% !important;
    object-fit: cover;
}
@media screen and (max-width: 782px) {
    body.home.admin-bar {
        height: calc(100vh - 46px);
        height: calc(100dvh - 46px);
    }
}

/* V11 alternate homepage: transparent navigation layered directly over the editable hero image. */
body.home .site-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    flex: none;
    min-height: var(--header-height);
    background: transparent;
    color: var(--brand-ivory);
}
body.home.admin-bar .site-header {
    top: 0;
}
body.home .site-header__bar {
    background: transparent;
}
body.home .brand-logo .custom-logo {
    filter: drop-shadow(0 2px 9px rgba(0, 0, 0, .58));
}
body.home .brand-logo__text,
body.home .primary-nav__list > li > a {
    color: var(--brand-ivory);
    text-shadow: 0 1px 8px rgba(0, 0, 0, .78), 0 1px 2px rgba(0, 0, 0, .72);
}
body.home .menu-item-social > a::before,
body.home .menu-toggle {
    filter: drop-shadow(0 1px 5px rgba(0, 0, 0, .8));
}
body.home .home-page-content {
    position: relative;
    z-index: 1;
    flex: 1 1 100%;
    width: 100%;
    height: 100%;
    min-height: 0;
}
body.home .home-page-content::after {
    content: "";
    position: absolute;
    z-index: 2;
    top: 0;
    left: 0;
    right: 0;
    height: min(190px, 24vh);
    pointer-events: none;
    background: linear-gradient(to bottom, rgba(0, 0, 0, .18), rgba(0, 0, 0, 0));
}
body.home .home-page-content > * {
    position: relative;
    z-index: 1;
}

@media (max-width: 1024px) {
    body.home .primary-nav {
        color: var(--brand-ivory);
        background: rgba(17, 17, 15, .97);
        text-shadow: none;
    }
    body.home .primary-nav__list > li > a {
        text-shadow: none;
    }
    body.home.menu-open .site-header {
        background: rgba(17, 17, 15, .97);
    }
}

/* V13: use the actual textured rectangular logo artwork on the homepage. */
.brand-logo .custom-logo-link {
    line-height: 0;
}
.brand-logo .custom-logo {
    width: clamp(275px, 25vw, 365px);
    max-width: min(48vw, 365px);
    height: auto;
    max-height: none;
    object-fit: contain;
    object-position: left center;
    display: block;
    border-radius: 0;
}
body.home .brand-logo .custom-logo {
    filter: none;
    box-shadow: none;
}
@media (max-width: 1024px) {
    .brand-logo .custom-logo {
        width: clamp(205px, 48vw, 270px);
        max-width: 62vw;
    }
}
@media (max-width: 520px) {
    .brand-logo .custom-logo {
        width: clamp(170px, 56vw, 225px);
        max-width: 60vw;
    }
}

/* V14 mobile homepage header repair.
   The logo and menu remain layered over the hero, but now fit inside narrow
   iPhone widths and stay below the WordPress admin/customizer bar. */
body.home {
    --vbd-admin-offset: 0px;
    --vbd-mobile-header-height: 70px;
}
body.home.admin-bar { --vbd-admin-offset: 32px; }
body.home .site-header {
    position: fixed;
    top: var(--vbd-admin-offset);
    left: 0;
    right: 0;
    width: 100%;
    overflow: visible;
}

@media (max-width: 1024px) {
    body.home .site-header {
        min-height: var(--vbd-mobile-header-height);
    }
    body.home .site-header__bar {
        width: 100%;
        min-height: var(--vbd-mobile-header-height);
        height: var(--vbd-mobile-header-height);
        gap: 10px;
        padding: 8px max(12px, env(safe-area-inset-right)) 8px max(12px, env(safe-area-inset-left));
        overflow: visible;
    }
    body.home .brand-logo,
    body.home .brand-logo .custom-logo-link {
        flex: 0 1 auto;
        width: auto;
        max-width: calc(100vw - 76px - env(safe-area-inset-left) - env(safe-area-inset-right));
        height: auto;
        overflow: visible;
    }
    body.home .brand-logo .custom-logo {
        width: clamp(154px, 48vw, 205px);
        max-width: 100%;
        max-height: 56px;
        height: auto;
        object-fit: contain;
        object-position: left center;
    }
    body.home .menu-toggle {
        position: relative;
        z-index: 1002;
        display: block;
        flex: 0 0 42px;
        width: 42px;
        height: 42px;
        margin-left: auto;
        padding: 8px 6px;
        border: 1px solid rgba(248,247,243,.78);
        border-radius: 999px;
        background: rgba(17,17,15,.22);
        color: var(--brand-ivory);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
    }
    body.home .menu-toggle span {
        width: 23px;
        margin: 6px auto;
    }
    body.home .primary-nav {
        position: fixed;
        z-index: 1001;
        top: calc(var(--vbd-admin-offset) + var(--vbd-mobile-header-height));
        right: 0;
        bottom: 0;
        left: 0;
        min-height: 0;
        height: auto;
        max-height: none;
        padding: 28px 20px max(28px, env(safe-area-inset-bottom));
        overscroll-behavior: contain;
    }
    body.home.menu-open .site-header {
        height: var(--vbd-mobile-header-height);
    }
    body.home .home-page-content::after {
        height: 128px;
    }
    /* Respect a focal point selected in the WordPress Cover block instead of
       forcing the older 53% mobile crop. */
    body.home .home-page-content .vbd-home-cover .wp-block-cover__image-background,
    body.home .home-page-content .vbd-home-image img,
    body.home .home-page-content .wp-block-cover__image-background {
        object-position: center center;
    }
}

@media (max-width: 782px) {
    body.home.admin-bar { --vbd-admin-offset: 46px; }
}

@media (max-width: 420px) {
    body.home { --vbd-mobile-header-height: 66px; }
    body.home .site-header__bar {
        gap: 8px;
        padding-top: 7px;
        padding-bottom: 7px;
    }
    body.home .brand-logo,
    body.home .brand-logo .custom-logo-link {
        max-width: calc(100vw - 70px - env(safe-area-inset-left) - env(safe-area-inset-right));
    }
    body.home .brand-logo .custom-logo {
        width: clamp(146px, 47vw, 184px);
        max-height: 52px;
    }
    body.home .menu-toggle {
        flex-basis: 38px;
        width: 38px;
        height: 38px;
        padding: 7px 5px;
    }
    body.home .menu-toggle span { width: 21px; }
}

@media (max-width: 320px) {
    body.home .brand-logo .custom-logo {
        width: 142px;
        max-height: 46px;
    }
    body.home .site-header__bar {
        padding-left: 8px;
        padding-right: 8px;
    }
}


/* V15 responsive homepage artwork.
   Both Cover blocks are editable on Pages → Home. Only one is rendered per viewport. */
body.home .home-page-content > .vbd-home-cover--desktop { display: flex !important; }
body.home .home-page-content > .vbd-home-cover--mobile { display: none !important; }
@media (max-width: 1024px) {
    body.home .home-page-content > .vbd-home-cover--desktop { display: none !important; }
    body.home .home-page-content > .vbd-home-cover--mobile { display: flex !important; }
    body.home .home-page-content > .vbd-home-cover--mobile .wp-block-cover__image-background {
        object-position: center center !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.vbd-reveal-ready .project-reveal,
    body.vbd-reveal-ready .project-reveal.is-visible {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* V16 dark child-page preview.
   The homepage stays photographic; every internal page uses the logo charcoal
   with ivory typography. Block-level color/background choices remain editable
   and can override these defaults. */
body:not(.home) {
    --page-bg: var(--brand-charcoal);
    --line: rgba(243, 241, 234, .34);
    background: var(--brand-charcoal);
    color: var(--brand-ivory);
}

body:not(.home) .projects-page-content,
body:not(.home) .projects-index,
body:not(.home) .project-gallery-page,
body:not(.home) .about-page-content,
body:not(.home) .contact-page-content,
body:not(.home) .standard-page,
body:not(.home) .site-footer {
    background: var(--brand-charcoal);
    color: var(--brand-ivory);
}

body:not(.home) :where(
    .projects-page-content,
    .project-gallery-page,
    .about-page-content,
    .contact-page-content,
    .standard-page,
    .site-footer
) :where(h1, h2, h3, h4, h5, h6, p, li, blockquote, cite, figcaption, label, legend, a) {
    color: inherit;
}

body:not(.home) .project-card__media,
body:not(.home) .project-card__placeholder,
body:not(.home) .project-editor-flow > .wp-block-image,
body:not(.home) .project-editor-flow > figure:not(.wp-block-gallery),
body:not(.home) .project-editor-flow > img,
body:not(.home) .project-editor-flow .wp-block-gallery figure.wp-block-image,
body:not(.home) .project-editor-flow .wp-block-gallery figure {
    background: #262626;
}

body:not(.home) .project-card__placeholder {
    background: linear-gradient(135deg, #424242, #272727);
}

body:not(.home) .contact-intro > .wp-block-separator,
body:not(.home) .site-footer,
body:not(.home) .form-status {
    border-color: var(--line);
}

body:not(.home) .contact-form input,
body:not(.home) .contact-form textarea {
    border-bottom-color: var(--line);
    color: var(--brand-ivory);
    caret-color: var(--brand-ivory);
}

body:not(.home) .contact-form input::placeholder,
body:not(.home) .contact-form textarea::placeholder {
    color: rgba(243, 241, 234, .58);
}

body:not(.home) .contact-form input:focus,
body:not(.home) .contact-form textarea:focus {
    border-bottom-color: var(--brand-ivory);
}

body:not(.home) .contact-form input:-webkit-autofill,
body:not(.home) .contact-form input:-webkit-autofill:hover,
body:not(.home) .contact-form input:-webkit-autofill:focus,
body:not(.home) .contact-form textarea:-webkit-autofill {
    -webkit-text-fill-color: var(--brand-ivory);
    -webkit-box-shadow: 0 0 0 1000px var(--brand-charcoal) inset;
    transition: background-color 9999s ease-out 0s;
}

body:not(.home) ::selection {
    background: var(--brand-ivory);
    color: var(--brand-charcoal);
}


/* V17 contact action contrast fix.
   Some browser/button defaults and saved block colors can override inherited
   text on the dark Contact page, so explicitly keep the action and its rule ivory. */
body:not(.home) .contact-form button,
body:not(.home) .contact-form button:link,
body:not(.home) .contact-form button:visited,
body:not(.home) .contact-form button:hover,
body:not(.home) .contact-form button:focus,
body:not(.home) .contact-form button:focus-visible,
body:not(.home) .contact-form button:active {
    color: var(--brand-ivory) !important;
    -webkit-text-fill-color: var(--brand-ivory) !important;
    border-bottom-color: var(--brand-ivory) !important;
    text-decoration-color: var(--brand-ivory) !important;
}

/* V18 tablet responsiveness.
   Phones and tablets use the editable portrait homepage artwork and compact
   navigation. This includes iPad Mini/Air/Pro portrait widths and 1024px
   landscape viewports, while larger laptop/desktop screens keep the landscape
   artwork. */
@media (max-width: 1024px) {
    body.home .home-page-content > .vbd-home-cover--desktop {
        display: none !important;
    }
    body.home .home-page-content > .vbd-home-cover--mobile {
        display: flex !important;
    }
    body.home .home-page-content > .vbd-home-cover--mobile .wp-block-cover__image-background {
        object-position: 50% 50% !important;
    }
}


/* V19 square header logo.
   The artwork remains an editable WordPress Custom Logo, while the header
   consistently presents it as a square on desktop, tablet, and phone. */
.brand-logo,
.brand-logo .custom-logo-link {
    flex: 0 0 auto;
    width: auto;
    max-width: none;
    height: auto;
    overflow: visible;
}
.brand-logo .custom-logo,
body.home .brand-logo .custom-logo {
    display: block;
    width: 82px;
    height: 82px;
    max-width: 82px;
    max-height: 82px;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    object-position: center;
    border-radius: 0;
    filter: none;
    box-shadow: none;
}

@media (max-width: 1024px) {
    body.home .brand-logo,
    body.home .brand-logo .custom-logo-link,
    .brand-logo,
    .brand-logo .custom-logo-link {
        width: 54px;
        max-width: 54px;
        height: 54px;
    }
    .brand-logo .custom-logo,
    body.home .brand-logo .custom-logo {
        width: 54px;
        height: 54px;
        max-width: 54px;
        max-height: 54px;
    }
}

@media (max-width: 420px) {
    body.home .brand-logo,
    body.home .brand-logo .custom-logo-link,
    .brand-logo,
    .brand-logo .custom-logo-link {
        width: 50px;
        max-width: 50px;
        height: 50px;
    }
    .brand-logo .custom-logo,
    body.home .brand-logo .custom-logo {
        width: 50px;
        height: 50px;
        max-width: 50px;
        max-height: 50px;
    }
}

@media (max-width: 320px) {
    body.home .brand-logo,
    body.home .brand-logo .custom-logo-link,
    .brand-logo,
    .brand-logo .custom-logo-link {
        width: 46px;
        max-width: 46px;
        height: 46px;
    }
    .brand-logo .custom-logo,
    body.home .brand-logo .custom-logo {
        width: 46px;
        height: 46px;
        max-width: 46px;
        max-height: 46px;
    }
}


/* V21: balanced square logo size.
   Keeps the logo prominent while clearing the portrait subject below it. */
@media (min-width: 1025px) {
    .brand-logo,
    .brand-logo .custom-logo-link,
    body.home .brand-logo,
    body.home .brand-logo .custom-logo-link {
        width: 145px;
        max-width: 145px;
        height: 145px;
    }
    .brand-logo .custom-logo,
    body.home .brand-logo .custom-logo {
        width: 145px;
        height: 145px;
        max-width: 145px;
        max-height: 145px;
    }
    .site-header__bar {
        min-height: 171px;
        padding: 16px 30px;
        align-items: flex-start;
    }
    .primary-nav {
        padding-top: 28px;
    }
}

@media (min-width: 641px) and (max-width: 1024px) {
    body.home {
        --vbd-mobile-header-height: 154px;
    }
    .brand-logo,
    .brand-logo .custom-logo-link,
    body.home .brand-logo,
    body.home .brand-logo .custom-logo-link {
        width: 138px;
        max-width: 138px;
        height: 138px;
    }
    .brand-logo .custom-logo,
    body.home .brand-logo .custom-logo {
        width: 138px;
        height: 138px;
        max-width: 138px;
        max-height: 138px;
    }
    body.home .site-header__bar,
    .site-header__bar {
        min-height: 154px;
        height: 154px;
        padding: 8px 20px 8px 24px;
        align-items: flex-start;
    }
    body.home .menu-toggle,
    .menu-toggle {
        margin-top: 14px;
    }
}

@media (min-width: 421px) and (max-width: 640px) {
    body.home {
        --vbd-mobile-header-height: 116px;
    }
    .brand-logo,
    .brand-logo .custom-logo-link,
    body.home .brand-logo,
    body.home .brand-logo .custom-logo-link {
        width: 100px;
        max-width: 100px;
        height: 100px;
    }
    .brand-logo .custom-logo,
    body.home .brand-logo .custom-logo {
        width: 100px;
        height: 100px;
        max-width: 100px;
        max-height: 100px;
    }
    body.home .site-header__bar,
    .site-header__bar {
        min-height: 116px;
        height: 116px;
        padding: 8px 14px;
        align-items: flex-start;
    }
    body.home .menu-toggle,
    .menu-toggle {
        margin-top: 10px;
    }
}

@media (max-width: 420px) {
    body.home {
        --vbd-mobile-header-height: 98px;
    }
    .brand-logo,
    .brand-logo .custom-logo-link,
    body.home .brand-logo,
    body.home .brand-logo .custom-logo-link {
        width: 82px;
        max-width: 82px;
        height: 82px;
    }
    .brand-logo .custom-logo,
    body.home .brand-logo .custom-logo {
        width: 82px;
        height: 82px;
        max-width: 82px;
        max-height: 82px;
    }
    body.home .site-header__bar,
    .site-header__bar {
        min-height: 98px;
        height: 98px;
        padding: 8px 12px;
        align-items: flex-start;
    }
    body.home .menu-toggle,
    .menu-toggle {
        margin-top: 8px;
    }
}

@media (max-width: 320px) {
    body.home {
        --vbd-mobile-header-height: 90px;
    }
    .brand-logo,
    .brand-logo .custom-logo-link,
    body.home .brand-logo,
    body.home .brand-logo .custom-logo-link,
    .brand-logo .custom-logo,
    body.home .brand-logo .custom-logo {
        width: 74px;
        max-width: 74px;
        height: 74px;
        max-height: 74px;
    }
    body.home .site-header__bar,
    .site-header__bar {
        min-height: 90px;
        height: 90px;
    }
}

/* V22 full-width charcoal banner.
   Restores the banner layout shown in the approved reference: horizontal
   wordmark at left, editable navigation/social links at right, and the hero
   photograph beginning below the header. */
:root {
    --header-height: 104px;
}

.site-header,
body.home .site-header {
    position: sticky !important;
    top: 0 !important;
    left: auto !important;
    right: auto !important;
    width: 100%;
    min-height: var(--header-height) !important;
    height: auto !important;
    flex: 0 0 auto !important;
    overflow: visible;
    background: var(--brand-charcoal) !important;
    color: var(--brand-ivory) !important;
}
body.admin-bar .site-header,
body.home.admin-bar .site-header {
    top: 32px !important;
}
.site-header__bar,
body.home .site-header__bar {
    width: 100%;
    min-height: var(--header-height) !important;
    height: auto !important;
    display: flex;
    align-items: center !important;
    justify-content: space-between;
    gap: 30px;
    padding: 11px clamp(26px, 3vw, 46px) !important;
    background: var(--brand-charcoal) !important;
    overflow: visible;
}

.brand-logo,
.brand-logo .custom-logo-link,
body.home .brand-logo,
body.home .brand-logo .custom-logo-link {
    display: inline-flex;
    align-items: center;
    flex: 0 1 auto;
    width: auto !important;
    max-width: min(42vw, 360px) !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible;
    line-height: 0;
}
.brand-logo .custom-logo,
body.home .brand-logo .custom-logo {
    display: block;
    width: clamp(245px, 25vw, 340px) !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: 80px !important;
    aspect-ratio: auto !important;
    object-fit: contain !important;
    object-position: left center !important;
    filter: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}
.primary-nav,
body.home .primary-nav {
    flex: 0 0 auto;
    padding-top: 0 !important;
    color: var(--brand-ivory);
    text-shadow: none !important;
}
body.home .primary-nav__list > li > a,
body.home .brand-logo__text {
    color: var(--brand-ivory);
    text-shadow: none !important;
}
body.home .menu-item-social > a::before,
body.home .menu-toggle {
    filter: none !important;
}
body.home .home-page-content::after {
    display: none !important;
}

/* The locked homepage remains exactly one viewport: banner plus hero. */
body.home .home-page-content {
    position: relative;
    z-index: 1;
    flex: 1 1 auto;
    width: 100%;
    height: auto;
    min-height: 0;
}

@media (max-width: 1024px) {
    :root { --header-height: 82px; }
    body.home { --vbd-mobile-header-height: 82px; }
    .site-header,
    body.home .site-header {
        min-height: 82px !important;
        height: 82px !important;
    }
    .site-header__bar,
    body.home .site-header__bar {
        min-height: 82px !important;
        height: 82px !important;
        align-items: center !important;
        gap: 14px;
        padding: 8px max(18px, env(safe-area-inset-right)) 8px max(18px, env(safe-area-inset-left)) !important;
    }
    .brand-logo,
    .brand-logo .custom-logo-link,
    body.home .brand-logo,
    body.home .brand-logo .custom-logo-link {
        width: auto !important;
        max-width: calc(100vw - 84px - env(safe-area-inset-left) - env(safe-area-inset-right)) !important;
        height: auto !important;
    }
    .brand-logo .custom-logo,
    body.home .brand-logo .custom-logo {
        width: clamp(185px, 38vw, 245px) !important;
        max-width: 100% !important;
        height: auto !important;
        max-height: 64px !important;
    }
    .menu-toggle,
    body.home .menu-toggle {
        position: relative;
        z-index: 1002;
        display: block;
        flex: 0 0 36px;
        width: 36px;
        height: 34px;
        margin: 0 0 0 auto !important;
        padding: 4px 0;
        border: 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
        color: var(--brand-ivory);
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }
    .menu-toggle span,
    body.home .menu-toggle span {
        width: 30px;
        margin: 7px auto;
    }
    .primary-nav,
    body.home .primary-nav {
        position: absolute !important;
        z-index: 1001;
        top: 100% !important;
        right: 0;
        bottom: auto !important;
        left: 0;
        min-height: calc(100vh - 82px);
        min-height: calc(100dvh - 82px);
        height: auto;
        max-height: calc(100vh - 82px);
        max-height: calc(100dvh - 82px);
        padding: 32px 22px max(30px, env(safe-area-inset-bottom));
        background: rgba(50, 50, 50, .985) !important;
    }
    body.home.menu-open .site-header {
        height: 82px !important;
        background: var(--brand-charcoal) !important;
    }
}

@media screen and (max-width: 782px) {
    body.admin-bar .site-header,
    body.home.admin-bar .site-header {
        top: 46px !important;
    }
}

@media (max-width: 520px) {
    :root { --header-height: 72px; }
    body.home { --vbd-mobile-header-height: 72px; }
    .site-header,
    body.home .site-header {
        min-height: 72px !important;
        height: 72px !important;
    }
    .site-header__bar,
    body.home .site-header__bar {
        min-height: 72px !important;
        height: 72px !important;
        padding: 7px max(13px, env(safe-area-inset-right)) 7px max(13px, env(safe-area-inset-left)) !important;
    }
    .brand-logo,
    .brand-logo .custom-logo-link,
    body.home .brand-logo,
    body.home .brand-logo .custom-logo-link {
        max-width: calc(100vw - 66px - env(safe-area-inset-left) - env(safe-area-inset-right)) !important;
    }
    .brand-logo .custom-logo,
    body.home .brand-logo .custom-logo {
        width: clamp(166px, 49vw, 215px) !important;
        max-height: 56px !important;
    }
    .menu-toggle,
    body.home .menu-toggle {
        flex-basis: 32px;
        width: 32px;
        height: 32px;
    }
    .menu-toggle span,
    body.home .menu-toggle span { width: 26px; }
    .primary-nav,
    body.home .primary-nav {
        min-height: calc(100vh - 72px);
        min-height: calc(100dvh - 72px);
        max-height: calc(100vh - 72px);
        max-height: calc(100dvh - 72px);
    }
    body.home.menu-open .site-header { height: 72px !important; }
}

/* V23 natural-aspect masonry project collage.
   Keeps every image in its original orientation and removes the empty charcoal
   area caused by equal-height CSS Grid rows. JavaScript calculates only the
   row span; images are never cropped. */
.project-editor-flow.vbd-masonry-direct,
.project-editor-flow .wp-block-gallery.vbd-masonry-gallery {
    grid-auto-flow: dense;
    grid-auto-rows: 8px;
    align-items: start;
}

.project-editor-flow.vbd-masonry-direct > .wp-block-image,
.project-editor-flow.vbd-masonry-direct > figure:not(.wp-block-gallery),
.project-editor-flow.vbd-masonry-direct > img,
.project-editor-flow .wp-block-gallery.vbd-masonry-gallery figure.wp-block-image,
.project-editor-flow .wp-block-gallery.vbd-masonry-gallery > figure {
    align-self: start;
    height: auto !important;
    min-height: 0 !important;
    background: transparent !important;
}

.project-editor-flow.vbd-masonry-direct > .wp-block-image img,
.project-editor-flow.vbd-masonry-direct > figure:not(.wp-block-gallery) img,
.project-editor-flow .wp-block-gallery.vbd-masonry-gallery figure.wp-block-image img,
.project-editor-flow .wp-block-gallery.vbd-masonry-gallery > figure img {
    display: block;
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
}

@media (max-width: 680px) {
    .project-editor-flow.vbd-masonry-direct,
    .project-editor-flow .wp-block-gallery.vbd-masonry-gallery {
        grid-auto-rows: auto;
        grid-auto-flow: row;
    }

    .project-editor-flow.vbd-masonry-direct > .wp-block-image,
    .project-editor-flow.vbd-masonry-direct > figure:not(.wp-block-gallery),
    .project-editor-flow.vbd-masonry-direct > img,
    .project-editor-flow .wp-block-gallery.vbd-masonry-gallery figure.wp-block-image,
    .project-editor-flow .wp-block-gallery.vbd-masonry-gallery > figure {
        grid-row-end: auto !important;
    }
}


/* V24 project gallery navigation.
   Matches the underlined Submit Inquiry control and remains readable on the
   charcoal child-page background. */
.project-back-nav {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 var(--content-gutter) clamp(76px, 8vw, 126px);
}
.project-back-link,
.project-back-link:link,
.project-back-link:visited,
.project-back-link:hover,
.project-back-link:focus,
.project-back-link:focus-visible,
.project-back-link:active {
    display: inline-block;
    border-bottom: 1px solid currentColor;
    padding: 0 0 6px;
    color: inherit;
    font-family: var(--sans);
    font-size: 10px;
    font-weight: 400;
    line-height: 1.4;
    letter-spacing: .22em;
    text-transform: uppercase;
    text-decoration: none;
    text-decoration-color: currentColor;
}
body:not(.home) .project-back-link,
body:not(.home) .project-back-link:link,
body:not(.home) .project-back-link:visited,
body:not(.home) .project-back-link:hover,
body:not(.home) .project-back-link:focus,
body:not(.home) .project-back-link:focus-visible,
body:not(.home) .project-back-link:active {
    color: var(--brand-ivory) !important;
    -webkit-text-fill-color: var(--brand-ivory) !important;
    border-bottom-color: var(--brand-ivory) !important;
    text-decoration-color: var(--brand-ivory) !important;
}
.project-back-link:hover,
.project-back-link:focus-visible {
    opacity: .72;
}
