:root .redesigned-detail .birding-gallery .gallery-thumbnails{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;width:100%;max-width:none;margin-inline:0}
:root .redesigned-detail .birding-gallery .gallery-thumbnails>button{aspect-ratio:1;min-width:0}
:root .redesigned-detail .birding-gallery .gallery-thumbnails>button>img{width:100%;height:100%;object-fit:cover;object-position:50% 45%;background:#eef1e5}
:root .redesigned-detail .birding-gallery .detail-main-photo img{height:450px;max-height:60dvh;width:100%;object-fit:cover;object-position:50% 40%;background:#eef1e5}
@media(max-width:580px){:root .redesigned-detail .birding-gallery .gallery-thumbnails{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}:root .redesigned-detail .birding-gallery .detail-main-photo img{height:340px}}

/* Keep the bird visible when filling each square preview. */
:root .redesigned-detail .birding-gallery .gallery-thumbnails>button>img[src*="yellow-breasted-bird-480"]{object-position:50% 35%}
:root .redesigned-detail .birding-gallery .gallery-thumbnails>button>img[src*="raptor-portrait-480"]{object-position:50% 35%}
:root .redesigned-detail .birding-gallery .gallery-thumbnails>button>img[src*="birding-owl-480"]{object-position:50% 30%}
:root .redesigned-detail .birding-gallery .gallery-thumbnails>button>img[src*="birding-forest-bird-480"]{object-position:50% 65%}
:root .redesigned-detail .birding-gallery .gallery-thumbnails>button>img[src*="river-bird-480"]{object-position:65% 50%}
:root .redesigned-detail .birding-gallery .gallery-thumbnails>button>img[src*="green-violet-bird-480"]{object-position:60% 50%}
