/* Dv259 — mobile Projects alignment only. Preserve all original images,
   backdrop artwork, desktop styles and project-gallery behaviour. */
@media (max-width: 900px) {
  html body.projects-page #r-main .project-grid {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    justify-items: stretch !important;
    align-items: start !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box !important;
  }
  html body.projects-page #r-main .project-grid > .project-card {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    justify-self: stretch !important;
    transform: none !important;
  }
  html body.projects-page #r-main .project-grid .project-card > .thumb {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: 1.55 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
  }
  html body.projects-page #r-main .project-grid .project-card > .thumb > img {
    display: block !important;
    box-sizing: border-box !important;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    margin: 0 auto !important;
    padding: 18px !important;
    object-fit: contain !important;
    object-position: center center !important;
    transform: none !important;
  }
  html body.projects-page #r-main .project-grid .project-card > .card-body {
    box-sizing: border-box !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 18px 0 24px !important;
    text-align: left !important;
  }
}
