/* Fill only the image box, never the entire card or its text area.
   Existing grid tracks and responsive image heights remain the source of layout. */
html body main img[data-card-fit] {
    background: linear-gradient(135deg, #edf3f5, #e2ecef);
}
/* Photo galleries already reserve their height; remove the old inset so landscape
   images can reach the edges. Portraits retain side space inside the same frame. */
.equipment-photo picture:has(> img[data-card-fit]),
.equipment-group__intro picture:has(> img[data-card-fit]) { padding: 0; }
/* Side-by-side cards must not size their image from the length of adjacent text. */
.detail-entry-card > img[data-card-fit] { height: 245px; min-height: 0; }
.legacy-model-card > img[data-card-fit] { height: 150px; }
@media (max-width: 600px) {
    .detail-entry-card > img[data-card-fit] { height: 210px; }
}
