/* Preserve the complete square composition and the geometry of sourced crests. */
.category-card-art,#categorySelect .cs-art{aspect-ratio:1}
.category-card-art img,.hero-category img{object-fit:contain}
.hero-category img{aspect-ratio:1;height:auto}
.classic-board .hero-category img{aspect-ratio:1;object-fit:contain;height:auto}
.category-detail-layout>img{object-fit:contain;aspect-ratio:1;height:auto;min-height:0;align-self:center}
#categorySelect .cat-cover{aspect-ratio:1!important;height:auto!important}
#categorySelect .cs-art img,.cat-col__cover img,.cat-cover img{object-fit:contain}
/* Board artwork fills the panel beside all three question rows. */
html:root body:not(.mode-hex) #board .board-grid:not(.hex-mode) .cat-col__cover img{object-fit:cover!important;object-position:center}
.hex-cover{object-fit:contain}
@media(max-width:550px){.category-detail-layout>img{width:min(100%,31svh);height:auto;max-height:none;align-self:center}}
