/* =========================================================
   STONE CEO — PROJECT GRID
========================================================= */

.stone-projects {
    width: 100%;
    position: relative;

    color: #202020;
    background: #fff;
}

.stone-projects *,
.stone-projects *::before,
.stone-projects *::after {
    box-sizing: border-box;
}

.stone-projects [hidden] {
    display: none !important;
}

.stone-projects button,
.stone-projects input {
    font: inherit;
}


/* =========================================================
   FILTER
========================================================= */

.stone-project-filter {
    width: 100%;
    min-height: 72px;

    position: relative;
    z-index: 50;

    display: flex;
    align-items: stretch;

    background: #f3f3f1;

    border: 1px solid #d8d8d4;
}


/* =========================================================
   FORCE NEUTRAL BUTTON COLOURS
   Prevent Elementor/theme accent hover colours
========================================================= */

.stone-projects .stone-project-reset,
.stone-projects .stone-project-filter-trigger,
.stone-projects .stone-project-filter-option,
.stone-projects .stone-project-search-toggle,
.stone-projects .stone-project-search-clear,
.stone-projects .stone-project-load-more {

    box-shadow: none !important;

    text-shadow: none !important;
}


/* =========================================================
   RESET
========================================================= */

.stone-projects .stone-project-reset {
    width: 115px;
    flex: 0 0 115px;

    display: flex;
    align-items: center;

    padding: 0 28px;

    border: 0 !important;
    border-right: 1px solid #deded9 !important;

    border-radius: 0 !important;

    background: transparent !important;

    color: #202020 !important;

    font-size: 12px;
    font-weight: 400;

    cursor: pointer;

    transition:
        background-color 0.35s ease,
        color 0.35s ease,
        opacity 0.35s ease;
}


.stone-projects .stone-project-reset:hover:not(:disabled) {
    background: #e9e9e5 !important;
    color: #000 !important;
}


.stone-projects .stone-project-reset:disabled {
    background: transparent !important;
    color: #202020 !important;

    opacity: 0.3;

    cursor: default;
}



/* =========================================================
   DROPDOWN
========================================================= */

.stone-project-filter-dropdown {
    position: relative;

    border-right: 1px solid #deded9;
}


.stone-project-filter-dropdown--sort {
    width: 205px;
}


.stone-project-filter-dropdown--type {
    width: 235px;
}


.stone-projects .stone-project-filter-trigger {
    width: 100%;
    height: 100%;

    min-height: 70px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    padding: 0 28px;

    border: 0 !important;
    border-radius: 0 !important;

    background: transparent !important;

    color: #202020 !important;

    font-size: 12px;
    font-weight: 500;

    letter-spacing: 0.06em;

    text-transform: uppercase;

    cursor: pointer;

    transition:
        background-color 0.35s ease,
        color 0.35s ease;
}


.stone-projects .stone-project-filter-trigger:hover,
.stone-project-filter-dropdown.is-open
.stone-project-filter-trigger {

    background: #e9e9e5 !important;
    color: #000 !important;
}


.stone-project-filter-trigger-icon {
    width: 17px;
    height: 17px;

    flex: 0 0 17px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #202020 !important;

    will-change: transform;
}


.stone-project-filter-trigger-icon svg {
    width: 17px;
    height: 17px;

    display: block;
}



/* =========================================================
   DROPDOWN MENU
========================================================= */

.stone-project-filter-menu {
    position: absolute;

    top: calc(100% + 1px);
    left: -1px;

    width: calc(100% + 2px);

    min-width: 245px;

    padding: 12px 0;

    z-index: 100;

    background: #f3f3f1;

    border-left: 1px solid #d8d8d4;
    border-right: 1px solid #d8d8d4;
    border-bottom: 1px solid #d8d8d4;

    box-shadow:
        0 18px 35px
        rgba(0, 0, 0, 0.05);
}



/* CHECKBOX STYLE */

.stone-projects .stone-project-filter-option {
    width: 100%;

    min-height: 43px;

    position: relative;

    display: flex;
    align-items: center;

    padding: 10px 24px 10px 54px;

    border: 0 !important;
    border-radius: 0 !important;

    background: transparent !important;

    color: #202020 !important;

    text-align: left;

    font-size: 13px;
    font-weight: 400;

    cursor: pointer;

    transition:
        background-color 0.3s ease,
        color 0.3s ease;
}


.stone-projects .stone-project-filter-option:hover {
    background: #e7e7e3 !important;
    color: #000 !important;
}


/* checkbox square */

.stone-project-filter-option::before {
    content: "";

    width: 14px;
    height: 14px;

    position: absolute;

    left: 26px;
    top: 50%;

    border: 1px solid #8e8e89;

    background: transparent;

    transform: translateY(-50%);
}


/* check mark */

.stone-project-filter-option::after {
    content: "";

    width: 6px;
    height: 3px;

    position: absolute;

    left: 30px;
    top: 50%;

    border-left: 1.5px solid #fff;
    border-bottom: 1.5px solid #fff;

    opacity: 0;

    transform:
        translateY(-65%)
        rotate(-45deg);
}


.stone-project-filter-option.is-active::before {
    background: #202020;
    border-color: #202020;
}


.stone-project-filter-option.is-active::after {
    opacity: 1;
}



/* =========================================================
   SEARCH
========================================================= */

.stone-project-search {
    min-height: 70px;

    margin-left: auto;

    position: relative;

    display: flex;
    align-items: center;
    justify-content: flex-end;

    padding: 0 16px;
}


.stone-projects .stone-project-search-toggle {
    width: 43px;
    height: 43px;

    padding: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid #969690 !important;
    border-radius: 50% !important;

    background: transparent !important;

    color: #202020 !important;

    cursor: pointer;
}


.stone-projects .stone-project-search-toggle:hover {
    background: #202020 !important;

    border-color: #202020 !important;

    color: #fff !important;
}


.stone-project-search-toggle svg,
.stone-project-search-panel-icon svg {

    width: 19px;
    height: 19px;
}


.stone-project-search-panel {
    width: 0;
    height: 43px;

    position: absolute;

    right: 16px;
    top: 50%;

    display: flex;
    align-items: center;

    overflow: hidden;

    border: 1px solid transparent;
    border-radius: 999px;

    background: #fff;

    opacity: 0;
    visibility: hidden;

    transform:
        translateY(-50%)
        translateX(7px);

    pointer-events: none;
}


.stone-project-search.is-open
.stone-project-search-panel {

    width: 300px;

    border-color: #888883;

    opacity: 1;
    visibility: visible;

    transform:
        translateY(-50%)
        translateX(0);

    pointer-events: auto;
}


.stone-project-search.is-open
.stone-project-search-toggle {

    opacity: 0;

    visibility: hidden;

    pointer-events: none;
}


.stone-project-search-panel-icon {
    width: 43px;

    flex: 0 0 43px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #202020;
}


.stone-project-search-panel input {
    width: 100%;
    min-width: 0;
    height: 100%;

    border: 0 !important;
    outline: 0 !important;

    background: transparent !important;

    box-shadow: none !important;

    padding: 0 8px 0 0;

    color: #202020;

    font-size: 13px;
}


.stone-project-search-panel input::placeholder {
    color: #979792;
}


.stone-projects .stone-project-search-clear {
    width: 42px;
    height: 42px;

    flex: 0 0 42px;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    padding: 0 !important;
    margin: 0 !important;

    border: 0 !important;
    outline: 0 !important;

    background: transparent !important;

    color: #202020 !important;

    line-height: 1 !important;

    cursor: pointer;
}

.stone-project-search-clear svg {
    width: 16px;
    height: 16px;

    display: block;

    margin: 0;
}

.stone-project-search-panel {
    align-items: center !important;
}



/* =========================================================
   RESULTS OUTER BORDER
========================================================= */

.stone-project-results {
    width: 100%;

    border-left: 1px solid #d8d8d4;
    border-right: 1px solid #d8d8d4;
}



/* =========================================================
   PROJECT ROW
========================================================= */

.stone-project-row {
    width: 100%;

    position: relative;

    display: grid;

    min-height: clamp(
        520px,
        38vw,
        650px
    );

    overflow: hidden;

    background: #fff;

    border-bottom: 1px solid #d8d8d4;
}


/* IMAGE 46 / CONTENT 54 */

.stone-project-row--normal {
    grid-template-columns: 46% 54%;
}


.stone-project-row--reverse {
    grid-template-columns: 54% 46%;
}


.stone-project-row--normal
.stone-project-media {

    grid-column: 1;
    grid-row: 1;
}


.stone-project-row--normal
.stone-project-content {

    grid-column: 2;
    grid-row: 1;

    border-left: 1px solid #d8d8d4;
}


.stone-project-row--reverse
.stone-project-content {

    grid-column: 1;
    grid-row: 1;

    border-right: 1px solid #d8d8d4;
}


.stone-project-row--reverse
.stone-project-media {

    grid-column: 2;
    grid-row: 1;
}



/* =========================================================
   IMAGE — TRUE FULL HEIGHT
========================================================= */

.stone-project-media {
    position: relative;

    width: 100%;
    height: 100%;

    min-height: 100%;

    align-self: stretch;

    overflow: hidden !important;

    background: #ededeb;
}


.stone-project-image-link {
    position: absolute !important;

    inset: 0 !important;

    width: 100% !important;
    height: 100% !important;

    display: block;

    overflow: hidden !important;
}


.stone-project-image {
    position: absolute !important;

    inset: 0 !important;

    width: 100% !important;
    height: 100% !important;

    max-width: none !important;

    display: block !important;

    object-fit: cover !important;
    object-position: center center !important;

    transform: scale(1);

    transform-origin: center center;

    will-change: transform;
}


.stone-project-image-placeholder {
    position: absolute;

    inset: 0;

    display: flex;
    align-items: center;
    justify-content: center;
}



/* =========================================================
   CONTENT
========================================================= */

.stone-project-content {
    width: 100%;
    height: 100%;

    min-width: 0;

    display: flex;
    flex-direction: column;
    justify-content: center;

    padding:
        clamp(48px, 5vw, 82px)
        clamp(48px, 5vw, 84px);
}


.stone-project-content-top {
    width: 100%;

    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 40px;
}


.stone-project-heading {
    min-width: 0;

    flex: 1 1 auto;
}



/* =========================================================
   TITLE
========================================================= */

.stone-project-title {
    margin: 0;

    max-width: 570px;

    font: inherit;
}


.stone-project-title-link {
    display: block;

    color: #222 !important;

    text-decoration: none !important;
}


.stone-project-title-mask {
    width: 100%;

    display: block;

    position: relative;

    overflow: hidden;
}


.stone-project-title-text {
    width: 100%;

    display: block;

    color: #222 !important;

    font-size: clamp(
        31px,
        2.6vw,
        42px
    );

    font-weight: 400;

    line-height: 1.04;

    letter-spacing: -0.033em;

    text-transform: uppercase;

    will-change: transform;
}


.stone-project-title-text--primary {
    position: relative;
}


.stone-project-title-text--secondary {
    position: absolute;

    inset: 0;

    color: #222 !important;

    transform: none;
}



/* =========================================================
   YEAR
========================================================= */

.stone-project-year {
    flex: 0 0 auto;

    padding-top: 3px;

    color: #222;

    font-size: clamp(
        16px,
        1.25vw,
        19px
    );

    line-height: 1;
}



/* =========================================================
   META
========================================================= */

.stone-project-meta {
    margin-top: 18px;

    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 10px;
}


.stone-project-type {
    color: #282826;

    font-size: 11px;
    font-weight: 500;

    letter-spacing: 0.07em;

    text-transform: uppercase;
}


.stone-project-meta-divider {
    width: 1px;
    height: 11px;

    background: #aaa9a4;
}


.stone-project-location {
    color: #777772;

    font-size: 12px;

    letter-spacing: 0.04em;

    text-transform: uppercase;
}



/* =========================================================
   LOWER INFO
========================================================= */

.stone-project-content-lower {
    margin-top: clamp(
        34px,
        3.8vw,
        50px
    );
}


.stone-project-description {
    width: min(
        100%,
        570px
    );

    color: #4d4d49;

    font-size: clamp(
        14px,
        1.05vw,
        16px
    );

    line-height: 1.65;
}


.stone-project-description p {
    margin: 0 0 14px;
}


.stone-project-description p:last-child {
    margin-bottom: 0;
}



/* =========================================================
   CTA
========================================================= */

.stone-project-cta {
    width: fit-content;

    margin-top: 28px;

    display: inline-flex;
    align-items: center;

    gap: 13px;

    color: #202020 !important;

    text-decoration: none !important;
}


.stone-project-cta-text {
    position: relative;

    padding-bottom: 5px;

    font-size: 11px;
    font-weight: 500;

    letter-spacing: 0.075em;

    text-transform: uppercase;
}


.stone-project-cta-text::after {
    content: "";

    width: 100%;
    height: 1px;

    position: absolute;

    left: 0;
    bottom: 0;

    background: #202020;
}


.stone-project-cta-icon {
    width: 37px;
    height: 37px;

    flex: 0 0 37px;

    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;

    border: 1px solid #969690;

    border-radius: 50%;

    color: #202020;

    transition:
        background-color 0.35s ease,
        border-color 0.35s ease,
        color 0.35s ease;
}


.stone-project-cta:hover
.stone-project-cta-icon {

    color: #fff;

    background: #202020;

    border-color: #202020;
}


.stone-project-cta-arrow-mask {
    width: 17px;
    height: 17px;

    position: relative;

    display: block;

    overflow: hidden;
}


.stone-project-cta-arrow {
    width: 17px;
    height: 17px;

    position: absolute;

    inset: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    will-change: transform;
}


.stone-project-cta-arrow svg {
    width: 17px;
    height: 17px;

    display: block;
}



/* =========================================================
   NO RESULTS
========================================================= */

.stone-project-no-results {
    min-height: 320px;

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    gap: 10px;

    border-left: 1px solid #d8d8d4;
    border-right: 1px solid #d8d8d4;
    border-bottom: 1px solid #d8d8d4;
}


.stone-project-no-results strong {
    font-size: 22px;
    font-weight: 400;
}


.stone-project-no-results span {
    color: #777;

    font-size: 13px;
}



/* =========================================================
   LOAD MORE
========================================================= */

.stone-project-load-more-wrap {
    display: flex;
    justify-content: center;

    padding: 65px 30px 80px;
}


.stone-projects .stone-project-load-more {
    min-width: 180px;

    padding: 15px 28px;

    border: 1px solid #202020 !important;

    border-radius: 0 !important;

    background: transparent !important;

    color: #202020 !important;

    font-size: 11px;
    font-weight: 500;

    letter-spacing: 0.075em;

    text-transform: uppercase;

    cursor: pointer;
}


.stone-projects .stone-project-load-more:hover {
    background: #202020 !important;
    color: #fff !important;
}



/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1024px) {

    .stone-project-filter-dropdown--sort {
        width: 175px;
    }

    .stone-project-filter-dropdown--type {
        width: 205px;
    }

    .stone-projects
    .stone-project-filter-trigger {
        padding: 0 20px;
    }

    .stone-project-content {
        padding: 48px 40px;
    }

}



/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767px) {

    .stone-project-filter {
        display: grid;

        grid-template-columns:
            84px
            1fr
            1fr
            58px;
    }


    .stone-projects
    .stone-project-reset {

        width: 84px;

        padding: 0 14px;
    }


    .stone-project-filter-dropdown {
        width: auto;
    }


    .stone-projects
    .stone-project-filter-trigger {

        min-height: 58px;

        padding: 0 13px;

        gap: 8px;

        font-size: 10px;
    }


    .stone-project-filter-trigger-icon {
        width: 14px;
        height: 14px;
    }


    .stone-project-filter-menu {
        min-width: 200px;
    }


    .stone-project-filter-dropdown--type
    .stone-project-filter-menu {

        left: auto;
        right: -1px;
    }


    .stone-project-search {
        min-height: 58px;

        padding: 0 8px;
    }


    .stone-project-search.is-open
    .stone-project-search-panel {

        width: calc(100vw - 36px);

        max-width: 380px;
    }


    .stone-project-row,
    .stone-project-row--normal,
    .stone-project-row--reverse {

        display: flex;
        flex-direction: column;

        min-height: 0;
    }


    .stone-project-row--normal
    .stone-project-media,
    .stone-project-row--reverse
    .stone-project-media {

        order: 1;

        width: 100%;

        min-height: 0;

        aspect-ratio: 4 / 3;
    }


    .stone-project-row--normal
    .stone-project-content,
    .stone-project-row--reverse
    .stone-project-content {

        order: 2;

        border: 0;
    }


    .stone-project-content {
        padding: 38px 22px 46px;
    }


    .stone-project-title-text {
        font-size: clamp(
            28px,
            8vw,
            38px
        );
    }


    .stone-project-year {
        font-size: 14px;
    }


    .stone-project-content-lower {
        margin-top: 30px;
    }

}



/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .stone-projects * {
        scroll-behavior: auto !important;
    }

}

/* =========================================================
   REMOVE NATIVE SEARCH CLEAR BUTTON
   Keep only our custom clear icon
========================================================= */

.stone-project-search-panel input[type="search"]::-webkit-search-cancel-button,
.stone-project-search-panel input[type="search"]::-webkit-search-decoration {
    -webkit-appearance: none;
    appearance: none;
    display: none;
}

.stone-project-search-panel input[type="search"]::-ms-clear,
.stone-project-search-panel input[type="search"]::-ms-reveal {
    display: none;
    width: 0;
    height: 0;
}