#home-realizacje .home-work-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px;align-items:stretch}
#home-realizacje .home-work-card{min-width:0;display:flex;flex-direction:column;background:#fff;border:1px solid var(--line,#e5dce4);border-radius:6px;overflow:hidden}
#home-realizacje .home-work-image{display:block;position:relative;aspect-ratio:3/4;background:#eee;overflow:hidden}
#home-realizacje .home-work-image img{display:block;width:100%;height:100%;object-fit:contain;transition:transform .2s ease}
#home-realizacje .home-work-image:hover img{transform:scale(1.015)}
#home-realizacje .home-work-copy{display:flex;flex:1;flex-direction:column;padding:18px 19px 20px}
#home-realizacje .home-work-author{font-size:12px;line-height:1.5;color:var(--muted,#685f69);margin:0 0 12px}
#home-realizacje .home-work-author a{font-weight:700}
#home-realizacje h3{font-size:21px;line-height:1.2;letter-spacing:-.02em;margin:0 0 10px}
#home-realizacje h3 a{text-decoration:none;color:var(--ink,#29212b)}
#home-realizacje .home-work-description{font-size:14px;line-height:1.5;color:var(--muted,#685f69);margin:0 0 15px;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
#home-realizacje .home-work-tags{display:flex;flex-wrap:wrap;gap:6px;margin-top:auto;padding-top:4px}
#home-realizacje .home-work-tags span{font-size:11px;line-height:1.2;border-radius:99px;background:#f3edf3;color:#5c385b;padding:6px 9px}
#home-realizacje .home-work-link{font-size:14px;line-height:1.5;font-weight:600;margin-top:16px}
#home-realizacje .home-work-more{display:flex;flex-direction:column;align-items:center;gap:14px;margin-top:32px;text-align:center}
#home-realizacje .home-work-count{font-size:14px;line-height:1.5;color:var(--muted,#685f69);margin:0}
#home-realizacje .home-work-more button{cursor:pointer;font:inherit}
#home-realizacje .home-work-more [hidden]{display:none!important}
#home-realizacje .home-work-gallery-link{font-size:15px}
#instagram{border-top:1px solid var(--line,#e5dce4)}
@media(max-width:900px){#home-realizacje .home-work-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){#home-realizacje .home-work-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}#home-realizacje .home-work-copy{padding:16px}#home-realizacje h3{font-size:20px}}
@media(prefers-reduced-motion:reduce){#home-realizacje .home-work-image img{transition:none}}

/* Compact two-column cards on phones, PL and EN. */
@media(max-width:600px){
.ecv2 :is(#zespol,#team) .grid,#home-realizacje .home-work-grid,html .ecv2 .profile-gallery-grid,#work-grid.grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important;align-items:stretch}
.ecv2 :is(#zespol,#team) .staff{min-width:0;padding:0 0 12px!important}
.ecv2 :is(#zespol,#team) .staff img{display:block;width:100%!important;height:auto!important;aspect-ratio:4/5;object-fit:cover!important;transform:none!important}
.ecv2 :is(#zespol,#team) .staff .portrait-frame{height:auto!important;aspect-ratio:4/5;overflow:hidden}
.ecv2 :is(#zespol,#team) .staff .portrait-frame img{height:100%!important}
.ecv2 :is(#zespol,#team) .staff .copy{min-width:0;padding:12px 12px 0!important;overflow-wrap:anywhere}
.ecv2 :is(#zespol,#team) .staff h3{font-size:17px;line-height:1.2;margin-bottom:8px}
.ecv2 :is(#zespol,#team) .staff small{font-size:10px;line-height:1.4;letter-spacing:.04em;margin-bottom:8px}
.ecv2 :is(#zespol,#team) .staff p{font-size:13px;line-height:1.5;margin-bottom:10px}
.ecv2 :is(#zespol,#team) .staff p:empty{display:none}
.ecv2 :is(#zespol,#team) .staff .tag{font-size:13px;line-height:1.4;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden}
.ecv2 :is(#zespol,#team) .staff .copy>p:not(.tag){display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:4;overflow:hidden}
.ecv2 :is(#zespol,#team) .staff .copy>a,.ecv2 :is(#zespol,#team) .staff .copy>p>a{display:inline-flex;align-items:center;min-height:44px;font-size:13px;line-height:1.4}
.ecv2 :is(#zespol,#team) .staff details{padding:10px 0 0}
.ecv2 :is(#zespol,#team) .staff summary{font-size:12px;line-height:1.4;min-height:44px}
#home-realizacje .home-work-copy{padding:12px!important}
#home-realizacje h3{font-size:16px!important;line-height:1.25;overflow-wrap:anywhere}
#home-realizacje .home-work-author{font-size:11px;line-height:1.4;margin-bottom:8px;overflow-wrap:anywhere}
#home-realizacje .home-work-description{font-size:13px;line-height:1.45;margin-bottom:10px}
#home-realizacje .home-work-tags{gap:4px}
#home-realizacje .home-work-tags span{font-size:10px;padding:5px 7px}
#home-realizacje .home-work-link{display:inline-flex;align-items:center;min-height:44px;font-size:12px;line-height:1.4;margin-top:8px}
#work-grid .work-card,html .ecv2 .profile-gallery-grid>.work-card{min-width:0;overflow:hidden}
#work-grid .work-copy,html .ecv2 .profile-gallery-grid .work-copy{padding:12px!important;overflow-wrap:anywhere}
#work-grid .work-copy h2,html .ecv2 .profile-gallery-grid .work-copy h2{font-size:16px!important;line-height:1.25;margin:10px 0 8px}
#work-grid .work-copy p,html .ecv2 .profile-gallery-grid .work-copy p{font-size:13px!important;line-height:1.45}
#work-grid .work-meta,html .ecv2 .profile-gallery-grid .work-meta{font-size:11px;line-height:1.4;flex-wrap:wrap;gap:6px}
#work-grid .work-meta>span,html .ecv2 .profile-gallery-grid .work-meta>span{flex-basis:100%}
#work-grid .work-meta a,#work-grid .work-video-link,#work-grid .work-instagram-link,html .ecv2 .profile-gallery-grid .work-meta a,html .ecv2 .profile-gallery-grid .work-video-link{font-size:11px;white-space:normal;overflow-wrap:anywhere}
#work-grid .work-tags,html .ecv2 .profile-gallery-grid .work-tags{gap:4px;margin-top:10px}
#work-grid .work-tags span,html .ecv2 .profile-gallery-grid .work-tags span{font-size:10px;padding:5px 7px}
#work-grid .air-controls{padding:6px;gap:4px}
#work-grid .air-controls button{min-width:40px;min-height:44px;padding:4px 8px;font-size:18px}
#work-grid .air-controls output{font-size:11px}
#work-grid .air-slide figcaption{font-size:10px;line-height:1.3;left:6px;bottom:6px;max-width:calc(100% - 12px);padding:4px 6px}
}
