.project-intro {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 80px;
    padding-bottom: 60px;
}

.project-intro .lead {
    font-size: 19px;
}

.project-meta {
    margin: 0;
    padding: 22px 30px;
    background: var(--paper);
    align-self: start;
}

.project-meta > div {
    display: grid;
    grid-template-columns: 95px 1fr;
    border-bottom: 1px solid var(--line);
    padding: 13px 0;
    font-size: 14px;
}

.project-meta > div:last-child {
    border-bottom: 0;
}

.project-meta dt {
    color: var(--muted);
}

.project-meta dd {
    margin: 0;
}

.gallery-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.gallery-heading h2 {
    font-size: 27px;
    margin-bottom: 0;
}

.gallery-heading p {
    font-size: 13px;
    margin: 0;
}

.project-gallery {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 28px;
}

.project-gallery figure {
    margin: 0;
}

.gallery-open {
    display: block;
    width: 100%;
    padding: 0;
    background: var(--paper);
    border: 0;
    position: relative;
}

.gallery-open img {
    width: 100%;
    height: 290px;
    object-fit: contain;
}

.gallery-open > span {
    position: absolute;
    bottom: 12px;
    right: 12px;
    width: 33px;
    height: 33px;
    background: var(--navy);
    color: white;
    font-size: 21px;
}

.project-gallery figcaption > span {
    color: var(--orange-dark);
    margin-right: 12px;
    font-family: Arial,sans-serif;
}

.lightbox {
    border: 0;
    background: #0a1820f5;
    color: white;
    padding: 60px 65px 30px;
    width: 96vw;
    max-width: 1500px;
    height: 94vh;
    max-height: 1000px;
}

.lightbox::backdrop {
    background: #000b;
}

.lightbox figure {
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox figure > img {
    min-height: 0;
    height: calc(100% - 45px);
    object-fit: contain;
}

.lightbox figcaption {
    color: white;
    text-align: center;
    margin-top: 14px;
}

.lightbox > button {
    position: absolute;
    width: 45px;
    height: 45px;
    border: 1px solid #fff8;
    background: #102c3c;
    color: white;
    font-size: 24px;
}

.lightbox-close {
    top: 12px;
    right: 12px;
}

.lightbox-prev {
    left: 10px;
    top: calc(50% - 22px);
}

.lightbox-next {
    right: 10px;
    top: calc(50% - 22px);
}

@media (max-width: 960px) {
    .project-gallery {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }
    .project-intro {
        gap: 35px;
    }
}

@media (max-width: 700px) {
    .project-intro {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .project-gallery {
        grid-template-columns: 1fr;
    }
    .gallery-open img {
        height: 330px;
    }
    .gallery-heading {
        display: block;
    }
    .gallery-heading p {
        margin-top: 12px;
    }
    .lightbox {
        padding: 65px 40px 20px;
    }
    .lightbox > button {
        width: 32px;
        height: 40px;
    }
    .lightbox-prev {
        left: 3px;
    }
    .lightbox-next {
        right: 3px;
    }
}
