/* Enlarge only the final image within its original grid slot. */
@media(min-width:769px){
 .ten-page #work.ten-gallery .ten-scatter>figure.project-card:nth-child(8n+8):not(#ten){width:calc(230% + clamp(13.8px,2.3vw,32.2px))!important}
}
@media(min-width:769px) and (max-width:1024px){
 .ten-page #work.ten-gallery .ten-scatter>figure.project-card:nth-child(8n+8):not(#ten){width:calc(200% + clamp(12px,2vw,28px))!important}
}

/* Mobile service portfolios: eight equal frames, two columns, four aligned rows. */
@media(max-width:768px){
 .ten-page #work.ten-gallery figure.ten-scatter{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:18px 14px;align-items:start}
 .ten-page #work.ten-gallery .ten-scatter>figure.project-card:nth-child(n):not(#ten){grid-column:auto!important;grid-row:auto!important;width:100%!important;max-width:100%;margin:0!important;aspect-ratio:4/5;animation:none!important;transform:none!important;justify-self:stretch}
 .ten-page #work.ten-gallery .ten-scatter>figure.project-card:nth-child(n):not(#ten) img{display:block;width:100%!important;height:100%!important;aspect-ratio:auto!important;object-fit:contain!important;object-position:center;transform:none!important}
 .ten-page #work.ten-gallery .ten-scatter>figure.project-card:nth-child(n):not(#ten) .project-detail{left:0;right:auto;top:calc(100% - 8px);width:min(260px,calc(100vw - 48px));padding:15px;transform:translateY(0)}
 .ten-page #work.ten-gallery .ten-scatter>figure.project-card:nth-child(2n):not(#ten) .project-detail{left:auto;right:0}
 .ten-page #work.ten-gallery .project-detail h3{font-size:15px}
 .ten-page #work.ten-gallery .project-detail p{font-size:12px;line-height:1.45}
}
