@charset "UTF-8";

/* =========================================================
   BOOTS TREE & FENCE
   GALLERY HERO
========================================================= */

:root {
    --btf-gallery-hero-bottom-height: 76px;
}


/* =========================================================
   HERO STRUCTURE
========================================================= */

.btf-gallery-hero {
    position: relative;
    isolation: isolate;

    width: 100%;
    height: 100vh;
    height: 100svh;
    min-height: 0;
    padding-top: var(--btf-header-height);

    overflow: hidden;

    color: var(--btf-white);
    background-color: var(--btf-forest-950);

    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='84' height='84' viewBox='0 0 84 84'%3E%3Cpath d='M0 83.5H84M83.5 0V84' fill='none' stroke='%23FFFFFF' stroke-opacity='.025'/%3E%3Ccircle cx='0' cy='0' r='1.2' fill='%23C66A32' fill-opacity='.12'/%3E%3C/svg%3E");

    background-repeat: repeat;
    background-size: 84px 84px;
}


/* =========================================================
   RIGHT-SIDE IMAGE
========================================================= */

.btf-gallery-hero__visual {
    --btf-gallery-image-x: 0px;
    --btf-gallery-image-y: 0px;

    position: absolute;
    top: var(--btf-header-height);
    right: 0;
    bottom: 0;
    left: 52%;
    z-index: -3;

    overflow: hidden;

    background-color: var(--btf-forest-900);
}

.btf-gallery-hero__visual img {
    width: calc(100% + 24px);
    max-width: none;
    height: calc(100% + 24px);

    object-fit: cover;
    object-position: center;

    filter:
        saturate(0.82)
        contrast(1.04);

    transform:
        translate(
            calc(-12px + var(--btf-gallery-image-x)),
            calc(-12px + var(--btf-gallery-image-y))
        )
        scale(1.035);

    transition:
        transform 900ms var(--btf-ease-standard);

    will-change: transform;
}

.btf-gallery-hero__visual-overlay {
    position: absolute;
    inset: 0;

    background-color: rgba(8, 24, 16, 0.23);

    pointer-events: none;
}


/* =========================================================
   DECORATIVE ELEMENTS
========================================================= */

.btf-gallery-hero__rings {
    position: absolute;
    top: calc(var(--btf-header-height) + 9%);
    left: -175px;
    z-index: -1;

    width: 430px;
    height: 430px;

    pointer-events: none;
}

.btf-gallery-hero__rings span {
    position: absolute;
    top: 50%;
    left: 50%;

    border-radius: 50%;

    transform:
        translate(-50%, -50%)
        scale(0.86);

    opacity: 0;

    transition:
        opacity 900ms var(--btf-ease-standard),
        transform 1100ms var(--btf-ease-standard);
}

.btf-gallery-hero__rings span:nth-child(1) {
    width: 100%;
    height: 100%;

    border:
        1px solid
        rgba(255, 255, 255, 0.045);
}

.btf-gallery-hero__rings span:nth-child(2) {
    width: 69%;
    height: 69%;

    border:
        1px solid
        rgba(198, 106, 50, 0.15);
}

.btf-gallery-hero__rings span:nth-child(3) {
    width: 38%;
    height: 38%;

    border:
        1px solid
        rgba(255, 255, 255, 0.055);

    background-color:
        rgba(198, 106, 50, 0.025);
}

.btf-gallery-hero.is-ready
.btf-gallery-hero__rings span {
    opacity: 1;

    transform:
        translate(-50%, -50%)
        scale(1);
}

.btf-gallery-hero.is-ready
.btf-gallery-hero__rings span:nth-child(2) {
    transition-delay: 110ms;
}

.btf-gallery-hero.is-ready
.btf-gallery-hero__rings span:nth-child(3) {
    transition-delay: 220ms;
}

.btf-gallery-hero__line {
    position: absolute;
    top: calc(var(--btf-header-height) + 15%);
    left: 49%;
    z-index: -1;

    width: 1px;
    height: 150px;

    background-color:
        rgba(255, 255, 255, 0.11);
}

.btf-gallery-hero__line::after {
    position: absolute;
    bottom: -4px;
    left: -4px;

    width: 9px;
    height: 9px;

    content: "";

    background-color: var(--btf-copper);
    border-radius: 50%;
}


/* =========================================================
   MAIN LAYOUT
========================================================= */

.btf-gallery-hero__layout {
    position: relative;
    z-index: 2;

    display: grid;
    align-items: center;

    height:
        calc(
            100% -
            var(--btf-gallery-hero-bottom-height)
        );
}

.btf-gallery-hero__content {
    width: 100%;
    max-width: 780px;
}


/* =========================================================
   BREADCRUMB
========================================================= */

.btf-gallery-hero__breadcrumb {
    display: flex;
    align-items: center;
    gap: 9px;

    margin-bottom:
        clamp(
            17px,
            2.4vh,
            27px
        );

    color: rgba(255, 255, 255, 0.47);

    font-size:
        clamp(
            0.58rem,
            1.25vh,
            0.68rem
        );

    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.075em;
    text-transform: uppercase;
}

.btf-gallery-hero__breadcrumb a {
    transition:
        color
        var(--btf-transition-fast);
}

.btf-gallery-hero__breadcrumb a:hover,
.btf-gallery-hero__breadcrumb a:focus-visible {
    color: var(--btf-white);
}


/* =========================================================
   EYEBROW
========================================================= */

.btf-gallery-hero__eyebrow {
    display: flex;
    align-items: center;
    gap: 13px;

    margin-bottom:
        clamp(
            13px,
            2vh,
            21px
        );

    color: rgba(255, 255, 255, 0.72);

    font-size:
        clamp(
            0.61rem,
            1.3vh,
            0.71rem
        );

    font-weight: 800;
    line-height: 1.3;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.btf-gallery-hero__eyebrow >
span:first-child {
    display: block;
    flex: 0 0 auto;

    width: 40px;
    height: 2px;

    background-color: var(--btf-copper);
}


/* =========================================================
   TITLE
========================================================= */

.btf-gallery-hero h1 {
    max-width: 820px;
    margin-bottom:
        clamp(
            17px,
            2.6vh,
            28px
        );

    color: var(--btf-white);

    font-family: var(--btf-font-heading);
    font-size:
        clamp(
            3.1rem,
            min(6vw, 8.7vh),
            6.8rem
        );

    font-weight: 600;
    line-height: 0.84;
    letter-spacing: -0.055em;
}

.btf-gallery-hero h1 em {
    display: block;

    color: var(--btf-sand);

    font-weight: 500;
}


/* =========================================================
   DESCRIPTION
========================================================= */

.btf-gallery-hero__description {
    max-width: 620px;
    margin-bottom:
        clamp(
            21px,
            3.2vh,
            36px
        );

    color: rgba(255, 255, 255, 0.68);

    font-size:
        clamp(
            0.88rem,
            min(1.12vw, 2vh),
            1.03rem
        );

    line-height: 1.74;
}


/* =========================================================
   ACTIONS
========================================================= */

.btf-gallery-hero__actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.btf-gallery-hero__actions
.btf-button {
    width: auto;
}

.btf-gallery-hero__actions
.btf-button svg {
    width: 19px;
    height: 19px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;

    transition:
        transform
        var(--btf-transition-normal);
}

.btf-gallery-hero__actions
.btf-button:hover svg,
.btf-gallery-hero__actions
.btf-button:focus-visible svg {
    transform: translateY(4px);
}


/* =========================================================
   ESTIMATE LINK
========================================================= */

.btf-gallery-hero__estimate {
    display: inline-flex;
    align-items: center;
    gap: 12px;

    color: var(--btf-white);

    transition:
        transform
        var(--btf-transition-normal);
}

.btf-gallery-hero__estimate:hover,
.btf-gallery-hero__estimate:focus-visible {
    transform: translateY(-2px);
}

.btf-gallery-hero__estimate-icon {
    display: grid;
    flex: 0 0 auto;
    place-items: center;

    width: 48px;
    height: 48px;

    color: var(--btf-copper);
    background-color:
        rgba(255, 255, 255, 0.055);

    border:
        1px solid
        rgba(255, 255, 255, 0.14);

    border-radius: 50%;

    transition:
        color var(--btf-transition-normal),
        background-color var(--btf-transition-normal),
        border-color var(--btf-transition-normal);
}

.btf-gallery-hero__estimate:hover
.btf-gallery-hero__estimate-icon {
    color: var(--btf-white);
    background-color: var(--btf-copper);
    border-color: var(--btf-copper);
}

.btf-gallery-hero__estimate-icon svg {
    width: 21px;
    height: 21px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.65;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.btf-gallery-hero__estimate-copy {
    display: grid;
    gap: 3px;
}

.btf-gallery-hero__estimate-copy small {
    color: rgba(255, 255, 255, 0.45);

    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.btf-gallery-hero__estimate-copy strong {
    font-size: 0.83rem;
    line-height: 1.2;
}


/* =========================================================
   CATEGORY LINKS
========================================================= */

.btf-gallery-hero__categories {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px;

    margin-top:
        clamp(
            23px,
            3.8vh,
            40px
        );
}

.btf-gallery-hero__categories a {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    color: rgba(255, 255, 255, 0.62);

    font-size: 0.69rem;
    font-weight: 700;
    line-height: 1.3;

    transition:
        color var(--btf-transition-normal);
}

.btf-gallery-hero__categories a:hover,
.btf-gallery-hero__categories a:focus-visible {
    color: var(--btf-white);
}

.btf-gallery-hero__category-number {
    display: grid;
    place-items: center;

    width: 27px;
    height: 27px;

    color: var(--btf-copper);

    border:
        1px solid
        rgba(255, 255, 255, 0.14);

    border-radius: 50%;

    font-size: 0.57rem;
    font-weight: 800;

    transition:
        color var(--btf-transition-normal),
        background-color var(--btf-transition-normal),
        border-color var(--btf-transition-normal);
}

.btf-gallery-hero__categories a:hover
.btf-gallery-hero__category-number,
.btf-gallery-hero__categories a:focus-visible
.btf-gallery-hero__category-number {
    color: var(--btf-white);
    background-color: var(--btf-copper);
    border-color: var(--btf-copper);
}

.btf-gallery-hero__categories i {
    display: block;

    width: 30px;
    height: 1px;

    background-color:
        rgba(255, 255, 255, 0.15);
}


/* =========================================================
   PROJECT CARD
========================================================= */

.btf-gallery-hero__project-card {
    position: relative;

    align-self: end;
    justify-self: end;

    width: min(100%, 390px);
    margin-bottom:
        clamp(
            27px,
            4.5vh,
            52px
        );

    padding: 27px;

    color: var(--btf-text);
    background-color:
        rgba(243, 244, 236, 0.96);

    border:
        1px solid
        rgba(255, 255, 255, 0.4);

    border-radius: var(--btf-radius-md);

    box-shadow: var(--btf-shadow-dark);

    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.btf-gallery-hero__project-card::before {
    position: absolute;
    top: 0;
    left: 27px;

    width: 68px;
    height: 3px;

    content: "";

    background-color: var(--btf-copper);
}

.btf-gallery-hero__project-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;

    margin-bottom: 19px;
}

.btf-gallery-hero__project-card-top > div {
    display: grid;
    gap: 5px;
}

.btf-gallery-hero__project-card-top
div > span {
    color: var(--btf-copper-dark);

    font-size: 0.61rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.btf-gallery-hero__project-card-top
div > strong {
    color: var(--btf-forest-950);

    font-family: var(--btf-font-heading);
    font-size: 1.55rem;
    font-weight: 600;
    line-height: 1;
}

.btf-gallery-hero__project-count {
    display: grid;
    place-items: center;

    width: 43px;
    height: 43px;

    color: var(--btf-white);
    background-color: var(--btf-copper);

    border-radius: 50%;

    font-family: var(--btf-font-heading);
    font-size: 1.25rem;
    font-weight: 700;
}


/* =========================================================
   PROJECT LIST
========================================================= */

.btf-gallery-hero__project-list {
    display: grid;

    border-top: 1px solid var(--btf-border);
}

.btf-gallery-hero__project {
    display: grid;
    grid-template-columns:
        72px
        minmax(0, 1fr)
        22px;

    align-items: center;
    gap: 13px;

    min-height: 88px;
    padding-block: 10px;

    color: var(--btf-forest-950);

    border-bottom: 1px solid var(--btf-border);

    transition:
        padding-left var(--btf-transition-normal),
        color var(--btf-transition-normal);
}

.btf-gallery-hero__project:hover,
.btf-gallery-hero__project:focus-visible {
    padding-left: 7px;

    color: var(--btf-copper-dark);
}

.btf-gallery-hero__project figure {
    width: 72px;
    height: 62px;
    margin: 0;

    overflow: hidden;

    background-color: var(--btf-forest-900);
    border-radius: var(--btf-radius-xs);
}

.btf-gallery-hero__project figure img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    filter:
        saturate(0.8)
        contrast(1.04);

    transition:
        filter var(--btf-transition-normal),
        transform var(--btf-transition-slow);
}

.btf-gallery-hero__project:hover
figure img,
.btf-gallery-hero__project:focus-visible
figure img {
    filter:
        saturate(1)
        contrast(1.04);

    transform: scale(1.06);
}

.btf-gallery-hero__project-copy {
    display: grid;
    gap: 4px;

    min-width: 0;
}

.btf-gallery-hero__project-copy small {
    color: var(--btf-text-muted);

    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.btf-gallery-hero__project-copy strong {
    color: inherit;

    font-family: var(--btf-font-heading);
    font-size: 1.45rem;
    font-weight: 600;
    line-height: 1;
}

.btf-gallery-hero__project > svg {
    width: 21px;
    height: 21px;

    fill: none;
    stroke: var(--btf-copper);
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;

    transition:
        transform
        var(--btf-transition-normal);
}

.btf-gallery-hero__project:hover > svg,
.btf-gallery-hero__project:focus-visible > svg {
    transform:
        translate(3px, -3px);
}


/* =========================================================
   PROJECT CARD FOOTER
========================================================= */

.btf-gallery-hero__project-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;

    margin-top: 18px;
}

.btf-gallery-hero__project-card-footer >
span {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    color: var(--btf-text-muted);

    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
}

.btf-gallery-hero__project-card-footer
span svg {
    width: 17px;
    height: 17px;

    fill: none;
    stroke: var(--btf-copper);
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.btf-gallery-hero__project-card-footer >
a {
    color: var(--btf-forest-950);

    font-size: 0.61rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;

    transition:
        color
        var(--btf-transition-fast);
}

.btf-gallery-hero__project-card-footer >
a:hover,
.btf-gallery-hero__project-card-footer >
a:focus-visible {
    color: var(--btf-copper-dark);
}


/* =========================================================
   BOTTOM BAR
========================================================= */

.btf-gallery-hero__bottom {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 4;

    height:
        var(--btf-gallery-hero-bottom-height);

    color: var(--btf-white);
    background-color:
        rgba(16, 45, 33, 0.94);

    border-top:
        1px solid
        rgba(255, 255, 255, 0.1);

    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.btf-gallery-hero__bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;

    height: 100%;
}

.btf-gallery-hero__bottom-brand {
    display: flex;
    align-items: center;
    gap: 11px;
}

.btf-gallery-hero__bottom-brand >
span {
    display: grid;
    place-items: center;

    width: 37px;
    height: 37px;

    color: var(--btf-forest-950);
    background-color: var(--btf-sand);

    border-radius: 50%;

    font-family: var(--btf-font-heading);
    font-size: 0.64rem;
    font-weight: 700;
}

.btf-gallery-hero__bottom-brand >
strong {
    color: rgba(255, 255, 255, 0.55);

    font-size: 0.63rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.btf-gallery-hero__bottom-inner > a {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    color: rgba(255, 255, 255, 0.75);

    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.065em;
    text-transform: uppercase;

    transition:
        color
        var(--btf-transition-normal);
}

.btf-gallery-hero__bottom-inner >
a:hover,
.btf-gallery-hero__bottom-inner >
a:focus-visible {
    color: var(--btf-white);
}

.btf-gallery-hero__bottom-inner
a svg {
    width: 18px;
    height: 18px;

    fill: none;
    stroke: var(--btf-copper);
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;

    transition:
        transform
        var(--btf-transition-normal);
}

.btf-gallery-hero__bottom-inner
a:hover svg,
.btf-gallery-hero__bottom-inner
a:focus-visible svg {
    transform: translateY(4px);
}


/* =========================================================
   ENTRY ANIMATION

   Elements remain visible when JavaScript does not load.
========================================================= */

.btf-gallery-hero.is-enhanced
[data-btf-gallery-hero-reveal] {
    opacity: 0;
    transform: translateY(28px);
}

.btf-gallery-hero.is-enhanced.is-ready
[data-btf-gallery-hero-reveal] {
    opacity: 1;
    transform: translateY(0);

    transition:
        opacity 760ms var(--btf-ease-standard),
        transform 760ms var(--btf-ease-standard);
}

.btf-gallery-hero.is-enhanced.is-ready
[data-btf-gallery-hero-reveal]:nth-child(2) {
    transition-delay: 70ms;
}

.btf-gallery-hero.is-enhanced.is-ready
[data-btf-gallery-hero-reveal]:nth-child(3) {
    transition-delay: 140ms;
}

.btf-gallery-hero.is-enhanced.is-ready
[data-btf-gallery-hero-reveal]:nth-child(4) {
    transition-delay: 210ms;
}

.btf-gallery-hero.is-enhanced.is-ready
[data-btf-gallery-hero-reveal]:nth-child(5) {
    transition-delay: 280ms;
}











































/* =========================================================
   BOOTS TREE & FENCE
   PROJECTS INTRODUCTION
========================================================= */

.btf-gallery-intro {
    position: relative;
    isolation: isolate;

    padding-block: var(--btf-section-space);

    overflow: hidden;

    color: var(--btf-text);
    background-color: var(--btf-background);
}

.btf-gallery-intro::before {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    z-index: -1;

    height: 1px;

    content: "";

    background-color: var(--btf-border);
}

.btf-gallery-intro::after {
    position: absolute;
    top: 0;
    left: 7%;
    z-index: -1;

    width: 82px;
    height: 4px;

    content: "";

    background-color: var(--btf-copper);
}


/* =========================================================
   DECORATIVE TREE RINGS
========================================================= */

.btf-gallery-intro__rings {
    position: absolute;
    top: 9%;
    right: -170px;
    z-index: -1;

    width: 410px;
    height: 410px;

    pointer-events: none;
}

.btf-gallery-intro__rings span {
    position: absolute;
    top: 50%;
    left: 50%;

    border:
        1px solid
        rgba(16, 45, 33, 0.065);

    border-radius: 50%;

    transform:
        translate(-50%, -50%)
        scale(0.87);

    opacity: 0;

    transition:
        opacity 850ms var(--btf-ease-standard),
        transform 1000ms var(--btf-ease-standard);
}

.btf-gallery-intro__rings span:nth-child(1) {
    width: 100%;
    height: 100%;
}

.btf-gallery-intro__rings span:nth-child(2) {
    width: 70%;
    height: 70%;

    border-color:
        rgba(198, 106, 50, 0.12);
}

.btf-gallery-intro__rings span:nth-child(3) {
    width: 39%;
    height: 39%;

    background-color:
        rgba(198, 106, 50, 0.025);
}

.btf-gallery-intro.is-in-view
.btf-gallery-intro__rings span {
    opacity: 1;

    transform:
        translate(-50%, -50%)
        scale(1);
}

.btf-gallery-intro.is-in-view
.btf-gallery-intro__rings span:nth-child(2) {
    transition-delay: 100ms;
}

.btf-gallery-intro.is-in-view
.btf-gallery-intro__rings span:nth-child(3) {
    transition-delay: 200ms;
}


/* =========================================================
   SIDE LABEL
========================================================= */

.btf-gallery-intro__side-label {
    position: absolute;
    top: 50%;
    left: 22px;
    z-index: -1;

    display: flex;
    align-items: center;
    gap: 12px;

    color: rgba(16, 45, 33, 0.16);

    font-size: 0.58rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.11em;
    text-transform: uppercase;

    writing-mode: vertical-rl;

    transform: translateY(-50%);

    pointer-events: none;
}

.btf-gallery-intro__side-label i {
    display: block;

    width: 1px;
    height: 45px;

    background-color:
        rgba(198, 106, 50, 0.32);
}


/* =========================================================
   SECTION HEADER
========================================================= */

.btf-gallery-intro__header {
    display: grid;
    align-items: end;

    margin-bottom: clamp(42px, 6vw, 76px);
}

.btf-gallery-intro__heading,
.btf-gallery-intro__copy {
    min-width: 0;
}

.btf-gallery-intro__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 13px;

    margin-bottom: 20px;

    color: var(--btf-copper);

    font-size: var(--btf-text-xs);
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.17em;
    text-transform: uppercase;
}

.btf-gallery-intro__eyebrow > span {
    display: inline-grid;
    place-items: center;

    width: 31px;
    height: 31px;

    color: var(--btf-forest-950);

    border: 1px solid var(--btf-border);
    border-radius: 50%;

    font-size: 0.62rem;
    letter-spacing: 0;
}

.btf-gallery-intro__heading h2 {
    max-width: 850px;
    margin-bottom: 0;

    color: var(--btf-forest-950);

    font-family: var(--btf-font-heading);
    font-size: var(--btf-heading-md);
    font-weight: 600;
    line-height: 0.98;
    letter-spacing: -0.045em;
}

.btf-gallery-intro__heading h2 em {
    display: block;

    color: var(--btf-bark-600);

    font-weight: 500;
}

.btf-gallery-intro__copy {
    display: grid;
    gap: 23px;
}

.btf-gallery-intro__copy p {
    max-width: 560px;
    margin-bottom: 0;

    color: var(--btf-text-soft);

    font-size: 1rem;
    line-height: 1.82;
}

.btf-gallery-intro__estimate-link {
    display: inline-flex;
    align-items: center;
    gap: 11px;

    width: fit-content;

    color: var(--btf-forest-950);

    font-size: 0.71rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.055em;
    text-transform: uppercase;

    transition:
        color var(--btf-transition-normal);
}

.btf-gallery-intro__estimate-link:hover,
.btf-gallery-intro__estimate-link:focus-visible {
    color: var(--btf-copper-dark);
}

.btf-gallery-intro__estimate-link svg {
    width: 20px;
    height: 20px;

    fill: none;
    stroke: var(--btf-copper);
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;

    transition:
        transform var(--btf-transition-normal);
}

.btf-gallery-intro__estimate-link:hover svg,
.btf-gallery-intro__estimate-link:focus-visible svg {
    transform: translateX(5px);
}


/* =========================================================
   CATEGORY GRID
========================================================= */

.btf-gallery-intro__categories {
    display: grid;
    gap: 24px;
}


/* =========================================================
   CATEGORY CARD
========================================================= */

.btf-gallery-intro-card {
    --btf-gallery-intro-image-x: 0px;
    --btf-gallery-intro-image-y: 0px;

    position: relative;
    isolation: isolate;

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    min-width: 0;
    min-height: 485px;
    padding: clamp(24px, 3vw, 38px);

    overflow: hidden;

    color: var(--btf-white);
    background-color: var(--btf-forest-950);

    border:
        1px solid
        rgba(16, 45, 33, 0.14);

    border-radius: var(--btf-radius-md);

    box-shadow: var(--btf-shadow-md);

    transition:
        border-color var(--btf-transition-normal),
        box-shadow var(--btf-transition-normal),
        transform var(--btf-transition-normal);
}

.btf-gallery-intro-card::before {
    position: absolute;
    top: 0;
    left: clamp(24px, 3vw, 38px);
    z-index: 5;

    width: 68px;
    height: 4px;

    content: "";

    background-color: var(--btf-copper);

    transform: scaleX(0.45);
    transform-origin: left center;

    transition:
        transform var(--btf-transition-slow);
}

.btf-gallery-intro-card:hover,
.btf-gallery-intro-card:focus-visible {
    border-color: var(--btf-border-copper);

    box-shadow:
        0 28px 70px
        rgba(16, 45, 33, 0.22);

    transform: translateY(-6px);
}

.btf-gallery-intro-card:hover::before,
.btf-gallery-intro-card:focus-visible::before {
    transform: scaleX(1);
}

.btf-gallery-intro-card:focus-visible {
    outline:
        3px solid
        var(--btf-copper);

    outline-offset: 5px;
}


/* =========================================================
   CARD IMAGE
========================================================= */

.btf-gallery-intro-card__media {
    position: absolute;
    inset: 0;
    z-index: -3;

    margin: 0;

    overflow: hidden;
}

.btf-gallery-intro-card__media img {
    width: calc(100% + 24px);
    max-width: none;
    height: calc(100% + 24px);

    object-fit: cover;

    filter:
        saturate(0.78)
        contrast(1.05);

    transform:
        translate(
            calc(-12px + var(--btf-gallery-intro-image-x)),
            calc(-12px + var(--btf-gallery-intro-image-y))
        )
        scale(1.045);

    transition:
        filter var(--btf-transition-slow),
        transform 750ms var(--btf-ease-standard);

    will-change: transform;
}

.btf-gallery-intro-card:hover
.btf-gallery-intro-card__media img,
.btf-gallery-intro-card:focus-visible
.btf-gallery-intro-card__media img {
    filter:
        saturate(0.98)
        contrast(1.05);

    transform:
        translate(
            calc(-12px + var(--btf-gallery-intro-image-x)),
            calc(-12px + var(--btf-gallery-intro-image-y))
        )
        scale(1);
}

.btf-gallery-intro-card__overlay {
    position: absolute;
    inset: 0;
    z-index: -2;

    background-color: rgba(8, 25, 16, 0.64);

    transition:
        background-color var(--btf-transition-slow);

    pointer-events: none;
}

.btf-gallery-intro-card:hover
.btf-gallery-intro-card__overlay,
.btf-gallery-intro-card:focus-visible
.btf-gallery-intro-card__overlay {
    background-color: rgba(8, 25, 16, 0.72);
}


/* =========================================================
   CARD TOP
========================================================= */

.btf-gallery-intro-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.btf-gallery-intro-card__number {
    color: var(--btf-white);

    font-family: var(--btf-font-heading);
    font-size: 2rem;
    font-weight: 600;
    line-height: 1;
}

.btf-gallery-intro-card__label {
    padding: 9px 11px;

    color: rgba(255, 255, 255, 0.72);
    background-color: rgba(16, 45, 33, 0.78);

    border:
        1px solid
        rgba(255, 255, 255, 0.16);

    border-radius: var(--btf-radius-xs);

    font-size: 0.62rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}


/* =========================================================
   CARD CONTENT
========================================================= */

.btf-gallery-intro-card__content {
    display: grid;
    gap: 28px;
}

.btf-gallery-intro-card__eyebrow {
    display: block;

    margin-bottom: 11px;

    color: var(--btf-copper);

    font-size: 0.63rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.btf-gallery-intro-card__content h3 {
    margin-bottom: 13px;

    color: var(--btf-white);

    font-family: var(--btf-font-heading);
    font-size: clamp(3rem, 5vw, 5rem);
    font-weight: 600;
    line-height: 0.88;
    letter-spacing: -0.045em;
}

.btf-gallery-intro-card__content p {
    max-width: 470px;
    margin-bottom: 0;

    color: rgba(255, 255, 255, 0.67);

    font-size: 0.87rem;
    line-height: 1.7;
}

.btf-gallery-intro-card__action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    padding-top: 20px;

    color: var(--btf-white);

    border-top:
        1px solid
        rgba(255, 255, 255, 0.15);

    font-size: 0.68rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.065em;
    text-transform: uppercase;
}

.btf-gallery-intro-card__arrow {
    display: grid;
    place-items: center;

    width: 46px;
    height: 46px;

    color: var(--btf-white);
    background-color: var(--btf-copper);

    border-radius: 50%;

    transition:
        color var(--btf-transition-normal),
        background-color var(--btf-transition-normal),
        transform var(--btf-transition-normal);
}

.btf-gallery-intro-card__arrow svg {
    width: 20px;
    height: 20px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.btf-gallery-intro-card:hover
.btf-gallery-intro-card__arrow,
.btf-gallery-intro-card:focus-visible
.btf-gallery-intro-card__arrow {
    color: var(--btf-forest-950);
    background-color: var(--btf-white);

    transform:
        translate(3px, -3px);
}


/* =========================================================
   INFORMATION RAIL
========================================================= */

.btf-gallery-intro__rail {
    display: grid;
    align-items: center;
    gap: 24px;

    margin-top: 24px;
    padding: clamp(21px, 3vw, 29px);

    background-color: var(--btf-white);

    border: 1px solid var(--btf-border);
    border-radius: var(--btf-radius-md);

    box-shadow: var(--btf-shadow-xs);
}

.btf-gallery-intro__rail-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btf-gallery-intro__rail-brand > span {
    display: grid;
    flex: 0 0 auto;
    place-items: center;

    width: 46px;
    height: 46px;

    color: var(--btf-white);
    background-color: var(--btf-forest-950);

    border-radius: 50%;

    font-family: var(--btf-font-heading);
    font-size: 0.72rem;
    font-weight: 700;
}

.btf-gallery-intro__rail-brand > div {
    display: grid;
    gap: 4px;
}

.btf-gallery-intro__rail-brand small {
    color: var(--btf-copper-dark);

    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.btf-gallery-intro__rail-brand strong {
    color: var(--btf-forest-950);

    font-family: var(--btf-font-heading);
    font-size: 1.35rem;
    font-weight: 600;
    line-height: 1;
}

.btf-gallery-intro__rail-items {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

.btf-gallery-intro__rail-items a {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    color: var(--btf-text-soft);

    font-size: 0.67rem;
    font-weight: 800;
    letter-spacing: 0.045em;
    text-transform: uppercase;

    transition:
        color var(--btf-transition-normal);
}

.btf-gallery-intro__rail-items a:hover,
.btf-gallery-intro__rail-items a:focus-visible {
    color: var(--btf-copper-dark);
}

.btf-gallery-intro__rail-items a span {
    display: grid;
    place-items: center;

    width: 27px;
    height: 27px;

    color: var(--btf-copper);

    border: 1px solid var(--btf-border);
    border-radius: 50%;

    font-size: 0.55rem;
}

.btf-gallery-intro__rail-items i {
    width: 27px;
    height: 1px;

    background-color: var(--btf-border);
}

.btf-gallery-intro__rail-contact {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;

    min-height: 45px;
    padding: 11px 15px;

    color: var(--btf-white);
    background-color: var(--btf-copper);

    border: 1px solid var(--btf-copper);
    border-radius: var(--btf-radius-sm);

    font-size: 0.67rem;
    font-weight: 800;
    letter-spacing: 0.045em;
    text-transform: uppercase;

    transition:
        color var(--btf-transition-normal),
        background-color var(--btf-transition-normal),
        border-color var(--btf-transition-normal);
}

.btf-gallery-intro__rail-contact:hover,
.btf-gallery-intro__rail-contact:focus-visible {
    color: var(--btf-white);
    background-color: var(--btf-forest-950);
    border-color: var(--btf-forest-950);
}

.btf-gallery-intro__rail-contact svg {
    width: 18px;
    height: 18px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;

    transition:
        transform var(--btf-transition-normal);
}

.btf-gallery-intro__rail-contact:hover svg,
.btf-gallery-intro__rail-contact:focus-visible svg {
    transform:
        translate(3px, -3px);
}


/* =========================================================
   REVEAL ANIMATIONS
========================================================= */

.btf-gallery-intro.is-enhanced
[data-btf-gallery-intro-reveal] {
    opacity: 0;
    transform: translateY(36px);
}

.btf-gallery-intro.is-enhanced
[data-btf-gallery-intro-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);

    transition:
        opacity 780ms var(--btf-ease-standard),
        transform 780ms var(--btf-ease-standard);
}

.btf-gallery-intro.is-enhanced
.btf-gallery-intro-card--fence.is-visible {
    transition-delay: 110ms;
}

.btf-gallery-intro.is-enhanced
.btf-gallery-intro__rail.is-visible {
    transition-delay: 170ms;
}





































/* =========================================================
   BOOTS TREE & FENCE
   GALLERY CATEGORY NAVIGATION
========================================================= */

:root {
    --btf-gallery-filter-height: 104px;
}


/* =========================================================
   STICKY SECTION

   La propia sección es sticky y su contenedor principal
   continúa siendo <main>. No debe colocarse dentro de un
   elemento con overflow:hidden o transform.
========================================================= */

.btf-gallery-filter {
    position: sticky;
    top: var(--btf-header-height);
    z-index: 850;

    width: 100%;

    color: var(--btf-text);
    background-color: rgba(243, 244, 236, 0.97);

    border-top: 1px solid var(--btf-border);
    border-bottom: 1px solid var(--btf-border);

    box-shadow:
        0 14px 35px
        rgba(16, 45, 33, 0.09);

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.btf-gallery-filter__accent {
    position: absolute;
    top: 0;
    left: 7%;

    width: 80px;
    height: 3px;

    background-color: var(--btf-copper);

    pointer-events: none;
}


/* =========================================================
   MAIN BAR
========================================================= */

.btf-gallery-filter__bar {
    display: grid;
    align-items: center;
    gap: 25px;

    min-height: var(--btf-gallery-filter-height);
}


/* =========================================================
   HEADING
========================================================= */

.btf-gallery-filter__heading {
    display: flex;
    align-items: center;
    gap: 12px;

    min-width: 0;
}

.btf-gallery-filter__mark {
    display: grid;
    flex: 0 0 auto;
    place-items: center;

    width: 48px;
    height: 48px;

    color: var(--btf-forest-800);
    background-color: var(--btf-white);

    border: 1px solid var(--btf-border);
    border-radius: 50%;

    box-shadow: var(--btf-shadow-xs);
}

.btf-gallery-filter__mark svg {
    width: 36px;
    height: 36px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.25;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.btf-gallery-filter__heading-copy {
    display: grid;
    gap: 4px;

    min-width: 0;
}

.btf-gallery-filter__heading-copy small {
    color: var(--btf-copper-dark);

    font-size: 0.57rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.btf-gallery-filter__heading-copy strong {
    overflow: hidden;

    color: var(--btf-forest-950);

    font-family: var(--btf-font-heading);
    font-size: 1.34rem;
    font-weight: 600;
    line-height: 1;

    text-overflow: ellipsis;
    white-space: nowrap;
}


/* =========================================================
   NAVIGATION
========================================================= */

.btf-gallery-filter__navigation {
    min-width: 0;
}

.btf-gallery-filter__scroll {
    display: flex;
    align-items: stretch;
    gap: 8px;

    min-width: 0;
}


/* =========================================================
   FILTER LINK
========================================================= */

.btf-gallery-filter__link {
    position: relative;

    display: grid;
    grid-template-columns:
        38px
        minmax(0, 1fr)
        auto;

    align-items: center;
    gap: 10px;

    min-width: 170px;
    min-height: 64px;
    padding: 9px 11px;

    color: var(--btf-text-soft);
    background-color: transparent;

    border: 1px solid transparent;
    border-radius: var(--btf-radius-sm);

    transition:
        color var(--btf-transition-normal),
        background-color var(--btf-transition-normal),
        border-color var(--btf-transition-normal),
        box-shadow var(--btf-transition-normal),
        transform var(--btf-transition-normal);
}

.btf-gallery-filter__link::after {
    position: absolute;
    right: 12px;
    bottom: -1px;
    left: 12px;

    height: 3px;

    content: "";

    background-color: var(--btf-copper);

    transform: scaleX(0);
    transform-origin: right center;

    transition:
        transform
        var(--btf-transition-normal);
}

.btf-gallery-filter__link:hover,
.btf-gallery-filter__link:focus-visible {
    color: var(--btf-forest-950);
    background-color: var(--btf-white);
    border-color: var(--btf-border);

    transform: translateY(-2px);
}

.btf-gallery-filter__link.is-active {
    color: var(--btf-forest-950);
    background-color: var(--btf-white);

    border-color: var(--btf-border-copper);

    box-shadow:
        0 9px 24px
        rgba(16, 45, 33, 0.08);
}

.btf-gallery-filter__link.is-active::after {
    transform: scaleX(1);
    transform-origin: left center;
}

.btf-gallery-filter__link:focus-visible {
    outline:
        3px solid
        rgba(198, 106, 50, 0.28);

    outline-offset: 2px;
}


/* =========================================================
   LINK ICON
========================================================= */

.btf-gallery-filter__link-icon {
    display: grid;
    place-items: center;

    width: 38px;
    height: 38px;

    color: var(--btf-copper);
    background-color: var(--btf-white);

    border: 1px solid var(--btf-border);
    border-radius: 50%;

    transition:
        color var(--btf-transition-normal),
        background-color var(--btf-transition-normal),
        border-color var(--btf-transition-normal),
        transform var(--btf-transition-normal);
}

.btf-gallery-filter__link:hover
.btf-gallery-filter__link-icon,
.btf-gallery-filter__link:focus-visible
.btf-gallery-filter__link-icon,
.btf-gallery-filter__link.is-active
.btf-gallery-filter__link-icon {
    color: var(--btf-white);
    background-color: var(--btf-copper);
    border-color: var(--btf-copper);
}

.btf-gallery-filter__link.is-active
.btf-gallery-filter__link-icon {
    transform: rotate(4deg);
}

.btf-gallery-filter__link-icon svg {
    width: 19px;
    height: 19px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.65;
    stroke-linecap: round;
    stroke-linejoin: round;
}


/* =========================================================
   LINK COPY
========================================================= */

.btf-gallery-filter__link-copy {
    display: grid;
    gap: 3px;

    min-width: 0;
}

.btf-gallery-filter__link-copy small {
    overflow: hidden;

    color: var(--btf-text-muted);

    font-size: 0.52rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.08em;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.btf-gallery-filter__link-copy strong {
    overflow: hidden;

    color: inherit;

    font-family: var(--btf-font-heading);
    font-size: 1.16rem;
    font-weight: 600;
    line-height: 1;

    text-overflow: ellipsis;
    white-space: nowrap;
}


/* =========================================================
   PROJECT COUNT
========================================================= */

.btf-gallery-filter__count {
    display: grid;
    place-items: center;

    min-width: 28px;
    height: 28px;
    padding-inline: 5px;

    color: var(--btf-text-muted);
    background-color: var(--btf-background);

    border: 1px solid var(--btf-border);
    border-radius: 50%;

    font-size: 0.56rem;
    font-weight: 800;
    line-height: 1;

    transition:
        color var(--btf-transition-normal),
        background-color var(--btf-transition-normal),
        border-color var(--btf-transition-normal);
}

.btf-gallery-filter__link.is-active
.btf-gallery-filter__count {
    color: var(--btf-white);
    background-color: var(--btf-forest-950);
    border-color: var(--btf-forest-950);
}


/* =========================================================
   CURRENT CATEGORY AND CTA
========================================================= */

.btf-gallery-filter__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;

    min-width: 0;
}

.btf-gallery-filter__current {
    display: flex;
    align-items: center;
    gap: 9px;

    min-width: 0;
}

.btf-gallery-filter__current > span:first-child {
    position: relative;

    flex: 0 0 auto;

    width: 8px;
    height: 8px;

    background-color: var(--btf-copper);
    border-radius: 50%;
}

.btf-gallery-filter__current >
span:first-child::after {
    position: absolute;
    inset: -4px;

    content: "";

    border:
        1px solid
        rgba(198, 106, 50, 0.27);

    border-radius: 50%;
}

.btf-gallery-filter__current >
span:last-child {
    display: grid;
    gap: 3px;

    min-width: 0;
}

.btf-gallery-filter__current small {
    color: var(--btf-text-muted);

    font-size: 0.5rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.btf-gallery-filter__current strong {
    overflow: hidden;

    color: var(--btf-forest-950);

    font-size: 0.68rem;
    font-weight: 800;
    line-height: 1.2;

    text-overflow: ellipsis;
    white-space: nowrap;
}


/* =========================================================
   ESTIMATE BUTTON
========================================================= */

.btf-gallery-filter__estimate {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;

    flex: 0 0 auto;

    min-height: 43px;
    padding: 10px 13px;

    color: var(--btf-white);
    background-color: var(--btf-copper);

    border: 1px solid var(--btf-copper);
    border-radius: var(--btf-radius-sm);

    font-size: 0.63rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.04em;
    text-transform: uppercase;

    transition:
        color var(--btf-transition-normal),
        background-color var(--btf-transition-normal),
        border-color var(--btf-transition-normal),
        transform var(--btf-transition-normal);
}

.btf-gallery-filter__estimate:hover,
.btf-gallery-filter__estimate:focus-visible {
    color: var(--btf-white);
    background-color: var(--btf-forest-950);
    border-color: var(--btf-forest-950);

    transform: translateY(-2px);
}

.btf-gallery-filter__estimate svg {
    width: 17px;
    height: 17px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;

    transition:
        transform
        var(--btf-transition-normal);
}

.btf-gallery-filter__estimate:hover svg,
.btf-gallery-filter__estimate:focus-visible svg {
    transform: translate(3px, -3px);
}


/* =========================================================
   TARGET SECTION OFFSET

   Estos selectores preparan las dos galerías para que sus
   encabezados no queden cubiertos por el header y el filtro.
========================================================= */

#tree-cutting,
#fence-services {
    scroll-margin-top:
        calc(
            var(--btf-header-height) +
            var(--btf-gallery-filter-height) +
            20px
        );
}






































/* =========================================================
   BOOTS TREE & FENCE
   TREE CUTTING GALLERY — REBUILT
========================================================= */

.btf-tree-gallery {
    position: relative;
    isolation: isolate;

    padding-block: var(--btf-section-space);

    overflow: hidden;

    color: var(--btf-white);
    background-color: var(--btf-forest-950);
}

.btf-tree-gallery::before {
    position: absolute;
    inset: 0;
    z-index: -2;

    content: "";

    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='94' height='94' viewBox='0 0 94 94'%3E%3Cpath d='M0 93.5H94M93.5 0V94' fill='none' stroke='%23FFFFFF' stroke-opacity='.022'/%3E%3C/svg%3E");

    background-repeat: repeat;
    background-size: 94px 94px;
}

.btf-tree-gallery::after {
    position: absolute;
    top: 0;
    right: 7%;
    z-index: -1;

    width: 82px;
    height: 4px;

    content: "";

    background-color: var(--btf-copper);
}


/* =========================================================
   DECORATIVE RINGS
========================================================= */

.btf-tree-gallery__rings {
    position: absolute;
    top: 5%;
    left: -190px;
    z-index: -1;

    width: 440px;
    height: 440px;

    pointer-events: none;
}

.btf-tree-gallery__rings span {
    position: absolute;
    top: 50%;
    left: 50%;

    border:
        1px solid
        rgba(255, 255, 255, 0.045);

    border-radius: 50%;

    opacity: 0;

    transform:
        translate(-50%, -50%)
        scale(0.84);

    transition:
        opacity 900ms var(--btf-ease-standard),
        transform 1050ms var(--btf-ease-standard);
}

.btf-tree-gallery__rings span:nth-child(1) {
    width: 100%;
    height: 100%;
}

.btf-tree-gallery__rings span:nth-child(2) {
    width: 76%;
    height: 76%;

    border-color:
        rgba(198, 106, 50, 0.15);
}

.btf-tree-gallery__rings span:nth-child(3) {
    width: 51%;
    height: 51%;
}

.btf-tree-gallery__rings span:nth-child(4) {
    width: 27%;
    height: 27%;

    background-color:
        rgba(198, 106, 50, 0.03);
}

.btf-tree-gallery.is-in-view
.btf-tree-gallery__rings span {
    opacity: 1;

    transform:
        translate(-50%, -50%)
        scale(1);
}


/* =========================================================
   HEADER
========================================================= */

.btf-tree-gallery__header {
    display: grid;
    align-items: end;

    margin-bottom:
        clamp(42px, 6vw, 76px);
}

.btf-tree-gallery__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 13px;

    margin-bottom: 20px;

    color: var(--btf-copper);

    font-size: var(--btf-text-xs);
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.btf-tree-gallery__eyebrow > span {
    display: inline-grid;
    place-items: center;

    width: 31px;
    height: 31px;

    color: var(--btf-white);

    border:
        1px solid
        rgba(255, 255, 255, 0.16);

    border-radius: 50%;

    font-size: 0.62rem;
    letter-spacing: 0;
}

.btf-tree-gallery__heading h2 {
    max-width: 820px;
    margin: 0;

    color: var(--btf-white);

    font-family: var(--btf-font-heading);
    font-size: var(--btf-heading-md);
    font-weight: 600;
    line-height: 0.96;
    letter-spacing: -0.045em;
}

.btf-tree-gallery__heading h2 em {
    display: block;

    color: var(--btf-sand);

    font-weight: 500;
}

.btf-tree-gallery__introduction {
    display: grid;
    gap: 26px;
}

.btf-tree-gallery__introduction > p {
    max-width: 560px;
    margin: 0;

    color: rgba(255, 255, 255, 0.62);

    font-size: 0.96rem;
    line-height: 1.8;
}


/* =========================================================
   SUMMARY
========================================================= */

.btf-tree-gallery__summary {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.btf-tree-gallery__summary > div {
    display: grid;
    gap: 4px;
}

.btf-tree-gallery__summary small {
    color: rgba(255, 255, 255, 0.36);

    font-size: 0.54rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.btf-tree-gallery__summary strong {
    color: rgba(255, 255, 255, 0.84);

    font-size: 0.68rem;
    font-weight: 800;
}

.btf-tree-gallery__summary i {
    width: 5px;
    height: 5px;

    background-color: var(--btf-copper);
    border-radius: 50%;
}


/* =========================================================
   SAFE GRID

   Ninguna tarjeta tiene min-height mayor que sus filas.
   Esto evita que unas imágenes invadan otras.
========================================================= */

.btf-tree-gallery__grid {
    display: grid;
    gap: 18px;

    width: 100%;
}

.btf-tree-project {
    position: relative;

    min-width: 0;
    min-height: 0;

    overflow: hidden;
}

.btf-tree-project__link {
    position: relative;
    isolation: isolate;

    display: block;

    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;

    overflow: hidden;

    color: var(--btf-white);
    background-color: var(--btf-forest-900);

    border:
        1px solid
        rgba(255, 255, 255, 0.11);

    border-radius: var(--btf-radius-md);

    box-shadow:
        0 20px 50px
        rgba(0, 0, 0, 0.2);

    transform: translateZ(0);

    transition:
        border-color var(--btf-transition-normal),
        box-shadow var(--btf-transition-normal),
        transform var(--btf-transition-normal);
}

.btf-tree-project__link:hover,
.btf-tree-project__link:focus-visible {
    border-color:
        rgba(198, 106, 50, 0.6);

    box-shadow:
        0 30px 72px
        rgba(0, 0, 0, 0.32);

    transform: translateY(-5px);
}

.btf-tree-project__link:focus-visible {
    outline:
        3px solid
        var(--btf-copper);

    outline-offset: 4px;
}


/* =========================================================
   IMAGE
========================================================= */

.btf-tree-project__media {
    position: absolute;
    inset: 0;
    z-index: -3;

    width: 100%;
    height: 100%;
    margin: 0;

    overflow: hidden;
}

.btf-tree-project__media img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;

    filter:
        saturate(0.82)
        contrast(1.04);

    transform: scale(1.04);

    transition:
        filter var(--btf-transition-slow),
        transform 760ms var(--btf-ease-standard);
}

.btf-tree-project__link:hover
.btf-tree-project__media img,
.btf-tree-project__link:focus-visible
.btf-tree-project__media img {
    filter:
        saturate(1)
        contrast(1.04);

    transform: scale(1);
}

.btf-tree-project__shade {
    position: absolute;
    inset: 0;
    z-index: -2;

    background-color:
        rgba(7, 24, 15, 0.42);

    transition:
        background-color var(--btf-transition-slow);

    pointer-events: none;
}

.btf-tree-project__link:hover
.btf-tree-project__shade,
.btf-tree-project__link:focus-visible
.btf-tree-project__shade {
    background-color:
        rgba(7, 24, 15, 0.56);
}


/* =========================================================
   PROJECT LABELS
========================================================= */

.btf-tree-project__top {
    position: absolute;
    top: 18px;
    right: 18px;
    left: 18px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.btf-tree-project__top > span {
    padding: 8px 10px;

    color: rgba(255, 255, 255, 0.82);
    background-color:
        rgba(16, 45, 33, 0.82);

    border:
        1px solid
        rgba(255, 255, 255, 0.15);

    border-radius:
        var(--btf-radius-xs, 4px);

    font-size: 0.55rem;
    font-weight: 800;
    letter-spacing: 0.075em;
    text-transform: uppercase;

    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.btf-tree-project__bottom {
    position: absolute;
    right: 18px;
    bottom: 18px;
    left: 18px;

    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
}

.btf-tree-project__bottom > span:first-child {
    display: grid;
    gap: 5px;

    min-width: 0;
}

.btf-tree-project__bottom small {
    color: var(--btf-copper);

    font-size: 0.57rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.btf-tree-project__bottom strong {
    color: var(--btf-white);

    font-family: var(--btf-font-heading);
    font-size:
        clamp(
            1.5rem,
            2.2vw,
            2.3rem
        );

    font-weight: 600;
    line-height: 0.96;
}

.btf-tree-project__open {
    display: grid;
    flex: 0 0 auto;
    place-items: center;

    width: 46px;
    height: 46px;

    color: var(--btf-white);
    background-color: var(--btf-copper);

    border-radius: 50%;

    transition:
        color var(--btf-transition-normal),
        background-color var(--btf-transition-normal),
        transform var(--btf-transition-normal);
}

.btf-tree-project__open svg {
    width: 20px;
    height: 20px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.btf-tree-project__link:hover
.btf-tree-project__open,
.btf-tree-project__link:focus-visible
.btf-tree-project__open {
    color: var(--btf-forest-950);
    background-color: var(--btf-white);

    transform: scale(1.06);
}


/* =========================================================
   SECTION FOOTER
========================================================= */

.btf-tree-gallery__footer {
    display: grid;
    align-items: center;
    gap: 24px;

    margin-top: 26px;
    padding: clamp(21px, 3vw, 29px);

    background-color:
        rgba(255, 255, 255, 0.045);

    border:
        1px solid
        rgba(255, 255, 255, 0.1);

    border-radius: var(--btf-radius-md);
}

.btf-tree-gallery__footer-copy {
    display: flex;
    align-items: center;
    gap: 13px;
}

.btf-tree-gallery__footer-icon {
    display: grid;
    flex: 0 0 auto;
    place-items: center;

    width: 50px;
    height: 50px;

    color: var(--btf-copper);

    border:
        1px solid
        rgba(255, 255, 255, 0.13);

    border-radius: 50%;
}

.btf-tree-gallery__footer-icon svg {
    width: 39px;
    height: 39px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.25;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.btf-tree-gallery__footer-copy > div {
    display: grid;
    gap: 4px;
}

.btf-tree-gallery__footer-copy small,
.btf-tree-gallery__next small {
    color: var(--btf-copper);

    font-size: 0.56rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.btf-tree-gallery__footer-copy strong,
.btf-tree-gallery__next strong {
    color: rgba(255, 255, 255, 0.84);

    font-family: var(--btf-font-heading);
    font-size: 1.3rem;
    font-weight: 600;
    line-height: 1.05;
}

.btf-tree-gallery__next {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;

    color: var(--btf-white);
}

.btf-tree-gallery__next > span:first-child {
    display: grid;
    gap: 4px;

    text-align: right;
}

.btf-tree-gallery__next-icon {
    display: grid;
    flex: 0 0 auto;
    place-items: center;

    width: 46px;
    height: 46px;

    color: var(--btf-white);
    background-color: var(--btf-copper);

    border-radius: 50%;

    transition:
        color var(--btf-transition-normal),
        background-color var(--btf-transition-normal),
        transform var(--btf-transition-normal);
}

.btf-tree-gallery__next-icon svg {
    width: 20px;
    height: 20px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.btf-tree-gallery__next:hover
.btf-tree-gallery__next-icon,
.btf-tree-gallery__next:focus-visible
.btf-tree-gallery__next-icon {
    color: var(--btf-forest-950);
    background-color: var(--btf-white);

    transform: translateX(4px);
}


/* =========================================================
   REVEALS
========================================================= */

.btf-tree-gallery.is-enhanced
[data-btf-tree-reveal],
.btf-tree-gallery.is-enhanced
[data-btf-tree-project] {
    opacity: 0;
    transform: translateY(30px);
}

.btf-tree-gallery.is-enhanced
[data-btf-tree-reveal].is-visible,
.btf-tree-gallery.is-enhanced
[data-btf-tree-project].is-visible {
    opacity: 1;
    transform: translateY(0);

    transition:
        opacity 720ms var(--btf-ease-standard),
        transform 720ms var(--btf-ease-standard);
}


/* =========================================================
   FULL-SCREEN LIGHTBOX
========================================================= */

html.btf-lightbox-open,
html.btf-lightbox-open body {
    overflow: hidden;
}

.btf-gallery-lightbox[hidden] {
    display: none !important;
}

.btf-gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;

    display: grid;
    place-items: center;

    width: 100%;
    height: 100vh;
    height: 100svh;
    padding: 15px;

    opacity: 0;
    visibility: hidden;

    transition:
        opacity 240ms ease,
        visibility 240ms ease;
}

.btf-gallery-lightbox.is-open {
    opacity: 1;
    visibility: visible;
}

.btf-gallery-lightbox__backdrop {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    background-color:
        rgba(3, 12, 7, 0.96);

    border: 0;
}

.btf-gallery-lightbox__dialog {
    position: relative;
    z-index: 2;

    display: grid;
    grid-template-rows:
        auto
        minmax(0, 1fr)
        auto;

    width: min(100%, 1600px);
    height:
        min(
            calc(100svh - 30px),
            1000px
        );

    overflow: hidden;

    color: var(--btf-white);
    background-color: var(--btf-charcoal);

    border:
        1px solid
        rgba(255, 255, 255, 0.14);

    border-radius: var(--btf-radius-md);

    box-shadow:
        0 35px 100px
        rgba(0, 0, 0, 0.55);
}

.btf-gallery-lightbox__header,
.btf-gallery-lightbox__footer {
    position: relative;
    z-index: 4;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;

    padding: 16px 20px;

    background-color:
        rgba(16, 45, 33, 0.94);
}

.btf-gallery-lightbox__header {
    border-bottom:
        1px solid
        rgba(255, 255, 255, 0.1);
}

.btf-gallery-lightbox__footer {
    border-top:
        1px solid
        rgba(255, 255, 255, 0.1);
}

.btf-gallery-lightbox__header > div,
.btf-gallery-lightbox__footer > div {
    display: grid;
    gap: 4px;
}

.btf-gallery-lightbox__header span,
.btf-gallery-lightbox__footer span {
    color: var(--btf-copper);

    font-size: 0.57rem;
    font-weight: 800;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.btf-gallery-lightbox__header strong {
    color: var(--btf-white);

    font-size: 0.75rem;
    font-weight: 800;
}

.btf-gallery-lightbox__footer strong {
    color: var(--btf-white);

    font-family: var(--btf-font-heading);
    font-size: 1.45rem;
    font-weight: 600;
}

.btf-gallery-lightbox__footer p {
    margin: 0;

    color: rgba(255, 255, 255, 0.46);

    font-size: 0.62rem;
}

.btf-gallery-lightbox__close,
.btf-gallery-lightbox__navigation {
    display: grid;
    place-items: center;

    color: var(--btf-white);
    background-color:
        rgba(255, 255, 255, 0.07);

    border:
        1px solid
        rgba(255, 255, 255, 0.14);

    border-radius: 50%;

    transition:
        color var(--btf-transition-normal),
        background-color var(--btf-transition-normal),
        border-color var(--btf-transition-normal),
        transform var(--btf-transition-normal);
}

.btf-gallery-lightbox__close {
    width: 43px;
    height: 43px;
}

.btf-gallery-lightbox__navigation {
    position: absolute;
    top: 50%;
    z-index: 5;

    width: 52px;
    height: 52px;

    transform: translateY(-50%);
}

.btf-gallery-lightbox__navigation--previous {
    left: 18px;
}

.btf-gallery-lightbox__navigation--next {
    right: 18px;
}

.btf-gallery-lightbox__close:hover,
.btf-gallery-lightbox__close:focus-visible,
.btf-gallery-lightbox__navigation:hover,
.btf-gallery-lightbox__navigation:focus-visible {
    color: var(--btf-forest-950);
    background-color: var(--btf-white);
    border-color: var(--btf-white);
}

.btf-gallery-lightbox__navigation:hover,
.btf-gallery-lightbox__navigation:focus-visible {
    transform:
        translateY(-50%)
        scale(1.06);
}

.btf-gallery-lightbox__close svg,
.btf-gallery-lightbox__navigation svg {
    width: 21px;
    height: 21px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.btf-gallery-lightbox__stage {
    position: relative;

    display: grid;
    place-items: center;

    min-width: 0;
    min-height: 0;
    padding: 18px 82px;

    overflow: hidden;

    background-color: #07130D;
}

.btf-gallery-lightbox__figure {
    display: grid;
    place-items: center;

    width: 100%;
    height: 100%;
    margin: 0;

    overflow: hidden;
}

.btf-gallery-lightbox__figure img {
    display: block;

    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;

    object-fit: contain;

    opacity: 1;
    transform: scale(1);

    transition:
        opacity 180ms ease,
        transform 260ms var(--btf-ease-standard);
}

.btf-gallery-lightbox.is-changing
.btf-gallery-lightbox__figure img {
    opacity: 0;
    transform: scale(0.985);
}































/* =========================================================
   BOOTS TREE & FENCE
   GALLERY CATEGORY DIVIDER
========================================================= */

.btf-gallery-divider {
    position: relative;
    isolation: isolate;

    padding-block:
        clamp(
            72px,
            9vw,
            125px
        );

    overflow: hidden;

    color: var(--btf-text);
    background-color: var(--btf-surface-soft);

    border-top: 1px solid var(--btf-border);
    border-bottom: 1px solid var(--btf-border);
}

.btf-gallery-divider::before {
    position: absolute;
    top: 0;
    left: 7%;
    z-index: 0;

    width: 82px;
    height: 4px;

    content: "";

    background-color: var(--btf-copper);
}

.btf-gallery-divider::after {
    position: absolute;
    top: 50%;
    right: 0;
    left: 0;
    z-index: 0;

    height: 1px;

    content: "";

    background-color:
        rgba(16, 45, 33, 0.055);

    pointer-events: none;
}

.btf-gallery-divider > .btf-container {
    position: relative;
    z-index: 2;
}


/* =========================================================
   DECORATIVE TREE RINGS
========================================================= */

.btf-gallery-divider__rings {
    position: absolute;
    top: 50%;
    left: -185px;
    z-index: 1;

    width: 430px;
    height: 430px;

    opacity: 0.75;

    transform:
        translateY(-50%)
        rotate(-7deg);

    pointer-events: none;
}

.btf-gallery-divider__rings span {
    position: absolute;
    top: 50%;
    left: 50%;

    border:
        1px solid
        rgba(16, 45, 33, 0.075);

    border-radius:
        46% 54% 51% 49% /
        55% 44% 56% 45%;

    opacity: 0;

    transform:
        translate(-50%, -50%)
        scale(0.82);

    transition:
        opacity 900ms var(--btf-ease-standard),
        transform 1100ms var(--btf-ease-standard);
}

.btf-gallery-divider__rings span:nth-child(1) {
    width: 100%;
    height: 91%;
}

.btf-gallery-divider__rings span:nth-child(2) {
    width: 76%;
    height: 70%;

    border-color:
        rgba(198, 106, 50, 0.15);
}

.btf-gallery-divider__rings span:nth-child(3) {
    width: 51%;
    height: 48%;
}

.btf-gallery-divider__rings span:nth-child(4) {
    width: 27%;
    height: 25%;

    background-color:
        rgba(198, 106, 50, 0.035);
}

.btf-gallery-divider.is-in-view
.btf-gallery-divider__rings span {
    opacity: 1;

    transform:
        translate(-50%, -50%)
        scale(1);
}

.btf-gallery-divider.is-in-view
.btf-gallery-divider__rings span:nth-child(2) {
    transition-delay: 90ms;
}

.btf-gallery-divider.is-in-view
.btf-gallery-divider__rings span:nth-child(3) {
    transition-delay: 180ms;
}

.btf-gallery-divider.is-in-view
.btf-gallery-divider__rings span:nth-child(4) {
    transition-delay: 270ms;
}


/* =========================================================
   DECORATIVE FENCE
========================================================= */

.btf-gallery-divider__fence {
    position: absolute;
    right: -35px;
    bottom: -20px;
    z-index: 1;

    display: flex;
    align-items: flex-end;
    gap: 8px;

    width: 290px;
    height: 235px;

    opacity: 0.055;

    transform: rotate(-3deg);

    pointer-events: none;
}

.btf-gallery-divider__fence > span {
    position: relative;

    display: block;

    width: 34px;
    height: 178px;

    background-color: var(--btf-forest-950);
}

.btf-gallery-divider__fence > span:nth-of-type(even) {
    height: 205px;
}

.btf-gallery-divider__fence > span::before {
    position: absolute;
    top: -18px;
    left: 0;

    width: 0;
    height: 0;

    content: "";

    border-right: 17px solid transparent;
    border-bottom:
        19px solid
        var(--btf-forest-950);
    border-left: 17px solid transparent;
}

.btf-gallery-divider__fence-rail {
    position: absolute;
    right: 0;
    left: 0;
    z-index: 2;

    height: 12px;

    background-color: var(--btf-forest-950);
}

.btf-gallery-divider__fence-rail--top {
    bottom: 125px;
}

.btf-gallery-divider__fence-rail--bottom {
    bottom: 56px;
}


/* =========================================================
   MAIN PANEL
========================================================= */

.btf-gallery-divider__panel {
    display: grid;
    align-items: stretch;

    overflow: hidden;

    background-color: var(--btf-white);

    border: 1px solid var(--btf-border);
    border-radius: var(--btf-radius-md);

    box-shadow: var(--btf-shadow-md);
}


/* =========================================================
   CATEGORY CARDS
========================================================= */

.btf-gallery-divider__category {
    position: relative;

    display: grid;
    grid-template-columns:
        auto
        56px
        minmax(0, 1fr)
        auto;

    align-items: center;
    gap: 17px;

    min-width: 0;
    min-height: 176px;
    padding:
        clamp(
            24px,
            3.2vw,
            38px
        );

    color: var(--btf-text);
    background-color: var(--btf-white);
}

.btf-gallery-divider__category--previous {
    border-bottom: 1px solid var(--btf-border);
}

.btf-gallery-divider__category--next {
    transition:
        color var(--btf-transition-normal),
        background-color var(--btf-transition-normal);
}

.btf-gallery-divider__category--next:hover,
.btf-gallery-divider__category--next:focus-visible {
    color: var(--btf-white);
    background-color: var(--btf-forest-950);
}

.btf-gallery-divider__category--next:focus-visible {
    outline:
        3px solid
        var(--btf-copper);

    outline-offset: -5px;
}


/* =========================================================
   CATEGORY NUMBER
========================================================= */

.btf-gallery-divider__number {
    align-self: start;

    color: rgba(16, 45, 33, 0.26);

    font-family: var(--btf-font-heading);
    font-size: 1.6rem;
    font-weight: 600;
    line-height: 1;

    transition:
        color
        var(--btf-transition-normal);
}

.btf-gallery-divider__category--next:hover
.btf-gallery-divider__number,
.btf-gallery-divider__category--next:focus-visible
.btf-gallery-divider__number {
    color: rgba(255, 255, 255, 0.35);
}


/* =========================================================
   CATEGORY ICON
========================================================= */

.btf-gallery-divider__category-icon {
    display: grid;
    place-items: center;

    width: 56px;
    height: 56px;

    color: var(--btf-forest-800);
    background-color: var(--btf-surface-soft);

    border: 1px solid var(--btf-border);
    border-radius: 50%;

    transition:
        color var(--btf-transition-normal),
        background-color var(--btf-transition-normal),
        border-color var(--btf-transition-normal),
        transform var(--btf-transition-normal);
}

.btf-gallery-divider__category-icon svg {
    width: 45px;
    height: 45px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.btf-gallery-divider__category--next:hover
.btf-gallery-divider__category-icon,
.btf-gallery-divider__category--next:focus-visible
.btf-gallery-divider__category-icon {
    color: var(--btf-white);
    background-color: var(--btf-copper);
    border-color: var(--btf-copper);

    transform: rotate(4deg);
}


/* =========================================================
   CATEGORY COPY
========================================================= */

.btf-gallery-divider__category-copy {
    display: grid;
    gap: 5px;

    min-width: 0;
}

.btf-gallery-divider__category-copy small {
    color: var(--btf-copper-dark);

    font-size: 0.58rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.btf-gallery-divider__category-copy strong {
    color: var(--btf-forest-950);

    font-family: var(--btf-font-heading);
    font-size:
        clamp(
            1.8rem,
            2.9vw,
            2.55rem
        );

    font-weight: 600;
    line-height: 0.95;

    transition:
        color
        var(--btf-transition-normal);
}

.btf-gallery-divider__category-copy > span {
    color: var(--btf-text-muted);

    font-size: 0.67rem;
    font-weight: 600;

    transition:
        color
        var(--btf-transition-normal);
}

.btf-gallery-divider__category--next:hover
.btf-gallery-divider__category-copy strong,
.btf-gallery-divider__category--next:focus-visible
.btf-gallery-divider__category-copy strong {
    color: var(--btf-white);
}

.btf-gallery-divider__category--next:hover
.btf-gallery-divider__category-copy > span,
.btf-gallery-divider__category--next:focus-visible
.btf-gallery-divider__category-copy > span {
    color: rgba(255, 255, 255, 0.55);
}


/* =========================================================
   CHECK AND ARROW
========================================================= */

.btf-gallery-divider__check,
.btf-gallery-divider__arrow {
    display: grid;
    flex: 0 0 auto;
    place-items: center;

    width: 44px;
    height: 44px;

    border-radius: 50%;
}

.btf-gallery-divider__check {
    color: var(--btf-white);
    background-color: var(--btf-forest-600);
}

.btf-gallery-divider__arrow {
    color: var(--btf-white);
    background-color: var(--btf-copper);

    transition:
        color var(--btf-transition-normal),
        background-color var(--btf-transition-normal),
        transform var(--btf-transition-normal);
}

.btf-gallery-divider__check svg,
.btf-gallery-divider__arrow svg {
    width: 19px;
    height: 19px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.btf-gallery-divider__category--next:hover
.btf-gallery-divider__arrow,
.btf-gallery-divider__category--next:focus-visible
.btf-gallery-divider__arrow {
    color: var(--btf-forest-950);
    background-color: var(--btf-white);

    transform: translateX(5px);
}


/* =========================================================
   CENTER CONTENT
========================================================= */

.btf-gallery-divider__center {
    position: relative;

    display: flex;
    flex-direction: column;
    justify-content: center;

    min-width: 0;
    padding:
        clamp(
            30px,
            5vw,
            65px
        );

    color: var(--btf-white);
    background-color: var(--btf-forest-950);

    text-align: center;
}

.btf-gallery-divider__center::before,
.btf-gallery-divider__center::after {
    position: absolute;
    left: 50%;

    width: 1px;
    height: 30px;

    content: "";

    background-color:
        rgba(255, 255, 255, 0.13);
}

.btf-gallery-divider__center::before {
    top: 0;
}

.btf-gallery-divider__center::after {
    bottom: 0;
}

.btf-gallery-divider__eyebrow {
    display: block;

    margin-bottom: 15px;

    color: var(--btf-copper);

    font-size: 0.61rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.btf-gallery-divider__center h2 {
    max-width: 680px;
    margin: 0 auto 18px;

    color: var(--btf-white);

    font-family: var(--btf-font-heading);
    font-size:
        clamp(
            2.4rem,
            4.2vw,
            4.1rem
        );

    font-weight: 600;
    line-height: 0.94;
    letter-spacing: -0.04em;
}

.btf-gallery-divider__center h2 em {
    display: block;

    color: var(--btf-sand);

    font-weight: 500;
}

.btf-gallery-divider__center p {
    max-width: 570px;
    margin: 0 auto;

    color: rgba(255, 255, 255, 0.58);

    font-size: 0.83rem;
    line-height: 1.7;
}


/* =========================================================
   TRANSITION LINE
========================================================= */

.btf-gallery-divider__transition {
    display: grid;
    grid-template-columns:
        35px
        minmax(70px, 170px)
        35px;

    align-items: center;
    justify-content: center;
    gap: 11px;

    margin-top: 28px;
}

.btf-gallery-divider__transition-start,
.btf-gallery-divider__transition-end {
    display: grid;
    place-items: center;

    width: 35px;
    height: 35px;

    border-radius: 50%;

    font-size: 0.59rem;
    font-weight: 800;
}

.btf-gallery-divider__transition-start {
    color: rgba(255, 255, 255, 0.58);

    border:
        1px solid
        rgba(255, 255, 255, 0.17);
}

.btf-gallery-divider__transition-end {
    color: var(--btf-white);
    background-color: var(--btf-copper);

    border: 1px solid var(--btf-copper);
}

.btf-gallery-divider__transition-line {
    position: relative;

    display: block;

    height: 2px;

    overflow: hidden;

    background-color:
        rgba(255, 255, 255, 0.13);
}

.btf-gallery-divider__transition-line i {
    display: block;

    width: 100%;
    height: 100%;

    background-color: var(--btf-copper);

    transform: scaleX(0);
    transform-origin: left center;

    transition:
        transform
        1100ms
        var(--btf-ease-standard);
}

.btf-gallery-divider.is-in-view
.btf-gallery-divider__transition-line i {
    transform: scaleX(1);

    transition-delay: 300ms;
}


/* =========================================================
   BOTTOM NAVIGATION
========================================================= */

.btf-gallery-divider__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;

    margin-top: 20px;
    padding: 18px 21px;

    background-color:
        rgba(255, 255, 255, 0.76);

    border: 1px solid var(--btf-border);
    border-radius: var(--btf-radius-sm);
}

.btf-gallery-divider__bottom > span {
    color: var(--btf-text-muted);

    font-size: 0.61rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.btf-gallery-divider__bottom > a {
    display: inline-flex;
    align-items: center;
    gap: 9px;

    color: var(--btf-forest-950);

    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.045em;
    text-transform: uppercase;

    transition:
        color
        var(--btf-transition-normal);
}

.btf-gallery-divider__bottom > a:hover,
.btf-gallery-divider__bottom > a:focus-visible {
    color: var(--btf-copper-dark);
}

.btf-gallery-divider__bottom svg {
    width: 18px;
    height: 18px;

    fill: none;
    stroke: var(--btf-copper);
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;

    transition:
        transform
        var(--btf-transition-normal);
}

.btf-gallery-divider__bottom > a:hover svg,
.btf-gallery-divider__bottom > a:focus-visible svg {
    transform: translateY(4px);
}


/* =========================================================
   REVEAL ANIMATIONS
========================================================= */

.btf-gallery-divider.is-enhanced
[data-btf-divider-reveal] {
    opacity: 0;
    transform: translateY(30px);
}

.btf-gallery-divider.is-enhanced
[data-btf-divider-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);

    transition:
        opacity 760ms var(--btf-ease-standard),
        transform 760ms var(--btf-ease-standard);
}

.btf-gallery-divider.is-enhanced
.btf-gallery-divider__center.is-visible {
    transition-delay: 90ms;
}

.btf-gallery-divider.is-enhanced
.btf-gallery-divider__category--next.is-visible {
    transition-delay: 180ms;
}

.btf-gallery-divider.is-enhanced
.btf-gallery-divider__bottom.is-visible {
    transition-delay: 240ms;
}







































/* =========================================================
   BOOTS TREE & FENCE
   FENCE WORK GALLERY — REBUILT
========================================================= */

.btf-fence-gallery {
    position: relative;
    isolation: isolate;

    padding-block: var(--btf-section-space);

    overflow: hidden;

    color: var(--btf-text);
    background-color: var(--btf-background);

    border-top: 1px solid var(--btf-border);
}

.btf-fence-gallery::before {
    position: absolute;
    inset: 0;
    z-index: -2;

    content: "";

    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='94' height='94' viewBox='0 0 94 94'%3E%3Cpath d='M0 93.5H94M93.5 0V94' fill='none' stroke='%23102D21' stroke-opacity='.024'/%3E%3C/svg%3E");

    background-repeat: repeat;
    background-size: 94px 94px;
}

.btf-fence-gallery::after {
    position: absolute;
    top: 0;
    left: 7%;
    z-index: -1;

    width: 82px;
    height: 4px;

    content: "";

    background-color: var(--btf-copper);
}


/* =========================================================
   DECORATIVE FENCE
========================================================= */

.btf-fence-gallery__decoration {
    position: absolute;
    top: 4%;
    right: -90px;
    z-index: -1;

    display: flex;
    align-items: flex-end;
    gap: 8px;

    width: 310px;
    height: 245px;

    opacity: 0.045;

    transform: rotate(3deg);

    pointer-events: none;
}

.btf-fence-gallery__decoration > span {
    position: relative;

    display: block;

    width: 36px;
    height: 175px;

    background-color: var(--btf-forest-950);

    opacity: 0;
    transform: translateY(30px);

    transition:
        opacity 800ms var(--btf-ease-standard),
        transform 900ms var(--btf-ease-standard);
}

.btf-fence-gallery__decoration > span:nth-child(even) {
    height: 205px;
}

.btf-fence-gallery__decoration > span::before {
    position: absolute;
    top: -19px;
    left: 0;

    width: 0;
    height: 0;

    content: "";

    border-right: 18px solid transparent;
    border-bottom:
        20px solid
        var(--btf-forest-950);
    border-left: 18px solid transparent;
}

.btf-fence-gallery__decoration-rail {
    position: absolute;
    right: 0;
    left: 0;
    z-index: 2;

    display: block;

    height: 12px;

    background-color: var(--btf-forest-950);

    transform: scaleX(0);
    transform-origin: right center;

    transition:
        transform
        1000ms
        var(--btf-ease-standard);
}

.btf-fence-gallery__decoration-rail--top {
    bottom: 125px;
}

.btf-fence-gallery__decoration-rail--bottom {
    bottom: 55px;
}

.btf-fence-gallery.is-in-view
.btf-fence-gallery__decoration > span {
    opacity: 1;
    transform: translateY(0);
}

.btf-fence-gallery.is-in-view
.btf-fence-gallery__decoration > span:nth-child(2) {
    transition-delay: 70ms;
}

.btf-fence-gallery.is-in-view
.btf-fence-gallery__decoration > span:nth-child(3) {
    transition-delay: 140ms;
}

.btf-fence-gallery.is-in-view
.btf-fence-gallery__decoration > span:nth-child(4) {
    transition-delay: 210ms;
}

.btf-fence-gallery.is-in-view
.btf-fence-gallery__decoration > span:nth-child(5) {
    transition-delay: 280ms;
}

.btf-fence-gallery.is-in-view
.btf-fence-gallery__decoration > span:nth-child(6) {
    transition-delay: 350ms;
}

.btf-fence-gallery.is-in-view
.btf-fence-gallery__decoration-rail {
    transform: scaleX(1);

    transition-delay: 210ms;
}


/* =========================================================
   HEADER
========================================================= */

.btf-fence-gallery__header {
    display: grid;
    align-items: end;

    margin-bottom:
        clamp(42px, 6vw, 76px);
}

.btf-fence-gallery__heading,
.btf-fence-gallery__introduction {
    min-width: 0;
}

.btf-fence-gallery__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 13px;

    margin-bottom: 20px;

    color: var(--btf-copper);

    font-size: var(--btf-text-xs);
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.btf-fence-gallery__eyebrow > span {
    display: inline-grid;
    place-items: center;

    width: 31px;
    height: 31px;

    color: var(--btf-forest-950);

    border: 1px solid var(--btf-border);
    border-radius: 50%;

    font-size: 0.62rem;
    letter-spacing: 0;
}

.btf-fence-gallery__heading h2 {
    max-width: 850px;
    margin: 0;

    color: var(--btf-forest-950);

    font-family: var(--btf-font-heading);
    font-size: var(--btf-heading-md);
    font-weight: 600;
    line-height: 0.96;
    letter-spacing: -0.045em;
}

.btf-fence-gallery__heading h2 em {
    display: block;

    color: var(--btf-bark-600);

    font-weight: 500;
}

.btf-fence-gallery__introduction {
    display: grid;
    gap: 26px;
}

.btf-fence-gallery__introduction > p {
    max-width: 560px;
    margin: 0;

    color: var(--btf-text-soft);

    font-size: 0.96rem;
    line-height: 1.8;
}


/* =========================================================
   SUMMARY
========================================================= */

.btf-fence-gallery__summary {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.btf-fence-gallery__summary > div {
    display: grid;
    gap: 4px;
}

.btf-fence-gallery__summary small {
    color: var(--btf-text-muted);

    font-size: 0.54rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.btf-fence-gallery__summary strong {
    color: var(--btf-forest-950);

    font-size: 0.68rem;
    font-weight: 800;
}

.btf-fence-gallery__summary i {
    width: 5px;
    height: 5px;

    background-color: var(--btf-copper);
    border-radius: 50%;
}


/* =========================================================
   SAFE SIX-IMAGE GRID
========================================================= */

.btf-fence-gallery__grid {
    display: grid;
    gap: 18px;

    width: 100%;
}

.btf-fence-project {
    position: relative;

    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;

    overflow: hidden;
}

.btf-fence-project__link {
    position: relative;
    isolation: isolate;

    display: block;

    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;

    overflow: hidden;

    color: var(--btf-white);
    background-color: var(--btf-forest-900);

    border: 1px solid var(--btf-border);
    border-radius: var(--btf-radius-md);

    box-shadow: var(--btf-shadow-md);

    transform: translateZ(0);

    transition:
        border-color var(--btf-transition-normal),
        box-shadow var(--btf-transition-normal),
        transform var(--btf-transition-normal);
}

.btf-fence-project__link:hover,
.btf-fence-project__link:focus-visible {
    border-color:
        rgba(198, 106, 50, 0.6);

    box-shadow:
        0 30px 72px
        rgba(16, 45, 33, 0.24);

    transform: translateY(-5px);
}

.btf-fence-project__link:focus-visible {
    outline:
        3px solid
        var(--btf-copper);

    outline-offset: 4px;
}


/* =========================================================
   IMAGE
========================================================= */

.btf-fence-project__media {
    position: absolute;
    inset: 0;
    z-index: -3;

    display: grid;
    place-items: center;

    width: 100%;
    height: 100%;
    margin: 0;

    overflow: hidden;

    background-color: var(--btf-forest-900);
}

.btf-fence-project__media img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;

    filter:
        saturate(0.82)
        contrast(1.04);

    transform: scale(1.04);

    transition:
        filter var(--btf-transition-slow),
        transform 760ms var(--btf-ease-standard);
}

.btf-fence-project__link:hover
.btf-fence-project__media img,
.btf-fence-project__link:focus-visible
.btf-fence-project__media img {
    filter:
        saturate(1)
        contrast(1.04);

    transform: scale(1);
}


/* Image error fallback */

.btf-fence-project__fallback {
    display: none;

    padding: 18px;

    color: rgba(255, 255, 255, 0.7);

    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-align: center;
    text-transform: uppercase;
}

.btf-fence-project__media.has-image-error img {
    display: none;
}

.btf-fence-project__media.has-image-error
.btf-fence-project__fallback {
    display: block;
}


/* =========================================================
   SHADE
========================================================= */

.btf-fence-project__shade {
    position: absolute;
    inset: 0;
    z-index: -2;

    background-color:
        rgba(7, 24, 15, 0.42);

    transition:
        background-color var(--btf-transition-slow);

    pointer-events: none;
}

.btf-fence-project__link:hover
.btf-fence-project__shade,
.btf-fence-project__link:focus-visible
.btf-fence-project__shade {
    background-color:
        rgba(7, 24, 15, 0.56);
}


/* =========================================================
   PROJECT LABELS
========================================================= */

.btf-fence-project__top {
    position: absolute;
    top: 18px;
    right: 18px;
    left: 18px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.btf-fence-project__top > span {
    padding: 8px 10px;

    color: rgba(255, 255, 255, 0.82);
    background-color:
        rgba(16, 45, 33, 0.82);

    border:
        1px solid
        rgba(255, 255, 255, 0.15);

    border-radius:
        var(--btf-radius-xs, 4px);

    font-size: 0.55rem;
    font-weight: 800;
    letter-spacing: 0.075em;
    text-transform: uppercase;

    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.btf-fence-project__bottom {
    position: absolute;
    right: 18px;
    bottom: 18px;
    left: 18px;

    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
}

.btf-fence-project__bottom > span:first-child {
    display: grid;
    gap: 5px;

    min-width: 0;
}

.btf-fence-project__bottom small {
    color: var(--btf-copper);

    font-size: 0.57rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.btf-fence-project__bottom strong {
    color: var(--btf-white);

    font-family: var(--btf-font-heading);
    font-size:
        clamp(
            1.5rem,
            2.2vw,
            2.3rem
        );

    font-weight: 600;
    line-height: 0.96;
}

.btf-fence-project__open {
    display: grid;
    flex: 0 0 auto;
    place-items: center;

    width: 46px;
    height: 46px;

    color: var(--btf-white);
    background-color: var(--btf-copper);

    border-radius: 50%;

    transition:
        color var(--btf-transition-normal),
        background-color var(--btf-transition-normal),
        transform var(--btf-transition-normal);
}

.btf-fence-project__open svg {
    width: 20px;
    height: 20px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.btf-fence-project__link:hover
.btf-fence-project__open,
.btf-fence-project__link:focus-visible
.btf-fence-project__open {
    color: var(--btf-forest-950);
    background-color: var(--btf-white);

    transform: scale(1.06);
}


/* =========================================================
   SECTION FOOTER
========================================================= */

.btf-fence-gallery__footer {
    display: grid;
    align-items: center;
    gap: 24px;

    margin-top: 26px;
    padding: clamp(21px, 3vw, 29px);

    background-color: var(--btf-white);

    border: 1px solid var(--btf-border);
    border-radius: var(--btf-radius-md);

    box-shadow: var(--btf-shadow-xs);
}

.btf-fence-gallery__footer-copy {
    display: flex;
    align-items: center;
    gap: 13px;
}

.btf-fence-gallery__footer-icon {
    display: grid;
    flex: 0 0 auto;
    place-items: center;

    width: 50px;
    height: 50px;

    color: var(--btf-forest-800);
    background-color: var(--btf-surface-soft);

    border: 1px solid var(--btf-border);
    border-radius: 50%;
}

.btf-fence-gallery__footer-icon svg {
    width: 39px;
    height: 39px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.25;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.btf-fence-gallery__footer-copy > div {
    display: grid;
    gap: 4px;
}

.btf-fence-gallery__footer-copy small,
.btf-fence-gallery__previous small {
    color: var(--btf-copper-dark);

    font-size: 0.56rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.btf-fence-gallery__footer-copy strong,
.btf-fence-gallery__previous strong {
    color: var(--btf-forest-950);

    font-family: var(--btf-font-heading);
    font-size: 1.3rem;
    font-weight: 600;
    line-height: 1.05;
}

.btf-fence-gallery__previous {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;

    color: var(--btf-forest-950);
}

.btf-fence-gallery__previous > span:last-child {
    display: grid;
    gap: 4px;

    text-align: right;
}

.btf-fence-gallery__previous-icon {
    display: grid;
    flex: 0 0 auto;
    place-items: center;

    width: 46px;
    height: 46px;

    color: var(--btf-white);
    background-color: var(--btf-copper);

    border-radius: 50%;

    transition:
        color var(--btf-transition-normal),
        background-color var(--btf-transition-normal),
        transform var(--btf-transition-normal);
}

.btf-fence-gallery__previous-icon svg {
    width: 20px;
    height: 20px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.btf-fence-gallery__previous:hover
.btf-fence-gallery__previous-icon,
.btf-fence-gallery__previous:focus-visible
.btf-fence-gallery__previous-icon {
    color: var(--btf-white);
    background-color: var(--btf-forest-950);

    transform: translateX(-4px);
}


/* =========================================================
   CTA
========================================================= */

.btf-fence-gallery__cta {
    display: grid;
    align-items: center;
    gap: 24px;

    margin-top: 24px;
    padding: clamp(25px, 3.4vw, 39px);

    color: var(--btf-white);
    background-color: var(--btf-forest-950);

    border:
        1px solid
        rgba(255, 255, 255, 0.1);

    border-radius: var(--btf-radius-md);

    box-shadow: var(--btf-shadow-lg);
}

.btf-fence-gallery__cta-icon {
    display: grid;
    place-items: center;

    width: 62px;
    height: 62px;

    color: var(--btf-copper);

    border:
        1px solid
        rgba(255, 255, 255, 0.14);

    border-radius: 50%;
}

.btf-fence-gallery__cta-icon svg {
    width: 47px;
    height: 47px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.25;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.btf-fence-gallery__cta-copy {
    display: grid;
    gap: 5px;
}

.btf-fence-gallery__cta-copy span {
    color: var(--btf-copper);

    font-size: 0.63rem;
    font-weight: 800;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.btf-fence-gallery__cta-copy strong {
    max-width: 690px;

    color: var(--btf-white);

    font-family: var(--btf-font-heading);
    font-size:
        clamp(
            1.6rem,
            2.8vw,
            2.35rem
        );

    font-weight: 600;
    line-height: 1.05;
}

.btf-fence-gallery__cta
.btf-button svg {
    width: 19px;
    height: 19px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;

    transition:
        transform var(--btf-transition-normal);
}

.btf-fence-gallery__cta
.btf-button:hover svg,
.btf-fence-gallery__cta
.btf-button:focus-visible svg {
    transform: translate(3px, -3px);
}


/* =========================================================
   REVEALS
========================================================= */

.btf-fence-gallery.is-enhanced
[data-btf-fence-reveal],
.btf-fence-gallery.is-enhanced
[data-btf-fence-project] {
    opacity: 0;
    transform: translateY(30px);
}

.btf-fence-gallery.is-enhanced
[data-btf-fence-reveal].is-visible,
.btf-fence-gallery.is-enhanced
[data-btf-fence-project].is-visible {
    opacity: 1;
    transform: translateY(0);

    transition:
        opacity 720ms var(--btf-ease-standard),
        transform 720ms var(--btf-ease-standard);
}








































/* =========================================================
   1. COMPUTER
   1200px AND UP
========================================================= */

@media (min-width: 1200px) {
       .btf-fence-gallery__header {
        grid-template-columns:
            minmax(0, 1.3fr)
            minmax(360px, 0.7fr);

        gap:
            clamp(
                70px,
                8vw,
                140px
            );
    }

    .btf-fence-gallery__grid {
        grid-template-columns:
            repeat(12, minmax(0, 1fr));

        grid-template-rows:
            repeat(
                3,
                clamp(
                    180px,
                    14vw,
                    225px
                )
            );

        grid-template-areas:
            "project-1 project-1 project-1 project-1 project-1 project-2 project-2 project-2 project-2 project-2 project-2 project-2"
            "project-3 project-3 project-3 project-3 project-3 project-2 project-2 project-2 project-2 project-2 project-2 project-2"
            "project-4 project-4 project-4 project-4 project-5 project-5 project-5 project-5 project-6 project-6 project-6 project-6";
    }

    .btf-fence-project:nth-child(1) {
        grid-area: project-1;
    }

    .btf-fence-project:nth-child(2) {
        grid-area: project-2;
    }

    .btf-fence-project:nth-child(3) {
        grid-area: project-3;
    }

    .btf-fence-project:nth-child(4) {
        grid-area: project-4;
    }

    .btf-fence-project:nth-child(5) {
        grid-area: project-5;
    }

    .btf-fence-project:nth-child(6) {
        grid-area: project-6;
    }

    .btf-fence-gallery__footer {
        grid-template-columns:
            minmax(0, 1fr)
            auto;
    }

    .btf-fence-gallery__cta {
        grid-template-columns:
            auto
            minmax(0, 1fr)
            auto;
    }
       .btf-gallery-divider__panel {
        grid-template-columns:
            minmax(275px, 0.8fr)
            minmax(430px, 1.4fr)
            minmax(275px, 0.8fr);
    }

    .btf-gallery-divider__category--previous {
        border-right: 1px solid var(--btf-border);
        border-bottom: 0;
    }

    .btf-gallery-divider__category--next {
        border-left:
            1px solid
            rgba(255, 255, 255, 0.08);
    }
        .btf-tree-gallery__header {
        grid-template-columns:
            minmax(0, 1.3fr)
            minmax(360px, 0.7fr);

        gap:
            clamp(
                70px,
                8vw,
                140px
            );
    }

    .btf-tree-gallery__grid {
        grid-template-columns:
            repeat(12, minmax(0, 1fr));

        grid-template-rows:
            repeat(
                3,
                clamp(
                    180px,
                    14vw,
                    225px
                )
            );

        grid-template-areas:
            "project-1 project-1 project-1 project-1 project-1 project-1 project-1 project-2 project-2 project-2 project-2 project-2"
            "project-1 project-1 project-1 project-1 project-1 project-1 project-1 project-3 project-3 project-3 project-3 project-3"
            "project-4 project-4 project-4 project-4 project-5 project-5 project-5 project-5 project-6 project-6 project-6 project-6";
    }

    .btf-tree-project:nth-child(1) {
        grid-area: project-1;
    }

    .btf-tree-project:nth-child(2) {
        grid-area: project-2;
    }

    .btf-tree-project:nth-child(3) {
        grid-area: project-3;
    }

    .btf-tree-project:nth-child(4) {
        grid-area: project-4;
    }

    .btf-tree-project:nth-child(5) {
        grid-area: project-5;
    }

    .btf-tree-project:nth-child(6) {
        grid-area: project-6;
    }

    .btf-tree-gallery__footer {
        grid-template-columns:
            minmax(0, 1fr)
            auto;
    }

     .btf-gallery-filter__bar {
        grid-template-columns:
            minmax(190px, 0.65fr)
            minmax(540px, 1.7fr)
            minmax(215px, 0.65fr);
    }

    .btf-gallery-filter__scroll {
        justify-content: center;
    }

      .btf-gallery-intro__header {
        grid-template-columns:
            minmax(0, 1.3fr)
            minmax(360px, 0.7fr);

        gap: clamp(70px, 8vw, 140px);
    }

    .btf-gallery-intro__categories {
        grid-template-columns:
            minmax(0, 1.06fr)
            minmax(0, 0.94fr);
    }

    .btf-gallery-intro-card--tree {
        min-height: 545px;
    }

    .btf-gallery-intro-card--fence {
        min-height: 500px;
        margin-top: 45px;
    }

    .btf-gallery-intro__rail {
        grid-template-columns:
            auto
            minmax(0, 1fr)
            auto;
    }

    .btf-gallery-hero__layout {
        grid-template-columns:
            minmax(0, 1.15fr)
            minmax(350px, 0.85fr);

        gap:
            clamp(
                65px,
                7vw,
                135px
            );
    }

    .btf-gallery-hero__content {
        align-self: center;
    }

}


/* =========================================================
   2. TABLET
   768px TO 1199px
========================================================= */

@media (min-width: 768px) and (max-width: 1199px) {
     .btf-fence-gallery__header {
        grid-template-columns:
            minmax(0, 1.08fr)
            minmax(280px, 0.92fr);

        gap: 48px;
    }

    .btf-fence-gallery__grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        grid-template-areas:
            "project-1 project-1"
            "project-2 project-3"
            "project-4 project-5"
            "project-6 project-6";

        grid-template-rows:
            410px
            310px
            310px
            390px;

        gap: 16px;
    }

    .btf-fence-project:nth-child(1) {
        grid-area: project-1;
    }

    .btf-fence-project:nth-child(2) {
        grid-area: project-2;
    }

    .btf-fence-project:nth-child(3) {
        grid-area: project-3;
    }

    .btf-fence-project:nth-child(4) {
        grid-area: project-4;
    }

    .btf-fence-project:nth-child(5) {
        grid-area: project-5;
    }

    .btf-fence-project:nth-child(6) {
        grid-area: project-6;
    }

    .btf-fence-gallery__footer {
        grid-template-columns:
            minmax(0, 1fr)
            auto;
    }

    .btf-fence-gallery__cta {
        grid-template-columns:
            auto
            minmax(0, 1fr)
            auto;
    }

      .btf-gallery-divider__panel {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .btf-gallery-divider__center {
        grid-column: 1 / -1;
        grid-row: 1;

        min-height: 310px;
    }

    .btf-gallery-divider__category--previous {
        border-right: 1px solid var(--btf-border);
        border-bottom: 0;
    }

    .btf-gallery-divider__category {
        min-height: 160px;
    }

    .btf-gallery-divider__rings {
        left: -250px;
    }

    .btf-gallery-divider__fence {
        right: -100px;
    }

       .btf-tree-gallery__header {
        grid-template-columns:
            minmax(0, 1.08fr)
            minmax(280px, 0.92fr);

        gap: 48px;
    }

    .btf-tree-gallery__grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        grid-template-areas:
            "project-1 project-1"
            "project-2 project-3"
            "project-4 project-5"
            "project-6 project-6";

        grid-template-rows:
            410px
            310px
            310px
            390px;

        gap: 16px;
    }

    .btf-tree-project:nth-child(1) {
        grid-area: project-1;
    }

    .btf-tree-project:nth-child(2) {
        grid-area: project-2;
    }

    .btf-tree-project:nth-child(3) {
        grid-area: project-3;
    }

    .btf-tree-project:nth-child(4) {
        grid-area: project-4;
    }

    .btf-tree-project:nth-child(5) {
        grid-area: project-5;
    }

    .btf-tree-project:nth-child(6) {
        grid-area: project-6;
    }

    .btf-tree-gallery__footer {
        grid-template-columns:
            minmax(0, 1fr)
            auto;
    }

      :root {
        --btf-gallery-filter-height: 96px;
    }

    .btf-gallery-filter__bar {
        grid-template-columns:
            auto
            minmax(0, 1fr)
            auto;

        gap: 17px;
    }

    .btf-gallery-filter__heading-copy {
        display: none;
    }

    .btf-gallery-filter__scroll {
        overflow-x: auto;
        overscroll-behavior-inline: contain;
        scrollbar-width: none;

        scroll-behavior: smooth;
        scroll-snap-type: x proximity;
    }

    .btf-gallery-filter__scroll::-webkit-scrollbar {
        display: none;
    }

    .btf-gallery-filter__link {
        flex: 0 0 174px;

        scroll-snap-align: center;
    }

    .btf-gallery-filter__current {
        display: none;
    }
      .btf-gallery-intro__header {
        grid-template-columns:
            minmax(0, 1.08fr)
            minmax(280px, 0.92fr);

        gap: 48px;
    }

    .btf-gallery-intro__categories {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 20px;
    }

    .btf-gallery-intro-card {
        min-height: 480px;
        padding: 28px;
    }

    .btf-gallery-intro-card__content h3 {
        font-size: clamp(3rem, 5.5vw, 4.2rem);
    }

    .btf-gallery-intro__rail {
        grid-template-columns:
            auto
            minmax(0, 1fr)
            auto;
    }

    .btf-gallery-intro__side-label {
        display: none;
    }


    :root {
        --btf-gallery-hero-bottom-height: 68px;
    }

    .btf-gallery-hero__visual {
        top: 0;
        left: 0;
    }

    .btf-gallery-hero__visual img {
        object-position: 63% center;
    }

    .btf-gallery-hero__visual-overlay {
        background-color:
            rgba(7, 22, 14, 0.7);
    }

    .btf-gallery-hero__line {
        display: none;
    }

    .btf-gallery-hero__layout {
        grid-template-columns:
            minmax(0, 1fr)
            minmax(285px, 0.58fr);

        gap: 39px;
    }

    .btf-gallery-hero h1 {
        font-size:
            clamp(
                3.6rem,
                min(6.8vw, 8vh),
                5.5rem
            );
    }

    .btf-gallery-hero__description {
        max-width: 520px;
    }

    .btf-gallery-hero__project-card {
        width: 100%;
        margin-bottom: 25px;
        padding: 23px;
    }

    .btf-gallery-hero__project {
        grid-template-columns:
            61px
            minmax(0, 1fr)
            20px;

        min-height: 79px;
    }

    .btf-gallery-hero__project figure {
        width: 61px;
        height: 55px;
    }

}


/* =========================================================
   3. MOBILE
   481px TO 767px
========================================================= */

@media (min-width: 481px) and (max-width: 767px) {
     .btf-fence-gallery__header {
        grid-template-columns: 1fr;
        gap: 27px;
    }

    .btf-fence-gallery__heading h2 em {
        display: inline;
    }

    .btf-fence-gallery__grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        grid-template-areas:
            "project-1 project-1"
            "project-2 project-3"
            "project-4 project-5"
            "project-6 project-6";

        grid-template-rows:
            390px
            290px
            290px
            370px;

        gap: 14px;
    }

    .btf-fence-project:nth-child(1) {
        grid-area: project-1;
    }

    .btf-fence-project:nth-child(2) {
        grid-area: project-2;
    }

    .btf-fence-project:nth-child(3) {
        grid-area: project-3;
    }

    .btf-fence-project:nth-child(4) {
        grid-area: project-4;
    }

    .btf-fence-project:nth-child(5) {
        grid-area: project-5;
    }

    .btf-fence-project:nth-child(6) {
        grid-area: project-6;
    }

    .btf-fence-project__top,
    .btf-fence-project__bottom {
        right: 14px;
        left: 14px;
    }

    .btf-fence-project__top {
        top: 14px;
    }

    .btf-fence-project__bottom {
        bottom: 14px;
    }

    .btf-fence-project__bottom strong {
        font-size: 1.55rem;
    }

    .btf-fence-gallery__footer {
        grid-template-columns: 1fr;
    }

    .btf-fence-gallery__previous {
        justify-content: flex-start;
    }

    .btf-fence-gallery__previous > span:last-child {
        text-align: left;
    }

    .btf-fence-gallery__cta {
        grid-template-columns:
            auto
            minmax(0, 1fr);
    }

    .btf-fence-gallery__cta
    .btf-button {
        grid-column: 1 / -1;

        width: 100%;
    }

     .btf-gallery-divider__panel {
        grid-template-columns: 1fr;
    }

    .btf-gallery-divider__center {
        grid-row: 1;

        min-height: 320px;
    }

    .btf-gallery-divider__category {
        min-height: 148px;
    }

    .btf-gallery-divider__category--previous {
        border-bottom: 1px solid var(--btf-border);
    }

    .btf-gallery-divider__center h2 em {
        display: inline;
    }

    .btf-gallery-divider__rings {
        top: 26%;
        left: -285px;

        width: 410px;
        height: 410px;
    }

    .btf-gallery-divider__fence {
        right: -115px;

        opacity: 0.04;
    }

       .btf-tree-gallery__header {
        grid-template-columns: 1fr;
        gap: 27px;
    }

    .btf-tree-gallery__heading h2 em {
        display: inline;
    }

    .btf-tree-gallery__grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        grid-template-areas:
            "project-1 project-1"
            "project-2 project-3"
            "project-4 project-5"
            "project-6 project-6";

        grid-template-rows:
            390px
            290px
            290px
            370px;

        gap: 14px;
    }

    .btf-tree-project:nth-child(1) {
        grid-area: project-1;
    }

    .btf-tree-project:nth-child(2) {
        grid-area: project-2;
    }

    .btf-tree-project:nth-child(3) {
        grid-area: project-3;
    }

    .btf-tree-project:nth-child(4) {
        grid-area: project-4;
    }

    .btf-tree-project:nth-child(5) {
        grid-area: project-5;
    }

    .btf-tree-project:nth-child(6) {
        grid-area: project-6;
    }

    .btf-tree-project__top,
    .btf-tree-project__bottom {
        right: 14px;
        left: 14px;
    }

    .btf-tree-project__top {
        top: 14px;
    }

    .btf-tree-project__bottom {
        bottom: 14px;
    }

    .btf-tree-project__bottom strong {
        font-size: 1.55rem;
    }

    .btf-tree-gallery__footer {
        grid-template-columns: 1fr;
    }

    .btf-tree-gallery__next {
        justify-content: flex-start;
    }

    .btf-tree-gallery__next > span:first-child {
        text-align: left;
    }

    .btf-gallery-lightbox {
        padding: 8px;
    }

    .btf-gallery-lightbox__dialog {
        height:
            calc(
                100svh - 16px
            );
    }

    .btf-gallery-lightbox__stage {
        padding: 12px 62px;
    }

    .btf-gallery-lightbox__navigation {
        width: 44px;
        height: 44px;
    }

    .btf-gallery-lightbox__navigation--previous {
        left: 9px;
    }

    .btf-gallery-lightbox__navigation--next {
        right: 9px;
    }

     :root {
        --btf-gallery-filter-height: 86px;
    }

    .btf-gallery-filter__accent {
        left: var(--btf-page-padding);

        width: 60px;
    }

    .btf-gallery-filter__bar {
        grid-template-columns:
            minmax(0, 1fr)
            auto;

        gap: 12px;

        min-height: var(--btf-gallery-filter-height);
        padding-block: 10px;
    }

    .btf-gallery-filter__heading {
        display: none;
    }

    .btf-gallery-filter__navigation {
        min-width: 0;
    }

    .btf-gallery-filter__scroll {
        overflow-x: auto;
        overscroll-behavior-inline: contain;
        scrollbar-width: none;

        scroll-behavior: smooth;
        scroll-snap-type: x mandatory;
    }

    .btf-gallery-filter__scroll::-webkit-scrollbar {
        display: none;
    }

    .btf-gallery-filter__link {
        flex: 0 0 171px;

        min-width: 171px;
        min-height: 62px;

        scroll-snap-align: center;
    }

    .btf-gallery-filter__actions {
        flex: 0 0 auto;
    }

    .btf-gallery-filter__current {
        display: none;
    }

    .btf-gallery-filter__estimate {
        width: 46px;
        height: 46px;
        min-height: 46px;
        padding: 0;
    }

    .btf-gallery-filter__estimate span {
        display: none;
    }
       .btf-gallery-intro__header {
        grid-template-columns: 1fr;
        gap: 27px;
    }

    .btf-gallery-intro__heading h2 em {
        display: inline;
    }

    .btf-gallery-intro__categories {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .btf-gallery-intro-card {
        min-height: 475px;
        padding: 27px;
    }

    .btf-gallery-intro-card__content h3 {
        font-size: clamp(3.1rem, 10vw, 4.4rem);
    }

    .btf-gallery-intro__rail {
        grid-template-columns:
            auto
            minmax(0, 1fr);
    }

    .btf-gallery-intro__rail-contact {
        grid-column: 1 / -1;

        width: 100%;
    }

    .btf-gallery-intro__side-label {
        display: none;
    }

    :root {
        --btf-gallery-hero-bottom-height: 64px;
    }

    .btf-gallery-hero__visual {
        top: 0;
        left: 0;
    }

    .btf-gallery-hero__visual img {
        object-position: 63% center;
    }

    .btf-gallery-hero__visual-overlay {
        background-color:
            rgba(7, 22, 14, 0.74);
    }

    .btf-gallery-hero__rings {
        top: 20%;
        left: -260px;

        width: 420px;
        height: 420px;
    }

    .btf-gallery-hero__line {
        display: none;
    }

    .btf-gallery-hero__layout {
        display: flex;
        align-items: center;
    }

    .btf-gallery-hero__content {
        max-width: 610px;
    }

    .btf-gallery-hero__project-card {
        display: none;
    }

    .btf-gallery-hero h1 {
        font-size:
            clamp(
                3.35rem,
                7.4vh,
                4.75rem
            );

        line-height: 0.86;
    }

    .btf-gallery-hero h1 em {
        display: inline;
    }

    .btf-gallery-hero__description {
        max-width: 540px;

        font-size: 0.91rem;
        line-height: 1.65;
    }

}


/* =========================================================
   4. SMALL MOBILE
   480px AND BELOW
========================================================= */

@media (max-width: 480px) {
        .btf-fence-gallery::after {
        left: 18px;
    }

    .btf-fence-gallery__decoration {
        top: 2%;
        right: -190px;

        opacity: 0.035;
    }

    .btf-fence-gallery__header {
        grid-template-columns: 1fr;
        gap: 23px;

        margin-bottom: 34px;
    }

    .btf-fence-gallery__eyebrow {
        margin-bottom: 15px;

        font-size: 0.64rem;
    }

    .btf-fence-gallery__eyebrow > span {
        width: 28px;
        height: 28px;
    }

    .btf-fence-gallery__heading h2 {
        line-height: 1;
    }

    .btf-fence-gallery__heading h2 em {
        display: inline;
    }

    .btf-fence-gallery__introduction {
        gap: 18px;
    }

    .btf-fence-gallery__introduction > p {
        font-size: 0.87rem;
        line-height: 1.68;
    }

    .btf-fence-gallery__summary {
        gap: 9px;
    }

    .btf-fence-gallery__summary strong {
        font-size: 0.6rem;
    }

    .btf-fence-gallery__grid {
        grid-template-columns: 1fr;
        gap: 13px;
    }

    .btf-fence-project__link {
        aspect-ratio: 4 / 3;
    }

    .btf-fence-project:nth-child(1)
    .btf-fence-project__link,
    .btf-fence-project:nth-child(6)
    .btf-fence-project__link {
        aspect-ratio: 4 / 3.5;
    }

    .btf-fence-project__top,
    .btf-fence-project__bottom {
        right: 13px;
        left: 13px;
    }

    .btf-fence-project__top {
        top: 13px;
    }

    .btf-fence-project__bottom {
        bottom: 13px;
    }

    .btf-fence-project__top > span:last-child {
        display: none;
    }

    .btf-fence-project__bottom strong {
        font-size: 1.5rem;
    }

    .btf-fence-project__open {
        width: 42px;
        height: 42px;
    }

    .btf-fence-gallery__footer {
        grid-template-columns: 1fr;

        margin-top: 16px;
        padding: 19px;
    }

    .btf-fence-gallery__previous {
        justify-content: flex-start;

        padding-top: 18px;

        border-top: 1px solid var(--btf-border);
    }

    .btf-fence-gallery__previous > span:last-child {
        text-align: left;
    }

    .btf-fence-gallery__cta {
        grid-template-columns: 1fr;

        margin-top: 17px;
        padding: 22px;
    }

    .btf-fence-gallery__cta-icon {
        width: 54px;
        height: 54px;
    }

    .btf-fence-gallery__cta-copy strong {
        font-size: 1.6rem;
    }

    .btf-fence-gallery__cta
    .btf-button {
        width: 100%;
    }


     .btf-gallery-divider {
        padding-block: 64px;
    }

    .btf-gallery-divider::before {
        left: 18px;

        width: 60px;
    }

    .btf-gallery-divider__rings {
        top: 24%;
        left: -270px;

        width: 370px;
        height: 370px;
    }

    .btf-gallery-divider__fence {
        right: -160px;
        bottom: -40px;

        opacity: 0.035;
    }

    .btf-gallery-divider__panel {
        grid-template-columns: 1fr;
    }

    .btf-gallery-divider__center {
        grid-row: 1;

        min-height: 315px;
        padding: 32px 21px;
    }

    .btf-gallery-divider__center h2 {
        font-size: 2.65rem;
        line-height: 0.97;
    }

    .btf-gallery-divider__center h2 em {
        display: inline;
    }

    .btf-gallery-divider__center p {
        font-size: 0.78rem;
        line-height: 1.65;
    }

    .btf-gallery-divider__transition {
        grid-template-columns:
            32px
            minmax(60px, 120px)
            32px;

        gap: 8px;

        margin-top: 23px;
    }

    .btf-gallery-divider__transition-start,
    .btf-gallery-divider__transition-end {
        width: 32px;
        height: 32px;
    }

    .btf-gallery-divider__category {
        grid-template-columns:
            46px
            minmax(0, 1fr)
            40px;

        min-height: 139px;
        padding: 21px;
        gap: 13px;
    }

    .btf-gallery-divider__number {
        display: none;
    }

    .btf-gallery-divider__category-icon {
        width: 46px;
        height: 46px;
    }

    .btf-gallery-divider__category-icon svg {
        width: 37px;
        height: 37px;
    }

    .btf-gallery-divider__category-copy strong {
        font-size: 1.75rem;
    }

    .btf-gallery-divider__category-copy > span {
        font-size: 0.61rem;
    }

    .btf-gallery-divider__check,
    .btf-gallery-divider__arrow {
        width: 40px;
        height: 40px;
    }

    .btf-gallery-divider__bottom {
        display: grid;
        grid-template-columns: 1fr;
        gap: 12px;

        margin-top: 15px;
        padding: 16px;
    }

    .btf-gallery-divider__bottom > a {
        justify-content: space-between;
    }

      .btf-tree-gallery::after {
        right: 18px;
    }

    .btf-tree-gallery__rings {
        top: 2%;
        left: -255px;

        width: 375px;
        height: 375px;
    }

    .btf-tree-gallery__header {
        grid-template-columns: 1fr;
        gap: 23px;

        margin-bottom: 34px;
    }

    .btf-tree-gallery__eyebrow {
        margin-bottom: 15px;

        font-size: 0.64rem;
    }

    .btf-tree-gallery__eyebrow > span {
        width: 28px;
        height: 28px;
    }

    .btf-tree-gallery__heading h2 {
        line-height: 1;
    }

    .btf-tree-gallery__heading h2 em {
        display: inline;
    }

    .btf-tree-gallery__introduction {
        gap: 18px;
    }

    .btf-tree-gallery__introduction > p {
        font-size: 0.87rem;
        line-height: 1.68;
    }

    .btf-tree-gallery__summary {
        gap: 9px;
    }

    .btf-tree-gallery__summary strong {
        font-size: 0.6rem;
    }

    .btf-tree-gallery__grid {
        grid-template-columns: 1fr;
        gap: 13px;
    }

    .btf-tree-project__link {
        aspect-ratio: 4 / 3;
    }

    .btf-tree-project:nth-child(1)
    .btf-tree-project__link,
    .btf-tree-project:nth-child(6)
    .btf-tree-project__link {
        aspect-ratio: 4 / 3.5;
    }

    .btf-tree-project__top,
    .btf-tree-project__bottom {
        right: 13px;
        left: 13px;
    }

    .btf-tree-project__top {
        top: 13px;
    }

    .btf-tree-project__bottom {
        bottom: 13px;
    }

    .btf-tree-project__top >
    span:last-child {
        display: none;
    }

    .btf-tree-project__bottom strong {
        font-size: 1.5rem;
    }

    .btf-tree-project__open {
        width: 42px;
        height: 42px;
    }

    .btf-tree-gallery__footer {
        grid-template-columns: 1fr;

        margin-top: 16px;
        padding: 19px;
    }

    .btf-tree-gallery__next {
        justify-content: space-between;

        padding-top: 18px;

        border-top:
            1px solid
            rgba(255, 255, 255, 0.1);
    }

    .btf-tree-gallery__next > span:first-child {
        text-align: left;
    }

    .btf-gallery-lightbox {
        padding: 0;
    }

    .btf-gallery-lightbox__dialog {
        width: 100%;
        height: 100svh;

        border: 0;
        border-radius: 0;
    }

    .btf-gallery-lightbox__header,
    .btf-gallery-lightbox__footer {
        padding: 13px 14px;
    }

    .btf-gallery-lightbox__footer p {
        display: none;
    }

    .btf-gallery-lightbox__footer strong {
        font-size: 1.25rem;
    }

    .btf-gallery-lightbox__stage {
        padding: 10px 48px;
    }

    .btf-gallery-lightbox__navigation {
        width: 39px;
        height: 39px;
    }

    .btf-gallery-lightbox__navigation--previous {
        left: 5px;
    }

    .btf-gallery-lightbox__navigation--next {
        right: 5px;
    }
        :root {
        --btf-gallery-filter-height: 76px;
    }

    .btf-gallery-filter__accent {
        left: 18px;

        width: 48px;
    }

    .btf-gallery-filter__bar {
        grid-template-columns:
            minmax(0, 1fr)
            auto;

        gap: 9px;

        min-height: var(--btf-gallery-filter-height);
        padding-block: 8px;
    }

    .btf-gallery-filter__heading {
        display: none;
    }

    .btf-gallery-filter__scroll {
        overflow-x: auto;
        overscroll-behavior-inline: contain;
        scrollbar-width: none;

        scroll-behavior: smooth;
        scroll-snap-type: x mandatory;
    }

    .btf-gallery-filter__scroll::-webkit-scrollbar {
        display: none;
    }

    .btf-gallery-filter__link {
        grid-template-columns:
            34px
            minmax(0, 1fr)
            25px;

        flex: 0 0 150px;

        min-width: 150px;
        min-height: 56px;
        padding: 7px 8px;
        gap: 7px;

        scroll-snap-align: center;
    }

    .btf-gallery-filter__link-icon {
        width: 34px;
        height: 34px;
    }

    .btf-gallery-filter__link-icon svg {
        width: 17px;
        height: 17px;
    }

    .btf-gallery-filter__link-copy small {
        font-size: 0.46rem;
    }

    .btf-gallery-filter__link-copy strong {
        font-size: 1.02rem;
    }

    .btf-gallery-filter__count {
        min-width: 25px;
        height: 25px;

        font-size: 0.51rem;
    }

    .btf-gallery-filter__actions {
        flex: 0 0 auto;
    }

    .btf-gallery-filter__current {
        display: none;
    }

    .btf-gallery-filter__estimate {
        width: 42px;
        height: 42px;
        min-height: 42px;
        padding: 0;
    }

    .btf-gallery-filter__estimate span {
        display: none;
    }

    .btf-gallery-filter__estimate svg {
        width: 18px;
        height: 18px;
    }

    #tree-cutting,
    #fence-services {
        scroll-margin-top:
            calc(
                var(--btf-header-height) +
                var(--btf-gallery-filter-height) +
                12px
            );
    }
       .btf-gallery-intro::after {
        left: 18px;
    }

    .btf-gallery-intro__rings {
        top: 4%;
        right: -240px;

        width: 360px;
        height: 360px;
    }

    .btf-gallery-intro__side-label {
        display: none;
    }

    .btf-gallery-intro__header {
        grid-template-columns: 1fr;
        gap: 23px;

        margin-bottom: 35px;
    }

    .btf-gallery-intro__eyebrow {
        margin-bottom: 15px;

        font-size: 0.67rem;
    }

    .btf-gallery-intro__eyebrow > span {
        width: 28px;
        height: 28px;
    }

    .btf-gallery-intro__heading h2 {
        line-height: 1;
    }

    .btf-gallery-intro__heading h2 em {
        display: inline;
    }

    .btf-gallery-intro__copy {
        gap: 17px;
    }

    .btf-gallery-intro__copy p {
        font-size: 0.91rem;
        line-height: 1.7;
    }

    .btf-gallery-intro__estimate-link {
        font-size: 0.64rem;
    }

    .btf-gallery-intro__categories {
        grid-template-columns: 1fr;
        gap: 17px;
    }

    .btf-gallery-intro-card {
        min-height: 430px;
        padding: 22px;
    }

    .btf-gallery-intro-card::before {
        left: 22px;
    }

    .btf-gallery-intro-card__number {
        font-size: 1.7rem;
    }

    .btf-gallery-intro-card__label {
        padding: 8px 9px;

        font-size: 0.56rem;
    }

    .btf-gallery-intro-card__content {
        gap: 20px;
    }

    .btf-gallery-intro-card__content h3 {
        margin-bottom: 11px;

        font-size: clamp(2.8rem, 13vw, 3.8rem);
    }

    .btf-gallery-intro-card__content p {
        display: -webkit-box;

        overflow: hidden;

        font-size: 0.81rem;
        line-height: 1.6;

        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3;
    }

    .btf-gallery-intro-card__action {
        padding-top: 17px;

        font-size: 0.62rem;
    }

    .btf-gallery-intro-card__arrow {
        width: 42px;
        height: 42px;
    }

    .btf-gallery-intro__rail {
        grid-template-columns: 1fr;

        margin-top: 17px;
        padding: 19px;
    }

    .btf-gallery-intro__rail-items {
        justify-content: flex-start;
    }

    .btf-gallery-intro__rail-contact {
        width: 100%;
    }

    :root {
        --btf-gallery-hero-bottom-height: 58px;
    }

    .btf-gallery-hero__visual {
        top: 0;
        left: 0;
    }

    .btf-gallery-hero__visual img {
        object-position: 66% center;
    }

    .btf-gallery-hero__visual-overlay {
        background-color:
            rgba(7, 22, 14, 0.77);
    }

    .btf-gallery-hero__rings,
    .btf-gallery-hero__line {
        display: none;
    }

    .btf-gallery-hero__layout {
        display: flex;
        align-items: center;

        padding-top: 3px;
    }

    .btf-gallery-hero__content {
        width: 100%;
    }

    .btf-gallery-hero__project-card {
        display: none;
    }

    .btf-gallery-hero__breadcrumb {
        margin-bottom:
            clamp(
                12px,
                1.8vh,
                17px
            );

        font-size: 0.55rem;
    }

    .btf-gallery-hero__eyebrow {
        gap: 8px;

        margin-bottom: 10px;

        font-size:
            clamp(
                0.53rem,
                1.3vh,
                0.61rem
            );

        letter-spacing: 0.09em;
    }

    .btf-gallery-hero__eyebrow >
    span:first-child {
        width: 24px;
    }

    .btf-gallery-hero h1 {
        margin-bottom:
            clamp(
                13px,
                2.1vh,
                18px
            );

        font-size:
            clamp(
                2.7rem,
                7vh,
                3.9rem
            );

        line-height: 0.87;
    }

    .btf-gallery-hero h1 em {
        display: inline;
    }

    .btf-gallery-hero__description {
        display: -webkit-box;

        margin-bottom:
            clamp(
                16px,
                2.7vh,
                22px
            );

        overflow: hidden;

        font-size:
            clamp(
                0.77rem,
                1.7vh,
                0.87rem
            );

        line-height: 1.55;

        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3;
    }

    .btf-gallery-hero__actions {
        display: grid;
        grid-template-columns:
            minmax(0, 1fr)
            auto;

        gap: 10px;
    }

    .btf-gallery-hero__actions
    .btf-button {
        width: 100%;
        min-height: 47px;
        padding: 11px 12px;

        font-size: 0.64rem;
    }

    .btf-gallery-hero__estimate {
        display: grid;
        place-items: center;
    }

    .btf-gallery-hero__estimate-icon {
        width: 47px;
        height: 47px;
    }

    .btf-gallery-hero__estimate-copy {
        display: none;
    }

    .btf-gallery-hero__categories {
        gap: 10px;

        margin-top:
            clamp(
                16px,
                2.7vh,
                23px
            );
    }

    .btf-gallery-hero__categories a {
        gap: 5px;

        font-size: 0.59rem;
    }

    .btf-gallery-hero__category-number {
        width: 24px;
        height: 24px;

        font-size: 0.52rem;
    }

    .btf-gallery-hero__categories i {
        width: 16px;
    }

    .btf-gallery-hero__bottom-brand >
    span {
        width: 33px;
        height: 33px;

        font-size: 0.57rem;
    }

    .btf-gallery-hero__bottom-brand >
    strong {
        display: none;
    }

    .btf-gallery-hero__bottom-inner >
    a {
        gap: 7px;

        font-size: 0.57rem;
        letter-spacing: 0.03em;
    }

    .btf-gallery-hero__bottom-inner
    a svg {
        width: 16px;
        height: 16px;
    }

}