/* Compact gallery layout. Only section #gallery is affected. */
#gallery.gallery{padding-top:17px!important;padding-bottom:16px!important}
#gallery .section-head{margin-bottom:0!important;gap:10px}
#gallery .section-head .eyebrow{margin:0 0 3px!important;line-height:1.4}
#gallery .section-head h2{margin:0 0 12px!important;line-height:1.12}
#gallery .gallery-controls{margin:0 0 9px!important;gap:8px}
#gallery .gallery-controls p{margin:0 10px 0 0!important;line-height:1.45}
#gallery .cards-track{padding:3px 2px 7px!important;gap:16px!important;align-items:flex-start;min-height:0!important;height:auto!important;max-height:none!important}
#gallery .card-item{flex:0 0 clamp(128px,12.8vw,168px)!important;align-self:flex-start;margin:0!important;padding:0!important;min-height:0!important;height:auto!important}
#gallery .card-item img{display:block;width:100%;height:auto!important;aspect-ratio:1888/3130;object-fit:contain}
#gallery .card-item strong{margin-top:11px!important;margin-bottom:0!important;line-height:1.4;min-height:2.8em;text-align:center;overflow-wrap:break-word}
#gallery .gallery-foot{margin:10px 0 0!important;padding:0;line-height:1.6;min-height:0}
@media(max-width:720px){
 #gallery.gallery{padding-top:15px!important;padding-bottom:14px!important}
 #gallery .section-head h2{margin-bottom:8px!important}
 #gallery .gallery-controls{margin-bottom:7px!important}
 #gallery .cards-track{padding-top:2px!important;padding-bottom:6px!important;gap:12px!important}
 #gallery .card-item{flex-basis:138px!important}
 #gallery .card-item strong{font-size:14px;margin-top:9px!important;min-height:2.8em}
 #gallery .gallery-foot{margin-top:8px!important}
}
