/* ATHREYA DESIGN v1.3.1 — a disciplined three-project editorial strip on Home only.
   Portfolio listing and individual project pages retain their own layout. */
.ath-section-projects:has(.ath-home-project-grid) .ath-section-heading{max-width:750px;margin-bottom:clamp(22px,3vw,34px)}
.ath-section-projects .ath-home-project-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));column-gap:clamp(16px,2.5vw,32px);row-gap:0;align-items:stretch;width:100%}
.ath-home-project-grid .ath-photo-story{display:flex;flex-direction:column;min-width:0;width:100%;align-self:stretch}
.ath-home-project-grid .ath-photo-viewport{aspect-ratio:1.16;min-width:0;width:100%}
.ath-home-project-grid .ath-photo-viewport::after{inset:10px}
.ath-home-project-grid .ath-photo-story-details{display:flex;flex-direction:column;flex:1;padding:15px 0 0;min-width:0}
.ath-home-project-grid .ath-project-category{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:10px;letter-spacing:.08em}
.ath-home-project-grid .ath-project-details h3{font-size:clamp(18px,1.6vw,23px);line-height:1.28;letter-spacing:-.025em;margin:8px 0 9px;min-height:2.56em;word-break:normal;overflow-wrap:normal;hyphens:none}
.ath-home-project-grid .ath-project-details h3 a{color:#171717;text-decoration:none}
.ath-home-project-grid .ath-project-style{font-size:11px;line-height:1.45;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin:0 0 5px}
.ath-home-project-grid .ath-photo-project-summary{font-size:13px;line-height:1.55;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;margin:4px 0 15px;min-height:3.1em;max-width:none;color:#484542}
.ath-home-project-grid .ath-photo-card-bottom{margin-top:auto;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px;padding:11px 0 0;border-top:1px solid #D3D3D3;min-width:0}
.ath-home-project-grid .ath-photo-explore{font-size:11px;gap:4px;white-space:nowrap}
.ath-home-project-grid .ath-project-palette{min-width:0;gap:5px}
.ath-home-project-grid .ath-palette-swatch i{width:14px;height:14px}
.ath-section-projects:has(.ath-home-project-grid) .ath-work-see-more{display:flex;justify-content:center;margin-top:clamp(24px,3.3vw,42px)}
.ath-section-projects:has(.ath-home-project-grid) .ath-work-see-more .ath-actions{display:flex;justify-content:center;width:100%}
.ath-section-projects:has(.ath-home-project-grid) .ath-work-see-more .ath-button{min-width:145px;justify-content:center;padding-inline:24px}
@media(max-width:820px){
 .ath-section-projects .ath-home-project-grid{column-gap:14px}
 .ath-home-project-grid .ath-photo-viewport{aspect-ratio:4/5}
 .ath-home-project-grid .ath-project-details h3{font-size:clamp(15px,2.1vw,18px)}
 .ath-home-project-grid .ath-photo-card-bottom{gap:6px}
 .ath-home-project-grid .ath-photo-explore{font-size:10px}
}
/* Mobile: ALL THREE project cards stay on the same row, never a vertical stack. */
@media(max-width:650px){
 .ath-section-projects .ath-home-project-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:clamp(7px,2.6vw,12px)!important;align-items:stretch}
 .ath-section-projects:has(.ath-home-project-grid) .ath-section-heading{margin-bottom:18px}
 .ath-home-project-grid .ath-photo-viewport{aspect-ratio:3/4;min-height:0}
 .ath-home-project-grid .ath-photo-viewport::after{inset:5px;border-color:rgba(255,255,255,.55)}
 .ath-home-project-grid .ath-photo-controls{right:4px;bottom:6px;gap:3px}
 .ath-home-project-grid .ath-photo-controls button{width:clamp(21px,6vw,26px);height:clamp(21px,6vw,26px);font-size:18px;border-width:1px}
 .ath-home-project-grid .ath-photo-story-details{padding-top:9px}
 .ath-home-project-grid .ath-project-category{display:none}
 .ath-home-project-grid .ath-project-details h3{font-size:clamp(10px,3.0vw,12px)!important;line-height:1.35;margin:3px 0 7px;min-height:2.7em;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;word-break:normal;overflow-wrap:normal;hyphens:none}
 .ath-home-project-grid .ath-project-style,.ath-home-project-grid .ath-photo-project-summary{display:none}
 .ath-home-project-grid .ath-photo-card-bottom{padding-top:6px;margin-top:auto;gap:0}
 .ath-home-project-grid .ath-photo-explore{display:none}
 .ath-home-project-grid .ath-project-palette{gap:3px}
 .ath-home-project-grid .ath-palette-swatch:nth-child(n+4){display:none}
 .ath-home-project-grid .ath-palette-swatch i{width:clamp(8px,2.4vw,11px);height:clamp(8px,2.4vw,11px)}
 .ath-home-project-grid .ath-photo-awaiting{min-height:0;padding:8px;font-size:10px;line-height:1.4}
 .ath-home-project-grid .ath-photo-awaiting span{max-width:100%}
 .ath-section-projects:has(.ath-home-project-grid) .ath-work-see-more{margin-top:24px}
 .ath-section-projects:has(.ath-home-project-grid) .ath-work-see-more .ath-button{min-width:145px;font-size:12px}
}
@media(max-width:350px){
 .ath-home-project-grid .ath-project-category{font-size:7.5px}
 .ath-home-project-grid .ath-project-details h3{font-size:10px!important}
 .ath-home-project-grid .ath-photo-controls button{width:19px;height:19px;font-size:15px}
}
