/* Dedicated stylesheet: constrain preview images independently of shared photo-library rules. */
#bibSearchGrid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;align-items:start}
#bibSearchGrid .photo-card{min-width:0;border-radius:12px;overflow:hidden}
#bibSearchGrid .bib-search-photo{display:block;width:100%;height:132px;min-height:0;padding:0;border:0;border-radius:0;overflow:hidden;background:#eef1ed;cursor:zoom-in}
#bibSearchGrid .bib-search-photo img{display:block;width:100%;height:100%;max-width:100%;max-height:132px;object-fit:contain;object-position:center}
#bibSearchGrid .photo-card-body{padding:10px;font-size:12px}
#bibSearchGrid .photo-card-body>strong{display:block;font-size:11px;overflow-wrap:anywhere}
#bibSearchGrid .photo-card-body p{margin:5px 0;font-size:11px}
#bibSearchGrid .photo-bibs{margin:6px 0;min-height:0;gap:4px}
#bibSearchGrid .bib-chip{font-size:10px;padding:3px 6px}
#bibSearchGrid .photo-card-body>button{width:100%;min-height:32px;padding:7px;font-size:11px}
#bibSearchForm{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin:16px 0}
#bibSearchForm input{min-width:120px}
#bibSearchForm select{max-width:100%}
@media(max-width:1050px){#bibSearchGrid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:600px){#bibSearchGrid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}#bibSearchGrid .bib-search-photo{height:110px}#bibSearchGrid .bib-search-photo img{max-height:110px}#bibSearchForm{display:grid;grid-template-columns:1fr}#bibSearchForm input,#bibSearchForm select{width:100%}}
