/* Shared Prosjekter styles for WordPress-managed references.
 * Preserve native project links, filtering and pagination. */
body.page-id-127 .dk-managed-references .dk-project-filters{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
body.page-id-127 .dk-managed-references .dk-ref-filter{display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:9px 18px;border:1px solid #3edfd0;border-radius:999px;background:transparent;color:#fff!important;font:400 13px/1.3 'Poppins',Arial,sans-serif;text-decoration:none;white-space:nowrap}
body.page-id-127 .dk-managed-references .dk-ref-filter:is(.is-active,:hover,:focus-visible),body.page-id-127 .dk-managed-references .dk-ref-filter[aria-current=page]{color:#002521!important;background:#3edfd0;border-color:#3edfd0}
body.page-id-127 .dk-managed-references .dk-reference-card{border:1px solid rgba(62,223,208,.7);border-radius:20px;overflow:hidden;background:rgba(4,55,51,.5)}
body.page-id-127 .dk-managed-references .dk-reference-thumb img{display:block;width:100%;height:100%;object-fit:cover;object-position:top center}
body.page-id-127 .dk-managed-references .dk-project-card-content{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;text-align:center;opacity:1;visibility:visible}
body.page-id-127 .dk-managed-references .dk-project-name a{font-family:'Poppins',Arial,sans-serif!important;font-weight:600!important;color:#fff!important}
body.page-id-127 .dk-managed-references .dk-project-kind{text-align:center;font-family:'Poppins',Arial,sans-serif;color:#e6f0ed}
@media(max-width:767px){
 body.page-id-78 .dk-home-managed-references .dk-references-featured .dk-project-filters,
 body.page-id-127 .dk-managed-references .dk-project-filters{display:flex!important;flex-flow:row nowrap!important;justify-content:flex-start!important;align-items:center!important;gap:8px!important;width:100%!important;min-height:46px;margin:0 0 20px!important;padding:0 19px 7px!important;overflow-x:auto;overflow-y:hidden;scrollbar-width:none;-webkit-overflow-scrolling:touch}
 body:is(.page-id-78,.page-id-127) .dk-managed-references .dk-project-filters::-webkit-scrollbar{display:none}
 body:is(.page-id-78,.page-id-127) .dk-managed-references .dk-ref-filter{flex:0 0 auto;min-height:35px;padding:7px 15px;font-size:12.5px!important}
 /* Keep an empty category compact instead of leaving two blank carousel
    rows; retains the WordPress and JS empty-state messages. */
 body:is(.page-id-78,.page-id-127) .dk-managed-references .dk-project-list:not(:has(.dk-reference-card:not([hidden]))){
   display:block!important;grid-template-rows:none!important;min-height:0!important;
   padding-top:3px!important;padding-bottom:10px!important;
 }
 body:is(.page-id-78,.page-id-127) .dk-managed-references .dk-ref-empty,
 body:is(.page-id-78,.page-id-127) .dk-managed-references .dk-ref-client-empty:not([hidden]){
   display:block!important;min-height:0;margin:12px auto 0;padding:0 18px;
   font:400 12.5px/1.8 'Poppins',Arial,sans-serif;color:#fff;text-align:center;
 }
}
/* Matching architectural image/teal grade behind both Referanser
   shortcodes. No homepage background or inner-page hero is changed. */
body.page-id-127 .dk-managed-references{isolation:isolate}
body.page-id-127 .dk-managed-references::before{
 content:"";position:absolute;inset:0;z-index:0;pointer-events:none;
 background:url("https://www.digitalkreativ.no/wp-content/uploads/2026/10/joel-filipe-jU9VAZDGMzs-unsplash.jpg") center/cover no-repeat;
 opacity:.43;mix-blend-mode:multiply;transform:none
}
body.page-id-127 .dk-managed-references::after{
 content:"";position:absolute;inset:0;z-index:0;pointer-events:none;
 background:linear-gradient(180deg,rgba(0,35,35,.2),rgba(0,22,24,.47))
}
body.page-id-127 .dk-managed-references .dk-projects-inner{z-index:1}
/* Referanser uses the same desktop card design as Forside, but remains
   content-height-driven (the homepage's fixed PSD height isn't copied). */
@media(min-width:768px){
 body.page-id-127 .dk-managed-references{position:relative;width:100%;max-width:none;min-height:0;height:auto;overflow:hidden;background:#17524c;color:#fff}
 body.page-id-127 .dk-managed-references .dk-projects-inner{position:relative;display:flex!important;flex-direction:column!important;align-items:stretch!important;justify-content:start;gap:30px!important;width:min(100%,1280px);max-width:1280px;min-height:0;height:auto;margin:0 auto;padding:60px 32px 64px!important}
 body.page-id-127 .dk-managed-references .dk-project-intro{order:1!important}
 body.page-id-127 .dk-managed-references .dk-projects-gallery{order:2!important}
 body.page-id-127 .dk-managed-references .dk-project-intro{width:100%;max-width:none}
 body.page-id-127 .dk-managed-references .dk-projects-gallery{width:100%;max-width:100%;min-width:0}
 body.page-id-127 .dk-managed-references .dk-project-filters{margin:0 0 25px}
 body.page-id-127 .dk-managed-references .dk-project-list{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:23px 20px!important;width:100%;max-width:100%;min-width:0}
 body.page-id-127 .dk-managed-references .dk-reference-card{display:flex;flex-direction:column;width:100%;min-height:270px;height:auto;margin:0}
 body.page-id-127 .dk-managed-references .dk-reference-thumb{height:175px;min-height:175px;flex:0 0 175px}
 body.page-id-127 .dk-managed-references .dk-project-card-content{min-height:95px;padding:13px 12px}
 body.page-id-127 .dk-managed-references .dk-project-name a{font-size:16px!important}
 body.page-id-127 .dk-managed-references .dk-project-kind{font-size:14px!important;line-height:1.4!important}
 body.page-id-127 .dk-managed-references .dk-ref-filter:nth-child(n+5){display:inline-flex!important}
}
@media(min-width:768px) and (max-width:1023px){
 body.page-id-127 .dk-managed-references .dk-projects-inner{padding:48px 24px 55px!important}
 body.page-id-127 .dk-managed-references .dk-project-list{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}

/* Mobile Referanser: match approved homepage's centered two-row project
   carousel. Unlike the homepage, show the native category-filter row. */
@media(max-width:767px){
 body.page-id-127 .dk-managed-references{position:relative;isolation:isolate;width:100%;max-width:none;min-height:0;height:auto;margin:0;padding:0;overflow:hidden;background:#17564f;color:#fff}
 body.page-id-127 .dk-managed-references .dk-projects-inner{position:relative;z-index:1;display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:0!important;width:100%;max-width:390px;min-height:0;height:auto;margin:0 auto;padding:48px 0 56px!important}
 body.page-id-127 .dk-managed-references .dk-project-intro{display:contents!important}
 body.page-id-127 .dk-managed-references .dk-project-kicker{order:1;display:flex;align-items:center;justify-content:center;width:max-content;max-width:calc(100% - 32px);min-height:40px;margin:0 auto 15px;padding:8px 18px;border:1px solid #3edfd0;border-radius:99px;background:transparent;color:#fff;font:400 12.5px/1.3 'Poppins',Arial,sans-serif;white-space:nowrap}
 body.page-id-127 .dk-managed-references .dk-project-title-a,
 body.page-id-127 .dk-managed-references .dk-project-title-b{display:block;order:2;width:100%;max-width:100%;margin:0 auto!important;padding:0 14px;color:#fff;font:700 25px/1.25 'Playfair Display',Georgia,serif;text-align:center}
 body.page-id-127 .dk-managed-references .dk-project-title-b{order:3;color:#3edfd0;font-size:33.333px;line-height:1.17}
 body.page-id-127 .dk-managed-references .dk-project-description{order:4;display:block;width:calc(100% - 36px);max-width:354px;margin:12px auto 25px!important;padding:0;color:#fff;font:400 12.5px/2 'Poppins',Arial,sans-serif;text-align:center}
 body.page-id-127 .dk-managed-references .dk-projects-gallery{order:5;width:100%;min-width:0;max-width:none;margin:0;padding:0}
 body.page-id-127 .dk-managed-references .dk-project-list{--dk-ref-card-width:min(69.23vw,270px);display:grid!important;grid-template-columns:none!important;grid-template-rows:repeat(2,270px)!important;grid-auto-flow:column!important;grid-auto-columns:var(--dk-ref-card-width)!important;gap:18px 31px!important;justify-content:start;align-items:start;width:100vw;max-width:none;margin:0;padding:3px calc((100vw - var(--dk-ref-card-width))/2) 8px;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;scroll-padding-inline:calc((100vw - var(--dk-ref-card-width))/2);scrollbar-width:none;-webkit-overflow-scrolling:touch}
 body.page-id-127 .dk-managed-references .dk-project-list::-webkit-scrollbar{display:none}
 body.page-id-127 .dk-managed-references .dk-reference-card{box-sizing:border-box;display:flex;flex-direction:column;width:100%;min-width:0;min-height:270px;height:270px;max-height:270px;padding:0;margin:0;gap:0;scroll-snap-align:center}
 body.page-id-127 .dk-managed-references .dk-reference-thumb{display:block;flex:0 0 174px;height:174px;min-height:174px;width:100%;border-radius:19px 19px 11px 11px;overflow:hidden}
 body.page-id-127 .dk-managed-references .dk-project-card-content{box-sizing:border-box;flex:1 1 auto;width:100%;min-height:95px;height:95px;max-height:95px;margin:0;padding:10px 12px;gap:8px}
 body.page-id-127 .dk-managed-references .dk-project-name a{font-size:16px!important;line-height:1.3!important}
 body.page-id-127 .dk-managed-references .dk-project-kind{font-size:14px!important;line-height:1.4!important}
 body.page-id-127 .dk-managed-references .dk-project-cta{order:6;display:flex;align-items:center;justify-content:space-between;width:259px;min-height:42px;margin:29px auto 0;padding:0 19px;border-radius:99px;background:#fff;color:#222!important;font:400 12.5px/1.3 'Poppins',Arial,sans-serif;text-decoration:none}
 body.page-id-127 .dk-managed-references .dk-project-cta:hover{background:#3edfd0}
 body.page-id-127 .dk-managed-references .dk-ref-pagination{justify-content:center;padding:0 18px}
}
@media(max-width:359px){
 body.page-id-127 .dk-managed-references .dk-project-list{grid-template-rows:repeat(2,256px)!important}
 body.page-id-127 .dk-managed-references .dk-reference-card{height:256px;min-height:256px;max-height:256px}
 body.page-id-127 .dk-managed-references .dk-reference-thumb{flex-basis:162px;height:162px;min-height:162px}
}

