/* Project detail / image-led gallery with an unrestricted thumbnail collection. */
.project-gallery {
    padding: 40px var(--gutter) 35px;
    background: #e7e4db;
}
.gallery-stage {
    position: relative;
    background: #262d27;
}
.gallery-main-link {
    display: block;
    position: relative;
    touch-action: pan-y;
}
#gallery-main {
    width: 100%;
    height: min(72vh, 850px);
    min-height: 380px;
    object-fit: contain;
}
.gallery-enlarge {
    position: absolute;
    bottom: 22px;
    right: 24px;
    font-size: 13px;
    color: #fff;
    background: rgba(25, 32, 26, .78);
    padding: 10px 18px;
    border: 1px solid rgba(255, 255, 255, .4);
}
.gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 60px;
    border: 1px solid rgba(255, 255, 255, .5);
    background: rgba(30, 36, 28, .6);
    color: white;
    font-size: 25px;
}
.gallery-prev {
    left: 20px;
}
.gallery-next {
    right: 20px;
}
.gallery-arrow:hover {
    background: #374033;
}
.gallery-caption {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 20px;
    padding: 18px 0;
    font-size: 14px;
}
.gallery-caption p {
    margin: 0;
}
#gallery-count {
    white-space: nowrap;
    font-size: 14px;
    font-variant-numeric: tabular-nums;
}
.gallery-thumbs {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding: 3px 3px 12px;
    scrollbar-width: thin;
    scrollbar-color: #8e967e #d3d3c7;
    overscroll-behavior-x: contain;
}
.gallery-thumb {
    flex: 0 0 185px;
    border: 2px solid transparent;
    padding: 4px;
    transition: border-color .2s;
}
.gallery-thumb img {
    aspect-ratio: 1.5;
}
.gallery-thumb span {
    display: block;
    font-size: 13px;
    padding-top: 7px;
    line-height: 1.7;
}
.gallery-thumb[aria-current='true'],
.gallery-thumb:hover {
    border-color: #647150;
}
.gallery-status {
    margin: 6px 0 0;
    font-size: 13px;
    color: #656a5c;
}
.gallery-status:empty {
    display: none;
}
.project-information {
    display: grid;
    grid-template-columns: .8fr 1.8fr;
    gap: clamp(32px, 6vw, 100px);
    padding-block: 65px 75px;
    max-width: 1520px;
    margin-inline: auto;
}
.project-facts {
    align-self: start;
    padding: 28px;
    background: #e6e8de;
    border-top: 2px solid #a79777;
}
.project-meta {
    margin: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
}
.project-meta dt {
    color: #707563;
    font-size: 13px;
    margin-top: 15px;
}
.project-meta dd {
    font-size: 15px;
    margin: 0;
    padding-bottom: 14px;
    border-bottom: 1px solid #c1c7b5;
}
.project-meta dt:first-child {
    margin-top: 0;
}
.project-story h2 {
    font-size: clamp(29px, 3vw, 43px);
}
.project-story h3 {
    margin: 32px 0 18px;
    font-size: 24px;
}
.project-story > p:not(.eyebrow):not(.info-note) {
    font-size: 16px;
    line-height: 2.1;
    color: #626958;
}
.project-story .info-note {
    margin-top: 28px;
}
.related {
    background: #e9ebe2;
}
.related .case-grid {
    margin-top: 45px;
}
.gallery-lightbox {
    position: fixed;
    inset: 0;
    width: 100vw;
    max-width: none;
    height: 100dvh;
    max-height: none;
    margin: 0;
    padding: 72px 70px 90px;
    border: 0;
    background: #172018;
    color: #f6f3e8;
}
.gallery-lightbox::backdrop {
    background: rgba(13, 20, 14, .94);
}
.gallery-lightbox figure {
    margin: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.lightbox-image {
    width: 100%;
    flex: 1;
    min-height: 0;
    object-fit: contain;
    touch-action: pan-y;
}
.lightbox-caption {
    text-align: center;
    font-size: 14px;
    padding-top: 15px;
}
.lightbox-close {
    position: absolute;
    top: 18px;
    right: 25px;
    border: 1px solid #9aa28b;
    padding: 8px 18px;
    min-height: 44px;
    background: transparent;
    color: #fff;
    font-size: 15px;
}
.lightbox-controls {
    display: flex;
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    align-items: center;
    gap: 25px;
    font-size: 14px;
}
.lightbox-controls button {
    width: 48px;
    height: 48px;
    border: 1px solid #8e9982;
    background: transparent;
    color: #fff;
    font-size: 23px;
}
.lightbox-count {
    min-width: 68px;
    text-align: center;
    font-variant-numeric: tabular-nums;
}
body.gallery-open {
    overflow: hidden;
}
@media (max-width: 900px) {
    .project-information {
        grid-template-columns: 1fr;
        gap: 35px;
    }
    .project-meta {
        grid-template-columns: 120px 1fr;
        align-items: baseline;
        gap: 10px;
    }
    .project-meta dt {
        margin: 0;
    }
    .project-meta dd {
        padding-bottom: 10px;
    }
}
@media (max-width: 560px) {
    .project-gallery {
        padding: 22px 0 25px;
    }
    #gallery-main {
        height: auto;
        min-height: 0;
        aspect-ratio: 1.3;
    }
    .gallery-enlarge {
        right: 13px;
        bottom: 12px;
        padding: 7px 12px;
    }
    .gallery-arrow {
        width: 40px;
        height: 48px;
        font-size: 22px;
    }
    .gallery-prev {
        left: 10px;
    }
    .gallery-next {
        right: 10px;
    }
    .gallery-caption {
        padding-inline: 24px;
    }
    .gallery-thumbs {
        padding-inline: 24px;
        gap: 10px;
    }
    .gallery-thumb {
        flex-basis: 130px;
    }
    .gallery-status {
        padding-inline: 24px;
    }
    .project-information {
        padding-block: 40px 50px;
    }
    .project-facts {
        padding: 23px;
    }
    .project-meta {
        grid-template-columns: 80px 1fr;
    }
    .project-story h3 {
        font-size: 22px;
    }
    .gallery-lightbox {
        padding: 75px 12px 95px;
    }
}

