/* Our Solution page (our-solution.php): Market / Corporate solution cards.
   Card look comes from the homepage "SmartBooks for Every Industry" cards (.sb-ind-* in custom.css);
   this file only sets the page layout: 3 / 2 / 1 columns, a 4:3 image and per-card focal points. */
.sb-solx{
	--sb-lime:#CEF446;
	padding-top:clamp(56px, 5.6vw, 96px);
	padding-bottom:clamp(56px, 5.6vw, 96px);
}
.sb-solx-inner{ max-width:1140px; margin:0 auto; }
.sb-solx .page-header-box{ margin:0 0 clamp(24px, 2.4vw, 36px); padding:0; }
.sb-solx .sb-solx-grid + .page-header-box{ margin-top:clamp(52px, 5vw, 84px); }

.sb-solx .sb-solx-grid{
	/* flex so a short last row (8 cards over 3 columns) sits centred */
	--solx-gap:24px;
	--solx-cols:3;
	display:flex;
	flex-wrap:wrap;
	justify-content:center;
	gap:var(--solx-gap);
}
.sb-solx .sb-solx-grid > li{ flex:0 0 calc((100% - (var(--solx-cols) - 1) * var(--solx-gap)) / var(--solx-cols)); display:flex; }
.sb-solx .sb-solx-grid > li > .sb-ind-card{ flex:1 1 auto; }
/* same body height whether the subtitle runs to one line, two lines or is absent */
.sb-solx .sb-ind-body{ min-height:92px; }
.sb-solx .sb-ind-media{ aspect-ratio:4 / 3; }
.sb-solx .sb-ind-media img{ object-position:var(--sb-solx-pos, 50% 50%); }
/* longer titles (e.g. "Building Maintenance System") wrap instead of running out of the card */
.sb-solx .sb-ind-name{ white-space:normal; }

@media (max-width:991px){
	.sb-solx .sb-solx-grid{ --solx-cols:2; --solx-gap:20px; }
}
@media (max-width:767px){
	.sb-solx .sb-solx-grid{ --solx-gap:16px; }
	/* keep the arrow and the homepage's larger tablet text sizes at the 2-column width */
	.sb-solx .sb-ind-arrow{ display:inline-flex; opacity:1; transform:none; }
}
@media (max-width:575px){
	.sb-solx .sb-solx-grid{ --solx-cols:1; --solx-gap:18px; }
	.sb-solx .sb-ind-body{ min-height:0; }
	.sb-solx .sb-ind-body{ padding:14px 16px 16px; gap:14px; }
	.sb-solx .sb-ind-icon{ flex-basis:40px; width:40px; height:40px; font-size:16px; border-radius:10px; }
	.sb-solx .sb-ind-name{ font-size:17px; }
	.sb-solx .sb-ind-sub{ font-size:13px; }
}

/* t79: hover seam fix. On hover the photo scales (transform), which moves it onto its own GPU layer.
   That layer's clip edge snaps to whole device pixels while the dark ::after fade is painted at the exact
   fractional edge, so on scaled displays (125%/150%, many laptops) a 1px strip of un-faded photo showed
   along the bottom of the image, just above the title. Keep the fade composited above the photo and let it
   run 2px past the frame's (overflow-clipped) bottom edge so it always covers that last pixel row. */
.sb-solx .sb-ind-media::after{ z-index:1; bottom:-2px; will-change:transform; }

/* t82: hover seam fix, part 2. With GPU rasterisation (normal Chrome on Windows) the zoomed photo's
   bottom pixel row could still show as a bright 1px line at the photo/text boundary, because the
   photo layer and the fade are clipped/snapped separately. A 4px strip in the text area's own colour
   now sits on top of that boundary (2px over the photo's opaque fade, 2px over the card body), so no
   photo pixel can show there whatever the scaling. .sb-ind-body is position:relative, z-index:1 and
   overlaps the photo by 14px (margin-top:-14px in custom.css), so top:12px centres the strip on it. */
.sb-solx .sb-ind-body::before{ content:""; position:absolute; left:0; right:0; top:12px; height:4px; background:#0B150E; pointer-events:none; }
