/* V1103. Smooth color-only theme switching. No forced repaint of media, no skeleton, no layout transitions. */
html{background-color:#fff;color-scheme:light}
html[data-theme="dark"]{background-color:#181a1f;color-scheme:dark}
html.f1103-theme-animating :is(
  body,.social-shell,.social-topbar,.social-sidebar,.social-nav,.social-column,.social-post,
  .social-bottom-nav,.social-rail,.social-search,.social-feed-tabs,.social-tab,
  .social-profile-modal,.social-modal,.social-dialog,.modal-content,.modal-sheet,
  .admin-app,.admin-sidebar,.admin-topbar,.admin-panel,.admin-main,.admin-workspace,
  .mobile-tabs,.social-post-actions,.social-post-tool,.social-nav-link,
  .f254-date-app,.f254-date-section,.mk-page,.mk-card,.f254-feed-gallery,
  input,select,textarea,button,.input-wrap,.side-link,.theme-toggle
){transition:background-color 170ms ease,border-color 170ms ease,color 170ms ease!important}
html.f1103-theme-animating :is(svg,.ico){transition:color 170ms ease,stroke 170ms ease!important}
@media(prefers-reduced-motion:reduce){html.f1103-theme-animating :is(body,.social-shell,.social-topbar,.social-sidebar,.social-column,.social-post,.social-bottom-nav,.admin-app,.admin-topbar,.admin-sidebar,.admin-panel,input,select,textarea,button){transition:none!important}}
/* Gallery height comes from tallest *decoded* slide of THIS post, never another post.
   The existing object-fit rules (contain/cover) are intentionally untouched. */
.social-shell .social-post:not(.social-reel-post) .f254-feed-gallery[data-f1103-shared-height="1"]{
  height:var(--f1103-gallery-height)!important;aspect-ratio:auto!important;
  max-height:var(--f254-feed-image-max,660px)!important;overflow:hidden!important;
}
.social-shell .social-post:not(.social-reel-post) .f254-feed-gallery[data-f1103-shared-height="1"]>.f254-feed-gallery-track{
  height:100%!important;max-height:100%!important;display:flex!important;align-items:stretch!important;
}
.social-shell .social-post:not(.social-reel-post) .f254-feed-gallery[data-f1103-shared-height="1"] .f254-feed-slide{
  height:100%!important;max-height:100%!important;min-height:0!important;flex:0 0 100%!important;
}
.social-shell .social-post:not(.social-reel-post) .f254-feed-gallery[data-f1103-shared-height="1"] .f254-feed-slide>img{
  display:block!important;height:100%!important;max-height:100%!important;max-width:100%!important;
}
