/* Office examples use the existing gallery and two-column preview dialog. */
#ih-office-filters{min-width:0;max-width:100%}
#ih-office-filter-list{display:flex;flex-wrap:nowrap;min-width:0;max-width:100%;box-sizing:border-box;overflow-x:auto;overscroll-behavior-x:contain;padding:4px;scroll-padding-inline:4px}
#ih-office-filter-list button{flex:0 0 auto;min-height:44px;white-space:nowrap}
#ih-office-filter-list button:focus-visible{outline:2px solid #171717;outline-offset:2px}
.ih-office-card .ih-template-thumb>.ih-real-preview-image{padding:0;object-fit:cover}
.ih-office-card .ih-template-card-caption small{display:none}
.ih-office-card .ih-example-kind{background:rgba(255,255,255,.94);color:#666666}
.ih-office-card .ih-template-view{color:var(--brand-blue);box-shadow:0 2px 8px #3838380d}
.ih-template-cards.ih-cleanup-gallery{grid-template-columns:minmax(0,820px);justify-content:center}
.ih-cleanup-gallery .ih-template-thumb{aspect-ratio:8/6;max-height:580px}
.ih-cleanup-gallery .ih-template-thumb>.ih-real-preview-image{object-fit:contain;object-position:center;background:#f6f6f6}
.ih-office-demo .ih-template-media{padding:0;overflow:hidden;justify-content:stretch}
.ih-office-embed{border:0;display:block;width:100%;height:100%;min-height:0;flex:1;background:#f6f6f6}
.ih-office-embed[hidden]{display:none}
.ih-office-demo .ih-template-detail{border-left:1px solid var(--ih-line)}
@media(max-width:800px){
  .ih-office-demo .ih-template-media{min-height:48svh;flex:1 1 auto}
  .ih-office-demo .ih-template-detail{border-left:0;border-top:1px solid var(--ih-line);max-height:34svh}
  .ih-office-demo #ih-template-prompt-copy{max-height:90px}
}
@media(max-width:520px){
  .ih-office-demo .ih-template-media{padding-top:48px}
  .ih-office-demo .ih-template-dialog-close{width:44px;height:44px;top:6px;right:8px}
}
@media(min-width:521px) and (max-width:800px){
  .ih-office-demo .ih-template-media{padding-top:40px}
  .ih-office-demo .ih-template-dialog-close{width:44px;height:44px;top:6px;right:8px}
}
/* Document and worksheet previews keep their full page visible above the title. */
.ih-office-card .ih-template-thumb>.ih-real-preview-image{object-fit:contain;object-position:center;background:#f4f4f1;padding:10px 10px 38px}
