.project-card-flex {
    margin: 0 -16px;
}

.project-card-item {
    padding: 32px 16px 0;
}

.project-card__image {
    position: relative;
    height: 478px;
    cursor: pointer;
}

.project-card__image .object-fit--contain {
    object-position: 0 35%;
}

.project-card__title {
    position: absolute;
    width: 100%;
    left: 0;
    bottom: 0;
    padding: 21px 15px;
    z-index: 1;
}

.project-card__title::before {
    content: '';
    position: absolute;
    z-index: -1;
    width: 100%;
    left: 0;
    bottom: 0;
    height: 100%;
    backdrop-filter: blur(30px) brightness(90%);
    transition: all 0.3s ease-in-out;
}

.object-fit--contain + .project-card__title::before {
    backdrop-filter: blur(30px) brightness(70%);
}

.project-card__title h3 {
    color: #fff;
    position: relative;
    margin: 0;
    padding-right:  48px;
    transition: all 0.3s ease-in-out;
}

.project-card__title h3::after {
    content: '\e968';
    font-family: 'york-building-products-icons';
    position: absolute;
    font-weight: normal;
    font-size: 30px;
    line-height: 40px;
    right: 0;
    top: 50%;
    transform: translateY(-50%) rotate(180deg);
}

.project-card__hover {
    margin: 0 -22px;
}

.project-card__description,
.project-card__slider {
    position: relative;
    width: 100%;
}

.project-card__slider {
    padding-bottom: 50px;
}

.project-card__description {
    padding: 50px 65px 50px 22px;
}

.project-location {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    line-height: 1em;
    color: #000000;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.project-location img {
    width: 15px;
}

.project-card__description h4 {
    font-weight: 700;
    font-size: 18px;
    line-height: 1.222em;
    text-transform: uppercase;
    font-family: "Montserrat", serif;
    margin-bottom: 20px;
}

.product-used-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
}

.product-used {
    background: #fff;
    width: 130px;
    min-height: 117px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-decoration: none;
    text-align: center;
    padding: 9px 12px;
}

.product-used__image {
    max-height: 67px;
}

.product-used img {
    width: 100%;
    height: 100%;
    display: block;
    margin: 0 auto;
    object-fit: contain;
    object-position: center;
}

.product-used__title {
    font-size: 16px;
    color: #000000;
    line-height: 1.1875em;
    word-wrap: break-word;
}

.js-project-gallery {
    margin: 0 -65px;
    padding-bottom: 30px;
}

.project-gallery-item {
    padding: 0 9px;
}

.project-gallery {
    height: 194px;
}

.project-gallery a {
    background: none;
}

.js-project-gallery .slick-prev {
    left: 50%;
    margin-left: -124px;
}

.js-project-gallery .slick-prev::after {
    right: 1.2px;
}

.js-project-gallery .slick-next {
    left: auto;
    right: 50%;
    margin-right: -122px;
}

.js-project-gallery .slick-next::after {
    left: 1.2px;
}

.project-card__hover {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
}

.hoverable .project-card__hover {
    opacity: 1;
    max-height: 2000px;
}

.hoverable .project-card__title::before {
    background: #EFEDEB;
}

.hoverable .project-card__title h3 {
    color: #000000;
}

.project-box {
    display: none;
}

.project-cards__bttn {
    margin-top: 30px;
}

.project-cards__top-content {
    display: flex;
    justify-content: space-between;
    flex-direction: column;
}

.project-cards___heading {
    width: 100%;
}

.project-search {
    width: 100%;
    text-transform: uppercase;
}

.project-cards__top-content.text-center {
    margin: 0 auto 45px;
}

@media (min-width: 768px) {
    .project-card__image {
        height: 480px;
    }

    .project-card__title {
        padding: 21px 16px 15px;
    }

    .project-card__title::before {
        min-height: 110px;
    }

    .project-card__title h3 {
        padding-right: 36px;
        font-size: 28px;
    }

    .project-card__hover {
        margin: 0 -52px;
        width: calc(200% + 136px);
    }

    .project-card-item:nth-of-type(2n) .project-card__hover {
       margin-left: calc(-100% - 84px);
    }

    .project-card__description {
        padding: 50px 154px 50px 65px;
    }

    .project-card__description h3 {
        font-size: 48px;
    }

    .project-location {
        margin-bottom: 24px;
    }

    .project-location img {
        width: 21px;
    }

    .project-card__description p {
        margin-bottom: 15px;
    }

    .project-card__description h4 {
        font-size: 24px;
    }

    .js-project-gallery {
        margin: 0 -74px;
        padding-bottom: 40px;
    }

    .project-gallery-item {
        padding: 0 18px;
    }

    .project-gallery {
        height: 350px;
    }

    .js-project-gallery .slick-prev {
        left: 116px;
        margin-left: 0;
    }

    .js-project-gallery .slick-next {
        left: 278px;
        right: auto;
        margin-right: -0;
    }

    .hoverable .project-card__image {
        height: 510px;
    }

    .hoverable .project-card__title {
        padding-bottom: 45px;
    }

    .hoverable .project-card__title::before {
        min-height: 140px;
    }

    .project-card-flex--no-slider {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
    }

    .project-card-flex--no-slider .project-card-item {
        width: 50%;
    }
}

@media (min-width: 1200px) {
    .project-card__image:hover .project-card__title::before {
        background: #EFEDEB;
    }

    .project-card__image:hover .project-card__title h3 {
        color: #000000;
    }

    .project-card__title {
        padding: 15px 16px;
    }

    .project-card__title::before {
        min-height: 116px;
        height: 100%;
    }

    .project-card__title h3 {
        padding-right: 36px;
        font-size: 24px;
    }

    .project-card__hover {
        margin: 0;
        width: calc(400% + 96px);
    }

    .project-card-item:nth-of-type(4n + 2) .project-card__hover {
       margin-left: calc(-100% - 32px);
    }

    .project-card-item:nth-of-type(4n + 3) .project-card__hover {
        margin-left: calc(-200% - 64px);
    }

    .project-card-item:nth-of-type(4n + 4) .project-card__hover {
        margin-left: calc(-300% - 96px);
    }

    .project-card__description {
        padding: 35px 0 35px 35px;
        width: 585px;
    }
    .project-card__slider {
        padding: 55px 35px 0 20px;
        width: calc(100% - 585px);
    }

    .js-project-gallery {
        margin: 0 -18px;
        padding-bottom: 100px;
    }

    .js-project-gallery .slick-prev {
        left: 16px;
    }

    .js-project-gallery .slick-next {
        left: 189px;
    }

    .project-card-flex--no-slider .project-card-item {
        width: 25%;
    }
}

@media (min-width: 1600px) {
    .project-cards__top-content {
        flex-direction: row;
        align-items: flex-end;
    }

    .project-cards___heading {
        max-width: 1060px;
    }

    .project-cards___heading h2:last-child,
    .project-cards___heading h3:last-child,
    .project-cards___heading h4:last-child,
    .project-cards___heading h5:last-child,
    .project-cards___heading h6:last-child,
    .project-cards___heading p:last-child {
        margin: 0;
    }

    .project-search {
        max-width: 650px;
    }

    .project-card__image {
        height: 575px;
    }

    .project-card__title h3 {
        padding-right: 36px;
        font-size: 32px;
    }

    .project-card__description {
        padding: 75px 0 87px 152px;
        width: 702px;
    }

    .project-card__slider {
        padding: 95px 152px 0 58px;
        width: calc(100% - 702px);
    }

    .hoverable .project-card__image {
        height: 610px;
    }

    .hoverable .project-card__image img {
        border: 20px solid #EFEDEB;
    }

    .hoverable .project-card__title {
        padding-bottom: 50px;
    }

    .hoverable .project-card__title::before {
        min-height: 151px;
    }
}

.js-project-card .slick-list {
    overflow: inherit;
}

.js-project-card .slick-slide {
    vertical-align: top;
}

.js-project-card .slick-arrow {
    font-size: 0;
    top: 0;
    transform: translate(0);
    bottom: auto;
}

.js-project-card .slick-arrow::after {
    width: 60px;
}

.js-project-card .slick-prev {
    left: 50%;
    margin-left: -100px;
    padding-right: 70px;
}

.js-project-card .slick-next {
    left: auto;
    right: 50%;
    margin-right: -100px;
    padding-left: 70px;
}

.js-project-gallery .slick-arrow {
    font-size: 14px;
    top: auto;
    bottom: 0;
    margin: 0;
}

.js-project-gallery .slick-arrow.slick-disabled {
    color: #6a6a6a;
    cursor: not-allowed;
}

.js-project-gallery .slick-arrow::after {
    width: 25px;
}

.js-project-gallery .slick-prev {
    left: 50%;
    margin-left: -124px;
    padding-right: 31px;
}

.js-project-gallery .slick-next {
    left: auto;
    right: 50%;
    margin-right: -122px;
    padding-left: 31px;
}

.js-project-card .slick-current .project-card__hover {
    opacity: 1;
    max-height: 2000px;
}

.js-project-card .slick-current .project-card__title::before {
    background: #EFEDEB;
}

.js-project-card .slick-current .project-card__title h3 {
    color: #000000;
}

.slick-slide {
    pointer-events: auto !important;
}

@media (min-width: 768px) {
    .js-project-gallery .slick-prev {
        left: 120px;
        margin-left: 0;
    }

    .js-project-gallery .slick-next {
        left: 266px;
        right: auto;
        margin-right: -0;
    }

    .js-project-card .slick-current .project-card__hover {
        opacity: 0;
        max-height: 0;
    }

    .js-project-card .slick-current .project-card__title h3 {
        color: #000;
    }

    .hoverable .project-card__hover {
        opacity: 1 !important;
        max-height: 2000px !important;
    }

    .hoverable .project-card__title::before {
        background: #EFEDEB !important;
    }

    .hoverable .project-card__title h3 {
        color: #000000 !important;
    }

    .slick-current  + .slick-slide .project-card__hover {
        margin-left: calc(-100% - 84px) !important;
    }

    .js-project-card::after {
        content: '';
        position: absolute;
        height: 480px;
        width: 50px;
        background: #fff;
        right: -52px;
        top: 32px;
    }

    .js-project-card::before {
        content: '';
        position: absolute;
        height: 480px;
        width: 50px;
        background: #fff;
        left: -52px;
        top: 32px;
        z-index: 1;
    }

    .slick-slide .project-card__hover {
        max-height: 0 !important;
    }

    .slick-slide .project-card__image {
       height: 480px;
    }

    .slick-active .hoverable .project-card__image {
        height: 510px;
    }

    .slick-active .hoverable .project-card__hover {
        max-height: 2000px !important;
    }

    .js-project-card .slick-current .project-card__hover {
        max-height: 2000px !important;
        opacity: 1;
    }

    .slick-current .project-card__image {
        height: 510px;
    }
}

@media (min-width: 1200px) {
    .js-project-card .slick-arrow::after {
        width: 25px;
    }
    .js-project-card  {
        padding-bottom: 30px;
    }

    .js-project-card .slick-arrow {
        top: auto;
        bottom: 0;
    }

    .js-project-card .slick-prev {
        left: 16px;
        margin-left: 0;
        padding-right: 31px;
    }

    .js-project-card .slick-next {
        right: auto;;
        left: 77px;
        margin-right: 0;
        padding-left: 31px;
    }

    .js-project-gallery .slick-prev {
        left: 16px;
    }

    .js-project-gallery .slick-next {
        left: 160px;
    }

    .js-project-card .slick-list {
        overflow: hidden;
    }

    .js-project-card::after,
    .js-project-card::before {
        display: none;
    }

    .slick-current  + .slick-active .project-card__hover {
        margin-left: calc(-100% - 32px) !important;
    }

    .slick-current  + .slick-active + .slick-active .project-card__hover {
        margin-left: calc(-200% - 64px) !important;
    }

    .slick-current  + .slick-active + .slick-active  + .slick-active .project-card__hover {
        margin-left: calc(-300% - 96px) !important;
    }

    .js-project-gallery .slick-arrow {
        bottom: 40px;
    }
}

@media (min-width: 1600px) {
    .slick-slide .project-card__image {
        height: 575px;
    }

    .slick-active .hoverable .project-card__image {
        height: 610px;
    }

    .slick-current .project-card__image {
        height: 610px;
    }

    .slick-current  .project-card__image img {
        border: 20px solid #EFEDEB;
    }
}
