﻿@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
    --proj-bg-1: #ece8e2;
    --proj-bg-2: #f6f3ef;
    --proj-bg-3: #ddd6ce;
    --proj-surface: rgba(255,255,255,.72);
    --proj-surface-strong: rgba(255,255,255,.88);
    --proj-surface-solid: #fbf9f6;
    --proj-ink: #111214;
    --proj-ink-soft: rgba(17,18,20,.72);
    --proj-ink-muted: rgba(17,18,20,.50);
    --proj-line: rgba(17,18,20,.08);
    --proj-line-strong: rgba(17,18,20,.12);
    --proj-accent: #c1111a;
    --proj-accent-soft: rgba(193,17,26,.10);
    --proj-dark-1: #191b20;
    --proj-dark-2: #101216;
    --proj-radius-sm: 16px;
    --proj-radius: 24px;
    --proj-radius-lg: 32px;
    --proj-radius-xl: 40px;
    --proj-shadow-soft: 0 12px 28px rgba(15,15,16,.06), 0 3px 10px rgba(15,15,16,.04);
    --proj-shadow: 0 24px 64px rgba(15,15,16,.10), 0 10px 22px rgba(15,15,16,.06), 0 3px 10px rgba(15,15,16,.04);
    --proj-shadow-hover: 0 34px 80px rgba(15,15,16,.14), 0 14px 28px rgba(15,15,16,.08), 0 5px 12px rgba(15,15,16,.05);
    --proj-max: 1360px;
    --proj-transition: .30s cubic-bezier(.22,1,.36,1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    color: var(--proj-ink);
    background: radial-gradient(1200px 700px at 40% 0%, rgba(255,255,255,.34), transparent 72%), linear-gradient(180deg, var(--proj-bg-1) 0%, var(--proj-bg-2) 44%, #f8f5f1 100%);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.projecten-page {
    padding-top: 5.25rem;
    padding-bottom: 5rem;
}

.projecten-shell {
    width: min(var(--proj-max), calc(100% - 34px));
    margin: 0 auto;
}

.projecten-hero {
    position: relative;
    margin-bottom: 2rem;
}

.projecten-hero__inner {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr);
    gap: 1.2rem;
    align-items: stretch;
    padding: clamp(1.25rem, 2vw, 1.8rem);
    border-radius: var(--proj-radius-xl);
    background: radial-gradient(circle at 10% 0%, rgba(255,255,255,.92) 0%, rgba(255,255,255,0) 42%), linear-gradient(180deg, rgba(255,255,255,.84) 0%, rgba(248,245,240,.80) 100%);
    border: 1px solid rgba(255,255,255,.78);
    box-shadow: var(--proj-shadow), inset 0 1px 0 rgba(255,255,255,.92), inset 0 -12px 24px rgba(15,15,16,.025);
    overflow: hidden;
}

    .projecten-hero__inner::before {
        content: "";
        position: absolute;
        inset: 0;
        pointer-events: none;
        background: radial-gradient(860px 240px at 100% 100%, rgba(193,17,26,.03) 0%, rgba(193,17,26,0) 62%), linear-gradient(to bottom, rgba(255,255,255,.14) 0%, rgba(255,255,255,0) 26%);
    }

.projecten-hero__content,
.projecten-hero__visual {
    position: relative;
    z-index: 2;
}

.projecten-hero__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: .85rem;
    min-width: 0;
    padding: .2rem .2rem .2rem .25rem;
}

.projecten-kicker,
.projecten-sectionhead__eyebrow,
.projecten-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    background: var(--proj-accent-soft);
    border: 1px solid rgba(193,17,26,.10);
    color: rgba(17,18,20,.50);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
    width: fit-content;
}

.projecten-title {
    margin: 0;
    font-size: clamp(2.4rem, 4vw, 4.6rem);
    line-height: .92;
    letter-spacing: -.075em;
    font-weight: 900;
    color: #111214;
    text-wrap: balance;
    max-width: 10ch;
}

.projecten-intro {
    max-width: 60rem;
    margin: 0;
    color: var(--proj-ink-soft);
    font-size: clamp(.98rem, 1.02vw, 1.12rem);
    line-height: 1.68;
    letter-spacing: -.012em;
}

.projecten-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .8rem;
    margin-top: .35rem;
    max-width: 760px;
}

.projecten-stat {
    padding: .9rem .95rem .82rem;
    border-radius: 18px;
    background: rgba(255,255,255,.58);
    border: 1px solid rgba(17,18,20,.06);
    box-shadow: 0 10px 22px rgba(15,15,16,.04), inset 0 1px 0 rgba(255,255,255,.84);
}

.projecten-stat__value {
    display: block;
    margin-bottom: .22rem;
    color: #111214;
    font-size: .96rem;
    font-weight: 800;
    letter-spacing: -.02em;
}

.projecten-stat__label {
    display: block;
    color: var(--proj-ink-muted);
    font-size: .86rem;
    line-height: 1.42;
}

.projecten-hero__visual {
    min-width: 0;
    display: flex;
    align-items: stretch;
    justify-content: stretch;
    position: relative;
}

.projecten-hero__glow {
    position: absolute;
    inset: 8% 8% auto auto;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(193,17,26,.10) 0%, rgba(193,17,26,0) 72%);
    filter: blur(24px);
    pointer-events: none;
}

.projecten-hero__panel {
    width: 100%;
    min-height: 100%;
    border-radius: 24px;
    background: linear-gradient(180deg, var(--proj-dark-1) 0%, var(--proj-dark-2) 100%);
    border: 1px solid rgba(255,255,255,.06);
    box-shadow: 0 20px 48px rgba(15,15,16,.16), inset 0 1px 0 rgba(255,255,255,.04);
    padding: 1.15rem 1.2rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
    position: relative;
}

    .projecten-hero__panel::before {
        content: "";
        position: absolute;
        inset: 0;
        background: radial-gradient(110% 80% at 100% 100%, rgba(193,17,26,.07) 0%, rgba(193,17,26,0) 58%), linear-gradient(to bottom, rgba(255,255,255,.04), rgba(255,255,255,0));
        pointer-events: none;
    }

.projecten-hero__eyebrow,
.projecten-hero__text,
.projecten-hero__line {
    position: relative;
    z-index: 2;
}

.projecten-hero__eyebrow {
    background: rgba(255,255,255,.06);
    border-color: rgba(255,255,255,.08);
    color: rgba(255,255,255,.56);
}

.projecten-hero__line {
    width: 72px;
    height: 3px;
    border-radius: 999px;
    margin: .85rem 0;
    background: linear-gradient(to right, rgba(193,17,26,.82), rgba(193,17,26,.18));
}

.projecten-hero__text {
    max-width: 24rem;
    margin: 0;
    color: rgba(255,255,255,.84);
    font-size: .95rem;
    line-height: 1.7;
    letter-spacing: -.01em;
}

.projecten-toolbar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 1.3rem;
}

.projecten-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 1.1rem;
    border-radius: 999px;
    border: 1px solid transparent;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: -.01em;
    transition: transform .22s ease, box-shadow .22s ease, filter .22s ease, background .22s ease;
    cursor: pointer;
}

    .projecten-btn:hover {
        transform: translateY(-1px);
    }

.projecten-btn--primary {
    background: linear-gradient(180deg, #d61b27 0%, #b4111b 100%);
    color: #fff;
    box-shadow: 0 14px 28px rgba(193,17,26,.22);
}

.projecten-btn--ghost {
    background: rgba(255,255,255,.64);
    border-color: rgba(17,18,20,.08);
    color: #111214;
    box-shadow: var(--proj-shadow-soft), inset 0 1px 0 rgba(255,255,255,.86);
}

.projecten-sectionhead {
    display: flex;
    flex-direction: column;
    gap: .6rem;
    margin-bottom: 1rem;
}

.projecten-sectionhead__title {
    margin: 0;
    color: #111214;
    font-size: clamp(1.8rem, 2.8vw, 2.5rem);
    line-height: .98;
    letter-spacing: -.06em;
    font-weight: 900;
}

.projecten-grid-section {
    margin-top: 1rem;
}

.projecten-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.15rem;
}

.project-card {
    position: relative;
    display: flex;
    flex-direction: column;
    isolation: isolate;
    overflow: clip;
    border-radius: 24px;
    background: linear-gradient(180deg, #232930, #1d2228);
    box-shadow: 0 16px 38px rgba(0,0,0,.22), 0 6px 14px rgba(0,0,0,.12);
    transform: translateZ(0);
    transition: transform .45s cubic-bezier(.2,.8,.2,1), box-shadow .45s ease, filter .45s ease;
    color: #f7f9fd;
    text-decoration: none;
    max-width: none;
    margin: 0;
    min-width: 0;
}

    .project-card::before {
        content: "";
        position: absolute;
        inset: -22%;
        background: radial-gradient(60% 42% at 50% -8%, rgba(90,170,255,.14), transparent 70%);
        filter: blur(22px);
        opacity: 0;
        transition: opacity .45s ease;
        z-index: -1;
    }

    .project-card::after {
        content: "";
        position: absolute;
        inset: 0;
        border-radius: inherit;
        background: linear-gradient(145deg, rgba(255,255,255,.06), rgba(255,255,255,0));
        pointer-events: none;
    }

    .project-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 26px 58px rgba(0,0,0,.26), 0 10px 22px rgba(0,0,0,.16);
        filter: saturate(1.03);
    }

        .project-card:hover::before {
            opacity: 1;
        }

    .project-card:focus-visible,
    .project-card:focus-within {
        outline: 0;
        box-shadow: 0 0 0 3px rgba(255,255,255,.18), 0 0 0 8px rgba(90,170,255,.16), 0 26px 58px rgba(0,0,0,.26), 0 10px 22px rgba(0,0,0,.16);
    }

    .project-card > img,
    .project-card .media > img {
        width: 100%;
        height: auto;
        display: block;
        aspect-ratio: 4 / 3;
        object-fit: cover;
    }

.project-card__title {
    position: absolute;
    inset: auto 0 0 0;
    display: flex;
    align-items: flex-end;
    gap: .5rem;
    padding: 14px 16px;
    min-height: 72px;
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.40) 22%, rgba(0,0,0,.68) 100%);
    backdrop-filter: blur(4px) saturate(1.05);
    -webkit-backdrop-filter: blur(4px) saturate(1.05);
    border-bottom-left-radius: inherit;
    border-bottom-right-radius: inherit;
    color: #fff;
    z-index: 2;
}

    .project-card__title h3,
    .project-card__title h5 {
        margin: 0;
        font-weight: 800;
        letter-spacing: -.015em;
        line-height: 1.12;
        font-size: clamp(1rem, 1.15vw, 1.14rem);
        color: #fff;
        text-shadow: 0 1px 2px rgba(0,0,0,.42);
    }

.project-card .media,
.project-card {
    position: relative;
}

    .project-card .media::after {
        content: "";
        position: absolute;
        inset: 0;
        pointer-events: none;
        border-radius: inherit;
        background: radial-gradient(120% 80% at 50% 20%, rgba(0,0,0,0) 60%, rgba(0,0,0,.08) 100%);
        mix-blend-mode: multiply;
        opacity: .9;
    }

    .project-card .admin-actions {
        position: absolute;
        top: 12px;
        right: 12px;
        z-index: 5;
        display: flex;
        gap: 8px;
    }

        .project-card .admin-actions .btn {
            min-height: 34px;
            border-radius: 999px;
            box-shadow: 0 10px 20px rgba(0,0,0,.16);
        }

.projecten-more {
    display: flex;
    justify-content: center;
    margin-top: 1.6rem;
}

.home-projects-rail {
    background: linear-gradient(180deg, #dcd8d3 0%, #c8c3be 100%);
}

    .home-projects-rail .project-rail {
        --rail-h: clamp(190px, 24vw, 260px);
        height: var(--rail-h);
        overflow: visible;
        padding-block: 6px 14px;
    }

    .home-projects-rail .project-rail__track {
        display: flex;
        align-items: center;
        gap: clamp(10px, 2vw, 16px);
        height: 100%;
        overflow-x: auto;
        overflow-y: visible;
        scroll-behavior: auto;
        -webkit-overflow-scrolling: touch;
        position: relative;
        mask-image: linear-gradient(to right, transparent 0, black 4%, black 96%, transparent 100%);
        -webkit-mask-image: linear-gradient(to right, transparent 0, black 4%, black 96%, transparent 100%);
    }

        .home-projects-rail .project-rail__track::-webkit-scrollbar {
            display: none;
        }

    .home-projects-rail .project-card {
        --card-h: calc(var(--rail-h) - 40px);
        height: var(--card-h);
        width: calc(var(--card-h) * 4 / 3);
        flex: 0 0 auto;
        margin: 0;
    }

        .home-projects-rail .project-card > img {
            height: 100%;
            width: 100%;
            object-fit: cover;
        }

    .home-projects-rail .project-card__title {
        padding: 10px 14px;
        min-height: 54px;
    }

    .home-projects-rail .all-projects-link {
        display: inline-flex;
        align-items: center;
        gap: .4rem;
        font-weight: 600;
        font-size: 1rem;
        color: #111;
        text-decoration: none;
        text-shadow: 0 2px 4px rgba(0,0,0,.15);
        transition: transform .25s ease, color .25s ease;
    }

        .home-projects-rail .all-projects-link::after {
            content: "→";
            font-size: 1.1em;
            transition: transform .25s ease;
        }

        .home-projects-rail .all-projects-link:hover {
            color: #000;
            transform: translateY(-1px);
        }

            .home-projects-rail .all-projects-link:hover::after {
                transform: translateX(4px);
            }

.rail-heading {
    position: relative;
    font-weight: 800;
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    letter-spacing: -0.3px;
    color: #1b1f24;
    text-align: center;
    margin-bottom: clamp(1.4rem, 3vw, 1.8rem);
    line-height: 1.2;
    background: linear-gradient(180deg, #1c1f23 0%, #50565f 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,.25));
}

    .rail-heading::after {
        content: "";
        position: absolute;
        bottom: -10px;
        left: 50%;
        transform: translateX(-50%);
        width: 90px;
        height: 3px;
        border-radius: 3px;
        background: linear-gradient(90deg, transparent, #f29a5c 25%, #f29a5c 75%, transparent);
        box-shadow: 0 0 10px rgba(242,154,92,.6);
    }

.project-modal .modal-dialog {
    width: min(980px, calc(100vw - 32px));
    max-width: min(980px, calc(100vw - 32px));
    height: calc(80vh - var(--navbar-height, 96px) - 28px);
    margin-top: calc(var(--navbar-height, 96px) + 8px) !important;
    margin-bottom: 8px !important;
}

.project-modal .modal-content {
    background: #f6f2ec !important;
    border: 1px solid rgba(17,18,20,.08) !important;
    border-radius: 32px !important;
    box-shadow: 0 36px 90px rgba(15,15,16,.20), 0 12px 28px rgba(15,15,16,.09) !important;
    overflow: hidden !important;
}

.project-modal-content {
    position: relative;
    border-radius: 32px;
    overflow: hidden;
    background: linear-gradient(180deg, #faf7f3 0%, #f2ede7 100%) !important;
    border: 0 !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

.project-modal-close {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 30;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 999px;
    background: rgba(255,255,255,.90);
    color: rgba(17,18,20,.72);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    line-height: 1;
    box-shadow: 0 12px 24px rgba(15,15,16,.10), inset 0 1px 0 rgba(255,255,255,.96);
    cursor: pointer;
    transition: transform .22s ease, box-shadow .22s ease, background .22s ease;
}

    .project-modal-close:hover {
        transform: translateY(-1px);
        background: rgba(255,255,255,.98);
        box-shadow: 0 16px 30px rgba(15,15,16,.14), inset 0 1px 0 rgba(255,255,255,1);
    }

.project-modal-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(420px, .95fr);
    gap: 0;
    align-items: stretch;
    padding: 24px;
}

.project-modal-media {
    min-width: 0;
    padding-right: 26px;
    position: relative;
    display: block;
}

.project-modal-carousel {
    width: 100%;
    height: 420px;
    min-height: 420px;
    max-height: 420px;
    border-radius: 26px;
    overflow: hidden;
    background: linear-gradient(180deg, #1a1d22 0%, #101216 100%);
    box-shadow: 0 20px 46px rgba(15,15,16,.16), inset 0 1px 0 rgba(255,255,255,.05);
}

    .project-modal-carousel img,
    .project-modal-carousel .project-modal-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

.project-modal-panel {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-height: 0;
    padding: 24px 0 20px 26px;
    background: #f6f2ec;
    border-left: 1px solid rgba(17,18,20,.08);
    box-shadow: none;
    position: relative;
    z-index: 2;
}

.project-modal-head {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.project-modal-kicker {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 11px;
    border-radius: 999px;
    background: rgba(193,17,26,.08);
    border: 1px solid rgba(193,17,26,.10);
    color: rgba(17,18,20,.50);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
    width: fit-content;
}

.project-modal-title {
    margin: 0;
    color: #111214;
    font-size: clamp(1.5rem, 2vw, 2.3rem);
    line-height: .98;
    letter-spacing: -.05em;
    font-weight: 800;
}

.project-modal-intro {
    color: rgba(17,18,20,.74);
    font-size: .95rem;
    line-height: 1.55;
    letter-spacing: -.012em;
    white-space: normal !important;
}

.project-modal-bodycopy {
    flex: 0 0 auto;
    overflow: visible;
    max-height: none;
    padding-right: 0;
    color: rgba(17,18,20,.72);
    font-size: 1rem;
    line-height: 1.78;
    letter-spacing: -.01em;
    white-space: normal !important;
}

    .project-modal-intro p,
    .project-modal-bodycopy p {
        margin: 0 0 1.2rem 0;
    }

        .project-modal-intro p:last-child,
        .project-modal-bodycopy p:last-child {
            margin-bottom: 0;
        }
.project-modal-bodywrap {
    flex: 1 1 auto;
    min-height: 0;
}

    .project-modal-bodycopy::-webkit-scrollbar {
        width: 8px;
    }

    .project-modal-bodycopy::-webkit-scrollbar-thumb {
        background: rgba(17,18,20,.16);
        border-radius: 999px;
    }

    .project-modal-bodycopy::-webkit-scrollbar-track {
        background: rgba(0,0,0,.05);
        border-radius: 999px;
    }

.project-modal-foot {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid rgba(17,18,20,.08);
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
}

.project-modal-meta-block {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.project-modal-meta-label {
    color: rgba(17,18,20,.50);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.project-modal-meta {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 11px;
    border-radius: 999px;
    background: rgba(193,17,26,.08);
    border: 1px solid rgba(193,17,26,.10);
    color: rgba(17,18,20,.50);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
    width: fit-content;
}

.project-modal-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.project-modal-nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 1rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: .86rem;
    border: 0;
    cursor: pointer;
    transition: transform .22s ease, box-shadow .22s ease, filter .22s ease;
}

.project-modal-nav-prev {
    background: rgba(255,255,255,.78);
    color: #111214;
    box-shadow: 0 10px 22px rgba(15,15,16,.08), inset 0 1px 0 rgba(255,255,255,.90);
}

.project-modal-nav-next {
    background: linear-gradient(180deg, #d61b27 0%, #b4111b 100%);
    color: #fff;
    box-shadow: 0 12px 24px rgba(193,17,26,.18);
}

.project-modal-nav:hover {
    transform: translateY(-1px);
}

a.cta-premium {
    --cta-bg: #1b1f24;
    --cta-bg-2: #161a1e;
    --cta-edge: rgba(255,255,255,.08);
    --cta-text: #f4f6fa;
    --cta-muted: #c9ced6;
    --cta-accent: #f29a5c;
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    padding: .85rem 1.15rem;
    border-radius: 999px;
    text-decoration: none;
    color: var(--cta-text);
    font-weight: 600;
    line-height: 1;
    background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02)) padding-box, linear-gradient(180deg, var(--cta-bg), var(--cta-bg-2)) border-box;
    border: 1px solid transparent;
    box-shadow: 0 10px 24px rgba(0,0,0,.18), inset 0 1px 0 var(--cta-edge);
    backdrop-filter: blur(5px) saturate(1.03);
    -webkit-backdrop-filter: blur(5px) saturate(1.03);
    transition: transform .22s ease, box-shadow .22s ease, filter .22s ease, color .22s ease;
}

    a.cta-premium:hover {
        transform: translateY(-2px);
        filter: saturate(1.03);
        box-shadow: 0 16px 36px rgba(0,0,0,.26), 0 0 0 4px rgba(242,154,92,.14);
    }

    a.cta-premium .ms-1 {
        display: inline-flex;
        align-items: center;
        gap: .35rem;
        color: var(--cta-muted);
        transition: transform .22s ease, color .22s ease, opacity .22s ease;
        opacity: .95;
    }

    a.cta-premium:hover .ms-1 {
        transform: translateX(2px);
        color: var(--cta-text);
        opacity: 1;
    }
body.project-modal-open {
    overflow: hidden;
}

.project-modal .modal-dialog {
    max-height: calc(90vh - 40px);
}

.project-modal-content {
    max-height: calc(100vh - 40px);
}

.project-modal-shell {
    max-height: calc(90vh - 68px);
    overflow: auto;
}
@media (max-width: 1199px) {
    .projecten-hero__inner {
        grid-template-columns: 1fr;
    }

    .projecten-hero__panel {
        min-height: 210px;
    }

    .projecten-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .projecten-stats {
        grid-template-columns: 1fr;
        max-width: 460px;
    }
}

@media (max-width: 991.98px) {
    .project-modal .modal-dialog {
        max-width: 760px;
        margin: 4vh auto;
        padding: 0 14px;
    }

    .project-modal-shell {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 18px;
    }

    .project-modal-carousel {
        height: 280px;
        min-height: 280px;
        max-height: 280px;
    }

    .project-modal-panel {
        min-height: 0;
        padding-top: 0;
    }

    .project-modal-bodycopy {
        max-height: 180px;
    }
}

@media (max-width: 768px) {
    .projecten-page {
        padding-top: 4.5rem;
        padding-bottom: 4rem;
    }

    .projecten-shell {
        width: min(100%, calc(100% - 14px));
    }

    .projecten-hero__inner {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1rem;
        border-radius: 28px;
    }

    .projecten-title {
        font-size: clamp(2.2rem, 10vw, 3.4rem);
    }

    .projecten-intro {
        font-size: 1rem;
        line-height: 1.65;
    }

    .projecten-hero__panel {
        min-height: 180px;
        border-radius: 22px;
    }

    .projecten-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .project-card {
        border-radius: 22px;
    }

    .project-card__title {
        min-height: 72px;
    }

    .home-projects-rail .project-rail {
        --rail-h: 210px;
    }

    .home-projects-rail .project-rail__track {
        mask-image: linear-gradient(to right, transparent 0, black 8%, black 92%, transparent 100%);
        -webkit-mask-image: linear-gradient(to right, transparent 0, black 8%, black 92%, transparent 100%);
    }

    .home-projects-rail .all-projects-link {
        font-size: .95rem;
        text-shadow: 0 1px 3px rgba(0,0,0,.25);
    }

    .rail-heading {
        font-size: 1.8rem;
        filter: drop-shadow(0 1px 4px rgba(0,0,0,.25));
    }

        .rail-heading::after {
            width: 70px;
            height: 2px;
        }

    .project-modal .modal-dialog {
        max-width: 100%;
        margin: 8vh auto;
        padding: 0 10px;
    }

    .project-modal-content {
        border-radius: 24px;
    }

    .project-modal-shell {
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 14px;
    }

    .project-modal-media {
        padding-right: 0;
    }

    .project-modal-carousel {
        height: 275px;
        min-height: 275px;
        max-height: 275px;
        border-radius: 18px;
    }

    .project-modal-panel {
        min-height: 0;
        padding: 8px 0 0 0;
        border-left: 0;
        border-top: 1px solid rgba(17,18,20,.08);
    }

    .project-modal-close {
        top: 14px;
        right: 14px;
        width: 40px;
        height: 40px;
        font-size: 24px;
    }

    .project-modal-title {
        font-size: clamp(1.28rem, 6vw, 1.8rem);
    }

    .project-modal-intro {
        font-size: .92rem;
    }

    .project-modal-bodycopy {
        font-size: .94rem;
        line-height: 1.66;
        max-height: none;
        overflow: visible;
        padding-right: 0;
    }

    .project-modal-foot {
        margin-top: 14px;
        padding-top: 14px;
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
    }

    .project-modal-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
        width: 100%;
    }

    .project-modal-nav,
    a.cta-premium {
        width: 100%;
        min-height: 52px;
        justify-content: center;
    }
}

@media (min-width: 577px) and (max-width: 991px) {
    .home-projects-rail .project-rail {
        --rail-h: 240px;
    }
}

@media (max-width: 576px) {
    .home-projects-rail .all-projects-link {
        font-size: .95rem;
        text-shadow: 0 1px 3px rgba(0,0,0,.25);
    }

    .rail-heading {
        font-size: 1.8rem;
        filter: drop-shadow(0 1px 4px rgba(0,0,0,.25));
    }

        .rail-heading::after {
            width: 70px;
            height: 2px;
        }
}

@media (prefers-reduced-motion: reduce) {
    .project-card,
    .project-card::before,
    .project-card::after,
    a.cta-premium,
    a.cta-premium .ms-1,
    .project-modal-nav,
    .project-modal-close {
        transition: none !important;
    }
}
.project-modal-media {
    position: relative;
}

.project-modal-carousel {
    position: relative;
    overflow: hidden;
}

.project-modal-photo-nav {
    position: absolute;
    top: 210px;
    z-index: 40;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: rgba(17,18,20,.42);
    color: #fff;
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 14px 28px rgba(15,15,16,.20), inset 0 1px 0 rgba(255,255,255,.14);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transform: translateY(-50%);
    transition: transform .22s ease, background .22s ease, box-shadow .22s ease, opacity .22s ease;
    opacity: .92;
}

    .project-modal-photo-nav:hover {
        transform: translateY(-50%) scale(1.05);
        background: rgba(17,18,20,.58);
        box-shadow: 0 18px 34px rgba(15,15,16,.24), inset 0 1px 0 rgba(255,255,255,.18);
        opacity: 1;
    }

    .project-modal-photo-nav:active {
        transform: translateY(-50%) scale(.98);
    }

.project-modal-photo-nav--prev {
    left: 18px;
}

.project-modal-photo-nav--next {
    right: 45px;
}

@media (max-width: 991.98px) {
    .project-modal-photo-nav {
        top: 140px;
    }
}

@media (max-width: 768px) {
    .project-modal-photo-nav {
        display: none;
    }
}
.project-modal .modal-dialog,
.project-modal .modal-content,
.project-modal-content,
.project-modal-shell {
    overscroll-behavior: contain;
}

.project-modal-shell {
    align-items: start !important;
}

.project-modal-panel {
    align-self: start !important;
    height: auto !important;
}