@media(min-width:761px){
  /* Match the big-image area to the 5-thumbnail rail height */
  #photo-gallery .gallery-main{
    height:560px !important;
    min-height:560px !important;
    max-height:560px !important;
    display:flex !important;
    flex-direction:column !important;
    overflow:hidden !important;
  }

  #photo-gallery .featured{
    flex:1 1 auto !important;
    width:100% !important;
    height:100% !important;
    min-height:0 !important;
    max-height:560px !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    background:#fff !important;
    overflow:hidden !important;
  }

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

  #photo-gallery .gallery-thumbs{
    height:560px !important;
    max-height:560px !important;
  }
}
