.project-detail-page {
    min-height: 100svh;
    overflow-x: hidden;
    background: #fff;
}

.project-cover {
    position: sticky;
    z-index: 1;
    top: 0;
    display: grid;
    width: 100%;
    height: 100svh;
    min-height: 100vh;
    place-items: center;
    overflow: hidden;
    padding: 0;
    background: #fff;
    isolation: isolate;
}

.project-title {
    position: absolute;
    z-index: 2;
    top: 70px;
    left: 32px;
    right: 32px;
    margin: 0 0 0 -0.055em;
    color: #fff;
    font-size: clamp(58px, 7.2vw, 140px);
    font-weight: 400;
    letter-spacing: 0.005em;
    line-height: .98;
    opacity: 0;
    pointer-events: none;
    transform: translateY(14px);
    transition: opacity 260ms ease, transform 260ms ease;
}

.project-title.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.project-description {
    position: absolute;
    z-index: 2;
    top: 70px;
    left: 32px;
    width: min(72vw, 1250px);
    margin: 0;
    color: #fff;
    font-size: clamp(22px, 2.1vw, 40px);
    font-weight: 400;
    letter-spacing: 0.01em;
    line-height: 1.15;
    opacity: 0;
    pointer-events: none;
    transform: translateY(14px);
    transition: opacity 320ms ease, transform 320ms ease;
}

.project-description.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.project-cover-stage {
    position: relative;
    height: 400svh;
}

.project-cover-image,
.project-cover-placeholder {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-cover-placeholder {
    background: #d3d3d3;
}

.project-cover-image {
    position: relative;
    z-index: 0;
    /* Move the image up so the fixed header covers more of its top edge. */
    object-position: center calc(50% - 24px);
}

.project-cover-image.layout1-video {
    width: 90%;
    border: 3px solid #000;
}

.project-cover.layout1-cover {
    background: #000;
}

.project-cover.cache-cover {
    background: #000;
}

.project-cover-image.cache-video {
    width: 90%;
    border: 3px solid #000;
}

.project-cover.prepress-cover {
    background: #000;
}

.project-cover-image.prepress-video {
    width: 90%;
    border: 3px solid #000;
}

.project-cover.hours-cover {
    background: #000;
}

.project-cover-image.hours-video {
    width: 90%;
    border: 3px solid #000;
}

.project-cover::after {
    content: "";
    position: absolute;
    z-index: 1;
    inset: 0;
    background: rgb(0 0 0 / 14%);
    -webkit-backdrop-filter: blur(56px);
    backdrop-filter: blur(56px);
    opacity: var(--blur-opacity, 0);
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 42%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 0%, #000 42%, transparent 100%);
    will-change: opacity;
    pointer-events: none;
}

.project-work {
    position: relative;
    z-index: 2;
    /* Let the white panel travel a full viewport before the sticky cover releases. */
    margin-top: -100svh;
    min-height: 150svh;
    background: #fff;
}

.project-work.layout1-gallery {
    min-height: 0;
    padding: 6vw 0 10vh;
}

.layout1-gallery-images {
    display: flex;
    flex-direction: column;
    gap: 6vw;
}

.layout1-image {
    display: block;
    height: auto;
    object-fit: contain;
}

.layout1-image-large {
    width: 94%;
    margin-inline: auto;
}

.layout1-image-medium {
    width: 80%;
    margin-inline: auto;
}

.layout1-image-medium-2 {
    width: 64%;
    margin-inline: auto;
}

.layout1-image-medium-3 {
    width: 48%;
    margin-inline: auto;
}

.layout1-image-pair {
    display: grid;
    width: 94%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5%;
    margin-inline: auto;
}

.layout1-image-pair .layout1-image {
    width: 100%;
}

.layout1-image-triplet {
    display: grid;
    width: 94%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5%;
    margin-inline: auto;
}

.layout1-image-triplet img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.project-cover.jac-cover {
    background: #000;
}

.project-cover-image.jac-video {
    width: 90%;
    border: 3px solid #000;
}

.project-work.jac-gallery {
    min-height: 0;
    padding: 6vw 0 10vh;
}

.jac-gallery-images {
    display: flex;
    flex-direction: column;
    gap: 6vw;
}

.jac-image {
    display: block;
    height: auto;
    object-fit: contain;
}

.jac-large {
    width: 94%;
    margin-inline: auto;
}

.jac-medium {
    width: 80%;
    margin-inline: auto;
}

.jac-medium-2 {
    width: 64%;
    margin-inline: auto;
}

.jac-medium-3 {
    width: 48%;
    margin-inline: auto;
}

.jac-image-pair {
    display: grid;
    width: 94%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5%;
    margin-inline: auto;
}

.jac-image-pair img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.jac-image-pair-mixed {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5vw;
}

.jac-image-pair-mixed img {
    flex: 0 0 auto;
    width: auto;
    height: 41.11vw;
}

@media (max-width: 760px) {
    .project-title {
        top: 68px;
        left: 18px;
        right: 18px;
        font-size: clamp(48px, 12vw, 88px);
    }

    .project-description {
        top: 68px;
        left: 18px;
        width: calc(100% - 36px);
        max-width: none;
        font-size: clamp(20px, 4.4vw, 28px);
    }
}

