/* =============================================
   Ver.1381 - Home representative thumbnail intrinsic ratio fix
   - Home latest/recommended uses representative images, not list covers.
   - Legacy representative files can have different intrinsic ratios; forcing one
     1429/1944 frame with object-fit:cover crops the bottom when the file ratio
     is narrower/taller than the frame.
   - The route now exposes --home-rep-ratio per tile from the actual rep file.
   ============================================= */
@media (min-width:761px){
  html body.page-home .home .home-card--latest .home-workgrid > .home-worktile > .home-worktile__img,
  html body.page-home .home .home-card--recommended .home-workgrid > .home-worktile > .home-worktile__img,
  html body.public-dark.page-home .home .home-card--latest .home-workgrid > .home-worktile > .home-worktile__img,
  html body.public-dark.page-home .home .home-card--recommended .home-workgrid > .home-worktile > .home-worktile__img{
    aspect-ratio:var(--home-rep-ratio, var(--javyun-home-rep-thumb-ratio, 1429 / 1944)) !important;
    height:auto !important;
    max-height:none !important;
    overflow:hidden !important;
    background:transparent !important;
    background-color:transparent !important;
  }

  html body.page-home .home .home-card--latest .home-workgrid > .home-worktile > .home-worktile__img > img,
  html body.page-home .home .home-card--recommended .home-workgrid > .home-worktile > .home-worktile__img > img,
  html body.public-dark.page-home .home .home-card--latest .home-workgrid > .home-worktile > .home-worktile__img > img,
  html body.public-dark.page-home .home .home-card--recommended .home-workgrid > .home-worktile > .home-worktile__img > img{
    width:100% !important;
    height:100% !important;
    max-width:100% !important;
    max-height:100% !important;
    object-fit:cover !important;
    object-position:center center !important;
    background:transparent !important;
    background-color:transparent !important;
    transform:none !important;
  }
}
