/* Bidani Projects | Realisaties collection, project hero, supplementary photos and lightbox. */
.realisaties-heading {display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:clamp(44px,6vw,112px);align-items:center;margin-bottom:58px;}
.realisaties-heading .section-title {max-width:650px;text-wrap:balance;}
.realisaties-heading .section-copy {font-size:14px;line-height:1.8;max-width:680px;justify-self:end;}
.realisations-intro {background:#fff;}
.case-tabs {display:flex;flex-wrap:wrap;gap:10px;margin-bottom:36px;}
.case-tab {font-weight:700;font-size:14px;line-height:1.2;border:1px solid rgba(0,0,0,.24);background:#fff;color:#111;padding:15px 22px;border-radius:0;transition:background .2s,color .2s,border-color .2s;}
.case-tab:hover,.case-tab:focus-visible {border-color:#111;}
.case-tab.is-active {background:var(--gold);border-color:var(--gold);color:#111;}
.case-tab:focus-visible,.case-card:focus-visible,.project-card:focus-visible {outline:2px solid var(--gold);outline-offset:4px;}
.case-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:26px;align-items:start;min-height:350px;}
.case-card {display:flex;flex-direction:column;position:relative;min-width:0;color:#111;background:#f6f6f4;overflow:hidden;padding-bottom:24px;}
.case-card[hidden],.case-empty[hidden] {display:none!important;}
.case-card__media {display:block;overflow:hidden;aspect-ratio:1.3;background:#ddd;}
.case-card__media img {height:100%;width:100%;object-fit:cover;transition:transform .45s var(--ease);}
.case-card:hover img {transform:scale(1.035);}
.case-card__title {font-family:var(--serif);font-weight:700;font-size:clamp(18px,1.6vw,23px);line-height:1.22;margin:23px 24px 10px;max-width:calc(100% - 78px);}
.case-card__desc {color:#5a5a5a;font-size:13px;line-height:1.65;margin:0 24px;max-width:calc(100% - 70px);}
.case-card__arrow {position:absolute;bottom:25px;right:20px;display:grid;place-items:center;width:34px;height:34px;color:#111;transition:transform .25s var(--ease);}
.case-card__arrow svg {stroke:currentColor;stroke-width:1.65;fill:none;width:21px;height:21px;}
.case-card:hover .case-card__arrow {transform:translate(3px,-3px);}
.case-empty {font-size:15px;line-height:1.7;padding:35px 0 65px;max-width:560px;color:#555;}
.case-grid[aria-label="Projecten: zonnepanelen"] {min-height:0;}

/* Asymmetrical 12-photo collage: one wide photo, then unequal two-column compositions. */
.realisations-gallery {background:#060606;color:#fff;overflow:visible;}
.realisations-gallery .section-copy {color:rgba(255,255,255,.74);}
.realisaties-collage {display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:clamp(20px,3vw,44px);}
.realisaties-shot {min-width:0;overflow:hidden;position:relative;background:#191919;margin:0;}
.realisaties-shot img {display:block;width:100%;height:100%;object-fit:cover;transition:transform .5s var(--ease);}
.realisaties-shot:hover img {transform:scale(1.025);}
.realisaties-shot:nth-child(3n+1) {grid-column:span 12;height:clamp(320px,38vw,565px);}
.realisaties-shot:nth-child(6n+2),.realisaties-shot:nth-child(6n+6) {grid-column:span 7;height:clamp(280px,28vw,420px);}
.realisaties-shot:nth-child(6n+3),.realisaties-shot:nth-child(6n+5) {grid-column:span 5;height:clamp(280px,28vw,420px);}

/* Project pages — one responsive two-column hero, photo carousel, and verified copy. */
.project-detail .detail-breadcrumb {display:flex;align-items:center;flex-wrap:wrap;gap:10px;padding-top:27px;color:#747474;font-size:12px;}
.project-detail .detail-breadcrumb a {color:#292929;}
.project-detail .detail-breadcrumb a:hover {text-decoration:underline;text-underline-offset:4px;}
.project-detail .detail-hero {background:#fff;padding-block:clamp(60px,6.8vw,110px);}
.project-detail .detail-hero__grid {display:grid;grid-template-columns:minmax(0,.95fr) minmax(0,1.05fr);gap:clamp(40px,5.4vw,92px);align-items:center;}
.project-detail .detail-hero__copy {min-width:0;}
.project-detail .detail-hero .section-title {font-size:clamp(38px,3.2vw,52px);line-height:1.14;letter-spacing:-.033em;max-width:18ch;text-wrap:balance;}
.project-detail .detail-hero__description {font-size:14px;line-height:1.85;max-width:62ch;color:#525252;margin:25px 0 0;}
.project-detail .detail-hero__facts {font-size:12px;color:#6a6a6a;margin-top:17px;line-height:1.7;}
.project-detail .detail-hero__copy > .btn {margin-top:31px;}
.project-detail .detail-source {display:table;width:max-content;max-width:100%;margin-top:19px;font-size:12px;font-weight:600;padding-bottom:5px;border-bottom:1px solid currentColor;color:#383838;}
.project-detail .detail-source:hover {color:#8e7600;}
.project-detail .detail-carousel {min-width:0;max-width:100%;}
.project-detail .detail-carousel__figure {position:relative;overflow:hidden;aspect-ratio:1.32;margin:0;background:#e4e4e1;}
.project-detail .detail-carousel__open {display:block;cursor:zoom-in;padding:0;width:100%;height:100%;border:0;background:none;}
.project-detail .detail-carousel__open img {display:block;width:100%;height:100%;object-fit:cover;transition:opacity .18s ease,transform .45s var(--ease);}
.project-detail .detail-carousel__open:hover img {transform:scale(1.018);}
.project-detail .detail-carousel__categories {position:absolute;right:16px;top:16px;z-index:2;display:flex;flex-wrap:wrap;justify-content:flex-end;gap:7px;max-width:calc(100% - 32px);pointer-events:none;}
.project-detail .detail-carousel__category {background:var(--gold);color:#090909;font-size:12px;line-height:1.3;font-weight:700;padding:9px 12px;border:0;border-radius:0;white-space:nowrap;pointer-events:auto;}
.project-detail .detail-carousel__category--company {background:#101010;color:#fff;}
.project-detail .detail-carousel__controls {display:flex;justify-content:center;align-items:center;gap:24px;margin-top:14px;min-height:44px;color:#101010;}
.project-detail .detail-carousel__arrow {width:44px;height:44px;display:grid;place-items:center;padding:8px;border:0;border-radius:0;background:transparent;color:#101010;cursor:pointer;transition:transform .2s ease,color .2s ease;}
.project-detail .detail-carousel__arrow svg {display:block;width:27px;height:19px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;}
.project-detail .detail-carousel__arrow:hover {color:#ac8b00;}
.project-detail .detail-carousel__arrow:first-child:hover {transform:translateX(-3px);}
.project-detail .detail-carousel__arrow:last-child:hover {transform:translateX(3px);}
.project-detail .detail-carousel__counter {font-size:12px;font-weight:600;letter-spacing:.09em;min-width:48px;text-align:center;tab-size:2;}
.project-detail .detail-carousel__open:focus-visible,.project-detail .detail-carousel__arrow:focus-visible {outline:2px solid var(--gold);outline-offset:3px;}
.project-detail .detail-related {background:var(--paper);}

/* Accessible native dialog, no external gallery library. */
.detail-lightbox {width:min(98vw,1700px);height:min(95vh,1080px);max-width:none;max-height:none;border:0;padding:18px 23px 21px;background:#080808;color:#fff;overflow:hidden;}
.detail-lightbox::backdrop {background:rgba(0,0,0,.91);}
.detail-lightbox__toolbar {height:35px;display:flex;align-items:center;justify-content:space-between;gap:20px;font-size:12px;color:#bcbcbc;}
.detail-lightbox__close {width:39px;height:39px;color:#fff;font-size:22px;display:grid;place-items:center;}
.detail-lightbox__close:focus-visible,.detail-lightbox__nav:focus-visible {outline:2px solid var(--gold);}
.detail-lightbox__stage {height:calc(100% - 35px);min-width:0;display:grid;grid-template-columns:48px minmax(0,1fr) 48px;gap:10px;align-items:center;}
.detail-lightbox__stage img {display:block;width:100%;height:100%;object-fit:contain;min-width:0;}
.detail-lightbox__nav {color:#fff;font-size:50px;line-height:1;min-height:55px;}
.detail-lightbox__nav[hidden] {visibility:hidden;}

@media(max-width:1050px){
 .realisaties-heading {gap:36px;}
 .case-grid {gap:16px;}
 .case-card__title,.case-card__desc {margin-inline:18px;}
 .project-detail .detail-hero__grid {gap:36px;}
}
@media(max-width:820px){
 .realisaties-heading {grid-template-columns:1fr;gap:22px;align-items:start;}
 .realisaties-heading .section-copy {justify-self:start;max-width:640px;}
 .case-grid {grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;}
 .realisaties-shot:nth-child(n) {height:clamp(180px,31vw,300px);}
 .realisaties-shot:nth-child(3n+1) {height:clamp(250px,56vw,450px);}
 .project-detail .detail-hero {padding-block:60px;}
 .project-detail .detail-hero__grid {grid-template-columns:1fr;gap:35px;}
 .project-detail .detail-hero .section-title {max-width:19ch;}
}
@media(max-width:560px){
 .case-tabs {gap:7px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));margin-bottom:24px;}
 .case-tab {padding:13px 8px;font-size:12px;}
 .case-grid {grid-template-columns:1fr;gap:17px;min-height:0;}
 .case-card__media {aspect-ratio:1.55;}
 .case-card__title {max-width:calc(100% - 75px);font-size:21px;}
 .realisaties-heading {margin-bottom:30px;}
 .realisaties-shot:nth-child(n) {height:clamp(155px,49vw,225px);}
 .realisaties-shot:nth-child(3n+1) {height:clamp(220px,63vw,330px);}
 .project-detail .detail-hero {padding-block:40px 60px;}
 .project-detail .detail-hero .section-title {font-size:clamp(34px,9vw,42px);}
 .project-detail .detail-carousel__figure {aspect-ratio:1.25;}
 .project-detail .detail-carousel__categories {top:11px;right:11px;gap:5px;max-width:calc(100% - 22px);}
 .project-detail .detail-carousel__category {font-size:11px;padding:7px 9px;}
 .project-detail .detail-carousel__controls {margin-top:9px;}
 .detail-lightbox {width:100vw;height:100dvh;padding:10px;}
 .detail-lightbox__stage {grid-template-columns:30px minmax(0,1fr) 30px;gap:3px;}
 .detail-lightbox__nav {font-size:36px;}
}
@media(prefers-reduced-motion:reduce){
 .case-card__media img,.realisaties-shot img,.project-detail .detail-carousel__open img,.project-detail .detail-carousel__arrow {transition:none;}
}

/* Equalish three-line introductions at laptop/desktop widths. */
@media(min-width:960px) {
  .realisations-intro .realisaties-heading,
  .realisations-gallery .realisaties-heading {grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:clamp(40px,5.5vw,105px);align-items:center;}
  .realisations-intro .realisaties-heading .section-copy,
  .realisations-gallery .realisaties-heading .section-copy {justify-self:end;margin-left:auto;margin-right:0;max-width:505px;width:100%;text-wrap:balance;}
}
/* Existing mobile breakpoint continues to stack these headings. */
.project-detail .detail-source {display:inline-flex;gap:.45em;align-items:center;text-decoration:none;}
.project-detail .detail-source svg {height:.96em;width:.96em;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:square;stroke-linejoin:miter;transition:transform .25s ease;}
.project-detail .detail-source:hover svg {transform:translate(2px,-2px);}
/* Laptop: reserve enough width for both 3-line introductions without shrinking the type. */
@media(min-width:960px) and (max-width:1100px) {
 .realisations-intro .realisaties-heading,
 .realisations-gallery .realisaties-heading {grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:32px;}
}


/* V6: keep the secondary Over ons link visibly below the project CTA. */
.project-detail .detail-hero__copy > a.detail-source {
  display: flex;
  width: fit-content;
  max-width: 100%;
  align-items: center;
  gap: .45em;
  margin-top: 19px;
}
/* V6: case cards contain only the project title, with the existing corner arrow. */
.case-card__title { margin-bottom: 0; }
