/* Projectpagina Precies Montage
   Bestand:
   /wp-content/themes/s55-child/assets/projecten.css
*/

.pm-projectpagina {
    color: var(--pm-text, #20242a);
    background: #fff;
    line-height: 1.55;
    overflow: hidden;
    width: 100%;
    font-size: 16px;
}

.pm-container {
    width: min(1240px, calc(100% - 40px));
    margin-left: auto;
    margin-right: auto;
}

.pm-section {
    padding: 82px 0;
}

.pm-section-soft {
    background: var(--pm-soft, #f7f2f2);
}

.pm-breadcrumb {
    font-size: 13px;
    color: var(--pm-muted, #68707a);
    margin-bottom: 30px;
    font-weight: 650;
}

.pm-breadcrumb a {
    color: var(--pm-muted, #68707a);
    text-decoration: none;
}

.pm-breadcrumb span {
    color: var(--pm-red, #b11226);
}

.pm-eyebrow {
    color: var(--pm-red, #b11226);
    text-transform: uppercase;
    font-weight: 950;
    font-size: 13px;
    letter-spacing: .13em;
    margin-bottom: 12px;
}

.pm-projectpagina h1,
.pm-projectpagina h2,
.pm-projectpagina h3 {
    color: var(--pm-text, #20242a);
    margin-top: 0;
}

.pm-projectpagina h1 {
    font-size: clamp(42px, 5vw, 72px);
    line-height: .94;
    letter-spacing: -.055em;
    margin-bottom: 24px;
    max-width: 760px;
}

.pm-projectpagina h2 {
    font-size: clamp(28px, 3vw, 43px);
    line-height: 1.06;
    letter-spacing: -.035em;
    margin-bottom: 16px;
}

.pm-projectpagina h3 {
    font-size: 21px;
    line-height: 1.15;
    letter-spacing: -.02em;
    margin-bottom: 10px;
}

.pm-projectpagina p {
    color: var(--pm-muted, #68707a);
    margin-top: 0;
}

.pm-lead {
    font-size: 17px;
    max-width: 650px;
}

.pm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 999px;
    padding: 13px 22px;
    text-decoration: none !important;
    font-size: 14px;
    font-weight: 850;
    border: 1px solid transparent;
    white-space: nowrap;
    transition:
        transform .2s ease,
        box-shadow .2s ease,
        background-color .2s ease,
        border-color .2s ease,
        color .2s ease;
}

.pm-btn:hover {
    transform: translateY(-2px);
}

.pm-btn-primary {
    background: var(--pm-red, #b11226);
    color: #fff !important;
    box-shadow: 0 12px 26px rgba(177,18,38,.18);
}

.pm-btn-primary:hover {
    background: var(--pm-red-dark, #8f0e1f);
    color: #fff !important;
    box-shadow: 0 16px 34px rgba(177,18,38,.24);
}

.pm-btn-outline {
    color: var(--pm-dark, #171c22) !important;
    border-color: var(--pm-line, #e8e2e2);
    background: #fff;
}

.pm-btn-outline:hover {
    border-color: rgba(177,18,38,.35);
    color: var(--pm-red, #b11226) !important;
}

.pm-project-hero-wrap {
    background:
        radial-gradient(circle at 82% 22%, rgba(177,18,38,.09), transparent 30%),
        linear-gradient(110deg, #fff 0%, #fff 58%, #faf0f1 58%, #fff 100%);
    padding: 76px 0 84px;
}

.pm-project-hero {
    display: grid;
    grid-template-columns: .95fr 1.05fr;
    gap: 64px;
    align-items: center;
}

.pm-project-meta-line {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 28px 0 32px;
}

.pm-project-tag {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--pm-line, #e8e2e2);
    color: var(--pm-muted, #68707a);
    padding: 9px 14px;
    font-size: 13px;
    font-weight: 800;
    box-shadow: 0 10px 24px rgba(23,28,34,.04);
}

.pm-project-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.pm-project-hero-image {
    min-height: clamp(420px, 38vw, 560px);
    border-radius: 28px;
    overflow: hidden;
    position: relative;
    background: #ddd center/cover no-repeat;
    box-shadow: 0 30px 76px rgba(23,28,34,.16);
}

.pm-project-hero-image::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(0,0,0,.05), rgba(0,0,0,.28));
    pointer-events: none;
}

.pm-project-image-label {
    position: absolute;
    top: 28px;
    left: 28px;
    background: #fff;
    color: #111;
    padding: 10px 18px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 950;
    box-shadow: 0 12px 30px rgba(0,0,0,.16);
    z-index: 1;
}

.pm-project-image-card {
    position: absolute;
    right: 28px;
    bottom: 28px;
    width: min(330px, calc(100% - 56px));
    background: #fff;
    border-radius: 20px;
    padding: 22px;
    box-shadow: 0 16px 38px rgba(0,0,0,.18);
    z-index: 1;
}

.pm-project-image-card strong {
    display: block;
    font-size: 19px;
    line-height: 1.12;
    letter-spacing: -.02em;
    margin-bottom: 8px;
}

.pm-project-details {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: -38px;
    position: relative;
    z-index: 3;
}

.pm-project-detail-card,
.pm-project-block,
.pm-project-card {
    background: #fff;
    border: 1px solid var(--pm-line, #e8e2e2);
    box-shadow: 0 14px 30px rgba(23,28,34,.04);
    transition:
        transform .22s ease,
        box-shadow .22s ease,
        border-color .22s ease;
}

.pm-project-detail-card {
    border-radius: 18px;
    padding: 22px;
}

.pm-project-detail-card:hover,
.pm-project-block:hover,
.pm-project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 42px rgba(23,28,34,.09);
    border-color: rgba(177,18,38,.22);
}

.pm-project-detail-card span {
    display: block;
    color: var(--pm-muted, #68707a);
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 6px;
}

.pm-project-detail-card strong {
    display: block;
    font-size: 17px;
    line-height: 1.2;
}

.pm-project-split {
    display: grid;
    grid-template-columns: .84fr 1.16fr;
    gap: 56px;
    align-items: start;
}

.pm-project-sticky-card {
    background: #fff;
    border: 1px solid var(--pm-line, #e8e2e2);
    border-radius: 22px;
    padding: 28px;
    position: sticky;
    top: 100px;
    box-shadow: 0 12px 28px rgba(23,28,34,.04);
}

.pm-project-sticky-card ul,
.pm-project-work ul {
    list-style: none;
    padding: 0;
    margin: 22px 0 0;
    display: grid;
    gap: 10px;
    font-size: 14px;
    font-weight: 760;
}

.pm-project-sticky-card li,
.pm-project-work li {
    display: grid;
    grid-template-columns: 16px 1fr;
    column-gap: 8px;
    align-items: start;
}

.pm-project-sticky-card li::before,
.pm-project-work li::before {
    content: "✓";
    color: var(--pm-red, #b11226);
    font-weight: 950;
    line-height: 1.4;
}

.pm-project-content {
    display: grid;
    gap: 42px;
}

.pm-project-block {
    border-radius: 22px;
    padding: 34px;
}

.pm-project-gallery-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 34px;
}

.pm-project-gallery {
    display: grid;
    grid-template-columns: 1.25fr .75fr .75fr;
    grid-auto-rows: 240px;
    gap: 18px;
}

.pm-gallery-item {
    border-radius: 22px;
    overflow: hidden;
    background: #ddd center/cover no-repeat;
    box-shadow: 0 14px 30px rgba(23,28,34,.06);
    transition: transform .22s ease, box-shadow .22s ease;
}

.pm-gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 42px rgba(23,28,34,.1);
}

.pm-gallery-item:first-child {
    grid-row: span 2;
}

.pm-cta {
    background: var(--pm-dark, #171c22);
    color: #fff;
    border-radius: 28px;
    padding: 58px 64px;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 30px;
    position: relative;
    overflow: hidden;
}

.pm-cta::after {
    content: "";
    position: absolute;
    width: 360px;
    height: 360px;
    right: -130px;
    top: -170px;
    background: rgba(177,18,38,.45);
    border-radius: 999px;
}

.pm-cta h2,
.pm-cta p,
.pm-cta .pm-btn,
.pm-cta .pm-project-actions {
    color: #fff;
    position: relative;
    z-index: 1;
}

.pm-project-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin-top: 34px;
}

.pm-project-card {
    border-radius: 20px;
    overflow: hidden;
    text-decoration: none !important;
    color: var(--pm-text, #20242a) !important;
}

.pm-project-card-img {
    height: 190px;
    background: #ddd center/cover no-repeat;
}

.pm-project-card-body {
    padding: 24px;
}

.pm-project-card-category {
    color: var(--pm-red, #b11226);
    font-size: 12px;
    font-weight: 950;
    letter-spacing: .11em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

@media (max-width: 980px) {
    .pm-project-hero,
    .pm-project-split,
    .pm-cta {
        grid-template-columns: 1fr;
    }

    .pm-project-details {
        grid-template-columns: repeat(2, 1fr);
    }

    .pm-project-sticky-card {
        position: static;
    }

    .pm-project-gallery {
        grid-template-columns: repeat(2, 1fr);
    }

    .pm-gallery-item:first-child {
        grid-column: span 2;
        grid-row: span 1;
    }

    .pm-project-related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 620px) {
    .pm-container {
        width: min(100% - 28px, 1240px);
    }

    .pm-project-hero-wrap,
    .pm-section {
        padding: 50px 0;
    }

    .pm-projectpagina h1 {
        font-size: clamp(40px, 13vw, 56px);
    }

    .pm-project-details,
    .pm-project-gallery,
    .pm-project-related-grid {
        grid-template-columns: 1fr;
    }

    .pm-gallery-item:first-child {
        grid-column: span 1;
    }

    .pm-project-actions {
        flex-direction: column;
    }

    .pm-btn {
        width: 100%;
    }

    .pm-cta {
        padding: 34px;
    }
}

/* -------------------------------------------------------
   Projecten archief
------------------------------------------------------- */

.pm-project-archive-hero {
    background:
        radial-gradient(circle at 82% 22%, rgba(177,18,38,.09), transparent 30%),
        linear-gradient(110deg, #fff 0%, #fff 58%, #faf0f1 58%, #fff 100%);
    padding: 76px 0 84px;
}

.pm-project-archive-hero-grid {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 64px;
    align-items: center;
}

.pm-project-archive-intro-card {
    background: #fff;
    border: 1px solid var(--pm-line, #e8e2e2);
    border-radius: 24px;
    padding: 34px;
    box-shadow: 0 18px 42px rgba(23,28,34,.07);
}

.pm-project-archive-intro-card strong {
    display: block;
    font-size: 24px;
    line-height: 1.1;
    letter-spacing: -.03em;
    margin-bottom: 14px;
}

.pm-project-filter-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    margin-bottom: 34px;
}

.pm-project-filter-label {
    color: var(--pm-muted, #68707a);
    font-size: 14px;
    font-weight: 850;
}

.pm-project-filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.pm-project-filter {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 10px 16px;
    background: #fff;
    border: 1px solid var(--pm-line, #e8e2e2);
    color: var(--pm-muted, #68707a);
    text-decoration: none !important;
    font-size: 13px;
    font-weight: 850;
    transition:
        background-color .2s ease,
        color .2s ease,
        border-color .2s ease,
        transform .2s ease;
}

.pm-project-filter:hover,
.pm-project-filter.is-active {
    background: var(--pm-red, #b11226);
    border-color: var(--pm-red, #b11226);
    color: #fff !important;
    transform: translateY(-2px);
}

.pm-project-archive-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.pm-project-archive-card {
    background: #fff;
    border: 1px solid var(--pm-line, #e8e2e2);
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 14px 30px rgba(23,28,34,.04);
    transition:
        transform .22s ease,
        box-shadow .22s ease,
        border-color .22s ease;
}

.pm-project-archive-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 42px rgba(23,28,34,.09);
    border-color: rgba(177,18,38,.22);
}

.pm-project-archive-card-image {
    display: block;
    height: 250px;
    background: #ddd;
    overflow: hidden;
}

.pm-project-archive-card-image span {
    display: block;
    width: 100%;
    height: 100%;
    background: #ddd center/cover no-repeat;
}

.pm-project-archive-card-placeholder {
    background:
        linear-gradient(135deg, rgba(177,18,38,.12), rgba(23,28,34,.05)),
        #f1eeee !important;
}

.pm-project-archive-card-body {
    padding: 26px;
}

.pm-project-archive-card h2 {
    font-size: 24px;
    line-height: 1.08;
    letter-spacing: -.03em;
    margin-bottom: 12px;
}

.pm-project-archive-card h2 a {
    color: var(--pm-text, #20242a);
    text-decoration: none !important;
}

.pm-text-link {
    display: inline-block;
    margin-top: 12px;
    color: var(--pm-red, #b11226) !important;
    font-weight: 900;
    text-decoration: none !important;
    font-size: 14px;
    transition: transform .2s ease, color .2s ease;
}

.pm-text-link:hover {
    transform: translateX(3px);
    color: var(--pm-red-dark, #8f0e1f) !important;
}

.pm-project-pagination {
    margin-top: 44px;
}

.pm-project-pagination ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 0;
    margin: 0;
    justify-content: center;
}

.pm-project-pagination a,
.pm-project-pagination span {
    display: inline-flex;
    min-width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 0 14px;
    border: 1px solid var(--pm-line, #e8e2e2);
    background: #fff;
    color: var(--pm-muted, #68707a);
    font-size: 13px;
    font-weight: 850;
    text-decoration: none !important;
}

.pm-project-pagination .current,
.pm-project-pagination a:hover {
    background: var(--pm-red, #b11226);
    border-color: var(--pm-red, #b11226);
    color: #fff !important;
}

.pm-project-empty {
    background: #fff;
    border: 1px solid var(--pm-line, #e8e2e2);
    border-radius: 24px;
    padding: 44px;
    box-shadow: 0 14px 30px rgba(23,28,34,.04);
}

@media (max-width: 980px) {
    .pm-project-archive-hero-grid {
        grid-template-columns: 1fr;
    }

    .pm-project-filter-wrap {
        display: block;
    }

    .pm-project-filter-label {
        margin-bottom: 14px;
    }

    .pm-project-filters {
        justify-content: flex-start;
    }

    .pm-project-archive-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 620px) {
    .pm-project-archive-hero {
        padding: 50px 0;
    }

    .pm-project-archive-grid {
        grid-template-columns: 1fr;
    }

    .pm-project-archive-card-image {
        height: 230px;
    }

    .pm-project-archive-intro-card,
    .pm-project-empty {
        padding: 28px;
    }
}

.pm-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(23,28,34,.88);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 32px;
}

.pm-lightbox.is-active {
    display: flex;
}

.pm-lightbox img {
    max-width: min(1200px, 100%);
    max-height: 86vh;
    border-radius: 18px;
    box-shadow: 0 30px 80px rgba(0,0,0,.35);
}

.pm-lightbox-close,
.pm-lightbox-prev,
.pm-lightbox-next {
    appearance: none !important;
    -webkit-appearance: none !important;
    border: 0 !important;
    background: #fff !important;
    color: var(--pm-dark, #171c22) !important;
    cursor: pointer;
    position: absolute;
    display: grid;
    place-items: center;
    padding: 0 !important;
    box-shadow: 0 14px 34px rgba(0,0,0,.18);
}

.pm-lightbox-close {
    top: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 28px !important;
    line-height: 1 !important;
}

.pm-lightbox-prev,
.pm-lightbox-next {
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 34px !important;
    line-height: 1 !important;
}

.pm-lightbox-prev {
    left: 24px;
}

.pm-lightbox-next {
    right: 24px;
}

.pm-lightbox-close:hover,
.pm-lightbox-prev:hover,
.pm-lightbox-next:hover {
    background: var(--pm-red, #b11226) !important;
    color: #fff !important;
}

@media (max-width: 620px) {
    .pm-lightbox {
        padding: 18px;
    }

    .pm-lightbox-prev,
    .pm-lightbox-next {
        width: 42px;
        height: 42px;
        font-size: 28px !important;
    }

    .pm-lightbox-prev {
        left: 12px;
    }

    .pm-lightbox-next {
        right: 12px;
    }

    .pm-lightbox-close {
        top: 12px;
        right: 12px;
    }
}