#sb_instagram #sbi_images{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:2px;position:static!important}
#sb_instagram #sbi_images .sbi_item{width:auto!important;float:none!important;padding:0!important;position:static!important}
#sb_instagram .sbi_photo{height:100%!important;aspect-ratio:1;display:block!important;opacity:1!important}
#sb_instagram .sbi_photo img{display:block!important;width:100%!important;height:100%!important;object-fit:cover}
#sb_instagram[data-preview-feed="home"] #sbi_images{grid-template-columns:repeat(3,minmax(0,1fr))}
#sb_instagram[data-preview-feed="home"] .sbi_item:first-child{grid-column:span 2;grid-row:span 2}
html:not(.astro-animations-ready) .animated,html:not(.astro-animations-ready) .hidden-animated,html:not(.astro-animations-ready) .o-anim-ready{visibility:visible!important;opacity:1!important;transform:none!important;animation:none!important}
@media(max-width:640px){#sb_instagram[data-preview-feed="home"] #sbi_images{grid-template-columns:repeat(2,minmax(0,1fr))}}

#sb_instagram[data-preview-feed="gallery"] .sbi_photo{aspect-ratio:3/4}
#sb_instagram[data-preview-feed="home"] #sbi_images{padding:18px 6px!important;gap:12px}
#sb_instagram[data-preview-feed="home"] #sbi_load{display:none!important}

.photo-viewer{border:0;padding:24px;width:min(1000px,94vw);max-width:94vw;max-height:92vh;background:white;color:#222;overflow:auto}.photo-viewer::backdrop{background:#000c}.photo-close{position:absolute;right:8px;top:4px;z-index:2;font-size:28px;background:white;border:0;cursor:pointer}.photo-layout{display:grid;grid-template-columns:2fr 1fr;gap:24px;align-items:start}.photo-large{width:100%;height:78vh;object-fit:contain}.photo-detail{height:78vh;display:flex;flex-direction:column;min-width:0}.photo-caption{white-space:pre-wrap;overflow:auto;overflow-wrap:anywhere;font-size:14px;line-height:1.8;flex:1}.photo-detail nav{display:flex;align-items:center;gap:14px;flex-wrap:wrap;padding-top:12px}.photo-detail button{font-size:24px;min-width:36px;cursor:pointer}.photo-original{text-decoration:underline}@media(max-width:640px){.photo-layout{grid-template-columns:1fr;gap:12px}.photo-large{height:45vh}.photo-detail{height:35vh}.photo-viewer{padding:24px 12px 12px}}

/* Keep wrapped search results fully tappable on mobile. */
#search-results a{display:block;padding:.35em 0}
