.project-detail-hero {
    background: #f5f8fc;
    padding: 64px 0 70px;
}

.project-detail-hero-container,
.project-detail-featured {
    width: min(calc(100% - 48px), 1120px);
    margin-inline: auto;
}

.project-detail-hero-container {
    max-width: 1120px;
}

.project-detail-eyebrow {
    margin: 0 0 16px;
    color: #1687d9;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.3;
    text-transform: uppercase;
}

.project-detail-hero h1 {
    max-width: 1000px;
    margin: 0;
    color: #102342;
    font-size: clamp(42px, 4.2vw, 64px);
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.08;
}

.project-detail-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px 26px;
    margin-top: 24px;
}

.project-detail-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #60728d;
    font-size: 16px;
    line-height: 1.45;
}

.project-detail-meta-item svg {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    fill: none;
    stroke: #1687d9;
    stroke-width: 2;
}

.project-detail-featured-section {
    padding-top: 72px;
}

.project-detail-featured img {
    display: block;
    width: 100%;
    max-height: 560px;
    aspect-ratio: 16 / 8.5;
    border: 1px solid #dbe5f0;
    border-radius: 16px;
    box-shadow: 0 10px 28px rgba(15, 43, 82, 0.07);
    object-fit: cover;
}

.project-detail-main-section {
    padding: 56px 0 80px;
}

.project-detail-main {
    width: min(calc(100% - 48px), 1060px);
    margin-inline: auto;
}

.project-detail-overview h2,
.project-detail-summary h2,
.project-detail-gallery h2 {
    margin: 0;
    color: #102342;
    font-size: 30px;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.25;
}

.project-detail-description {
    margin-top: 16px;
    color: #53657d;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.8;
}

.project-detail-summary {
    margin-top: 42px;
    padding: 28px;
    border: 1px solid #dbe5f0;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(15, 43, 82, 0.05);
}

.project-detail-summary dl {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 32px;
    margin: 24px 0 0;
}

.project-detail-summary dl div {
    min-width: 0;
    padding-bottom: 16px;
    border-bottom: 1px solid #edf2f7;
}

.project-detail-summary dt {
    color: #60728d;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
}

.project-detail-summary dd {
    margin: 6px 0 0;
    color: #102342;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
}

.project-detail-gallery {
    margin-top: 56px;
}

.project-detail-gallery .project-detail-eyebrow {
    margin-bottom: 12px;
}

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

.project-gallery-grid--single {
    grid-template-columns: minmax(0, 650px);
}

.project-gallery-grid figure {
    margin: 0;
    overflow: hidden;
    border-radius: 12px;
    background: #eef4f9;
}

.project-gallery-grid img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.project-detail-back-row {
    margin-top: 48px;
    padding-top: 28px;
    border-top: 1px solid #dbe5f0;
}

.project-detail-back-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 0 20px;
    border: 1px solid #1687d9;
    border-radius: 9px;
    background: #ffffff;
    color: #1687d9;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    transition: all 0.2s ease;
}

.project-detail-back-link:hover {
    border-color: #1687d9;
    background: #1687d9;
    color: #ffffff;
}

.project-detail-back-link:focus-visible {
    outline: none;
    border-radius: 4px;
    box-shadow: 0 0 0 3px rgba(11, 120, 200, 0.16);
}

@media (max-width: 768px) {
    .project-detail-hero {
        padding: 44px 0 48px;
    }

    .project-detail-hero-container,
    .project-detail-featured,
    .project-detail-main {
        width: calc(100% - 36px);
    }

    .project-detail-hero h1 {
        font-size: clamp(34px, 10vw, 44px);
        line-height: 1.1;
    }

    .project-detail-meta {
        gap: 12px 18px;
        margin-top: 20px;
    }

    .project-detail-meta-item {
        font-size: 15px;
    }

    .project-detail-featured-section {
        padding-top: 40px;
    }

    .project-detail-featured img {
        aspect-ratio: 16 / 10;
        border-radius: 12px;
    }

    .project-detail-main-section {
        padding: 40px 0 64px;
    }

    .project-detail-overview h2,
    .project-detail-summary h2,
    .project-detail-gallery h2 {
        font-size: 26px;
    }

    .project-detail-description {
        font-size: 16px;
        line-height: 1.75;
    }

    .project-detail-summary {
        margin-top: 34px;
        padding: 22px 18px;
    }

    .project-detail-summary dl {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-top: 20px;
    }

    .project-detail-gallery {
        margin-top: 44px;
    }

    .project-gallery-grid,
    .project-gallery-grid--single {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .project-detail-back-row {
        margin-top: 40px;
    }
}
