/* Photo Gallery: show exactly four vertical thumbnail images at a time */
@media(min-width:761px){
  #photo-gallery .gallery-layout{
    grid-template-columns:minmax(0,1fr) 150px !important;
    gap:14px !important;
  }
  #photo-gallery .featured,
  #photo-gallery .featured img{
    height:530px !important;
    min-height:530px !important;
  }
  #photo-gallery .gallery-thumbs{
    height:530px !important;
    max-height:530px !important;
    overflow-y:auto !important;
    overflow-x:hidden !important;
    display:grid !important;
    grid-template-columns:1fr !important;
    grid-auto-rows:125px !important;
    gap:10px !important;
    padding:0 4px 0 0 !important;
    scrollbar-width:thin;
  }
  #photo-gallery .gallery-thumb{
    width:100% !important;
    height:125px !important;
    min-height:125px !important;
    margin:0 !important;
    padding:0 !important;
    display:block !important;
    overflow:hidden !important;
    border:2px solid transparent !important;
    border-radius:10px !important;
    background:#fff !important;
  }
  #photo-gallery .gallery-thumb.active{
    border-color:#e58a00 !important;
  }
  #photo-gallery .gallery-thumb img{
    width:100% !important;
    height:121px !important;
    object-fit:cover !important;
    display:block !important;
  }
  #photo-gallery .gallery-thumb span{
    display:none !important;
  }
}
/* Mobile keeps horizontal image-only thumbnails */
@media(max-width:760px){
  #photo-gallery .gallery-thumbs{
    height:auto !important;
    max-height:none !important;
    display:flex !important;
    flex-direction:row !important;
    overflow-x:auto !important;
    overflow-y:hidden !important;
    gap:9px !important;
  }
  #photo-gallery .gallery-thumb{
    min-width:105px !important;
    width:105px !important;
    height:74px !important;
  }
  #photo-gallery .gallery-thumb img{
    width:100% !important;
    height:70px !important;
    object-fit:cover !important;
  }
  #photo-gallery .gallery-thumb span{display:none !important;}
}
