@charset "utf-8";

.project-page {
    color: #252525;
    padding: 32px 0 48px;
}

.project-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 16px;
    font-weight: 700;
}

.project-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
    gap: 22px;
    align-items: stretch;
    margin-bottom: 24px;
}

.project-hero__media {
    background: #efefef;
    border: 1px solid #d1d1d1;
    border-radius: 8px;
    overflow: hidden;
    min-height: 360px;
}

.project-hero__media img {
    width: 100%;
    height: 100%;
    min-height: 360px;
    object-fit: cover;
    display: block;
}

.project-hero__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 360px;
    color: #777;
    font-weight: 700;
}

.project-summary {
    background: #f3f5f7;
    border: 1px solid #c9cdd2;
    border-radius: 8px;
    padding: 22px;
}

.project-summary h1 {
    margin-top: 0;
    margin-bottom: 8px;
    line-height: 1.05;
}

.project-meta-line {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 18px;
    color: #555;
    font-weight: 700;
    margin-bottom: 18px;
}

.project-meta-line span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.project-desc-short {
    font-size: 1.08rem;
    font-weight: 700;
    line-height: 1.45;
}

.project-cta {
    background: #173f63;
    border-radius: 8px;
    color: #fff;
    padding: 18px;
    margin-top: 18px;
}

.project-cta p {
    color: #fff;
    margin-bottom: 12px;
}

.project-cta a {
    color: #fff;
    font-weight: 700;
}

.project-section {
    margin-top: 28px;
}

.project-section h2 {
    border-bottom: 2px solid #3b3b3b;
    padding-bottom: 8px;
    margin-bottom: 16px;
}

.project-detail-copy {
    line-height: 1.6;
}

.project-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
}

.project-gallery-grid img,
.project-before-after img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #d1d1d1;
    display: block;
    cursor: pointer;
}

.project-before-after {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.project-ba-card {
    background: #f3f5f7;
    border: 1px solid #c9cdd2;
    border-radius: 8px;
    padding: 10px;
}

.project-ba-card h3 {
    margin: 2px 0 10px;
}

.project-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.project-option {
    background: #fff;
    border: 1px solid #c6ccd3;
    border-radius: 999px;
    padding: 6px 11px;
    font-weight: 700;
    color: #333;
}

.project-testimonial {
    background: #fff8e8;
    border-left: 5px solid #b32626;
    padding: 18px 20px;
    border-radius: 6px;
    font-size: 1.05rem;
    line-height: 1.55;
}

.related-projects {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 260px));
    gap: 14px;
}

.related-project {
    display: block;
    max-width: 260px;
    border: 1px solid #d1d1d1;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    color: #222;
    text-decoration: none;
}

.related-project__img,
.related-project img.related-project__img {
    width: 100% !important;
    height: 160px !important;
    max-width: 260px !important;
    object-fit: cover;
    display: block;
}

.related-project__body {
    display: block;
    padding: 12px;
}

.related-project__title {
    font-weight: 800;
    margin-bottom: 4px;
}

.lb-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none !important;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .9);
    padding: 46px 18px 26px;
}

.lb-overlay[hidden] {
    display: none !important;
}

.lb-overlay.is-open {
    display: flex !important;
}

.lb-stage {
    max-width: min(1100px, 92vw);
    max-height: 86vh;
    text-align: center;
    color: #fff;
}

.lb-img {
    max-width: 100%;
    max-height: 76vh;
    border-radius: 4px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, .45);
}

.lb-caption {
    color: #fff;
    margin: 12px 0 0;
}

.lb-close,
.lb-nav {
    position: absolute;
    border: 0;
    background: rgba(255, 255, 255, .15);
    color: #fff;
    border-radius: 999px;
    cursor: pointer;
}

.lb-close {
    top: 14px;
    right: 16px;
    width: 42px;
    height: 42px;
    font-size: 1.35rem;
}

.lb-nav {
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    font-size: 1.25rem;
}

.lb-prev {
    left: 18px;
}

.lb-next {
    right: 18px;
}

.lb-counter {
    position: absolute;
    top: 22px;
    left: 22px;
    color: #fff;
    font-weight: 700;
}

@media screen and (max-width: 820px) {
    .project-hero {
        grid-template-columns: 1fr;
    }

    .project-hero__media,
    .project-hero__media img,
    .project-hero__placeholder {
        min-height: 260px;
    }

    .project-before-after {
        grid-template-columns: 1fr;
    }

    .lb-nav {
        bottom: 18px;
        top: auto;
        transform: none;
    }
}
