:root {
    --homepage-side-gap: clamp(30px, calc((100vw - 1024px) * 0.25 + 30px), 200px);
}

.project-hero {
    width: 100%;
    min-height: 450px;
    line-height: 0;
    position: relative;
    background-color: #101f3c;
    overflow: hidden;
}

.project-hero img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 450px;
    object-fit: cover;
    object-position: center;
}

.project-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, .1) 0%, rgba(0, 0, 0, .48) 100%);
}

.project-hero__content {
    position: absolute;
    left: var(--homepage-side-gap);
    right: var(--homepage-side-gap);
    bottom: 30px;
    max-width: 760px;
    line-height: normal;
}

.project-hero__content h1 {
    margin: 0;
    color: #fff;
    font-size: 56px;
    line-height: 1.06;
    text-transform: uppercase;
}

.project-details {
    background: #fff;
    margin-top: 60px;
    padding: 32px 0 42px;
    margin-bottom: 80px;
}

.project-details__inner {
    width: 100%;
    margin: 0;
    display: flex;
    align-items: stretch;
}

.project-details__content {
    flex: 0 0 50%;
    max-width: 50%;
    padding: 0 80px 0 var(--homepage-side-gap);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.project-details__location {
    margin: 0 0 30px;
    color: #a1833f;
    font-family: 'Roboto', sans-serif;
    font-size: 20px;
    font-weight: 300;
    line-height: 1.45;
}

.project-details__description {
    margin: 0 0 80px;
    color: #111;
    font-family: "brother-1816", sans-serif;
    font-size: 16px;
    line-height: 1.25;
    text-transform: uppercase;
    font-weight: 700;
}

.project-details__label {
    margin: 0 0 8px;
    color: #007161;
    font-family: "brother-1816", sans-serif;
    font-size: 20px;
    line-height: 1.1;
    text-transform: uppercase;
}

.project-details__text {
    margin: 0 0 30px;
    color: #1a1a1a;
    font-family: 'Roboto', sans-serif;
    font-size: 17px;
    font-weight: 300;
    line-height: 1.45;
}

.project-details__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 165px;
    align-self: flex-start;
    margin-top: 70px;
    background: #007161;
    color: #fff;
    font-family: "brother-1816", sans-serif;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    padding: 10px 18px;
    transition: background-color 0.25s ease, transform 0.25s ease;
}

.project-details__cta:hover,
.project-details__cta:focus {
    background-color: #005f52;
    color: #fff;
    text-decoration: none;
    transform: translateY(-2px);
}

.project-details__media {
    flex: 0 0 50%;
    max-width: 50%;
    align-self: flex-start;
    position: relative;
    overflow: hidden;
    background: #f3f3f3;
}

.project-details__viewport {
    width: 100%;
    max-width: 960px;
    aspect-ratio: 16 / 10;
    max-height: 600px;
    overflow: hidden;
}

.project-details__track {
    width: 100%;
    height: 100%;
    display: flex;
    transition: transform .4s ease;
}

.project-details__slide {
    flex: 0 0 100%;
    max-width: 100%;
}

.project-details__slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.project-details__carousel-button {
    width: 34px;
    height: 34px;
    border: 0;
    padding: 0;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.project-details__carousel-nav {
    position: absolute;
    left: 50%;
    bottom: 40px;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 90px;
    z-index: 2;
}

.project-details__carousel-button:hover,
.project-details__carousel-button:focus {
    opacity: .85;
}

.project-details__carousel-button:focus,
.project-details__carousel-button:focus-visible {
    outline: none;
    box-shadow: none;
}

.project-details__carousel-arrow {
    width: 34px;
    height: auto;
    display: block;
}

.project-pagination {
    background: #007161;
}

.project-pagination__inner {
    width: calc(100% - (var(--homepage-side-gap) * 2));
    max-width: 1520px;
    margin: 0 auto;
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.project-pagination__link {
    display: inline-flex;
    align-items: center;
    gap: 30px;
    color: #fff;
    text-decoration: none;
    font-family: "brother-1816", sans-serif;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .3px;
    line-height: 1.2;
    max-width: 45%;
}

.project-pagination__link:hover,
.project-pagination__link:focus {
    color: #fff;
    text-decoration: none;
    opacity: .85;
}

.project-pagination__link--next {
    margin-left: auto;
    justify-content: flex-end;
    text-align: right;
}

.project-pagination__arrow {
    width: 17px;
    height: auto;
    display: block;
    flex-shrink: 0;
}

.project-pagination__arrow--left {
    transform: rotate(180deg);
}

.project-pagination__spacer {
    flex: 1;
}

@media (max-width: 1024px) {
    .project-hero__content h1 {
        font-size: 34px;
    }

    .project-details {
        margin-top: 24px;
        margin-bottom: 32px;
        padding: 16px 0 20px;
    }

    .project-details__inner {
        flex-direction: column;
    }

    .project-details__content,
    .project-details__media {
        max-width: 100%;
        flex-basis: auto;
    }

    .project-details__content {
        padding: 0 20px;
    }

    .project-details__location {
        margin-bottom: 16px;
    }

    .project-details__description {
        margin-bottom: 64px;
    }

    .project-details__text {
        margin-bottom: 16px;
    }

    .project-details__cta {
        margin-top: 24px;
    }

    .project-details__media {
        margin-top: 16px;
    }

    .project-details__slide img {
        height: auto;
    }

    .project-details__viewport {
        touch-action: pan-y;
    }

    .project-details__carousel-nav {
        bottom: 16px;
        gap: 56px;
    }

    .project-pagination__inner {
        width: 100%;
        padding: 0 20px;
        box-sizing: border-box;
    }
}

@media (max-width: 700px) {
    .project-details {
        margin-top: 16px;
        margin-bottom: 0;
        padding: 12px 0 0;
    }

    .project-details__content {
        padding: 0 16px;
    }

    .project-details__description {
        margin-bottom: 48px;
    }

    .project-details__cta {
        margin-top: 16px;
    }

    .project-details__carousel-nav {
        bottom: 40px;
    }

    .project-details__carousel-button {
        width: 26px;
        height: 26px;
    }

    .project-details__carousel-arrow {
        width: 26px;
    }

    .project-pagination__inner {
        min-height: 0;
        padding-left: 10px;
        padding-right: 10px;
        padding-top: 12px;
        padding-bottom: 12px;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .project-pagination__link {
        font-size: 14px;
        gap: 15px;
        max-width: 100%;
        margin-left: 0;
        justify-content: flex-start;
        text-align: left;
    }

    .project-pagination__link--next {
        margin-left: auto;
        justify-content: flex-end;
        text-align: right;
        align-self: flex-end;
    }

    .project-pagination__spacer {
        display: none;
    }
}