#search-modal {
    display: none;
    position: fixed;
    top: 0;
    background: #fff;
    width: 100%;
    min-height: 100%;
    z-index: 9999;
    overflow-y: scroll;
    overflow-x: hidden;
    height: 100vh;
}
.search-results .btn {
    display: none!important;
}

.search-results .item {
    opacity: 1;
}
#search-modal input:focus {
    outline: none;
}
#search-modal input {
    background: transparent;
    border: none;
    border-bottom: var(--border2);
}
#search-modal input::placeholder {
    color: var(--clr3);
}
#search-modal button.disabled {
    background-color: transparent !important;
    border: 1px solid var(--clr1);
    color: var(--clr1);
}
#search-modal .type-switch {
    display: flex;
    justify-content: center;
    column-gap: 0.8rem;
    margin-top: 5rem;
    margin-bottom: 5rem;
    text-align: center;
}
.results-wrapper h3 {
    margin-bottom: 0.8rem;
}
.results-wrapper h3.page,
.results-wrapper .total-count.page {
    display: none !important;
}
.results-wrapper h3.project {
    text-transform: capitalize;
}
.results-wrapper .total-count.project {
    float: right;
    margin-top: -4rem;
}
#search-modal .top-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding-top: 4rem;
    row-gap: 4rem;
}
#search-modal .top-middle {
    grid-row: 2 / 3;
    grid-column: 1 / 3;
}
#search-modal .top-middle input {
    width: 100%;
    font-size: 4.5rem!important;
    padding: 0 0 1rem 0;
    height: 8rem;
}
#search-modal .top-right {
    width: 100%;
    position: relative;
    text-align: right;
}
.close--modal {
    padding: 1rem;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    z-index: 5;
    transition: 0.3s ease-in-out;
    color: #000;
    border: none;
    background: transparent;
}
.close__cross {
    width: 1.7rem;
    height: 1.7rem;
    display: block;
    position: relative;
}
.close__label {
    font-size: 1.6rem;
    margin-top: 1rem;
}
.close__cross:after,
.close__cross:before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform-origin: center;
    width: 2.4rem;
    height: 0.1rem;
    background-color: currentColor;
    border-radius: 2px;
}
.close__cross:before {
    transform: translate3d(-50%, -50%, 0) rotate(-45deg);
}
.close__cross:after {
    transform: translate3d(-50%, -50%, 0) rotate(45deg);
}
#search-modal .top-right .close {
    position: relative;
}
.no-search-results {
    text-align: center;
    display: none;
}
.results-wrapper > div {
    display: flex;
    flex-direction: column;
    padding-bottom: 4.5rem;
    margin-bottom: 3.5rem;
}
.placeholders span {
    display: none;
}
.full + .placeholders.js-search-placeholders {
    opacity: 0;
}
.placeholders.js-search-placeholders {
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
    opacity: 1;
    transition: opacity 150ms ease;
    text-align: center;
    width: 100%;
    padding: 1.4rem;
    line-height: 1.2;
}
.results-wrapper .load-more-container {
    margin-top: 8rem;
}
.results-wrapper .woocommerce .load-more-container {
    margin-top: 4rem;
}

.type-switch,
#search-modal .load-more-container {
    display: none !important;
}
.type-switch button {
    padding: 1.3rem 3rem;
    border-radius: 0;
    cursor: pointer;
    border: 1px solid #000;
    font-size: 1.6rem;
    text-transform: uppercase;
    background-color: transparent;
    transition: var(--animtime1);
}
.type-switch button:hover,
.type-switch button.active {
    background-color: var(--clr4);
}
.results-wrapper li.product {
    width: auto !important;
    margin-right: 0 !important;
}

#search-modal .items .item h3 a {
    overflow: hidden;
    display: inline-block;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 100%;
}

#search-modal .items.page h3 {
    margin: 0 0 1rem;
    font-size: calc(var(--fontsize_h2) * var(--text-scaler));
    line-height: normal;
    letter-spacing: 0.1rem;
    text-transform: uppercase;
}

#search-modal .items.page .media {
    position: relative;
    padding-bottom: 150%;
}

#search-modal .items.project .list-container {
    display: block !important;
    overflow: visible !important;
}

#search-modal .items.project .swiper-wrapper {
    padding: 0;
    margin: 0;
}

#search-modal .swiper-horizontal > .swiper-scrollbar {
    position: relative;
    margin-top: 4rem;
    height: 2px;
    background: rgba(0, 0, 0, 0.1);
}

#search-modal .swiper-horizontal > .swiper-scrollbar-drag {
    background-color: #000;
}

#search-modal .items.project .media {
    position: relative;
    padding-bottom: 100%;
    order: 1;
    margin: 0;
}

#search-modal .items.project .item > h3 {
    order: 2;
    font-size: calc(2rem * var(--text-scaler));
    line-height: calc(2.2rem * var(--text-scaler));
    letter-spacing: 0.1rem;
    margin: 2rem 0;
}

#search-modal .items.project .itemtext {
    order: 3;
    padding: 0;
}

#search-modal .items .media img,
#search-modal .items .media video {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 1;
    object-fit: cover;
    object-position: center;
}

#search-modal .columns-4 {
    column-gap: 4rem;
}

@media screen and (max-width: 1000px) {
    .search-close {
        position: relative;
    }
    #search-modal .site-branding {
        width: 12rem;
    }
    #search-modal .top-wrapper .top-right {
        display: flex;
        justify-content: flex-end;
    }
    .results-wrapper .total-count.project {
        margin-top: -3rem;
    }
}
@media screen and (max-width: 768px) {
    #search-modal ul.products li.product {
        width: auto !important;
        margin: 0 0 2.992em;
    }
}

@media screen and (max-width: 767px) {
    #search-modal .top-middle input {
        font-size: 2.4rem!important;
        height: 5rem;
    }
}

@media screen and (max-width: 680px) {
    #search-modal .top-wrapper {
        justify-content: space-between;
        flex-direction: column;
        align-items: center;
        margin-top: 3.2rem;
        position: relative;
    }
    #search-modal .top-wrapper .top-middle {
        position: relative;
        transform: none;
        left: auto;
        margin-top: 2rem;
    }
    #search-modal .top-wrapper .top-right {
        position: absolute;
        right: 0;
        top: 0;
    }
    #search-modal .type-switch {
        margin-top: 3rem;
    }
    #search-modal .type-switch button {
        margin-top: 1rem;
    }
    .results-wrapper .load-more-container {
        margin-top: 3rem;
        margin-bottom: 1rem;
    }
    .results-wrapper .woocommerce .load-more-container {
        margin-top: 0rem;
        margin-bottom: 1rem;
    }
    #search-modal ul.products li.product {
        width: auto !important;
        margin: 0 0 2.992em;
        /* margin-right: 0!important; */
    }
}
