@media (min-width: 1025px) {
    body.paintivo-site .hdr .mega[data-pv-four-service-columns] {
        max-height: var(--pv-original-mega-room, calc(100dvh - 135px));
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior-y: contain;
    }

    body.paintivo-site .hdr .mega[data-pv-four-service-columns] .pv-desktop-service-columns {
        display: grid !important;
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
        align-items: start;
    }

    body.paintivo-site .hdr .mega[data-pv-four-service-columns] .pv-desktop-service-columns > * {
        min-width: 0;
    }

}

@media (min-width: 1025px) {
    .paintivo-site .hdr .mega[data-pv-four-service-columns] .mi:not(:hover):not(:focus-visible) {
        background: transparent !important;
    }
    .paintivo-site .hdr .mega[data-pv-four-service-columns] .mi:is(:hover, :focus-visible) {
        background: var(--cream2, #f8f6f2) !important;
    }
    .paintivo-site .mega .pv-menu-short-copy,
    .paintivo-site .mega .mi > :last-child {
        min-width: 0;
    }
    .paintivo-site .mega .pv-menu-short-copy > :is(b, strong, span) {
        display: block;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .paintivo-site .ftr ul li {
        padding-block-end: 3px;
    }
    .paintivo-site .ftr a:is(:hover, :focus-visible) {
        color: #f2b89e !important;
    }
}
.paintivo-site .ftr .social a.pv-footer-instagram {
    display: inline-flex;
    width: auto !important;
    height: auto !important;
    align-items: center;
    gap: 10px;
    border: 0;
    background: transparent;
    color: inherit;
    text-decoration: none;
}
.paintivo-site .ftr .social a.pv-footer-instagram > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px !important;
    height: 18px !important;
    padding: 0;
    border: 0 !important;
    background: transparent !important;
    color: inherit;
}
.paintivo-site .ftr .social a.pv-footer-instagram :is(img, svg) {
    width: 18px !important;
    height: 18px !important;
    object-fit: contain;
}
.paintivo-site .ftr .social a.pv-footer-instagram > .pv-instagram-label {
    width: auto !important;
    height: auto !important;
    font: inherit;
}

@media (min-width: 1025px) {
    body.paintivo-site .hdr .mega[data-pv-four-service-columns].pv-menu-open {
        box-sizing: border-box;
        height: var(--pv-original-mega-room, calc(100dvh - 135px)) !important;
        background-color: #fff;
    }
    body.paintivo-site .hdr .pv-desktop-service-columns > div > .mi + .mi {
        margin-block-start: 6px;
    }
}

/* The home page's featured Services collection has six original cards. */
.paintivo-site main .elementor-element-5f1085df > :nth-child(n+7),
.paintivo-site main [data-id="5f1085df"] > :nth-child(n+7) {
    display: none !important;
}

#paintivo-main.pv-service-expansion .pv-readable-heading { color: #fff !important }
#paintivo-main.pv-service-expansion .pv-comparison-photo {
    position: relative; overflow: hidden;
    height: clamp(270px, 36vw, 560px);
}
#paintivo-main.pv-service-expansion .pv-comparison-photo img {object-fit:cover}
#paintivo-main.pv-service-expansion .pv-comparison-handle {
    position:absolute; top:50%; left:var(--pv-handle-x,50%); transform:translate(-50%,-50%);
    width:42px;height:42px;border-radius:50%;display:grid;place-items:center;
    color:#37261c;background:white;box-shadow:0 1px 5px #0005;
    pointer-events:none;z-index:5;font:600 19px/1 Inter,sans-serif;
}
#paintivo-main.pv-service-expansion .pv-comparison-photo::after {
    content:'';position:absolute;inset:0 auto 0 var(--pv-handle-x,50%);
    width:2px;background:#fffd;pointer-events:none;z-index:4;
}
#paintivo-main.pv-service-expansion .pv-comparison-photo input[type=range] {
    position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;z-index:6;cursor:ew-resize;
}
#paintivo-main.pv-service-expansion .pv-comparison-photo:focus-within {outline:2px solid var(--brand);outline-offset:2px}
#paintivo-main.pv-service-expansion :is(#hero-image,#photo-large,#gallery-large,.wall-photo) {object-fit:contain}
#paintivo-main.pv-service-expansion .section:has(#type) :is(form,div):has(>label select) {align-self:start;align-content:start;height:auto}
#paintivo-main.pv-service-expansion .tile:has(>.tile-action) {display:flex;flex-direction:column;align-items:flex-start}
#paintivo-main.pv-service-expansion .tile>.tile-action {margin-top:auto}
#paintivo-main.pv-service-expansion :is(#position-display,#scale-display,#height-display) {font-variant-numeric:tabular-nums}

/* Vertical spacing for the five interactive service pages. */
#paintivo-main.pv-service-expansion.pv-service-spacing {
    --pv-section-space: clamp(42px, 5vw, 68px);
    --pv-panel-space: clamp(16px, 2vw, 24px);
    --pv-control-gap: 12px;
}

#paintivo-main.pv-service-expansion.pv-service-spacing :is(.section, .cta-section) {
    padding-block: var(--pv-section-space);
}

#paintivo-main.pv-service-expansion.pv-service-spacing .section .head {
    margin-block-end: clamp(20px, 2.4vw, 32px);
}

#paintivo-main.pv-service-expansion.pv-service-spacing :is(.section, .cta-section) .wrap > * + :is(details, .actions, .grid, form, .section-foot) {
    margin-block-start: 16px;
}

#paintivo-main.pv-service-expansion.pv-service-spacing :is(.hero-content, .section, .cta-section) .actions {
    flex-wrap: wrap;
    gap: var(--pv-control-gap);
    margin-block-start: 16px;
}

#paintivo-main.pv-service-expansion.pv-service-spacing .section .tile {
    padding-block: var(--pv-panel-space);
    row-gap: 10px;
}

#paintivo-main.pv-service-expansion.pv-service-spacing .section .tile > .tile-action {
    padding-block-start: 8px;
}

#paintivo-main.pv-service-expansion.pv-service-spacing :is(.section, .cta-section) :is(form, #brief-form) {
    row-gap: 16px;
    column-gap: var(--pv-control-gap);
}

#paintivo-main.pv-service-expansion.pv-service-spacing :is(.section, .cta-section) label > :is(select, input:not([type="checkbox"], [type="radio"]), textarea) {
    margin-block-start: 6px;
}

#paintivo-main.pv-service-expansion.pv-service-spacing :is(.section, .cta-section) p + :is(.btn, button, .tile-action, .brief-actions) {
    margin-block-start: 12px;
}

#paintivo-main.pv-service-expansion.pv-service-spacing :is(.scan-options, .brief-actions, :has(> button[data-choice] + button[data-choice]), :has(> button[data-phases] + button[data-phases])) {
    gap: var(--pv-control-gap);
}

#paintivo-main.pv-service-expansion.pv-service-spacing [id="workbench"] :is(button[data-use-style], button[data-save-recipe]),
#paintivo-main.pv-service-expansion.pv-service-spacing :is(#copy-brief, #copy-scope) {
    margin-block-end: 8px;
}
