.project-detail-hero {
    position: relative;
    min-height: 650px;
    display: flex;
    align-items: flex-end;
    isolation: isolate;
    background-image: linear-gradient(90deg, rgba(3, 24, 42, .96) 0%, rgba(8, 44, 75, .72) 55%, rgba(8, 44, 75, .3) 100%), var(--project-hero-image);
    background-position: center;
    background-size: cover;
}

.project-detail-hero::after { content: ""; position: absolute; inset: auto 0 0; height: 5px; background: #ee212b; z-index: -1; }
.project-detail-hero__content { max-width: 950px; padding-top: 125px; padding-bottom: 82px; color: #fff; }
.project-detail-hero h1 { max-width: 920px; margin: 13px 0 18px; color: #fff; font-size: clamp(2.6rem, 6vw, 5.4rem); line-height: 1.01; }
.project-detail-lead { max-width: 750px; margin: 0; color: rgba(255,255,255,.84); font-size: 1.7rem; line-height: 1.7; }

.project-detail-breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 32px; padding: 0; list-style: none; color: rgba(255,255,255,.7); }
.project-detail-breadcrumbs li + li::before { content: "/"; margin-right: 8px; color: rgba(255,255,255,.45); }
.project-detail-breadcrumbs a { color: #fff; }
.project-detail-breadcrumbs a:hover { color: #ff6269; }

.project-detail-sector {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 3px;
    background: #ee212b;
    color: #fff;
    font-size: 1.5rem;
    font-weight: 750;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.project-detail-main { padding: 100px 0 110px; background: #f5f7f9; }
.project-detail-layout { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(300px, .75fr); gap: 75px; align-items: start; }
.project-detail-eyebrow { color: #ee212b; font-size: 3rem; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.project-detail-story > h2 { max-width: 700px; margin: 9px 0 30px; color: #082c4b; font-size: clamp(2rem, 3.5vw, 3.15rem); line-height: 1.13; }
.project-detail-copy { color: #4e5d67; font-size: 2.5rem; line-height: 1.9; }
.project-detail-copy h2, .project-detail-copy h3 { margin-top: 36px; color: #082c4b; }
.project-detail-copy ul, .project-detail-copy ol { padding-left: 24px; }
.project-detail-copy li { margin-bottom: 8px; }

.project-facts { position: sticky; top: 100px; overflow: hidden; border-radius: 5px; background: #082c4b; color: rgba(255,255,255,.8); box-shadow: 0 18px 45px rgba(8,44,75,.18); }
.project-facts__heading { padding: 30px 32px 24px; border-bottom: 1px solid rgba(255,255,255,.13); }
.project-facts__heading h2 { margin: 7px 0 0; color: #fff; font-size: 1.5rem; }
.project-facts dl { margin: 0; padding: 10px 32px; }
.project-facts dl div { padding: 18px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.project-facts dt { margin-bottom: 5px; color: #ff5b62; font-size: 1.1rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.project-facts dd { margin: 0; color: #fff; line-height: 1.5; }
.project-facts__back { display: block; padding: 21px 32px; color: #fff; font-weight: 700; }
.project-facts__back:hover { background: #ee212b; color: #fff; }
.project-facts__back i { margin-right: 9px; }

.project-testimonial { position: relative; margin: 48px 0 0; padding: 35px 38px; border-left: 4px solid #ee212b; background: #fff; box-shadow: 0 12px 35px rgba(10,38,61,.07); }
.project-testimonial > i { color: #ee212b; font-size: 1.6rem; }
.project-testimonial p { margin: 15px 0 10px; color: #082c4b; font-size: 1.2rem; font-weight: 500; line-height: 1.65; }
.project-testimonial footer { color: #71808a; font-weight: 700; }

.project-gallery { margin-top: 105px; padding-top: 65px; border-top: 1px solid #dce2e6; }
.project-gallery__heading { display: flex; align-items: end; justify-content: space-between; gap: 25px; margin-bottom: 35px; }
.project-gallery__heading h2 { margin: 8px 0 0; color: #082c4b; font-size: clamp(2rem, 3.5vw, 3rem); }
.project-gallery__heading > p { margin: 0; color: #78848c; }
.project-gallery__grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }
.project-gallery__button { position: relative; grid-column: span 4; aspect-ratio: 4 / 3; overflow: hidden; padding: 0; border: 1px solid transparent; border-radius: 4px; background: #dfe5e9; box-shadow: 0 10px 28px rgba(10,38,61,.08); cursor: zoom-in; transition: border-color .4s ease, box-shadow .4s ease; }
.project-gallery__button:nth-child(5n + 1), .project-gallery__button:nth-child(5n + 2) { grid-column: span 6; }
.project-gallery__button img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2,.75,.25,1), filter .9s ease; will-change: transform; }
.project-gallery__button::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg,rgba(8,44,75,.82),rgba(8,44,75,.18)); opacity: .12; transition: opacity .9s ease; }
.project-gallery__button span { position: absolute; inset: 50% auto auto 50%; z-index: 1; display: grid; width: 50px; height: 50px; place-items: center; border-radius: 50%; background: #ee212b; color: #fff; opacity: 0; transform: translate(-50%,-50%) scale(.72); transition: opacity .55s ease, transform .65s cubic-bezier(.2,.75,.25,1), background-color .3s ease; }
.project-gallery__button:hover, .project-gallery__button:focus-visible { border-color: rgba(238,33,43,.25); box-shadow: 0 17px 38px rgba(10,38,61,.16); }
.project-gallery__button:hover img, .project-gallery__button:focus-visible img { transform: scale(1.065); filter: saturate(1.05) contrast(1.02); }
.project-gallery__button:hover::after, .project-gallery__button:focus-visible::after { opacity: .82; }
.project-gallery__button:hover span, .project-gallery__button:focus-visible span { opacity: 1; transform: translate(-50%,-50%) scale(1); }

.project-lightbox { width: min(1100px, calc(100% - 32px)); max-width: none; padding: 0; border: 0; background: transparent; color: #fff; }
.project-lightbox[open] { animation: project-lightbox-in .38s cubic-bezier(.2,.75,.25,1) both; }
.project-lightbox::backdrop { background: rgba(1,13,23,.94); animation: project-backdrop-in .35s ease both; }
.project-lightbox figure { margin: 0; text-align: center; animation: project-lightbox-image-in .5s cubic-bezier(.2,.75,.25,1) both; }
.project-lightbox img { display: block; max-width: 100%; max-height: 82vh; margin: auto; object-fit: contain; }
.project-lightbox figcaption { margin-top: 12px; color: rgba(255,255,255,.82); }
.project-lightbox__close { position: fixed; top: 22px; right: 25px; display: grid; width: 46px; height: 46px; place-items: center; border: 1px solid rgba(255,255,255,.35); border-radius: 50%; background: rgba(8,44,75,.7); color: #fff; cursor: pointer; transition: background-color .3s ease, border-color .3s ease, transform .4s ease; }
.project-lightbox__close:hover { border-color: #ee212b; background: #ee212b; transform: rotate(90deg); }

@keyframes project-lightbox-in { from { opacity: 0; transform: scale(.985); } to { opacity: 1; transform: scale(1); } }
@keyframes project-backdrop-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes project-lightbox-image-in { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: translateY(0) scale(1); } }

.project-detail-cta { display: flex; align-items: center; justify-content: space-between; gap: 40px; margin-top: 105px; padding: 52px 58px; border-radius: 5px; background: #fff; box-shadow: 0 14px 40px rgba(10,38,61,.08); }
.project-detail-cta h2 { max-width: 720px; margin: 8px 0 0; color: #082c4b; font-size: clamp(1.8rem, 3.3vw, 3rem); }
.project-detail-cta > a { flex: 0 0 auto; padding: 16px 22px; border-radius: 3px; background: #ee212b; color: #fff; font-weight: 800; }
.project-detail-cta > a:hover { background: #082c4b; color: #fff; }
.project-detail-cta > a i { margin-left: 9px; }

@media (max-width: 991px) {
    .project-detail-hero { min-height: 540px; }
    .project-detail-layout { grid-template-columns: 1fr; gap: 55px; }
    .project-facts { position: static; }
    .project-detail-cta { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 767px) {
    .project-gallery__button, .project-gallery__button:nth-child(5n + 1), .project-gallery__button:nth-child(5n + 2) { grid-column: span 6; }
}

@media (max-width: 575px) {
    .project-detail-hero__content { padding-top: 95px; padding-bottom: 58px; }
    .project-detail-main { padding: 68px 0 75px; }
    .project-gallery { margin-top: 70px; padding-top: 48px; }
    .project-gallery__button, .project-gallery__button:nth-child(5n + 1), .project-gallery__button:nth-child(5n + 2) { grid-column: span 12; }
    .project-detail-cta { margin-top: 70px; padding: 36px 28px; }
}
