/* INFATHON: override challenge layout only. Loaded LAST after all existing themes. */
html body.student-page #listing #cases.v4challenges.hack-challenges,
html body.student-page #listing #cases.v4challenges,
html body.student-page #cases {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  grid-auto-flow: row !important;
  grid-auto-columns: auto !important;
  width: 100% !important;
  gap: 20px !important;
}
html body.student-page #listing #cases > .v4challenge {
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  grid-column: 1 / -1 !important;
  margin-inline: 0 !important;
}
/* Preserve all existing card styling and image appearance. */

/* Challenge 01 only: fill the photo frame; other challenge images unchanged. */
html body.student-page #cases .challenge-photo-1 { overflow: hidden; }
html body.student-page #cases .challenge-photo-1 img.challenge-generated-image {
 display: block !important; width: 100% !important; height: 100% !important;
 object-fit: cover !important; object-position: center center !important;
}
