.mobile-slide-bar{display:contents}
.mobile-work-link{display:none}
@media(max-width:800px), (max-height:500px) and (pointer:coarse){
  body.landing-page[data-view=top] #home-hero {
    padding:var(--site-header-height,64px) 0 0!important;
    min-height:0!important;
  }
  body.landing-page[data-view=top] #home-hero .hero-image-wrap {
    width:100%;height:auto!important;min-height:0!important;max-height:none!important;
    display:flex;flex-direction:column;background:var(--bg);overflow:visible;
  }
  body.landing-page[data-view=top] #home-hero .hero-image {
    position:static;display:block;width:100%;height:auto!important;
    aspect-ratio:3/2;max-height:calc(100svh - var(--site-header-height,64px) - 60px);
    object-fit:contain;object-position:center!important;transform:none!important;
  }
  #home-hero .mobile-slide-bar {
    display:flex;justify-content:space-between;align-items:center;gap:6px;
    padding:8px max(12px,env(safe-area-inset-right)) 10px max(12px,env(safe-area-inset-left));
    color:var(--ink);background:var(--bg);
  }
  #home-hero .mobile-work-link {
    display:inline-flex;align-items:center;min-height:44px;font-size:1rem;
    color:inherit;text-decoration:underline;text-underline-offset:5px;
  }
  html[lang=he] .mobile-work-link [lang=en],html[lang=en] .mobile-work-link [lang=he]{display:none}
  body.landing-page #home-hero .hero-controls {
    display:flex!important;position:static;pointer-events:auto;opacity:1;color:inherit;gap:2px;direction:ltr;
  }
  #home-hero .hero-controls button {
    display:grid;place-items:center;width:44px;height:44px;font-size:18px;
    background:transparent;color:inherit;border:0;
  }
  #hero-counter{font-size:.75rem;white-space:nowrap}
  body.landing-page[data-view=top] .site-header{background:var(--bg)!important}
  body.landing-page[data-view=top] #top{min-height:0}
  body.landing-page[data-view=top]{display:flex;flex-direction:column;min-height:100svh}
  body.landing-page[data-view=top] .site-footer{margin-top:auto;width:100%;box-sizing:border-box}
  #clients .clients-toolbar p,#team .team-heading p,#publications .publications-toolbar p{max-width:100%}
  body #about .about-section,body #about .about-copy,body #about .about-portrait,body #about .about-facts{min-width:0;grid-column:1!important}
  body #about.about-section,body #team .team-heading{grid-template-columns:minmax(0,1fr)!important}
  body #about .about-portrait{width:100%;max-width:440px;margin:0}
  #contact .contact-main,#contact .contact-details,.publication-copy,.team-member{min-width:0;overflow-wrap:break-word}
  #work .filters .filter{min-height:44px!important}
  body.story-page .story-cover img{width:100%;height:auto;min-height:0;max-height:70svh;object-fit:contain}
  .story-page .story-back{min-height:44px;display:inline-flex;align-items:center}
  .story-page .viewer-stage{grid-template-columns:44px minmax(0,1fr) 44px}
  .story-page .photo-viewer button{height:44px;width:44px}
  .site-header.menu-open .main-nav{max-height:calc(100svh - 78px);overflow-y:auto!important}
  .services-page{box-sizing:border-box;width:100%;overflow-wrap:break-word}
  .admin-page :is(input,select,textarea){min-width:0;max-width:100%;font-size:16px}
  .admin-page .admin-nav,.admin-page .editor-actions,.admin-page .story-actions,.admin-page .client-actions,.admin-page .card-actions{flex-wrap:wrap}
  .admin-page .admin-tab{min-height:44px}
  .admin-page :is(.manager-card,.client-manager-card,.text-grid,.settings-grid,.images-editor,.story-editor,.video-editor,.client-fields,.fields,.editor-section,.admin-panel,.admin-toolbar){min-width:0}
  .admin-page .small-note,.admin-page .status{overflow-wrap:anywhere}
}
@media(max-width:560px){
  .admin-page :is(.manager-card,.client-manager-card){grid-template-columns:minmax(0,1fr)}
  .admin-page :is(.manager-card,.client-manager-card)>*{grid-column:1/-1!important;min-width:0}
  .admin-page .text-grid,.admin-page .settings-grid,.admin-page .fields{grid-template-columns:minmax(0,1fr)}
  .admin-page .editor-section{max-width:100%;box-sizing:border-box}
  .admin-page .admin-nav{gap:4px 15px}
  .admin-page .editor-actions,.admin-page .story-actions{gap:6px}
  .story-page .story-gallery{grid-template-columns:minmax(0,1fr)}
  .story-page .story-photo,.story-page .story-photo.wide{aspect-ratio:auto}
  .story-page .story-photo img{width:100%;height:auto;max-height:76svh;object-fit:contain}
}
@media(max-width:800px), (max-height:500px) and (pointer:coarse){
  body.landing-page[data-view=top] #home-hero .hero-image{align-self:center}
}
