/* Renai Hair V17 — definitive mobile manufacturing grid fix */
@media (min-width:481px) and (max-width:820px){
  .factory-gallery{
    display:grid !important;
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    gap:14px !important;
  }
  .factory-gallery > figure{
    min-width:0 !important;
  }
  .factory-gallery > .mobile-wide-card,
  .factory-gallery > .feedback-card{
    grid-column:1 / -1 !important;
    width:100% !important;
  }
  .factory-gallery > .mobile-wide-card img{
    display:block;
    width:100% !important;
    height:auto !important;
    aspect-ratio:16 / 9 !important;
    object-fit:cover !important;
  }
  .factory-gallery > .feedback-card img{
    display:block;
    width:100% !important;
    height:auto !important;
    aspect-ratio:4 / 3 !important;
    object-fit:contain !important;
    padding:6px !important;
    background:#fffaf5 !important;
  }
}

@media (max-width:480px){
  .factory-gallery{
    display:grid !important;
    grid-template-columns:1fr !important;
    gap:14px !important;
  }
  .factory-gallery > .mobile-wide-card,
  .factory-gallery > .feedback-card{
    grid-column:auto !important;
    width:100% !important;
  }
  .factory-gallery > .mobile-wide-card img{
    width:100% !important;
    height:auto !important;
    aspect-ratio:16 / 9 !important;
    object-fit:cover !important;
  }
  .factory-gallery > .feedback-card img{
    width:100% !important;
    height:auto !important;
    aspect-ratio:4 / 3 !important;
    object-fit:contain !important;
  }
}
