/* HanAnHua v159 — readable, uncropped photos for internship position cards.
   Overrides fixed-height cover rules from v77/v95/v97 and sectors-v148,
   without altering the partner directory thumbnails, hero or CMS editor. */
#bidang .field-grid-photo .field-card-photo > figure{
  position:relative;
  height:auto!important;
  min-height:0!important;
  aspect-ratio:3 / 2!important;
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:center;
  background:linear-gradient(135deg,#e8dfcd,#f5eedf 56%,#e6e0d2);
  border-bottom:3px solid var(--ink);
}
#bidang .field-grid-photo .field-card-photo > figure > img{
  display:block;
  width:100%!important;
  height:100%!important;
  max-width:100%;
  object-fit:contain!important;
  object-position:center!important;
  /* A crop zoom, including inherited CMS defaults, must not hide heads,
     hands or workstations: leave the entire source image visible. */
  scale:1!important;
  transform:none!important;
}
#bidang .field-grid-photo .field-card-photo:hover > figure > img{
  transform:none!important;
}
/* Tall hotel shots get slightly more vertical space; two-column industry
   and agriculture/care cards still show the whole frame, edge to edge
   wherever source aspect ratios match. */
#bidang .field-grid-photo:not(.industry-field-grid):not(.additional-sectors-grid) .field-card-photo > figure{
  aspect-ratio:3 / 2!important;
}
#bidang .industry-field-grid .industry-field-card > figure,
#bidang .additional-sectors-grid .field-card-photo > figure{
  aspect-ratio:3 / 2!important;
}
@media (max-width:820px){
  #bidang .field-grid-photo .field-card-photo > figure,
  #bidang .industry-field-grid .industry-field-card > figure,
  #bidang .additional-sectors-grid .field-card-photo > figure{
    aspect-ratio:3 / 2!important;
  }
}
@media (max-width:520px){
  #bidang .field-grid-photo .field-card-photo > figure,
  #bidang .industry-field-grid .industry-field-card > figure,
  #bidang .additional-sectors-grid .field-card-photo > figure{
    aspect-ratio:3 / 2!important;
  }
}
