/* Desktop: thumbnail rail exactly equals the large-image height.
   Three thumbnail cards + two gaps fill the complete height. */
@media(min-width:769px){
  #cugb-photo-gallery .cugb-gallery-stage{
    align-items:stretch !important;
  }

  #cugb-photo-gallery .cugb-gallery-main-wrap,
  #cugb-photo-gallery .cugb-gallery-thumbs-shell{
    height:100% !important;
  }

  #cugb-photo-gallery .cugb-gallery-thumbs{
    height:100% !important;
    min-height:0 !important;
    max-height:none !important;
    display:grid !important;
    grid-template-columns:1fr !important;
    grid-template-rows:repeat(3, minmax(0, 1fr)) !important;
    grid-auto-rows:calc((100% - 20px) / 3) !important;
    gap:10px !important;
    overflow-y:auto !important;
    overflow-x:hidden !important;
    align-content:start !important;
  }

  #cugb-photo-gallery .cugb-gallery-thumb{
    height:100% !important;
    min-height:0 !important;
    max-height:none !important;
  }

  #cugb-photo-gallery .cugb-gallery-thumb img{
    width:100% !important;
    height:100% !important;
    object-fit:cover !important;
  }
}
