/* Keep the complete big image neatly fitted inside its gallery area */
#photo-gallery .gallery-main{
  min-width:0 !important;
  overflow:hidden !important;
}

#photo-gallery .featured{
  width:100% !important;
  box-sizing:border-box !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  overflow:hidden !important;
  background:#fff !important;
}

#photo-gallery .featured img{
  display:block !important;
  width:100% !important;
  height:100% !important;
  max-width:100% !important;
  max-height:100% !important;
  object-fit:contain !important;
  object-position:center center !important;
  margin:auto !important;
  background:#fff !important;
}

@media(min-width:761px){
  #photo-gallery .gallery-main,
  #photo-gallery .featured{
    height:620px !important;
    min-height:620px !important;
    max-height:620px !important;
  }
}

@media(max-width:760px){
  #photo-gallery .featured{
    height:auto !important;
    min-height:0 !important;
    aspect-ratio:16 / 10 !important;
  }
}
