.projects-section {
    background-color: var(--warm-grey-100, #EEECE6);
    padding: 120px 0;
    overflow-x: hidden;
}
.projects-header {
    margin-bottom: 56px;
}
.projects-header > :last-child {
    margin-bottom: 0;
}
.projects_subtitle {
    font-weight: 300;
}
.projects_title-top {
    margin-bottom: 16px;
    line-height: 105%;
}
.projects_title {
    font-size: 56px;
    margin-bottom: 24px;
}

/* Dots sit on the left and arrows on the right, above the slides. */
.projects-slider-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 32px;
}
.projects-slider-dots .slick-dots {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.projects-slider-dots .slick-dots li {
    margin: 0;
    width: auto;
    height: auto;
}
.projects-slider-dots .slick-dots li button {
    display: block;
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--brown-400, #916D49);
    text-indent: -999px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.2;
}
.projects-slider-dots .slick-dots li.slick-active button {
    background: var(--brown-400, #916D49);
    opacity: 1;
}
.projects-slider-arrows {
    display: flex;
    align-items: center;
    gap: 16px;
}
.projects-slider-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}
.projects-slider-arrow svg {
    display: block;
    width: 48px;
    height: 48px;
}

/* Slider stays on the container’s left edge and breaks out to the viewport on the right. */.projects-slider {
    container-type: inline-size;
    width: calc(100% + (100vw - 100%) / 2);
    max-width: none;
}
.projects-slider .slick-slide {
    margin-right: 16px;
}
.projects-slide {
    display: block;
    text-decoration: none;
}
.projects-slide.is-landscape {
    width: calc((100cqw - 32px) / 2);
}
.projects-slide.is-portrait {
    width: calc((100cqw - 32px) / 4);
}
.projects-slide-image {
    position: relative;
    overflow: hidden;
}
.projects-slide.is-landscape .projects-slide-image {
    aspect-ratio: 3 / 2;
}
.projects-slide.is-portrait .projects-slide-image {
    aspect-ratio: 3 / 4;
}
.projects-slide-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.projects-slide-img-mobile {
    display: none;
}
.projects-slide-title {
    margin-top: 16px;
    color: var(--mauve-700, #3D3435);
    font-family: "Hanken Grotesk";
    font-size: 20px;
    font-style: normal;
    font-weight: 400;
    line-height: 140%; /* 28px */
}

/* Full-width row under the slider: label on the left, arrow on the right. */
.projects-all {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 96px;
    text-decoration: none;
}
.projects-all-text {
    position: relative;
    display: inline-block;
    color: var(--Brown-600, #8C6542);
    text-align: center;
    font-family: Erode;
    font-size: 120px;
    font-style: normal;
    font-weight: 300;
    line-height: 120%; /* 144px */
    text-transform: uppercase;
}
.projects-all-text::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 1.5s ease;
}
.projects-all:hover .projects-all-text::after {
    transform: scaleX(1);
}
.projects-all-arrow {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    transition: transform 1.5s ease;
    padding-right: 25px;
}
.projects-all:hover .projects-all-arrow {
    transform: translateX(25px);
}
.projects-all-arrow svg {
    display: block;
    width: 87.917px;
    height: 76.927px;
}

@media screen and (max-width: 1024px) {
    .projects-section {
        padding: 64px 0;
    }
    .projects-header {
        margin-bottom: 30px;
    }
    .projects-all {
        margin-top: 48px;
        gap: 0;
    }
    .projects-all-arrow {
        padding-right: 10px;
    }
    .projects-all:hover .projects-all-arrow {
        transform: translateX(10px);
    }
    .projects-all-arrow svg {
        width: 48px;
        height: 22px;
    }
    .projects-slider-arrows {
        gap: 12px;
    }
    .projects_title {
        font-size: 36px;
    }
    .projects-slider-arrow svg {
        width: 36px;
        height: 36px;
    }
    .projects-all-text {
        font-size: 46px;
    }
}

@media screen and (max-width: 767px) {
    .projects-slide.is-landscape .projects-slide-image,
    .projects-slide.is-portrait .projects-slide-image {
        aspect-ratio: 3 / 3.8;
    }
    .projects-slide.has-mobile-portrait .projects-slide-img-desktop {
        display: none;
    }
    .projects-slide-img-mobile {
        display: block;
    }
    .projects-slide.is-landscape,
    .projects-slide.is-portrait {
        width: calc((100cqw - 32px) / 1.4);
    }
    .projects-slider .slick-slide {
        margin-right: 24px;
    }
    .projects-all-text {
        font-size: 42px;
    }
}
