/* Sprucen Projects v1.2.76 */

.sprucen-projects-grid,
.sprucen-project-detail {
    --sp-cream: #F5F2EC;
    --sp-charcoal: #44413D;
    --sp-stone: #E2E0D4;
    --sp-warm: #C5C2B8;
    --sp-sage: #53584C;
    --sp-card: #FCFBF8;
    color: var(--sp-charcoal);
    font-family: inherit;
}

.sprucen-projects-grid *,
.sprucen-project-detail * {
    box-sizing: border-box;
}

/* =========================================================
   PROJECTS LISTING PAGE
   ========================================================= */

.sprucen-projects-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    width: 100%;
    max-width: none;
    margin: 22px 0 0;
    padding-bottom: 80px;
}

.sprucen-project-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    margin: 0;
    overflow: hidden;
    background: #FCFBF8;
    border: 1px solid #E2E0D4;
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(68, 65, 61, 0.05);
    transition: transform .18s ease, box-shadow .18s ease;
}

.sprucen-project-card__image-link {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #E2E0D4;
    text-decoration: none !important;
}

.sprucen-project-card__image,
.sprucen-project-card__placeholder {
    display: block;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    aspect-ratio: auto !important;
    object-fit: cover;
    object-position: center;
    background: #E2E0D4;
}

.sprucen-project-card__image {
    transition: transform .24s ease;
}

.sprucen-project-card__body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    align-items: flex-start;
    padding: 15px 16px 17px;
    background: #FCFBF8;
}

.sprucen-project-card__location {
    margin: 0 0 6px !important;
    color: #53584C;
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .07em;
    line-height: 1.25;
    text-transform: uppercase;
}

.sprucen-project-card__title {
    margin: 0 0 15px !important;
    font-size: clamp(1rem, 1.25vw, 1.12rem);
    font-weight: 600;
    line-height: 1.28;
}

.sprucen-project-card__title a {
    color: #44413D !important;
    text-decoration: none !important;
}

.sprucen-project-card__summary {
    display: none !important;
}

/* Same understated underlined-link treatment as the rest of the Sprucen site,
   scaled slightly for the smaller project cards. */
.sprucen-project-card__link {
    position: relative;
    display: inline-block;
    width: fit-content;
    margin-top: auto;
    padding: 0 0 3px !important;
    background: transparent !important;
    color: #44413D !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.25;
    text-decoration: none !important;
    transition: opacity .18s ease;
}

.sprucen-project-card__link::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 1px;
    background: currentColor;
}

@media (hover: hover) and (pointer: fine) {
    .sprucen-project-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 22px rgba(68, 65, 61, 0.07);
    }

    .sprucen-project-card:hover .sprucen-project-card__image {
        transform: scale(1.015);
    }

    .sprucen-project-card__link:hover {
        opacity: .7;
    }
}

/* Tablet: two cards across. */
@media (min-width: 650px) and (max-width: 959px) {
    .sprucen-projects-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Desktop: four cards across; further projects automatically create new rows. */
@media (min-width: 960px) {
    .sprucen-projects-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* Mobile stays deliberately simple: one full-width card per row. */
@media (max-width: 649px) {
    .sprucen-projects-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .sprucen-project-card__image-link {
        aspect-ratio: 4 / 5;
    }

    .sprucen-project-card__body {
        padding: 15px 16px 17px;
    }

    .sprucen-project-card__title {
        font-size: 1.08rem;
    }
}

/* =========================================================
   INDIVIDUAL PROJECT - ONE CONTROLLED SPRUCEN CARD
   ========================================================= */

.single-sprucen_project .wp-block-post-title,
.single-sprucen_project .wp-block-post-featured-image,
.single-sprucen_project .wp-block-post-date,
.single-sprucen_project .wp-block-post-author,
.single-sprucen_project .wp-block-post-author-name,
.single-sprucen_project .wp-block-post-comments-form {
    display: none !important;
}

.single-sprucen_project .wp-block-post-content {
    width: 100%;
    max-width: none !important;
    overflow: visible;
}

.single-sprucen_project .wp-block-post-content > .sprucen-project-detail.alignwide {
    margin-left: auto !important;
    margin-right: auto !important;
}

.sprucen-project-detail {
    position: static;
    left: auto;
    box-sizing: border-box;
    width: calc(100% - 32px);
    max-width: var(--wp--style--global--wide-size, 1368px);
    margin: 20px auto 28px !important;
    padding: clamp(24px, 3vw, 38px);
    transform: none;
    overflow: hidden;
    background: var(--sp-card);
    border: 1px solid var(--sp-stone);
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(68, 65, 61, 0.06);
}

.sprucen-project-detail__header {
    margin: 0 0 14px;
}

.sprucen-project-detail__title {
    max-width: 60rem;
    margin: 0 0 10px !important;
    color: var(--sp-charcoal);
    font-size: clamp(2rem, 2.6vw, 2.25rem) !important;
    font-weight: 300;
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.sprucen-project-detail__summary {
    max-width: 60rem;
    margin: 8px 0 0 !important;
    color: var(--sp-charcoal);
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.4;
}


/* Main project imagery: 4:5 before/after photographs with a supporting gallery. */
.sprucen-project-media {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 14px;
    align-items: stretch;
    margin: 0 0 38px;
}

.sprucen-project-compare {
    width: 100%;
    min-width: 0;
    margin: 0;
}

.sprucen-project-compare__controls {
    display: flex;
    justify-content: flex-start;
    min-width: 0;
    margin: 0;
    padding: 0;
    grid-column: 1;
    grid-row: 1;
}

.sprucen-project-media--comparison > .sprucen-project-compare {
    grid-column: 1;
    grid-row: 2;
}

.sprucen-project-media--comparison > .sprucen-project-gallery--side {
    grid-column: 2;
    grid-row: 2;
}

.sprucen-project-compare__tabs {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 184px;
    max-width: 100%;
    padding: 4px;
    border: 0 !important;
    border-radius: 999px;
    background: #ECE7DE;
    isolation: isolate;
}

.sprucen-project-compare__selection {
    position: absolute;
    z-index: -1;
    top: 4px;
    bottom: 4px;
    left: 4px;
    width: calc((100% - 8px) / 2);
    border: 0 !important;
    border-radius: 999px;
    background: #fff;
    box-shadow: none !important;
    transform: translateX(0);
    transition: transform .22s ease;
    pointer-events: none;
}

.sprucen-project-compare__tabs[data-active="after"] .sprucen-project-compare__selection {
    transform: translateX(100%);
}

.sprucen-project-compare__tabs .sprucen-project-compare__tab {
    appearance: none;
    position: relative;
    display: block;
    width: 100%;
    min-width: 0;
    min-height: 38px;
    margin: 0;
    padding: 8px 14px;
    border: 0 !important;
    outline: none !important;
    border-radius: 999px;
    background: transparent !important;
    box-shadow: none !important;
    color: var(--sp-charcoal, #44413D) !important;
    font-family: inherit;
    font-size: .9375rem;
    font-weight: 500;
    letter-spacing: normal;
    line-height: 1.25;
    text-align: center;
    text-decoration: none !important;
    text-transform: none;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.sprucen-project-compare__tabs .sprucen-project-compare__tab[aria-selected="true"] {
    font-weight: 600;
}

.sprucen-project-compare__tabs .sprucen-project-compare__tab:focus-visible {
    text-decoration: underline !important;
    text-underline-offset: .2em;
}

.sprucen-project-compare__stage {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    isolation: isolate;
    background: transparent;
    border: 1px solid var(--sp-warm);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(68, 65, 61, 0.07);
}

.sprucen-project-compare__stage:focus-within {
    outline: 2px solid var(--sp-sage);
    outline-offset: 3px;
}

.sprucen-project-compare__panel {
    position: absolute;
    inset: 0;
}

.sprucen-project-compare__panel[hidden] {
    display: none !important;
}

.sprucen-project-compare__image {
    position: absolute;
    inset: 0;
    display: block;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: cover;
    object-position: center;
    user-select: none;
    -webkit-user-drag: none;
}

.sprucen-project-gallery__heading {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* The side gallery is the same overall height as the 4:5 comparison. */
.sprucen-project-gallery--side {
    min-width: 0;
    height: 100%;
    max-height: none;
    margin: 0;
    overflow: hidden;
}

.sprucen-project-gallery--side .sprucen-project-gallery__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: minmax(0, 1fr);
    gap: 10px;
    width: 100%;
    height: 100%;
    max-height: 100%;
    padding: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: var(--sp-warm) transparent;
}

.sprucen-project-gallery--side .sprucen-project-gallery__grid::-webkit-scrollbar { width: 5px; }
.sprucen-project-gallery--side .sprucen-project-gallery__grid::-webkit-scrollbar-track { background: transparent; }
.sprucen-project-gallery--side .sprucen-project-gallery__grid::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: var(--sp-warm);
}

.sprucen-project-gallery--side .sprucen-project-gallery__item {
    aspect-ratio: 4 / 5;
    min-width: 0;
    margin: 0;
    overflow: hidden;
    background: transparent;
    border: 1px solid var(--sp-warm);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(68, 65, 61, 0.06);
}

.sprucen-project-gallery__link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none !important;
}

.sprucen-project-gallery__image {
    display: block;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: cover;
    object-position: center;
    transition: transform .22s ease;
}

.sprucen-project-gallery__link:focus-visible {
    outline: 2px solid var(--sp-sage);
    outline-offset: 3px;
}

@media (hover: hover) and (pointer: fine) {
    .sprucen-project-gallery__link:hover .sprucen-project-gallery__image {
        transform: scale(1.015);
    }
}

/* Two rows should fill the side of the comparison. With more than four photos,
   the right-hand grid scrolls while preserving each image's 4:5 ratio. */
@media (min-width: 650px) {
    .sprucen-project-gallery--side .sprucen-project-gallery__grid {
        grid-template-rows: repeat(2, calc((100% - 10px) / 2));
        grid-auto-rows: calc((100% - 10px) / 2);
    }
}

@media (max-width: 649px) {
    .sprucen-project-media {
        grid-template-columns: 1fr;
        gap: 14px;
        margin-bottom: 34px;
    }

    .sprucen-project-compare,
    .sprucen-project-gallery--side {
        width: 100%;
    }

    .sprucen-project-gallery--side {
        height: auto;
        max-height: none;
        overflow: visible;
    }

    .sprucen-project-gallery--side .sprucen-project-gallery__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-rows: auto;
        gap: 10px;
        height: auto;
        max-height: min(126vw, 760px);
        overflow-y: auto;
        padding-right: 2px;
    }

    .sprucen-project-gallery--side .sprucen-project-gallery__item {
        width: 100%;
        aspect-ratio: 4 / 5;
    }
}

/* Work and materials are sections within the main card, not extra cards */
.sprucen-project-detail__facts {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    margin: 0;
    padding: 8px 0 26px;
    border-top: 0;
    border-bottom: 1px solid var(--sp-stone);
}

.sprucen-project-detail__fact {
    min-width: 0;
    padding: 0;
}

.sprucen-project-detail__fact + .sprucen-project-detail__fact {
    margin-top: 28px;
    padding-top: 12px;
    border-top: 1px solid var(--sp-stone);
}

.sprucen-project-detail__fact h2,
.sprucen-project-gallery > h2,
.sprucen-project-cta h2 {
    margin: 0 0 10px !important;
    color: var(--sp-charcoal);
    font-size: 1.3rem;
    font-weight: 600;
    line-height: 1.3;
}

.sprucen-project-detail__fact p {
    width: 100%;
    max-width: none;
    margin: 0 !important;
    font-size: 1.3rem;
    font-weight: 300;
    line-height: 1.45;
}

/* Preserve intentional paragraph breaks entered in the project Work field. */
.sprucen-project-detail__fact--work p + p {
    margin-top: 1em !important;
}


.sprucen-project-finishes {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none;
    font-size: 1.3rem;
    font-weight: 300;
    line-height: 1.45;
}

.sprucen-project-finishes li {
    position: relative;
    margin: 0 0 7px;
    padding-left: 1.15em;
}

.sprucen-project-finishes li::before {
    content: "•";
    position: absolute;
    left: 0;
    top: 0;
}

.sprucen-project-detail__editor-content {
    max-width: 48rem;
    margin: 20px 0 0;
}

.sprucen-project-detail__editor-content p {
    line-height: 1.55;
}


/* Gallery lightbox / carousel */
.sprucen-project-lightbox {
    width: min(1120px, calc(100vw - 32px));
    max-width: 1120px;
    padding: 0;
    overflow: visible;
    border: 0;
    background: transparent;
}

.sprucen-project-lightbox::backdrop {
    background: rgba(68, 65, 61, .82);
}

.sprucen-project-lightbox__frame {
    position: relative;
    display: grid;
    place-items: center;
    min-height: min(82vh, 820px);
    padding: 28px 56px 38px;
    border-radius: 12px;
    background: transparent;
    touch-action: pan-y;
}

.sprucen-project-lightbox__image {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 82vh;
    margin: auto;
    border: 1px solid rgba(245, 242, 236, .35);
    border-radius: 10px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, .24);
    user-select: none;
    -webkit-user-drag: none;
}

.sprucen-project-lightbox__close,
.sprucen-project-lightbox__nav {
    position: absolute;
    z-index: 3;
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid rgba(68, 65, 61, .18);
    border-radius: 999px;
    background: rgba(245, 242, 236, .96);
    box-shadow: 0 3px 12px rgba(68, 65, 61, .18);
    color: var(--sp-charcoal);
    cursor: pointer;
}

.sprucen-project-lightbox__close {
    top: 4px;
    right: 4px;
    width: 38px;
    height: 38px;
    font: 400 25px/1 inherit;
}

.sprucen-project-lightbox__nav {
    top: 50%;
    width: 44px;
    height: 44px;
    transform: translateY(-50%);
    font: 300 34px/1 inherit;
}

.sprucen-project-lightbox__nav--prev { left: 2px; }
.sprucen-project-lightbox__nav--next { right: 2px; }

.sprucen-project-lightbox__nav[hidden],
.sprucen-project-lightbox__count:empty {
    display: none;
}

.sprucen-project-lightbox__count {
    position: absolute;
    right: 0;
    bottom: 5px;
    left: 0;
    margin: 0 !important;
    color: #F5F2EC;
    font-size: .88rem;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
}

.sprucen-project-lightbox__close:focus-visible,
.sprucen-project-lightbox__nav:focus-visible {
    outline: 2px solid #F5F2EC;
    outline-offset: 3px;
}

@media (max-width: 600px) {
    .sprucen-project-lightbox {
        width: calc(100vw - 20px);
    }

    .sprucen-project-lightbox__frame {
        min-height: 70vh;
        padding: 46px 8px 42px;
    }

    .sprucen-project-lightbox__image {
        max-height: 76vh;
        border-radius: 8px;
    }

    .sprucen-project-lightbox__close {
        top: 2px;
        right: 2px;
    }

    .sprucen-project-lightbox__nav {
        top: auto;
        bottom: 2px;
        width: 40px;
        height: 40px;
        transform: none;
    }

    .sprucen-project-lightbox__nav--prev { left: 2px; }
    .sprucen-project-lightbox__nav--next { right: 2px; }

    .sprucen-project-lightbox__count {
        bottom: 13px;
        pointer-events: none;
    }
}

/* Low-pressure CTA is now the footer of the single project card */
.sprucen-project-cta {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 12px 24px;
    margin: 12px 0 0;
    padding: 0;
    border-top: 0;
}

.sprucen-project-cta > div {
    min-width: 0;
}

.sprucen-project-cta p {
    max-width: 52rem;
    margin: 0 !important;
    font-size: 1.12rem;
    font-weight: 300;
    line-height: 1.45;
}

.sprucen-project-cta__button {
    position: relative;
    grid-column: 2;
    grid-row: 1;
    align-self: end;
    justify-self: end;
    display: inline-block;
    min-height: 0;
    padding: 0 0 3px !important;
    background: transparent !important;
    color: #44413D !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.25;
    text-decoration: none !important;
    transition: opacity .18s ease;
    transform: translateY(5px);
}

.sprucen-project-cta__button::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: currentColor;
}

.sprucen-project-cta__button:hover,
.sprucen-project-cta__button:focus-visible {
    opacity: .7;
    background: transparent !important;
    color: #44413D !important;
}

.sprucen-projects-empty {
    padding: 18px 20px;
    border: 1px solid #E2E0D4;
    border-radius: 10px;
    background: #FCFBF8;
    color: #44413D;
}

@media (max-width: 781px) {
    .sprucen-project-media {
        margin-bottom: 30px;
    }

    .sprucen-project-media--split {
        display: block;
    }

    .sprucen-project-media--split .sprucen-project-compare {
        margin-bottom: 12px;
    }

    .sprucen-project-gallery--side {
        overflow: visible;
    }

    .sprucen-project-gallery--side .sprucen-project-gallery__heading {
        display: none !important;
    }

    .sprucen-project-gallery--side .sprucen-project-gallery__grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 9px;
        overflow-x: hidden;
        overflow-y: auto;
        padding: 0 3px 2px 0;
        scroll-snap-type: y proximity;
        scrollbar-width: thin;
        -webkit-overflow-scrolling: touch;
    }

    .sprucen-project-gallery--side .sprucen-project-gallery__item {
        aspect-ratio: 4 / 5;
        border-color: var(--sp-stone);
        border-radius: 8px;
        box-shadow: none;
        scroll-snap-align: start;
    }

    .sprucen-project-cta {
        grid-template-columns: minmax(0, 1fr) auto;
        column-gap: 14px;
    }

    .sprucen-project-cta__button {
        grid-column: 2;
        grid-row: 1;
        justify-self: end;
    }
}

@media (max-width: 600px) {
    .sprucen-project-detail {
        position: relative;
        left: 50%;
        width: calc(100vw - 44px);
        max-width: calc(100vw - 44px);
        margin-top: 14px;
        margin-right: 0 !important;
        margin-bottom: 20px;
        margin-left: 0 !important;
        padding: 20px 16px 22px;
        transform: translateX(-50%);
        background: #FCFBF8;
    }

    .sprucen-project-detail__header {
        margin-bottom: 10px;
    }

    .sprucen-project-detail__title {
        margin-bottom: 7px !important;
        font-size: clamp(1.65rem, 6.2vw, 1.85rem) !important;
        font-weight: 300;
        letter-spacing: -0.025em;
        line-height: 1.18;
    }

    .sprucen-project-detail__location {
        margin-bottom: 4px !important;
        font-size: .76rem;
        letter-spacing: .06em;
    }

    .sprucen-project-detail__facts {
        padding: 10px 0 24px;
    }

    .sprucen-project-detail__fact + .sprucen-project-detail__fact {
        margin-top: 32px;
        padding-top: 16px;
    }

    .sprucen-project-detail__fact h2,
    .sprucen-project-cta h2 {
        margin-bottom: 8px !important;
        font-size: 1.25rem;
    }

    .sprucen-project-detail__fact p,
    .sprucen-project-finishes {
        font-size: 1.08rem;
        font-weight: 300;
        line-height: 1.45;
    }

    .sprucen-project-cta {
        grid-template-columns: 1fr;
        gap: 6px;
        margin-top: 10px;
        padding-top: 0;
    }

    .sprucen-project-cta p {
        font-size: 1.05rem;
    }

    .sprucen-project-cta__button {
        grid-column: 1;
        grid-row: auto;
        justify-self: end;
        margin-top: 16px !important;
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sprucen-project-card,
    .sprucen-project-card__image,
    .sprucen-project-gallery__image,
    .sprucen-project-cta__button {
        transition: none;
    }
}


/* Remove single-post template chrome below Sprucen project content */
.single-sprucen_project main .wp-block-separator,
.single-sprucen_project main .wp-block-post-terms,
.single-sprucen_project main .wp-block-post-navigation-link {
    display: none !important;
}

.single-sprucen_project main,
.single-sprucen_project .wp-block-post-content {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
    min-height: 0 !important;
}

.single-sprucen_project .wp-site-blocks > main + .wp-block-template-part {
    margin-block-start: 24px !important;
}



/* v1.2.13 — balanced 4:5 project media layout. */


/* v1.2.16 — authoritative 4:5 project media layout.
   Prepared project images are already 4:5, so they should fill a 4:5 frame
   directly with no letterboxing or artificial padding. */
.sprucen-project-media {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 14px;
    align-items: start;
}

.sprucen-project-compare__stage {
    width: 100%;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: transparent;
}

.sprucen-project-compare__image,
.sprucen-project-gallery__image {
    display: block;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: cover !important;
    object-position: center center !important;
}

.sprucen-project-gallery--side {
    min-width: 0;
    height: 100%;
}

.sprucen-project-gallery--side .sprucen-project-gallery__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
    aspect-ratio: 4 / 5;
    max-height: none;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0 2px 0 0;
}

.sprucen-project-gallery--side .sprucen-project-gallery__item {
    width: 100%;
    min-width: 0;
    height: 100%;
    min-height: 0;
    aspect-ratio: auto;
    overflow: hidden;
}

@media (max-width: 781px) {
    .sprucen-project-media {
        display: block;
    }

    .sprucen-project-media .sprucen-project-compare {
        margin-bottom: 12px;
    }

    .sprucen-project-gallery--side {
        height: auto;
    }

    .sprucen-project-gallery--side .sprucen-project-gallery__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: none;
        grid-auto-rows: auto;
        aspect-ratio: auto;
        max-height: none;
        overflow: visible;
        gap: 9px;
        padding: 0;
    }

    .sprucen-project-gallery--side .sprucen-project-gallery__item {
        height: auto;
        aspect-ratio: 4 / 5;
    }
}


/* v1.2.17 — title placement and finishing refinements. */
.sprucen-project-detail__title-wrap {
    box-sizing: border-box;
    width: calc(100% - 32px);
    max-width: var(--wp--style--global--wide-size, 1368px);
    margin: 20px auto 12px !important;
    padding: 0 clamp(24px, 3vw, 38px);
}

.sprucen-project-detail__title-wrap .sprucen-project-detail__title {
    margin: 0 !important;
    font-size: 2.2rem !important;
    font-weight: 200 !important;
    letter-spacing: -0.03em;
    line-height: 1.2;
}

/* The card now starts beneath the page title. */
.single-sprucen_project .sprucen-project-detail {
    margin-top: 0 !important;
}

/* Remove the decorative top edges that appeared as paired horizontal lines
   above the supporting gallery images. */
.sprucen-project-gallery--side .sprucen-project-gallery__item {
    border: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
}

/* Match the CTA paragraph to the body copy used elsewhere on the project. */
.sprucen-project-cta p {
    font-size: 1.3rem !important;
    font-weight: 300;
    line-height: 1.45;
}

@media (max-width: 600px) {
    .sprucen-project-detail__title-wrap {
        position: relative;
        left: 50%;
        width: calc(100vw - 44px);
        max-width: calc(100vw - 44px);
        margin: 14px 0 12px !important;
        padding: 0;
        transform: translateX(-50%);
    }

    .sprucen-project-detail__title-wrap .sprucen-project-detail__title {
        font-size: 2.2rem !important;
        font-weight: 200 !important;
        line-height: 1.15;
    }

    .single-sprucen_project .sprucen-project-detail {
        margin-top: 0 !important;
    }

    .sprucen-project-cta p {
        font-size: 1.08rem !important;
        line-height: 1.45;
    }
}


/* v1.2.18 — project-page spacing and gallery polish. */

/* Match the generous top spacing used by the main site pages. */
.sprucen-project-detail__title-wrap {
    margin-top: clamp(64px, 7vw, 96px) !important;
    margin-bottom: 30px !important;
}

.sprucen-project-detail__title-wrap .sprucen-project-detail__title {
    font-size: 2.2rem !important;
    font-weight: 200 !important;
    text-transform: capitalize;
}

/* Keep the project card visually close to the location label without a large empty top inset. */
.single-sprucen_project .sprucen-project-detail {
    padding-top: 16px !important;
}

.sprucen-project-detail__header {
    margin: 0 0 14px !important;
}

.sprucen-project-detail__location {
    margin-top: 0 !important;
}

/* Align the support gallery exactly with the comparison and make scrolling obvious. */
.sprucen-project-gallery--side {
    align-self: start;
    margin: 0 !important;
    padding: 0 !important;
}

.sprucen-project-gallery--side .sprucen-project-gallery__grid {
    margin: 0 !important;
    padding: 0 10px 4px 0 !important;
    overflow-y: scroll !important;
    scrollbar-gutter: stable;
    scrollbar-width: auto;
    scrollbar-color: var(--sp-warm) rgba(226, 224, 212, .34);
}

.sprucen-project-gallery--side .sprucen-project-gallery__grid::-webkit-scrollbar {
    width: 8px;
}

.sprucen-project-gallery--side .sprucen-project-gallery__grid::-webkit-scrollbar-track {
    background: rgba(226, 224, 212, .34);
    border-radius: 999px;
}

.sprucen-project-gallery--side .sprucen-project-gallery__grid::-webkit-scrollbar-thumb {
    background: var(--sp-warm);
    border-radius: 999px;
}

.sprucen-project-gallery--side .sprucen-project-gallery__item,
.sprucen-project-gallery--side .sprucen-project-gallery__link,
.sprucen-project-gallery--side .sprucen-project-gallery__image {
    margin-top: 0 !important;
}

.sprucen-project-gallery--side .sprucen-project-gallery__item {
    border-radius: 8px !important;
    overflow: hidden !important;
}

/* Capitalise the visible section headings consistently. */
.sprucen-project-detail__fact h2,
.sprucen-project-cta h2 {
    text-transform: capitalize;
}

@media (max-width: 781px) {
    .sprucen-project-detail__title-wrap {
        margin-top: 34px !important;
        margin-bottom: 24px !important;
    }

    .single-sprucen_project .sprucen-project-detail {
        padding-top: 14px !important;
    }

    .sprucen-project-gallery--side .sprucen-project-gallery__grid {
        overflow-y: scroll !important;
        max-height: min(126vw, 760px) !important;
        padding-right: 8px !important;
        padding-bottom: 4px !important;
    }
}


/* v1.2.19 — final alignment and gallery-scroll refinements. */

/* Match the vertical start and left alignment used by standard site pages such as Services. */
.sprucen-project-detail__title-wrap {
    margin-top: 0 !important;
    margin-bottom: 30px !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.sprucen-project-detail__title-wrap .sprucen-project-detail__title {
    margin: 0 !important;
    font-size: 2.2rem !important;
    font-weight: 200 !important;
    text-transform: uppercase !important;
}

/* Keep the two media columns pinned to exactly the same top edge. */
.sprucen-project-media {
    align-items: start !important;
}

.sprucen-project-compare,
.sprucen-project-gallery--side,
.sprucen-project-gallery--side .sprucen-project-gallery__grid {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Remove theme figure/link spacing that can create a false strip above gallery images. */
.sprucen-project-gallery--side .sprucen-project-gallery__item {
    margin: 0 !important;
    padding: 0 !important;
    line-height: 0 !important;
    vertical-align: top !important;
}

.sprucen-project-gallery--side .sprucen-project-gallery__link {
    margin: 0 !important;
    padding: 0 !important;
    line-height: 0 !important;
}

/* Reserve a little space at the bottom/right so the lower image radii remain visible. */
.sprucen-project-gallery--side {
    position: relative;
    padding-right: 13px !important;
}

.sprucen-project-gallery--side .sprucen-project-gallery__grid {
    box-sizing: border-box;
    height: 100% !important;
    aspect-ratio: 4 / 5;
    padding: 0 0 8px 0 !important;
    overflow-y: scroll !important;
    overflow-x: hidden !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none;
}

.sprucen-project-gallery--side .sprucen-project-gallery__grid::-webkit-scrollbar {
    width: 0 !important;
    height: 0 !important;
}

/* Permanent visual scroll rail: unlike native overlay scrollbars this remains visible in Chrome. */
.sprucen-project-gallery--side::after {
    content: "";
    position: absolute;
    top: 0;
    right: 2px;
    bottom: 8px;
    width: 4px;
    border-radius: 999px;
    background: rgba(197, 194, 184, .42);
    pointer-events: none;
}

.sprucen-project-gallery--side::before {
    content: "";
    position: absolute;
    z-index: 2;
    top: 2px;
    right: 2px;
    width: 4px;
    height: 30%;
    min-height: 30px;
    border-radius: 999px;
    background: var(--sp-sage);
    opacity: .72;
    pointer-events: none;
}

@media (max-width: 781px) {
    .sprucen-project-detail__title-wrap {
        margin-top: 0 !important;
        margin-bottom: 24px !important;
        padding: 0 !important;
    }

    .sprucen-project-gallery--side {
        padding-right: 11px !important;
    }

    .sprucen-project-gallery--side .sprucen-project-gallery__grid {
        padding: 0 0 8px 0 !important;
        overflow-y: scroll !important;
        max-height: min(126vw, 760px) !important;
    }
}

/* v1.2.20 — side-gallery alignment, bottom radii and live scroll indicator. */
@media (min-width: 782px) {
    .sprucen-project-gallery--side {
        position: relative;
        align-self: start !important;
        height: auto !important;
        aspect-ratio: 4 / 5;
        margin: 0 !important;
        padding: 0 14px 0 0 !important;
        overflow: visible !important;
    }

    .sprucen-project-gallery--side .sprucen-project-gallery__grid {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        grid-template-rows: repeat(2, calc((100% - 18px) / 2)) !important;
        grid-auto-rows: calc((100% - 18px) / 2) !important;
        align-content: start !important;
        justify-content: stretch !important;
        width: 100% !important;
        height: 100% !important;
        aspect-ratio: auto !important;
        gap: 10px !important;
        margin: 0 !important;
        padding: 0 0 8px 0 !important;
        border: 0 !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        scrollbar-width: none !important;
        -ms-overflow-style: none !important;
    }

    .sprucen-project-gallery--side .sprucen-project-gallery__grid::-webkit-scrollbar {
        width: 0 !important;
        height: 0 !important;
    }

    .sprucen-project-gallery--side .sprucen-project-gallery__item,
    .sprucen-project-gallery--side .sprucen-project-gallery__link,
    .sprucen-project-gallery--side .sprucen-project-gallery__image {
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        vertical-align: top !important;
    }

    .sprucen-project-gallery--side .sprucen-project-gallery__item {
        width: 100% !important;
        height: 100% !important;
        min-height: 0 !important;
        overflow: hidden !important;
        border-radius: 8px !important;
    }

    .sprucen-project-gallery--side .sprucen-project-gallery__link {
        display: block !important;
        width: 100% !important;
        height: 100% !important;
        overflow: hidden !important;
        border-radius: inherit !important;
        line-height: 0 !important;
    }

    .sprucen-project-gallery--side .sprucen-project-gallery__image {
        display: block !important;
        width: 100% !important;
        height: 100% !important;
        max-width: none !important;
        object-fit: cover !important;
        border-radius: inherit !important;
    }

    /* Replace the fixed decorative rail from v1.2.19 with a real, moving indicator. */
    .sprucen-project-gallery--side::before,
    .sprucen-project-gallery--side::after {
        content: none !important;
        display: none !important;
    }

    .sprucen-project-gallery__scrollbar {
        position: absolute;
        top: 0;
        right: 2px;
        bottom: 8px;
        width: 5px;
        overflow: hidden;
        border-radius: 999px;
        background: rgba(197, 194, 184, .42);
        pointer-events: none;
    }

    .sprucen-project-gallery__scrollbar-thumb {
        position: absolute;
        top: 0;
        right: 0;
        left: 0;
        display: block;
        min-height: 34px;
        border-radius: 999px;
        background: var(--sp-sage);
        opacity: .76;
        transform: translateY(0);
        will-change: transform, height;
    }
}

@media (max-width: 781px) {
    .sprucen-project-gallery__scrollbar {
        display: none !important;
    }
}

/* v1.2.21 — show exactly two complete gallery rows on desktop. */
@media (min-width: 782px) {
    .sprucen-project-gallery--side {
        overflow: visible !important;
    }

    .sprucen-project-gallery--side .sprucen-project-gallery__grid {
        height: 100% !important;
        padding-bottom: 0 !important;
        grid-template-rows: repeat(2, calc((100% - 10px) / 2)) !important;
        grid-auto-rows: calc((100% - 10px) / 2) !important;
        gap: 10px !important;
        align-content: start !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
    }

    .sprucen-project-gallery__scrollbar {
        bottom: 0 !important;
    }
}


/* v1.2.22 — mobile-only projects grid and single-project gallery repair.
   Desktop rules above are intentionally untouched. */
@media (max-width: 649px) {
    /* Projects listing: compact two-column rows on phones. */
    .sprucen-projects-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 12px !important;
        margin-top: 18px !important;
        padding-bottom: 48px !important;
    }

    .sprucen-project-card {
        min-width: 0 !important;
        border-radius: 9px !important;
    }

    .sprucen-project-card__image-link {
        aspect-ratio: 4 / 5 !important;
    }

    .sprucen-project-card__body {
        padding: 11px 10px 12px !important;
    }

    .sprucen-project-card__location {
        margin-bottom: 4px !important;
        font-size: .62rem !important;
        letter-spacing: .055em !important;
    }

    .sprucen-project-card__title {
        margin-bottom: 10px !important;
        font-size: .9rem !important;
        line-height: 1.22 !important;
    }

    .sprucen-project-card__link {
        font-size: .82rem !important;
        line-height: 1.2 !important;
    }
}

@media (max-width: 781px) {
    /* Match the mobile project title scale to the site's other page headings. */
    .sprucen-project-detail__title-wrap .sprucen-project-detail__title {
        font-size: 1.85rem !important;
        font-weight: 200 !important;
        line-height: 1.15 !important;
        letter-spacing: -0.025em !important;
    }

    /* Keep the gallery exactly the same outer width as the comparison above. */
    .sprucen-project-gallery--side {
        position: relative !important;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        margin: 0 !important;
        padding: 0 14px 0 0 !important;
        overflow: visible !important;
        box-sizing: border-box !important;
    }

    .sprucen-project-gallery--side .sprucen-project-gallery__grid {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        grid-auto-rows: auto !important;
        align-content: start !important;
        width: 100% !important;
        height: auto !important;
        max-height: none !important; /* JS sets an exact two-row viewport. */
        margin: 0 !important;
        padding: 0 !important;
        gap: 10px !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        overscroll-behavior: contain !important;
        scrollbar-width: none !important;
        -ms-overflow-style: none !important;
        box-sizing: border-box !important;
        scroll-snap-type: y proximity;
        -webkit-overflow-scrolling: touch;
    }

    .sprucen-project-gallery--side .sprucen-project-gallery__grid::-webkit-scrollbar {
        width: 0 !important;
        height: 0 !important;
    }

    .sprucen-project-gallery--side .sprucen-project-gallery__item {
        position: relative !important;
        display: block !important;
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        aspect-ratio: 4 / 5 !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
        border: 0 !important;
        border-radius: 8px !important;
        box-shadow: none !important;
        line-height: 0 !important;
        scroll-snap-align: start;
    }

    .sprucen-project-gallery--side .sprucen-project-gallery__link,
    .sprucen-project-gallery--side .sprucen-project-gallery__image {
        display: block !important;
        width: 100% !important;
        height: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 0 !important;
        border-radius: inherit !important;
    }

    .sprucen-project-gallery--side .sprucen-project-gallery__image {
        object-fit: cover !important;
        object-position: center !important;
    }

    /* Show the custom moving scroll rail on mobile, outside the image grid. */
    .sprucen-project-gallery__scrollbar {
        position: absolute !important;
        top: 0 !important;
        right: 2px !important;
        bottom: 0 !important;
        display: block !important;
        width: 5px !important;
        overflow: hidden !important;
        border-radius: 999px !important;
        background: rgba(197, 194, 184, .42) !important;
        pointer-events: none !important;
    }

    .sprucen-project-gallery__scrollbar-thumb {
        position: absolute !important;
        top: 0 !important;
        right: 0 !important;
        left: 0 !important;
        display: block !important;
        min-height: 34px !important;
        border-radius: 999px !important;
        background: var(--sp-sage) !important;
        opacity: .76 !important;
        transform: translateY(0);
        will-change: transform, height;
    }
}


/* v1.2.23 — authoritative mobile project layout.
   These rules intentionally override earlier experimental mobile gallery rules. */
@media (max-width: 781px) {
    /* Match the smaller mobile page-heading scale used elsewhere on the site. */
    .sprucen-project-detail__title-wrap .sprucen-project-detail__title {
        font-size: 1.55rem !important;
        font-weight: 200 !important;
        line-height: 1.16 !important;
        letter-spacing: -0.02em !important;
    }

    /* One comparison image, then one clean, contained two-column gallery. */
    .sprucen-project-media {
        display: block !important;
        width: 100% !important;
    }

    .sprucen-project-media .sprucen-project-compare {
        width: 100% !important;
        margin: 0 0 12px !important;
    }

    .sprucen-project-gallery--side {
        position: relative !important;
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        margin: 0 !important;
        padding: 0 14px 0 0 !important;
        overflow: visible !important;
        box-sizing: border-box !important;
    }

    .sprucen-project-gallery--side .sprucen-project-gallery__grid {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        grid-template-rows: none !important;
        grid-auto-rows: var(--sprucen-mobile-gallery-row, auto) !important;
        align-content: start !important;
        align-items: stretch !important;
        width: 100% !important;
        height: var(--sprucen-mobile-gallery-height, auto) !important;
        max-height: var(--sprucen-mobile-gallery-height, none) !important;
        margin: 0 !important;
        padding: 0 !important;
        gap: 10px !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        box-sizing: border-box !important;
        overscroll-behavior: contain !important;
        scrollbar-width: none !important;
        -ms-overflow-style: none !important;
        scroll-snap-type: y proximity;
        -webkit-overflow-scrolling: touch;
    }

    .sprucen-project-gallery--side .sprucen-project-gallery__grid::-webkit-scrollbar {
        width: 0 !important;
        height: 0 !important;
    }

    .sprucen-project-gallery--side .sprucen-project-gallery__item {
        position: relative !important;
        display: block !important;
        width: 100% !important;
        height: 100% !important;
        min-width: 0 !important;
        min-height: 0 !important;
        aspect-ratio: 4 / 5 !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
        border: 0 !important;
        border-radius: 8px !important;
        box-shadow: none !important;
        line-height: 0 !important;
        scroll-snap-align: start;
        background: transparent !important;
    }

    .sprucen-project-gallery--side .sprucen-project-gallery__link {
        display: block !important;
        width: 100% !important;
        height: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
        border-radius: 8px !important;
        line-height: 0 !important;
    }

    .sprucen-project-gallery--side .sprucen-project-gallery__image {
        display: block !important;
        width: 100% !important;
        height: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 0 !important;
        object-fit: cover !important;
        object-position: center center !important;
        border-radius: 8px !important;
        transform: none !important;
    }

    /* Keep the moving rail outside the image area. */
    .sprucen-project-gallery__scrollbar {
        position: absolute !important;
        top: 0 !important;
        right: 2px !important;
        bottom: 0 !important;
        display: block !important;
        width: 5px !important;
        overflow: hidden !important;
        border-radius: 999px !important;
        background: rgba(197, 194, 184, .42) !important;
        pointer-events: none !important;
    }

    .sprucen-project-gallery__scrollbar-thumb {
        position: absolute !important;
        top: 0 !important;
        right: 0 !important;
        left: 0 !important;
        display: block !important;
        min-height: 34px !important;
        border-radius: 999px !important;
        background: var(--sp-sage) !important;
        opacity: .76 !important;
        transform: translateY(0);
        will-change: transform, height;
    }
}


/* v1.2.24 — definitive mobile rules. Earlier v1.2.23 assets were not cache-busted
   because the PHP asset version was still 1.2.22; these rules are intentionally last. */
@media (max-width: 649px) {
    .sprucen-projects-grid {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 12px !important;
    }
    .sprucen-project-card__image-link { aspect-ratio: 4 / 5 !important; }
    .sprucen-project-card__body { padding: 10px 9px 11px !important; }
    .sprucen-project-card__location { font-size: .6rem !important; margin-bottom: 4px !important; }
    .sprucen-project-card__title { font-size: .88rem !important; line-height: 1.2 !important; margin-bottom: 9px !important; }
    .sprucen-project-card__link { font-size: .78rem !important; }
}

@media (max-width: 781px) {
    .sprucen-project-detail__title-wrap .sprucen-project-detail__title {
        font-size: 1.55rem !important;
        font-weight: 200 !important;
        line-height: 1.16 !important;
        letter-spacing: -0.02em !important;
    }
    .sprucen-project-media {
        display: block !important;
        width: 100% !important;
    }
    .sprucen-project-compare {
        width: 100% !important;
        margin: 0 0 12px !important;
    }
    .sprucen-project-gallery--side {
        position: relative !important;
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        margin: 0 !important;
        padding: 0 14px 0 0 !important;
        overflow: visible !important;
        box-sizing: border-box !important;
    }
    .sprucen-project-gallery--side .sprucen-project-gallery__grid {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        grid-template-rows: none !important;
        grid-auto-rows: var(--sprucen-mobile-gallery-row, auto) !important;
        width: 100% !important;
        height: var(--sprucen-mobile-gallery-height, auto) !important;
        max-height: var(--sprucen-mobile-gallery-height, none) !important;
        margin: 0 !important;
        padding: 0 !important;
        gap: 10px !important;
        align-content: start !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        box-sizing: border-box !important;
        scrollbar-width: none !important;
        -ms-overflow-style: none !important;
        -webkit-overflow-scrolling: touch;
    }
    .sprucen-project-gallery--side .sprucen-project-gallery__grid::-webkit-scrollbar { width: 0 !important; height: 0 !important; }
    .sprucen-project-gallery--side .sprucen-project-gallery__item {
        display: block !important;
        position: relative !important;
        width: 100% !important;
        height: 100% !important;
        min-width: 0 !important;
        min-height: 0 !important;
        aspect-ratio: 4 / 5 !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
        border: 0 !important;
        border-radius: 8px !important;
        line-height: 0 !important;
        background: transparent !important;
    }
    .sprucen-project-gallery--side .sprucen-project-gallery__link,
    .sprucen-project-gallery--side .sprucen-project-gallery__image {
        display: block !important;
        width: 100% !important;
        height: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 0 !important;
        border-radius: 8px !important;
    }
    .sprucen-project-gallery--side .sprucen-project-gallery__image {
        object-fit: cover !important;
        object-position: center !important;
        transform: none !important;
    }
}

/* v1.2.25 — mobile-only sizing/alignment refinements. Desktop remains unchanged. */
@media (max-width: 781px) {
    /* Match the scale of the other mobile page headings more closely. */
    .sprucen-project-detail__title-wrap .sprucen-project-detail__title {
        font-size: 1.35rem !important;
        line-height: 1.2 !important;
        font-weight: 200 !important;
    }

    /* Supporting gallery uses the exact same content width as the comparison above. */
    .sprucen-project-gallery--side {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        overflow: visible !important;
    }

    .sprucen-project-gallery--side .sprucen-project-gallery__grid {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        box-sizing: border-box !important;
    }

    /* Put the custom scroll rail outside the image edge, rather than stealing image width. */
    .sprucen-project-gallery__scrollbar {
        right: -12px !important;
    }
}


/* v1.2.26 — mobile: hide the native gallery scrollbar; keep only the custom rail outside the images. */
@media (max-width: 781px) {
    .sprucen-project-gallery--side .sprucen-project-gallery__grid {
        scrollbar-width: none !important;
        -ms-overflow-style: none !important;
    }
    .sprucen-project-gallery--side .sprucen-project-gallery__grid::-webkit-scrollbar {
        display: none !important;
        width: 0 !important;
        height: 0 !important;
        background: transparent !important;
    }
}

/* v1.2.27 — mobile: remove legacy decorative pseudo-scroll rail so only the live custom scrollbar remains. */
@media (max-width: 781px) {
    .sprucen-project-gallery--side::before,
    .sprucen-project-gallery--side::after {
        content: none !important;
        display: none !important;
    }
}


/* v1.2.28 — project summary beneath title and preserved Work paragraph spacing. */
@media (max-width: 600px) {
    .sprucen-project-detail__summary {
        margin-top: 7px !important;
        font-size: 0.98rem;
        line-height: 1.4;
    }
}

/* v1.2.29 — align individual project heading with standard site page headings; widen/enlarge summary. */
.sprucen-project-detail__title-wrap .sprucen-project-detail__title {
    font-size: 1.9rem !important;
    font-weight: 300 !important;
    letter-spacing: -0.02em !important;
    line-height: 1.2 !important;
}

.sprucen-project-detail__summary {
    width: 100% !important;
    max-width: none !important;
    margin-top: 9px !important;
    font-size: 1.15rem !important;
    font-weight: 600 !important;
    line-height: 1.45 !important;
}

@media (max-width: 781px) {
    .sprucen-project-detail__title-wrap .sprucen-project-detail__title {
        font-size: 1.35rem !important;
        font-weight: 300 !important;
        letter-spacing: -0.015em !important;
        line-height: 1.2 !important;
    }

    .sprucen-project-detail__summary {
        font-size: 1.02rem !important;
        line-height: 1.42 !important;
    }
}

/* v1.2.30 — exact site heading match and larger full-width project summary. */
.single-sprucen_project .sprucen-project-detail__title-wrap.alignwide {
    box-sizing: border-box;
    width: calc(100% - 32px) !important;
    max-width: var(--wp--style--global--wide-size, 1368px) !important;
}

.sprucen-project-detail__title-wrap .sprucen-project-detail__title {
    font-size: 2.2rem !important;
    font-weight: 200 !important;
    letter-spacing: -0.03em !important;
    line-height: 1.2 !important;
}

.sprucen-project-detail__summary {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 10px 0 0 !important;
    font-size: 1.3rem !important;
    font-weight: 600 !important;
    line-height: 1.42 !important;
}

@media (max-width: 781px) {
    .sprucen-project-detail__title-wrap .sprucen-project-detail__title {
        font-size: 2.2rem !important;
        font-weight: 200 !important;
        letter-spacing: -0.03em !important;
        line-height: 1.15 !important;
    }

    .sprucen-project-detail__summary {
        font-size: 1.12rem !important;
        line-height: 1.42 !important;
    }
}

/* v1.2.31 — align project header vertically with standard pages; match summary to site H2 typography. */
@media (min-width: 782px) {
    .single-sprucen_project .sprucen-project-detail__title-wrap.alignwide {
        margin-top: -4px !important;
    }
}

.sprucen-project-detail__summary {
    font-size: 2.2rem !important;
    font-weight: 400 !important;
    line-height: 1.2 !important;
    letter-spacing: normal !important;
}

@media (max-width: 781px) {
    .sprucen-project-detail__summary {
        font-size: 2.2rem !important;
        font-weight: 400 !important;
        line-height: 1.2 !important;
        letter-spacing: normal !important;
    }
}

/* v1.2.32 — refine project summary scale and vertical rhythm to match standard page intros. */
.sprucen-project-detail__title-wrap .sprucen-project-detail__summary {
    margin-top: 16px !important;
    font-size: 2rem !important;
    font-weight: 400 !important;
    line-height: 1.28 !important;
    letter-spacing: normal !important;
}

.single-sprucen_project .sprucen-project-detail__title-wrap.alignwide {
    margin-bottom: 38px !important;
}

@media (max-width: 781px) {
    .sprucen-project-detail__title-wrap .sprucen-project-detail__summary {
        margin-top: 12px !important;
        font-size: 1.5rem !important;
        line-height: 1.3 !important;
    }

    .single-sprucen_project .sprucen-project-detail__title-wrap.alignwide {
        margin-bottom: 28px !important;
    }
}


/* v1.2.33 — very slightly increase spacing through the single-project intro. */
.sprucen-project-detail__title-wrap .sprucen-project-detail__summary {
    margin-top: 19px !important;
}

.single-sprucen_project .sprucen-project-detail__title-wrap.alignwide {
    margin-bottom: 42px !important;
}

@media (max-width: 781px) {
    .sprucen-project-detail__title-wrap .sprucen-project-detail__summary {
        margin-top: 14px !important;
    }

    .single-sprucen_project .sprucen-project-detail__title-wrap.alignwide {
        margin-bottom: 31px !important;
    }
}

/* v1.2.34 — correct single-project intro scale on mobile only. */
@media (max-width: 781px) {
    .sprucen-project-detail__title-wrap .sprucen-project-detail__title {
        font-size: 1.45rem !important;
        font-weight: 200 !important;
        letter-spacing: -0.02em !important;
        line-height: 1.2 !important;
    }

    .sprucen-project-detail__title-wrap .sprucen-project-detail__summary {
        margin-top: 10px !important;
        font-size: 1.12rem !important;
        font-weight: 400 !important;
        line-height: 1.38 !important;
        letter-spacing: normal !important;
    }

    .single-sprucen_project .sprucen-project-detail__title-wrap.alignwide {
        margin-bottom: 24px !important;
    }
}

/* v1.2.35 — mobile project intro aligned to the standard Services page rhythm. */
@media (max-width: 781px) {
    /* Match the Services page's mobile content start rather than sitting tight to the header. */
    .single-sprucen_project .sprucen-project-detail__title-wrap.alignwide {
        box-sizing: border-box !important;
        width: calc(100% - 32px) !important;
        max-width: var(--wp--style--global--wide-size, 1368px) !important;
        margin: 34px auto 28px !important;
        padding: 0 !important;
    }

    /* Keep the project heading restrained, and let it use the complete card width. */
    .sprucen-project-detail__title-wrap .sprucen-project-detail__title {
        display: block !important;
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        font-size: 1.45rem !important;
        font-weight: 200 !important;
        line-height: 1.2 !important;
        letter-spacing: -0.02em !important;
    }

    /* Match the Services secondary heading: regular, larger and full-width. */
    .sprucen-project-detail__title-wrap .sprucen-project-detail__summary {
        display: block !important;
        width: 100% !important;
        max-width: none !important;
        margin: 22px 0 0 !important;
        font-size: 1.65rem !important;
        font-weight: 400 !important;
        line-height: 1.2 !important;
        letter-spacing: normal !important;
    }
}


/* v1.2.36 — desktop Projects listing: slightly taller cards and tighter intro-to-grid spacing. */
@media (min-width: 960px) {
    .sprucen-projects-grid {
        margin-top: 12px !important;
    }

    .sprucen-project-card__image-link {
        aspect-ratio: 5 / 4 !important;
    }

    .sprucen-project-card__body {
        min-height: 112px !important;
        padding-bottom: 20px !important;
    }
}


/* v1.2.37 — desktop Projects listing: taller cards with a deeper image area and tighter intro spacing. */
@media (min-width: 960px) {
    .sprucen-projects-grid {
        margin-top: -14px !important;
    }

    .sprucen-project-card__image-link {
        aspect-ratio: 8 / 7 !important;
    }

    .sprucen-project-card__body {
        min-height: 122px !important;
        padding-bottom: 22px !important;
    }
}


/* v1.2.38 — desktop Projects listing: favour the lower part of card photographs. */
@media (min-width: 960px) {
    .sprucen-project-card__image {
        object-position: center 62% !important;
    }
}


/* v1.2.39 — desktop Projects listing: relax the tall crop closer to the original card proportions. */
@media (min-width: 960px) {
    .sprucen-project-card__image-link {
        aspect-ratio: 5 / 4 !important;
    }

    .sprucen-project-card__image {
        object-position: center 58% !important;
    }
}

/* v1.2.40 — desktop Projects listing: show the complete prepared card image without vertical cropping. */
@media (min-width: 960px) {
    .sprucen-project-card__image-link {
        aspect-ratio: auto !important;
        height: auto !important;
        overflow: hidden;
    }

    .sprucen-project-card__image {
        display: block !important;
        width: 100% !important;
        height: auto !important;
        max-width: 100% !important;
        aspect-ratio: auto !important;
        object-fit: contain !important;
        object-position: center !important;
    }

    .sprucen-project-card__placeholder {
        aspect-ratio: 5 / 4 !important;
        height: auto !important;
    }
}


/* v1.2.41 — mobile Projects spacing and single-project intro width/scale. */
@media (max-width: 649px) {
    /* Bring the listing cards closer to the introductory copy. */
    .sprucen-projects-grid {
        margin-top: 8px !important;
    }
}

@media (max-width: 781px) {
    /* Match the intro's outer edges exactly to the mobile project card. */
    .single-sprucen_project .sprucen-project-detail__title-wrap.alignwide {
        box-sizing: border-box !important;
        width: calc(100vw - 44px) !important;
        max-width: calc(100vw - 44px) !important;
        margin-left: auto !important;
        margin-right: auto !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .sprucen-project-detail__title-wrap .sprucen-project-detail__title,
    .sprucen-project-detail__title-wrap .sprucen-project-detail__summary {
        width: 100% !important;
        max-width: none !important;
    }

    /* Keep the summary subordinate to the project title on phones. */
    .sprucen-project-detail__title-wrap .sprucen-project-detail__summary {
        margin-top: 10px !important;
        font-size: 1.05rem !important;
        font-weight: 400 !important;
        line-height: 1.4 !important;
        letter-spacing: normal !important;
    }
}

/* v1.2.42 — align the mobile single-project intro and card to the standard Projects page inset. */
@media (max-width: 781px) {
    /* Standard Sprucen pages use a 32px side inset on phones/tablets. */
    .single-sprucen_project .sprucen-project-detail__title-wrap.alignwide,
    .single-sprucen_project .sprucen-project-detail.alignwide {
        box-sizing: border-box !important;
        width: calc(100vw - 64px) !important;
        max-width: calc(100vw - 64px) !important;
    }

    .single-sprucen_project .sprucen-project-detail__title-wrap.alignwide {
        margin-left: auto !important;
        margin-right: auto !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}

@media (max-width: 600px) {
    /* The card is centred with the existing translate rule; only its outer width changes. */
    .single-sprucen_project .sprucen-project-detail.alignwide {
        width: calc(100vw - 64px) !important;
        max-width: calc(100vw - 64px) !important;
    }
}


/* v1.2.43 — mobile single-project vertical alignment with the Projects listing page. */
@media (max-width: 781px) {
    /* Remove the extra mobile-only top offset added to the individual project intro.
       The theme/page shell already supplies the standard page top spacing. */
    .single-sprucen_project .sprucen-project-detail__title-wrap.alignwide {
        margin-top: 0 !important;
    }
}


/* v1.2.44 — mobile single-project template spacing and media separation. */
@media (max-width: 781px) {
    /* Twenty Twenty-Five can add its own block padding/gap around Post Content on
       single post templates. Neutralise that only for Sprucen project pages, then
       apply the project intro spacing explicitly so it matches the main Projects page. */
    .single-sprucen_project main.wp-block-group,
    .single-sprucen_project main > .wp-block-group,
    .single-sprucen_project main .wp-block-post-content {
        margin-block-start: 0 !important;
        padding-block-start: 0 !important;
        padding-top: 0 !important;
    }

    .single-sprucen_project main .wp-block-group:has(> .wp-block-post-content) {
        margin-block-start: 0 !important;
        padding-block-start: 0 !important;
        padding-top: 0 !important;
    }

    .single-sprucen_project .sprucen-project-detail__title-wrap.alignwide {
        margin-top: 16px !important;
    }

    /* Give the before/after comparison clearer separation from the supporting
       images when the two media areas stack on phones/tablets. */
    .single-sprucen_project .sprucen-project-media .sprucen-project-compare {
        margin-bottom: 26px !important;
    }
}

/* v1.2.46 — match individual-project mobile top spacing to standard site pages. */
@media (max-width: 781px) {
    /* v1.2.44 intentionally stripped the Twenty Twenty-Five template spacing, but
       that placed the project title too close to the site header. Reintroduce a
       controlled project-only offset matching the Services page visual rhythm. */
    .single-sprucen_project .sprucen-project-detail__title-wrap.alignwide {
        margin-top: 72px !important;
    }
}

/* v1.2.46 — desktop project cards: remove stretched image wrappers at wide/zoomed-out viewports. */
@media (min-width: 960px) {
    /* Keep each card sized by its own content rather than stretching to a grid track. */
    .sprucen-projects-grid {
        align-items: start !important;
        grid-auto-rows: auto !important;
    }

    .sprucen-project-card {
        align-self: start !important;
        height: auto !important;
        min-height: 0 !important;
    }

    /* The link must collapse to the intrinsic image height. This prevents the
       blank stone-coloured bands that appeared when the browser was zoomed out. */
    .sprucen-project-card__image-link {
        display: block !important;
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        aspect-ratio: auto !important;
        flex: 0 0 auto !important;
        overflow: hidden !important;
        line-height: 0 !important;
        background: transparent !important;
    }

    /* Show the complete prepared image at its own ratio, with no cover crop and
       no centring inside a taller wrapper. */
    .sprucen-project-card__image {
        position: static !important;
        display: block !important;
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        margin: 0 !important;
        aspect-ratio: auto !important;
        object-fit: initial !important;
        object-position: initial !important;
        vertical-align: top !important;
    }

    /* The details panel should begin immediately after the image. */
    .sprucen-project-card__body {
        flex: 0 0 auto !important;
    }
}


/* v1.2.47 — reset the Projects listing to a simple responsive card grid.
   Three columns on desktop keeps each card at a useful size and removes the
   wide-card image experiments from v1.2.36–1.2.46. */
@media (min-width: 960px) {
    .sprucen-projects-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        align-items: start !important;
        grid-auto-rows: auto !important;
        gap: 18px !important;
    }

    .sprucen-project-card {
        align-self: start !important;
        height: auto !important;
        min-height: 0 !important;
    }

    /* Use the prepared website-card crop consistently instead of stretching
       a full-size portrait or landscape image into an oversized card. */
    .sprucen-project-card__image-link {
        display: block !important;
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        aspect-ratio: 5 / 4 !important;
        overflow: hidden !important;
        line-height: 0 !important;
        background: #E2E0D4 !important;
    }

    .sprucen-project-card__image,
    .sprucen-project-card__placeholder {
        display: block !important;
        width: 100% !important;
        height: 100% !important;
        min-height: 0 !important;
        max-height: none !important;
        margin: 0 !important;
        aspect-ratio: auto !important;
        object-fit: cover !important;
        object-position: center !important;
        vertical-align: top !important;
    }

    .sprucen-project-card__body {
        flex: 1 1 auto !important;
        min-height: 112px !important;
        padding: 15px 16px 18px !important;
    }
}

/* Tablet: two cards across. */
@media (min-width: 650px) and (max-width: 959px) {
    .sprucen-projects-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 16px !important;
    }
}

/* Phones: one card per row, as agreed for the simplified responsive grid. */
@media (max-width: 649px) {
    .sprucen-projects-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }
}

/* v1.2.48 — mobile individual project: image-led layout with a separate information card. */
.sprucen-project-detail__location--mobile {
    display: none;
}

.sprucen-project-detail__info-card {
    display: contents;
}

@media (max-width: 781px) {
    /* Put the location with the page introduction, immediately below the summary. */
    .single-sprucen_project .sprucen-project-detail__location--mobile {
        display: block !important;
        margin: 12px 0 0 !important;
        color: #44413D !important;
        font-size: .95rem !important;
        font-weight: 400 !important;
        letter-spacing: normal !important;
        line-height: 1.35 !important;
        text-transform: none !important;
    }

    .single-sprucen_project .sprucen-project-detail__header,
    .single-sprucen_project .sprucen-project-detail__location--desktop {
        display: none !important;
    }

    /* The article becomes a neutral layout wrapper on mobile so the photographs
       are no longer enclosed by the main card. */
    .single-sprucen_project .sprucen-project-detail__title-wrap.alignwide {
        margin-bottom: 18px !important;
    }

    .single-sprucen_project .sprucen-project-detail.alignwide {
        margin-top: 0 !important;
        overflow: visible !important;
        padding: 0 !important;
        background: transparent !important;
        border: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
    }

    .single-sprucen_project .sprucen-project-media {
        margin: 0 0 24px !important;
    }

    /* Only the written project information is held in a card beneath the imagery. */
    .single-sprucen_project .sprucen-project-detail__info-card {
        display: block !important;
        margin: 0 !important;
        padding: 20px 18px 22px !important;
        background: #FCFBF8 !important;
        border: 1px solid #E2E0D4 !important;
        border-radius: 10px !important;
        box-shadow: 0 6px 18px rgba(68, 65, 61, 0.06) !important;
    }

    .single-sprucen_project .sprucen-project-detail__facts {
        padding-top: 0 !important;
    }

    .single-sprucen_project .sprucen-project-detail__info-card > .sprucen-project-cta:last-child {
        margin-bottom: 0 !important;
    }
}


/* v1.2.49 — mobile location emphasis and natural scroll hand-off at gallery edges. */
@media (max-width: 781px) {
    /* Keep the existing mobile location size, but give it stronger emphasis. */
    .single-sprucen_project .sprucen-project-detail__location--mobile {
        font-size: .95rem !important;
        font-weight: 700 !important;
    }

    /* Allow normal scroll chaining to the page when the nested additional-image
       gallery reaches either its top or bottom edge. Earlier rules used
       overscroll-behavior: contain, which deliberately trapped the gesture. */
    .single-sprucen_project .sprucen-project-gallery--side .sprucen-project-gallery__grid {
        overscroll-behavior: auto !important;
        overscroll-behavior-y: auto !important;
    }
}

/* v1.2.50 — unify Projects page geometry and improve mobile card readability. */

/* Use one shared page inset for the single-project intro and content. The Projects
   listing itself inherits the normal WordPress page width, so this removes the old
   hard-coded 32px-per-side mobile inset that made individual projects look narrower. */
.single-sprucen_project .sprucen-project-detail__title-wrap.alignwide,
.single-sprucen_project .sprucen-project-detail.alignwide {
    box-sizing: border-box !important;
    width: calc(100% - 64px) !important;
    max-width: var(--wp--style--global--wide-size, 1368px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Keep the individual-project H1 on the same scale as the standard site page H1. */
.single-sprucen_project .sprucen-project-detail__title-wrap .sprucen-project-detail__title {
    font-size: 2.2rem !important;
    font-weight: 200 !important;
    letter-spacing: -0.03em !important;
    line-height: 1.2 !important;
}

@media (max-width: 781px) {
    /* Standard mobile page gutter: 16px each side, matching the Projects listing/header rhythm. */
    .single-sprucen_project .sprucen-project-detail__title-wrap.alignwide,
    .single-sprucen_project .sprucen-project-detail.alignwide {
        width: calc(100% - 32px) !important;
        max-width: calc(100% - 32px) !important;
    }

    .single-sprucen_project .sprucen-project-detail__title-wrap .sprucen-project-detail__title {
        font-size: 1.45rem !important;
        font-weight: 200 !important;
        letter-spacing: -0.02em !important;
        line-height: 1.2 !important;
    }
}

/* Mobile Projects listing: make the information panel easier to read and give
   each item more breathing room. */
@media (max-width: 649px) {
    .sprucen-projects-grid {
        gap: 26px !important;
    }

    .sprucen-project-card__body {
        padding: 18px 16px 20px !important;
    }

    .sprucen-project-card__location {
        margin-bottom: 7px !important;
        font-size: .75rem !important;
        font-weight: 600 !important;
        line-height: 1.3 !important;
        letter-spacing: .06em !important;
    }

    .sprucen-project-card__title {
        margin-bottom: 16px !important;
        font-size: 1.12rem !important;
        font-weight: 600 !important;
        line-height: 1.3 !important;
    }

    .sprucen-project-card__link {
        font-size: .98rem !important;
        line-height: 1.3 !important;
    }
}


/* v1.2.52 — keep desktop unchanged; apply the latest geometry refinements on mobile only. */
@media (max-width: 781px) {
    /* The WordPress mobile content shell already supplies the site gutter. Avoid
       adding a second inset inside individual project pages. */
    .single-sprucen_project .sprucen-project-detail__title-wrap.alignwide,
    .single-sprucen_project .sprucen-project-detail.alignwide {
        box-sizing: border-box !important;
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}

@media (max-width: 649px) {
    /* Bring the first project card a little closer to the introductory copy. */
    .sprucen-projects-grid {
        margin-top: 0 !important;
    }

    /* Shorten listing cards on phones only. Keep the top of each prepared image
       visible and trim a small amount from the bottom. */
    .sprucen-project-card__image-link {
        aspect-ratio: 4 / 3 !important;
        overflow: hidden !important;
    }

    .sprucen-project-card__image,
    .sprucen-project-card__placeholder {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: center top !important;
    }
}


/* v1.2.53 — two-column Projects listing on phones.
   Keep tablet and desktop layouts unchanged. The narrower mobile cards use a
   portrait image frame so prepared images no longer read as landscape. */
@media (max-width: 649px) {
    .sprucen-projects-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 18px 14px !important;
        margin-top: 0 !important;
        align-items: start !important;
    }

    .sprucen-project-card {
        min-width: 0 !important;
        height: 100% !important;
    }

    .sprucen-project-card__image-link {
        aspect-ratio: 4 / 5 !important;
        overflow: hidden !important;
    }

    .sprucen-project-card__image,
    .sprucen-project-card__placeholder {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: center !important;
    }

    .sprucen-project-card__body {
        min-height: 0 !important;
        padding: 15px 13px 17px !important;
    }

    .sprucen-project-card__location {
        margin-bottom: 6px !important;
        font-size: .72rem !important;
        line-height: 1.25 !important;
    }

    .sprucen-project-card__title {
        margin-bottom: 14px !important;
        font-size: 1.04rem !important;
        line-height: 1.28 !important;
    }

    .sprucen-project-card__link {
        font-size: .94rem !important;
        line-height: 1.25 !important;
    }
}

/* v1.2.55 — compact inline location marker and project-intro alignment. */

/* Keep the location marker on the same line as its text and scale it to the
   surrounding type. The SVG also has small intrinsic dimensions in the markup
   as a safe fallback if the stylesheet is delayed. */
.sprucen-location-label {
    display: inline-flex;
    align-items: center;
    gap: .34em;
    max-width: 100%;
    color: inherit;
    vertical-align: baseline;
}

.sprucen-location-pin {
    display: inline-flex;
    width: .62em;
    height: 1em;
    flex: 0 0 .62em;
    align-items: center;
    justify-content: center;
    color: inherit;
    line-height: 1;
}

.sprucen-location-pin svg {
    display: block;
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.sprucen-location-text {
    display: inline-block;
    min-width: 0;
}

/* Match the individual-project introduction to the Projects-page hierarchy. */
.single-sprucen_project .sprucen-project-detail__title-wrap .sprucen-project-detail__title {
    font-size: 2.1rem !important;
    font-weight: 200 !important;
    letter-spacing: -0.025em !important;
    line-height: 1.2 !important;
}

.single-sprucen_project .sprucen-project-detail__title-wrap .sprucen-project-detail__summary {
    margin: 18px 0 0 !important;
    font-size: 1em !important;
    font-weight: 400 !important;
    line-height: 1.5 !important;
    letter-spacing: normal !important;
}

@media (max-width: 781px) {
    .single-sprucen_project .sprucen-project-detail__title-wrap .sprucen-project-detail__title {
        font-size: 1.45rem !important;
        font-weight: 200 !important;
        letter-spacing: -0.02em !important;
        line-height: 1.2 !important;
    }

    .single-sprucen_project .sprucen-project-detail__title-wrap .sprucen-project-detail__summary {
        margin-top: 16px !important;
        font-size: 1em !important;
        font-weight: 400 !important;
        line-height: 1.5 !important;
    }
}


/* v1.2.56 — teardrop location marker in Sprucen deep sage. */
.sprucen-location-pin {
    width: .72em;
    height: 1em;
    flex: 0 0 .72em;
    color: #53584C;
}

.sprucen-location-pin svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}


/* v1.2.57 — make the location pin easier to recognise without changing row spacing. */
.sprucen-location-pin {
    overflow: visible;
}

.sprucen-location-pin svg {
    transform: scale(1.16);
    transform-origin: center;
}


/* v1.2.58 — refine the map pin into a slimmer, taller teardrop without changing location-row spacing. */
.sprucen-location-pin {
    width: .66em;
    height: 1em;
    flex: 0 0 .66em;
    overflow: visible;
}

.sprucen-location-pin svg {
    width: 100%;
    height: 100%;
    transform: scaleX(.94) scaleY(1.18);
    transform-origin: center;
}

/* v1.2.59 — restore the rounded teardrop pin, slightly enlarge it, and tighten the icon/text gap. */
.sprucen-location-label {
    gap: .3rem;
}

.sprucen-location-pin {
    width: .72em;
    height: 1em;
    flex: 0 0 .72em;
    overflow: visible;
    color: #53584C;
}

.sprucen-location-pin svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
    transform: scale(1.12);
    transform-origin: center;
}

/* v1.2.60 — make the individual-project intro use the same typography as
   the heading and introductory paragraph on the main Projects page. */
.single-sprucen_project .sprucen-project-detail__title-wrap .sprucen-project-detail__title {
    margin: 0 !important;
    color: #44413D !important;
    font-family: inherit !important;
    font-size: 2.2rem !important;
    font-weight: 200 !important;
    font-style: normal !important;
    letter-spacing: normal !important;
    line-height: 1.2 !important;
    text-transform: uppercase !important;
}

.single-sprucen_project .sprucen-project-detail__title-wrap .sprucen-project-detail__summary {
    margin: 18px 0 0 !important;
    max-width: none !important;
    color: #44413D !important;
    font-family: inherit !important;
    font-size: 1rem !important;
    font-weight: 400 !important;
    font-style: normal !important;
    letter-spacing: normal !important;
    line-height: 1.5 !important;
}

/* Keep the established mobile scale, but use the same weight, tracking and
   paragraph treatment so the hierarchy remains consistent on phones. */
@media (max-width: 781px) {
    .single-sprucen_project .sprucen-project-detail__title-wrap .sprucen-project-detail__title {
        font-size: 1.45rem !important;
        font-weight: 200 !important;
        letter-spacing: normal !important;
        line-height: 1.2 !important;
    }

    .single-sprucen_project .sprucen-project-detail__title-wrap .sprucen-project-detail__summary {
        margin-top: 18px !important;
        font-size: 1rem !important;
        font-weight: 400 !important;
        letter-spacing: normal !important;
        line-height: 1.5 !important;
    }
}


/* v1.2.61 — mobile-only: match the individual-project intro directly to the
   Projects listing intro shown on phones. Desktop/tablet desktop rules above
   are deliberately left unchanged. */
@media (max-width: 781px) {
    /* The Projects page heading starts a few pixels higher than the individual
       project intro in the reference screenshots. */
    .single-sprucen_project .sprucen-project-detail__title-wrap.alignwide {
        margin-top: 70px !important;
    }

    /* Match the mobile PROJECTS heading: restrained extra-light uppercase type. */
    .single-sprucen_project .sprucen-project-detail__title-wrap .sprucen-project-detail__title {
        margin: 0 !important;
        color: #44413D !important;
        font-family: inherit !important;
        font-size: 1.4rem !important;
        font-weight: 200 !important;
        font-style: normal !important;
        letter-spacing: normal !important;
        line-height: 1.2 !important;
        text-transform: uppercase !important;
    }

    /* Match the mobile Projects-page introductory paragraph. */
    .single-sprucen_project .sprucen-project-detail__title-wrap .sprucen-project-detail__summary {
        display: block !important;
        width: 100% !important;
        max-width: none !important;
        margin: 18px 0 0 !important;
        color: #44413D !important;
        font-family: inherit !important;
        font-size: 1.125rem !important;
        font-weight: 400 !important;
        font-style: normal !important;
        letter-spacing: normal !important;
        line-height: 1.5 !important;
    }
}


/* v1.2.62 — mobile-only: match the individual-project summary to the
   Projects-page introductory paragraph shown in the supplied mobile reference.
   The previous rule used regular/400; the site paragraph treatment is lighter. */
@media (max-width: 781px) {
    .single-sprucen_project .sprucen-project-detail__title-wrap .sprucen-project-detail__summary {
        font-family: inherit !important;
        font-size: 1.125rem !important;
        font-weight: 300 !important;
        font-style: normal !important;
        letter-spacing: normal !important;
        line-height: 1.5 !important;
        color: #44413D !important;
    }
}


/* v1.2.63 — mobile-only: add a little more breathing room between the project summary and location row. */
@media (max-width: 781px) {
    .single-sprucen_project .sprucen-project-detail__location--mobile {
        margin-top: 22px !important;
    }
}

/* v1.2.66 — mobile gallery edge hand-off.
   Keep the additional-image gallery scrollable, but do not trap page scrolling
   when the nested scroller reaches its first or final row (including an odd,
   one-image final row). */
@media (max-width: 781px) {
    .single-sprucen_project .sprucen-project-gallery--side .sprucen-project-gallery__grid {
        overscroll-behavior: auto !important;
        overscroll-behavior-y: auto !important;
        scroll-snap-type: none !important;
        touch-action: pan-y !important;
    }

    .single-sprucen_project .sprucen-project-gallery--side .sprucen-project-gallery__item {
        scroll-snap-align: none !important;
        scroll-snap-stop: normal !important;
    }

    .single-sprucen_project .sprucen-project-gallery--side .sprucen-project-gallery__grid.is-sprucen-scroll-handoff {
        overflow-y: hidden !important;
    }
}

/* Before / After tab spacing above the main photograph. */
@media (max-width: 781px) {
    .sprucen-project-compare__controls {
        margin-bottom: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sprucen-project-compare__selection {
        transition: none;
    }
}

/* v1.2.71 — a shared left edge and calmer project-introduction spacing. */
.single-sprucen_project .sprucen-project-detail__title-wrap,
.single-sprucen_project .sprucen-project-detail__summary,
.single-sprucen_project .sprucen-project-detail__location {
    text-align: left !important;
}

.single-sprucen_project .sprucen-project-detail__location {
    font-weight: 500 !important;
    text-transform: uppercase !important;
}

.single-sprucen_project .sprucen-project-media--comparison {
    row-gap: 12px !important;
}

@media (min-width: 782px) {
    .single-sprucen_project .sprucen-project-detail__header {
        margin: 0 0 18px !important;
    }

    .single-sprucen_project .sprucen-project-detail__location--desktop {
        margin: 0 !important;
    }
}

@media (max-width: 781px) {
    .single-sprucen_project .sprucen-project-detail__title-wrap .sprucen-project-detail__summary {
        margin: 18px 0 0 !important;
        font-size: 1rem !important;
        line-height: 1.5 !important;
    }

    .single-sprucen_project .sprucen-project-detail__location--mobile {
        margin: 18px 0 0 !important;
    }

    .single-sprucen_project .sprucen-project-detail__title-wrap.alignwide {
        margin-bottom: 18px !important;
    }

    .single-sprucen_project .sprucen-project-detail.alignwide {
        margin-top: 0 !important;
    }
}

/* v1.2.72 — the approved compact phone listing.
   Equal flexible tracks let longer titles or enlarged text increase every
   card's height together. Absolute photographs cannot size the grid tracks. */
@media (max-width: 649px) {
    .sprucen-projects-grid {
        grid-template-columns: minmax(0, 1fr) !important;
        grid-auto-rows: minmax(11.25rem, 1fr) !important;
        gap: 14px !important;
        align-items: stretch !important;
    }

    .sprucen-projects-grid .sprucen-project-card {
        position: relative;
        display: grid !important;
        grid-template-columns: 39% minmax(0, 1fr);
        grid-template-rows: auto;
        gap: 0;
        height: 100% !important;
        min-height: 0 !important;
        padding: 0 !important;
        align-self: stretch !important;
    }

    .sprucen-projects-grid .sprucen-project-card__image-link {
        position: relative;
        grid-column: 1;
        grid-row: 1;
        width: 100% !important;
        height: 100% !important;
        min-width: 0;
        min-height: 0;
        aspect-ratio: auto !important;
        border-radius: 0 !important;
        overflow: hidden !important;
    }

    .sprucen-projects-grid .sprucen-project-card__image,
    .sprucen-projects-grid .sprucen-project-card__placeholder {
        position: absolute;
        inset: 0;
        width: 100% !important;
        height: 100% !important;
        border-radius: 0 !important;
        object-fit: cover !important;
        object-position: center !important;
    }

    .sprucen-projects-grid .sprucen-project-card__body {
        position: static !important;
        grid-column: 2;
        grid-row: 1;
        min-width: 0;
        min-height: 0 !important;
        padding: 17px 13px 7px !important;
        border-radius: 0 !important;
    }

    .sprucen-projects-grid .sprucen-project-card__location {
        margin: 0 0 8px !important;
        font-size: .6875rem !important;
        font-weight: 500 !important;
        line-height: 1.3 !important;
        letter-spacing: .025em !important;
    }

    .sprucen-projects-grid .sprucen-project-card__title {
        position: static !important;
        margin: 0 !important;
        font-size: 1.1875rem !important;
        font-weight: 500 !important;
        line-height: 1.3 !important;
        letter-spacing: -.015em !important;
        overflow-wrap: anywhere;
    }

    /* The existing title anchor remains a normal project link. Its transparent
       hit area covers the photograph, text and remaining card space. */
    .sprucen-projects-grid .sprucen-project-card__title a {
        position: static !important;
    }

    .sprucen-projects-grid .sprucen-project-card__title a::after {
        content: "";
        position: absolute;
        inset: 0;
        z-index: 2;
    }

    .sprucen-projects-grid .sprucen-project-card__link {
        margin-top: auto !important;
        margin-bottom: 12px !important;
        padding: 0 0 3px !important;
        font-size: .875rem !important;
        font-weight: 400 !important;
        line-height: 1.3 !important;
        letter-spacing: normal !important;
    }
}

@media (max-width: 400px) {
    .sprucen-projects-grid .sprucen-project-card__body {
        padding: 15px 11px 7px !important;
    }

    .sprucen-projects-grid .sprucen-project-card__title {
        font-size: 1.0625rem !important;
    }
}

/* v1.2.73 — the approved mobile project introduction.
   The location and comparison pill share one transparent row above the photo.
   The existing desktop location remains in its established header. */
.single-sprucen_project .sprucen-project-detail__location--comparison {
    display: none;
}

@media (max-width: 781px) {
    .single-sprucen_project .sprucen-project-detail__title-wrap .sprucen-project-detail__summary {
        margin: 14px 0 0 !important;
    }

    .single-sprucen_project .sprucen-project-detail__title-wrap.alignwide {
        margin-bottom: 20px !important;
    }

    .single-sprucen_project .sprucen-project-compare__controls {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        width: 100%;
        margin: 0 0 12px !important;
        padding: 0;
        background: transparent;
        border: 0;
        box-shadow: none;
    }

    .single-sprucen_project .sprucen-project-detail__location--comparison {
        display: block !important;
        flex: 1 1 6rem;
        min-width: 0;
        max-width: 100%;
        margin: 0 !important;
        color: #53584C !important;
        font-size: 1rem !important;
        font-weight: 500 !important;
        letter-spacing: normal !important;
        line-height: 1.35 !important;
        text-transform: uppercase !important;
    }

    .single-sprucen_project .sprucen-project-detail__location--comparison .sprucen-location-pin {
        width: .75em;
        height: 1.125em;
        flex: 0 0 .75em;
    }

    .single-sprucen_project .sprucen-project-detail__location--comparison .sprucen-location-label {
        gap: .3rem;
    }

    .single-sprucen_project .sprucen-project-detail__location--comparison .sprucen-location-text {
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .single-sprucen_project .sprucen-project-compare__tabs {
        flex: 0 0 auto;
        width: 132px;
        max-width: 100%;
        margin-left: auto;
        padding: 3px;
        border: 0 !important;
        background: #E7E2D9;
    }

    .single-sprucen_project .sprucen-project-compare__selection {
        top: 3px;
        bottom: 3px;
        left: 3px;
        width: calc((100% - 6px) / 2);
        background: #53584C;
    }

    .single-sprucen_project .sprucen-project-compare__tabs .sprucen-project-compare__tab {
        min-height: 38px;
        padding: 0 7px;
        color: #53584C !important;
        font-size: .8125rem;
        font-weight: 400;
        line-height: 1.2;
    }

    .single-sprucen_project .sprucen-project-compare__tabs .sprucen-project-compare__tab[aria-selected="true"] {
        color: #F5F2EC !important;
        font-weight: 400;
    }

    .single-sprucen_project .sprucen-project-compare__stage {
        border-radius: 10px;
    }
}

@media (max-width: 781px) and (pointer: coarse) {
    .single-sprucen_project .sprucen-project-compare__tabs .sprucen-project-compare__tab {
        min-height: 44px;
    }
}
