/* Atlas 9.29 — merged Google CSE and Brave image results */
.atlas-image-results .atlas-image-controls{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:14px!important;margin:6px 0 14px!important;flex-wrap:wrap!important;font-size:13px!important;color:#66758c!important}
.atlas-image-results .atlas-image-source-note{display:flex!important;align-items:center!important;gap:8px!important}
.atlas-image-results .atlas-image-source-note::before{content:"";width:7px;height:7px;background:#1381f9;border-radius:50%;display:inline-block}
.atlas-image-results .atlas-image-pages{display:flex!important;align-items:center!important;justify-content:center!important;gap:7px!important;flex-wrap:wrap!important;margin:22px 0 16px!important}
.atlas-image-results .atlas-image-pages button{appearance:none!important;border:1px solid #dce5f3!important;background:#fff!important;color:#28415e!important;min-height:38px!important;min-width:38px!important;padding:0 12px!important;border-radius:12px!important;font:600 14px Inter,system-ui,sans-serif!important;cursor:pointer!important;transition:background .15s,border-color .15s!important}
.atlas-image-results .atlas-image-pages button:hover{background:#eef6ff!important;border-color:#9ccaff!important}
.atlas-image-results .atlas-image-pages button[aria-current="page"]{background:#087cf5!important;color:#fff!important;border-color:#087cf5!important}
.atlas-image-results .atlas-image-pages button:disabled{cursor:default!important;opacity:.35!important}
.atlas-image-results .atlas-image-pages button:focus-visible{outline:3px solid #a6d1ff!important;outline-offset:2px!important}
.atlas-image-results .atlas-image-page-status{font-size:12px;color:#6f7d93}
@media(max-width:600px){.atlas-image-results .atlas-image-controls{margin:6px 0 12px!important}.atlas-image-results .atlas-image-pages{gap:5px!important}.atlas-image-results .atlas-image-pages button{min-width:34px!important;min-height:36px!important;padding:0 9px!important}}

/* AI navigation on non-web search tabs leads to the main results page. */
.rp-search-tabs .rp-ai-web-link{display:inline-flex!important;align-items:center!important;gap:7px!important;white-space:nowrap!important;text-decoration:none!important}


/* 9.30: use the available image stage, don't leave tiny images centered.
   For thumbnail-only results we enlarge the preview visibly and label its low resolution. */
.atlas-lightbox:not(.is-zoomed) .atlas-lightbox-stage .atlas-lightbox-image-wrap{
  width:min(100%, 1000px)!important; height:100%!important; max-height:100%!important;
  min-height:0!important; display:grid!important; place-items:center!important;
}
.atlas-lightbox:not(.is-zoomed) .atlas-lightbox-stage .atlas-lightbox-image-wrap>img{
  display:block!important; width:100%!important; height:100%!important;
  max-width:100%!important; max-height:calc(90vh - 56px)!important;
  object-fit:contain!important; object-position:center center!important;
}
.atlas-lightbox.is-preview .atlas-lightbox-dimensions{color:#f6c981!important}
@media(max-width:740px){
  .atlas-lightbox:not(.is-zoomed) .atlas-lightbox-stage .atlas-lightbox-image-wrap{width:100%!important;}
  .atlas-lightbox:not(.is-zoomed) .atlas-lightbox-stage .atlas-lightbox-image-wrap>img{max-height:calc(65vh - 28px)!important;}
}

.atlas-image-results .atlas-image-provider-note{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;flex-wrap:wrap!important;padding:11px 14px!important;border-radius:12px!important;border:1px solid #e3eaf5!important;background:#f7faff!important;font-size:12px!important;color:#536884!important}
.atlas-image-results .atlas-image-retry-brave{border:1px solid #cfe2ff!important;background:white!important;color:#116ed8!important;border-radius:9px!important;font:700 12px Inter,system-ui,sans-serif!important;padding:7px 12px!important;cursor:pointer!important}
.atlas-image-results .atlas-image-retry-brave:hover{background:#edf5ff!important}
