/* AHR and Trading Post share square card-photo windows.
   The native default contains the original. Saved Fill Frame positions are
   rendered into square thumbnails by AHRCardPhoto; originals remain separate. */
:is(#market-results,#buyer-results)>.browse-card{height:auto!important;min-height:0}
:is(.manage-grid43,.draft-list)>.manage-card43{height:auto!important}
:is(.market-card-photo,.iso-card-icon,.management-photo43,.published-featured-photo,.producer-card-photo,.draft-featured-photo,.draft-preview-photo,.profile-card-crop-preview,.stand-card-photo){
 display:block;width:100%!important;height:auto!important;min-height:0!important;max-height:none!important;aspect-ratio:1!important;object-fit:contain!important;flex-shrink:0;box-sizing:border-box
}
/* Popout buttons must neither cap the square nor add button padding. */
:is(.browse-card,.manage-card43,.producer-card,.saved-photo,.profile-post-card) .ahr-photo-open:has(img){
 display:block;padding:0!important;border:0;min-height:0!important;height:auto!important;background:transparent;flex-shrink:0
}
:is(.browse-card,.manage-card43,.producer-card) .ahr-photo-open:has(img){width:100%}
/* Favorite rows retain their photo / identity / details organization. */
:is(#favorites-content,.saved-alert-searches) article.favorite-row{height:auto!important;min-height:var(--favorite-row-height,190px)}
.favorite-row-photo{aspect-ratio:1;align-self:start;width:100%;height:auto!important}
.favorite-row-photo img{aspect-ratio:1!important;object-fit:contain!important}
.favorite-row-photo .ahr-photo-open{aspect-ratio:1;height:100%!important}
/* Related-ad cards keep their compact side-by-side arrangement. */
.profile-post-card .profile-post-image,.profile-post-card .ahr-photo-open img{
 height:auto!important;min-height:0!important;max-height:none!important;aspect-ratio:1!important;object-fit:contain!important
}
/* Draft photo tiles and legacy sample cards use the same whole-photo default. */
.saved-photo>img,.stand-photo-tile>img,.editor-photos img{width:100%;height:auto!important;max-height:none!important;aspect-ratio:1!important;object-fit:contain!important}
.uniform-card .uniform-media{height:auto!important;min-height:0!important;flex-basis:auto!important;aspect-ratio:1!important;flex-shrink:0}
.uniform-card .uniform-media>img,.uniform-card .uniform-media>.ahr-photo-open{width:100%!important;height:100%!important;aspect-ratio:1!important;object-fit:contain!important}
.uniform-card .uniform-media>.ahr-photo-open img{width:100%;height:100%;object-fit:contain}
/* Map result thumbnails are cards too, but keep their small map-popup width. */
.map-popup-photo{height:auto!important;aspect-ratio:1!important;object-fit:contain!important}
.favorite-farmstand-row>.favorite-row-identification{grid-column:2/-1;grid-row:1}
.favorite-farmstand-row .stand-featured-photo{width:100%;height:100%;max-width:none;max-height:none;aspect-ratio:1;object-fit:contain;margin:0}
#editor-photos>figure>.ahr-photo-open:has(img){width:100%;min-height:0;padding:0;border:0;background:transparent}
#editor-photos>figure>.ahr-photo-open img,#editor-photos>figure>img{width:100%;height:auto!important;aspect-ratio:1!important;object-fit:contain!important}
