﻿/* ==========================================
   PUBLIC PROJECTS — DETAILS
   Palette matches the site header/footer.
   ========================================== */

.pj-page {
    --pj-navy: #102b46;
    --pj-blue: #1467ad;
    --pj-muted: #64748b;
    --pj-border: #e3eaf1;
    background: #f7f9fc;
    color: var(--pj-navy);
}

.pj-hero {
    padding: 44px 0 58px;
    background: linear-gradient(120deg, #102b46, #174f79);
    color: #fff;
}

.pj-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 32px;
    color: #d7e5f2;
    font-size: .88rem;
}

    .pj-breadcrumb a {
        color: #d7e5f2;
        text-decoration: none;
    }

        .pj-breadcrumb a:hover {
            text-decoration: underline;
        }

.pj-eyebrow {
    margin: 0 0 14px;
    color: #b8d9f5;
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .12em;
}

.pj-title {
    max-width: 900px;
    margin: 0 0 18px;
    font-size: clamp(2rem, 4.5vw, 3.3rem);
    font-weight: 800;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.pj-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    color: #d7e5f2;
    font-size: .9rem;
}

.pj-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.pj-main {
    padding: 40px 0 64px;
}

.pj-cover {
    margin: 0 0 32px;
    overflow: hidden;
    border: 1px solid var(--pj-border);
    border-radius: 20px;
    background: #eaf0f6;
}

    .pj-cover img {
        display: block;
        width: 100%;
        max-height: 640px;
        object-fit: contain;
    }

.pj-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    align-items: start;
    gap: 30px;
}

.pj-panel {
    margin-bottom: 24px;
    padding: 32px;
    border: 1px solid var(--pj-border);
    border-radius: 16px;
    background: #fff;
}

    .pj-panel h2 {
        display: flex;
        align-items: center;
        margin: 0 0 20px;
        font-size: 1.5rem;
        font-weight: 750;
    }

.pj-step {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    margin-right: 10px;
    border-radius: 8px;
    background: #edf5fc;
    color: var(--pj-blue);
    font-size: .85rem;
}

.pj-richtext {
    color: #475569;
    line-height: 1.85;
    overflow-wrap: anywhere;
    overflow-x: auto;
}

    .pj-richtext > :first-child {
        margin-top: 0;
    }

    .pj-richtext > :last-child {
        margin-bottom: 0;
    }

    .pj-richtext img,
    .pj-richtext video,
    .pj-richtext iframe {
        max-width: 100%;
    }

    .pj-richtext img {
        height: auto;
        border-radius: 10px;
    }

    .pj-richtext a {
        color: var(--pj-blue);
    }

    .pj-richtext table {
        width: 100%;
        border-collapse: collapse;
    }

    .pj-richtext th,
    .pj-richtext td {
        padding: 10px;
        border: 1px solid var(--pj-border);
        text-align: left;
    }

.pj-sidebar {
    position: sticky;
    top: 24px;
}

    .pj-sidebar .pj-panel {
        padding: 24px;
    }

    .pj-sidebar h2 {
        font-size: 1.15rem;
    }

.pj-facts {
    margin: 0;
}

    .pj-facts dt {
        margin-top: 20px;
        color: var(--pj-muted);
        font-size: .78rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: .06em;
    }

        .pj-facts dt:first-child {
            margin-top: 0;
        }

    .pj-facts dd {
        margin: 7px 0 0;
        font-size: .95rem;
        font-weight: 650;
        overflow-wrap: anywhere;
    }

.pj-contact {
    background: var(--pj-navy);
    color: #fff;
}

    .pj-contact h2 {
        color: #fff;
    }

    .pj-contact p {
        color: #d7e5f2;
        font-size: .93rem;
        line-height: 1.75;
    }

.pj-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 13px 20px;
    border-radius: 8px;
    background: var(--pj-blue);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
}

    .pj-button:hover {
        background: #0f5b9b;
        color: #fff;
    }

.pj-contact .pj-button {
    width: 100%;
    box-sizing: border-box;
    background: #fff;
    color: var(--pj-navy);
}

.pj-gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

    .pj-gallery figure {
        margin: 0;
    }

    .pj-gallery a {
        display: block;
        overflow: hidden;
        border-radius: 10px;
        background: #edf3f9;
    }

    .pj-gallery img {
        display: block;
        width: 100%;
        aspect-ratio: 4 / 3;
        object-fit: cover;
    }

    .pj-gallery figcaption {
        padding-top: 8px;
        color: var(--pj-muted);
        font-size: .85rem;
        line-height: 1.5;
    }

.pj-video {
    display: block;
    width: 100%;
    max-height: 520px;
    border-radius: 12px;
    background: #102030;
}

.pj-related {
    margin-top: 40px;
}

    .pj-related > h2 {
        margin-bottom: 24px;
        font-size: 1.7rem;
        font-weight: 750;
    }

.pj-related-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.pj-related-card {
    overflow: hidden;
    border: 1px solid var(--pj-border);
    border-radius: 16px;
    background: #fff;
}

.pj-related-media {
    display: block;
    aspect-ratio: 16 / 10;
    background: #eaf0f6;
    text-decoration: none;
}

    .pj-related-media img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.pj-placeholder {
    display: grid;
    place-items: center;
    height: 100%;
    padding: 20px;
    color: #49627b;
    font-weight: 700;
    text-align: center;
}

.pj-related-body {
    padding: 22px;
}

    .pj-related-body h3 {
        margin: 0 0 16px;
        font-size: 1.1rem;
        line-height: 1.5;
    }

        .pj-related-body h3 a {
            color: var(--pj-navy);
            text-decoration: none;
        }

            .pj-related-body h3 a:hover {
                color: var(--pj-blue);
            }

.pj-related-link,
.pj-back {
    color: var(--pj-blue);
    font-weight: 700;
    text-decoration: none;
}

    .pj-related-link:hover,
    .pj-back:hover {
        text-decoration: underline;
    }

.pj-back {
    display: inline-block;
    margin-top: 32px;
}

.pj-page a:focus-visible {
    outline: 3px solid #f5b942;
    outline-offset: 4px;
}

@media (max-width: 900px) {
    .pj-layout {
        grid-template-columns: 1fr;
    }

    .pj-sidebar {
        position: static;
    }

    .pj-related-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .pj-hero {
        padding: 30px 0 40px;
    }

    .pj-main {
        padding: 24px 0 44px;
    }

    .pj-panel {
        padding: 22px;
    }

    .pj-gallery,
    .pj-related-grid {
        grid-template-columns: 1fr;
    }
}

/* ---- Gallery (thumbnails with border) ---- */
.pj-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
}

.pj-gallery-item {
    margin: 0;
    display: flex;
    flex-direction: column;
}

    .pj-gallery-item a {
        display: block;
        overflow: hidden;
        border: 1px solid var(--pj-border);
        border-radius: 12px;
        background: #edf3f9;
        aspect-ratio: 4 / 3;
        transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
    }

        .pj-gallery-item a:hover {
            border-color: var(--pj-blue);
            transform: translateY(-2px);
            box-shadow: 0 8px 22px rgba(16, 43, 70, .14);
        }

.pj-gallery-thumb {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform .35s ease;
}

.pj-gallery-item a:hover .pj-gallery-thumb {
    transform: scale(1.05);
}

.pj-gallery figcaption {
    padding-top: 8px;
    color: var(--pj-muted);
    font-size: .82rem;
    line-height: 1.5;
    text-align: center;
}