/* Square previews need smaller cards, not a taller three-column gallery. */
body[data-public-theme="recipe-atelier"] .at-grid {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;align-items:stretch;}
body[data-public-theme="recipe-atelier"] .at-grid>.at-card {min-width:0;border-radius:14px;}
body[data-public-theme="recipe-atelier"] .at-grid .at-card-photo {margin:6px 6px 0;border-radius:10px;}
body[data-public-theme="recipe-atelier"] .at-grid .at-card-photo img {border-radius:10px;}
body[data-public-theme="recipe-atelier"] .at-grid .at-card-copy {padding:12px 14px 14px;gap:3px;min-width:0;}
body[data-public-theme="recipe-atelier"] .at-grid .at-card h2 {font-size:21px;line-height:1.2;margin:5px 0 8px;overflow-wrap:break-word;}
body[data-public-theme="recipe-atelier"] .at-grid .at-card p {font-size:13px;line-height:1.5;margin:0 0 8px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;}
body[data-public-theme="recipe-atelier"] .at-grid .at-card-bottom {padding-top:10px;gap:8px;flex-wrap:wrap;}
@media(max-width:1023px){body[data-public-theme="recipe-atelier"] .at-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;}}
@media(max-width:760px){body[data-public-theme="recipe-atelier"] .at-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;}body[data-public-theme="recipe-atelier"] .at-grid .at-card h2{font-size:20px;}}
@media(max-width:520px){
 body[data-public-theme="recipe-atelier"] .at-grid{grid-template-columns:minmax(0,1fr);gap:12px;}
 body[data-public-theme="recipe-atelier"] .at-grid>.at-card{display:flex;flex-direction:row;align-items:flex-start;padding:8px;gap:12px;}
 body[data-public-theme="recipe-atelier"] .at-grid .at-card-photo{position:relative;flex:0 0 104px;width:104px;height:104px;margin:0;}
 body[data-public-theme="recipe-atelier"] .at-grid .at-card-copy{flex:1 1 0;padding:2px 0;}
 body[data-public-theme="recipe-atelier"] .at-grid .at-card h2{font-size:19px;margin:4px 0 8px;}
 body[data-public-theme="recipe-atelier"] .at-grid .at-card p{display:none;}
 body[data-public-theme="recipe-atelier"] .at-grid .at-card-bottom{margin-top:4px;padding-top:8px;font-size:11px;}
}
@media(max-width:360px){body[data-public-theme="recipe-atelier"] .at-grid .at-card-photo{flex-basis:88px;width:88px;height:88px;}body[data-public-theme="recipe-atelier"] .at-grid>.at-card{gap:10px;}}
