/* V7: thumbnail width:height = 4:3. Only photo thumbnails, never brand logos. */
.card>a>.photo,
.card .photo.portrait,
.related-entity-card .photo,
.card .photo.landscape,
.photo.portrait {aspect-ratio:4/3!important;height:auto!important;min-height:0!important;max-height:none!important}
.single-page .singlebanner .photo {aspect-ratio:4/3!important;max-height:none!important}
.card .photo img,.related-entity-card .photo img,.singlebanner .photo img{width:100%;height:100%;object-fit:cover}
/* Home: every category row is complete on desktop: 4 items/row, up to 2 rows. */
.home-project-grid,.home-type-grid,.home-org-grid,.home-knowledge-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:20px 17px}
.home-project-grid .cardbody h3{font-size:15px}
.home-project-grid .cardbody{padding-top:11px!important}
.home-project-grid .cardbody p{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
/* Avoid wide nested cards for company previews. Logo retains natural dimensions. */
.home-org-card{display:flex;align-items:center;min-width:0;gap:12px;padding:14px 1px 16px;border-bottom:1px solid #e7eaf0;text-decoration:none;background:#fff;transition:border-color .2s}
.home-org-card:hover{border-color:#b9924a}
.home-org-card .corp-logo{width:53px;height:53px;flex:none}
.home-org-copy{min-width:0;flex:1;display:block}
.home-org-copy b{display:block;color:#0b1e52;font-size:13px;line-height:1.4;font-weight:600;white-space:normal}
.home-org-copy small{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;color:#758096;font-size:11px;line-height:1.5;margin-top:4px}
.home-org-card>.ic{width:15px;height:15px;flex:none;color:#b9924a}
/* Responsive: 2 columns on tablet/mobile, still filled rows in the featured sections. */
@media(max-width:1080px){.home-project-grid,.home-type-grid,.home-org-grid,.home-knowledge-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}}
@media(max-width:620px){.home-project-grid,.home-type-grid,.home-org-grid,.home-knowledge-grid{gap:12px}.home-org-card{gap:7px;padding:10px 0 12px;align-items:flex-start}.home-org-card .corp-logo{width:39px;height:39px;padding:6px}.home-org-copy b{font-size:11px}.home-org-copy small{font-size:10px}.home-org-card>.ic{display:none}.single-page .singlebanner>.photo{aspect-ratio:4/3!important}}
