/* CODEX_CHANGE_START:20260901-161102-institution-mobile-stack-v1 */
.company-locations .location-list > article.institution-card-clickable.with-photo,
.company-locations .community-grid > article.institution-card-clickable.with-photo {
  grid-template-columns: 282.5px minmax(0, 1fr) !important;
  grid-template-rows: 226px !important;
  min-height: 228px !important;
  height: 228px !important;
  align-items: stretch !important;
}

.company-locations .location-list > article.institution-card-clickable.with-photo > img,
.company-locations .community-grid > article.institution-card-clickable.with-photo > img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  aspect-ratio: 5 / 4 !important;
  align-self: stretch !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-right: 1px solid #e3e7eb !important;
  background: transparent !important;
  object-fit: cover !important;
  object-position: center !important;
}

.company-locations .location-list > article.institution-card-clickable.with-photo > div,
.company-locations .community-grid > article.institution-card-clickable.with-photo > .community-card-body {
  height: 100% !important;
  min-height: 0 !important;
}

@media (min-width: 768px) and (max-width: 1200px) {
  .company-locations .location-list,
  .company-locations .community-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

@media (max-width: 767px) {
  .company-locations .location-list,
  .company-locations .community-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .company-locations .location-list > article.institution-card-clickable.with-photo,
  .company-locations .community-grid > article.institution-card-clickable.with-photo {
    display: block !important;
    min-height: 0 !important;
    height: auto !important;
  }

  .company-locations .location-list > article.institution-card-clickable.with-photo > img,
  .company-locations .community-grid > article.institution-card-clickable.with-photo > img {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: 5 / 4 !important;
    align-self: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-bottom: 1px solid #e3e7eb !important;
    background: transparent !important;
    object-fit: cover !important;
    object-position: center !important;
  }

  .company-locations .location-list > article.institution-card-clickable.with-photo > div,
  .company-locations .community-grid > article.institution-card-clickable.with-photo > .community-card-body {
    width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 18px 18px 20px !important;
    justify-content: flex-start !important;
  }
}
/* CODEX_CHANGE_END:20260901-161102-institution-mobile-stack-v1 */
