/* ===========================================================================
 * Portfolio — extends assets/tjeneste.css (loaded only on single `portfolio`).
 * Reuses the .tjeneste-* layout system; this file only adds the few
 * portfolio-specific pieces (meta strip + highlights list).
 * ======================================================================== */

/* Highlights — bulleted list with a blue check */
.pf-highlights{margin:26px 0 0;padding:0;list-style:none;display:grid;gap:12px;}
.pf-highlights li{
	position:relative;padding-left:32px;
	color:#5a6470;line-height:1.6;
}
.pf-highlights li::before{
	content:"";position:absolute;left:0;top:3px;width:20px;height:20px;border-radius:50%;
	background:#0084D6 no-repeat center / 12px 12px;
	background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
}

/* ===========================================================================
 * Archive + taxonomy pages  (hero is now the shared .tjeneste-hero)
 * ======================================================================== */
/* Category filter pills */
.pf-filter{display:flex;flex-wrap:wrap;gap:10px;margin:0 0 32px;}
.pf-filter-link{
	display:inline-block;padding:9px 18px;border:1px solid #D3D3D3;border-radius:999px;
	font-size:15px;font-weight:600;color:#5a6470;text-decoration:none;
	transition:border-color .15s ease,color .15s ease,background-color .15s ease;
}
.pf-filter-link:hover{border-color:#0084D6;color:#0084D6;}
.pf-filter-link.is-active{background:#0084D6;border-color:#0084D6;color:#fff;}

/* Category badge on cards */
.pf-card .tjeneste-card-media{position:relative;}
.pf-badge{
	position:absolute;top:12px;left:12px;
	background:rgba(0,132,214,.95);color:#fff;
	font-size:12px;font-weight:700;letter-spacing:.03em;text-transform:uppercase;
	padding:5px 12px;border-radius:999px;
}

.pf-empty{color:#5a6470;font-size:17px;padding:24px 0;}

/* Pagination */
.pf-pagination{margin-top:42px;}
.pf-pagination .nav-links{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;}
.pf-pagination .page-numbers{
	display:inline-flex;align-items:center;justify-content:center;min-width:42px;height:42px;padding:0 12px;
	border:1px solid #D3D3D3;border-radius:8px;color:#181F25;text-decoration:none;font-weight:600;
}
.pf-pagination .page-numbers.current{background:#0084D6;border-color:#0084D6;color:#fff;}
.pf-pagination a.page-numbers:hover{border-color:#0084D6;color:#0084D6;}

/* ===========================================================================
 * Single — side image in the description block (portfolio only; services untouched)
 * UNIFORM FRAME: every side image gets the same 4:3 framed box on a light panel,
 * with the whole image shown (contain) — consistent height across all cases,
 * no bad cropping of tall/portrait product shots, no empty stretched box.
 * ======================================================================== */
.portfolio-single .tjeneste-block{ align-items:start; }
.portfolio-single .tjeneste-block.layout-image-left .tjeneste-block-media,
.portfolio-single .tjeneste-block.layout-image-right .tjeneste-block-media{
	align-self:start;height:auto;
	aspect-ratio:4 / 3;
	background:#F5F9FC;border:1px solid #E3E8ED;border-radius:14px;overflow:hidden;
}
.portfolio-single .tjeneste-block .tjeneste-block-media img{
	width:100%;height:100%;max-height:none;display:block;
	object-fit:contain;border:0;border-radius:0;
}

/* ===========================================================================
 * Highlights / features — dedicated section (own band, white card, 2-col grid)
 * ======================================================================== */
.pf-features-sec{ background:#F5F9FC; }
.pf-features{
	max-width:900px;margin:0 auto;
	background:#fff;border:1px solid #E3E8ED;border-radius:16px;
	padding:28px 32px;
}
.pf-highlights--grid{
	margin:0;grid-template-columns:1fr 1fr;gap:14px 40px;
}
.pf-highlights--grid li{ color:#181F25; }
@media (max-width:640px){ .pf-highlights--grid{ grid-template-columns:1fr; } }

/* ===========================================================================
 * Video — clean centered responsive 16:9, with clear separation from gallery
 * ======================================================================== */
.pf-video iframe,
.pf-video .pf-video-frame{
	width:100%;aspect-ratio:16 / 9;height:auto;display:block;border:0;
	border-radius:14px;overflow:hidden;
}
.portfolio-single .tjeneste-gallery.has-video-above{ margin-top:34px; }

/* ===========================================================================
 * Description heading (h2) — clean lead heading. Kills any stray highlight
 * background bleeding in from global heading styles; lighter weight/size so a
 * long sentence reads as an elegant lead, not an overwhelming title block.
 * ======================================================================== */
.portfolio-single .tjeneste-richtext h2{
	display:block;
	background:none !important;box-shadow:none !important;
	-webkit-box-decoration-break:slice;box-decoration-break:slice;
	color:#181F25;
	font-size:clamp(1.25rem,0.9rem + 1.4vw,1.6rem);
	font-weight:700;line-height:1.4;letter-spacing:0;
	margin:0 0 18px;padding:0;
}
.portfolio-single .tjeneste-richtext h2 a{
	background:none !important;
	color:#0084D6;font-weight:700;text-decoration:none;
}
.portfolio-single .tjeneste-richtext h2 a:hover{ text-decoration:underline; }

/* ===========================================================================
 * Gallery — uniform responsive grid that fills the full content width
 * (portfolio only; the services' masonry gallery is left as-is).
 * ======================================================================== */
.portfolio-single .tjeneste-gallery.gallery-masonry{
	columns:auto;display:grid;gap:16px;
	grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
}
.portfolio-single .tjeneste-gallery.gallery-masonry .tjeneste-gallery-item{
	margin:0;break-inside:auto;
}
.portfolio-single .tjeneste-gallery.gallery-masonry .tjeneste-gallery-item img{
	width:100%;height:100%;aspect-ratio:4 / 3;object-fit:cover;border-radius:12px;
}
