.logo-before-after-wrapper{
    padding-top:var(--block-margin-t);
}
/* Outer wrapper controls width + labels */
.bid-ba-wrap {
    --bid-width: 100%;
    position: relative;
    width: var(--bid-width);
    margin-inline: auto;
}

/* Before/After tags live on wrapper so they’re never clipped */
.bid-ba-wrap::before,
.bid-ba-wrap::after {
    position: absolute;
    z-index: 5;
    top: -5rem;
    color: #fff;
    border-radius: 999px;
    font-size:3rem;
    pointer-events: none;
    content: '';
}
.bid-ba-wrap::before { content: attr(data-bid-label-before); left: 12px; }
.bid-ba-wrap::after  { content: attr(data-bid-label-after);  right: 12px; }

/* Slider container (with clipping & rounded corners) */
.bid-ba {
    --bid-pos: 50;
    position: relative;
    display: block;
    overflow: hidden;        /* clips handle + images */
    border-radius: 80px;
    aspect-ratio: 163 / 125;
    background: #111;
    width: 100%;
    touch-action: pan-y;
    box-shadow: 0 12px 90px rgb(0 0 0 / 66%);
    border: 4px solid #ef4b3a;
}
@supports (overscroll-behavior: contain) {
    .bid-ba { overscroll-behavior-x: contain; }
}

/* Images */
.bid-ba__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.bid-ba__img--before {
    clip-path: polygon(0 0, var(--bid-pos) 0, var(--bid-pos) 100%, 0 100%);
    background-color:#e3f0d7;
}

/* Range input overlay */
.bid-ba__range {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    appearance: none;
    background: none;
    cursor: ew-resize;
    color: transparent;
    border: none;
}
.bid-ba__range::-webkit-slider-thumb { appearance: none; width: 1px; height: 100%; }
.bid-ba__range::-moz-range-thumb     { width: 1px; height: 100%; border: 0; background: transparent; }
.bid-ba__range::-ms-thumb            { width: 1px; height: 100%; }

/* Custom handle clipped inside .bid-ba */
.bid-ba__handle {
    position: absolute;
    top: 50%;
    left: var(--bid-pos);        /* will now be "50%" instead of "50" */
    transform: translate(-50%, -50%);
    height: 100%;                /* fills container height */
    aspect-ratio: 225 / 1074;    /* preserve SVG ratio */
    background: url('https://a3x.co/wp-content/uploads/2025/08/bid-handle-grad.svg') no-repeat center/cover;
    pointer-events: none;
}
.bid-a-img{
    width:43%;
    height:auto;
    margin-left:var(--block-margin-l);
}
.logo-blurb-carousel-wrapper{
    margin-bottom;
    margin-top: var(--block-margin-t);
    margin-bottom: 21%;
}

.logo-blurb-wrapper{
    background: url('https://a3x.co/wp-content/uploads/2025/10/Bid-ba-carousel-bg.svg') no-repeat center/contain;
    height:auto;
    width:100%;
    background-size: 100% auto;
    margin-top: -127%;
    padding-top: 136%;
}
.logo-blurb-title{
    color: #738167;
    font-size: var(--text-size-subtitle);
    font-weight:600;
    margin-top: 13%;
    margin-left:var(--block-margin-l);
    margin-bottom:var(--text-margin);
    line-height:1.2;
    margin-right: var(--block-margin-r);
    background: #363d2f6b;
    padding: 7%;
    border-radius: 80px;
    border: 3px solid #738167;
}
.logo-blurb-text-highight{
    color:var(--main-text-color1);
}
.logo-blurb-text-highight2{
    color: #e67e29;
}
.logo-blurb-text-highight3{
    color:var(--main-text-color1);
}
.logo-blurb-subtitle-wrapper{
    display:flex;
    flex-direction:row;
    flex-shrink: 0;
    align-items: center;
    margin-left: var(--block-margin-l);
    margin-right: var(--block-margin-r);
    margin-bottom: var(--block-margin-l);
    margin-top: var(--block-margin-l);
    padding: 3% 4%;
    background: linear-gradient(72deg, rgb(255 235 196 / 0%), rgb(126 116 108 / 28%), rgb(38 27 19), rgb(0 0 0 / 29%));
    border: 4px solid #4a433d;
    border-radius: 80px;
}

.logo-blurb-subtitle-icon{
    width: 12%;
    height: auto;
    margin-right:5%;
}
.logo-blurb-subtitle{
    font-size:46px;
    color: #a1906e;
    font-weight: 500;
    background: linear-gradient(55deg, rgb(255, 235, 196), rgb(147 135 123) 60%, rgb(126 95 69), rgb(253 138 46), rgb(227, 240, 215));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}
@media(min-width:1024px){
    .logo-before-after-wrapper{
        padding-top: 0;
    }
    /* Outer wrapper controls width + labels */
    .bid-ba-wrap {
        --bid-width: 100%;
        position: relative;
        width: 43rem;
        margin: 5rem 0 0 0;
    }

    /* Before/After tags live on wrapper so they’re never clipped */
    .bid-ba-wrap::before,
    .bid-ba-wrap::after {
        position: absolute;
        z-index: 5;
        top: -5rem;
        color: #e3f0d7;
        border-radius: 999px;
        font-size: 3rem;
        pointer-events: none;
        content: '';
        font-weight: var(--font-weight-desc);
    }
    .bid-ba-wrap::before { content: attr(data-bid-label-before); left: 12px; }
    .bid-ba-wrap::after  { content: attr(data-bid-label-after);  right: 12px; }

    /* Slider container (with clipping & rounded corners) */
    .bid-ba {
        --bid-pos: 50;
        position: relative;
        display: block;
        overflow: hidden;        /* clips handle + images */
        border-radius: 80px;
        aspect-ratio: 163 / 125;
        background: #111;
        width: 100%;
        touch-action: pan-y;
        box-shadow: 0 12px 90px rgb(0 0 0 / 66%);
        border: 4px solid #ef4b3a;
    }
    @supports (overscroll-behavior: contain) {
        .bid-ba { overscroll-behavior-x: contain; }
    }

    /* Images */
    .bid-ba__img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    .bid-ba__img--before {
        clip-path: polygon(0 0, var(--bid-pos) 0, var(--bid-pos) 100%, 0 100%);
        background-color:#e3f0d7;
    }

    /* Range input overlay */
    .bid-ba__range {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        margin: 0;
        appearance: none;
        background: none;
        cursor: ew-resize;
        color: transparent;
        border: none;
    }
    .bid-ba__range::-webkit-slider-thumb { appearance: none; width: 1px; height: 100%; }
    .bid-ba__range::-moz-range-thumb     { width: 1px; height: 100%; border: 0; background: transparent; }
    .bid-ba__range::-ms-thumb            { width: 1px; height: 100%; }

    /* Custom handle clipped inside .bid-ba */
    .bid-ba__handle {
        position: absolute;
        top: 50%;
        left: var(--bid-pos);        /* will now be "50%" instead of "50" */
        transform: translate(-50%, -50%);
        height: 100%;                /* fills container height */
        aspect-ratio: 225 / 1074;    /* preserve SVG ratio */
        background: url('https://a3x.co/wp-content/uploads/2025/08/bid-handle-grad.svg') no-repeat center/cover;
        pointer-events: none;
    }
    .bid-a-img{
        width:43%;
        height:auto;
        margin-left:var(--block-margin-l);
    }
    .logo-blurb-carousel-wrapper{
        margin-bottom;
        margin-top: var(--block-margin-t);
        margin-bottom: 21%;
    }

    .logo-blurb-wrapper{
        background:none; /*change for desktop bg*/
        height:auto;
        width:100%;
        background-size: 100% auto;
        margin-top: 7%;
        padding-top: 0;
    }
    .logo-blurb-title{
        color: #738167;
        font-size: 2rem;
        font-weight:600;
        margin-top: 0;
        margin-left: 0;
        margin-bottom: 0;
        line-height:1.2;
        margin-right: 0;
        background: #363d2f6b;
        padding: 7%;
        border-radius: 80px;
        border: 4px solid #738167;
    }
    .logo-blurb-text-highight{
        color:var(--main-text-color1);
    }
    .logo-blurb-text-highight2{
        color: #e67e29;
    }
    .logo-blurb-text-highight3{
        color:var(--main-text-color1);
    }
    .logo-blurb-subtitle-wrapper{
        display:flex;
        flex-direction:row;
        flex-shrink: 0;
        align-items: center;
        margin-left: 0;
        margin-right: 0;
        margin-bottom: 0;
        margin-top: var(--block-margin-l);
        padding: 3% 4%;
        background: linear-gradient(72deg, rgb(255 235 196 / 0%), rgb(126 116 108 / 28%), rgb(38 27 19), rgb(0 0 0 / 29%));
        border: 4px solid #4a433d;
        border-radius: 80px;
    }

    .logo-blurb-subtitle-icon{
        width: 12%;
        height: auto;
        margin-right:5%;
    }
    .logo-blurb-subtitle{
        font-size: 2rem;
        color: #a1906e;
        font-weight: 500;
        background: linear-gradient(55deg, rgb(255, 235, 196), rgb(147 135 123) 60%, rgb(126 95 69), rgb(253 138 46), rgb(227, 240, 215));
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        color: transparent;
    }
}