/* t1407: profession-page scenes keep the approved desktop composition at every
   desktop / tablet-landscape width, and scale to fit the visible viewport
   (below the sticky header). Phone (max-width:759px) stays on the approved 390 layout. */

@media (min-width:760px){
  #r14s#r14s .r14{
    height:calc(100svh - 64px);
    min-height:calc(100svh - 64px)!important;
    max-height:calc(100svh - 64px);
    box-sizing:border-box
  }
}

@media (min-width:760px){
  /* win over site-calm padding !important so the scene can fill exactly one view */
  main.x4m > section.r15-tr,
  .x4m .r15-tr{
    height:calc(100svh - 64px)!important;
    max-height:calc(100svh - 64px)!important;
    min-height:0;
    box-sizing:border-box;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:0!important;
    overflow:hidden;
    background:#f5f5f7
  }
  .x4m .r15-tr > .r15-in{
    --fit:min(1, (100vw - 40px) / 1180px, (100svh - 80px) / 900px);
    width:1180px;
    max-width:1180px;
    box-sizing:border-box;
    padding-inline:24px;
    zoom:var(--fit)
  }
}

@media (prefers-reduced-motion:reduce){
  .x4m .r15-cd{animation:none!important}
}

/* t1411: at 320px only, scale the whole Activity log to one screen.
   390 keeps the approved layout (this query is max-width:339px, same as prof-320.css).
   Reset the fan-only zoom so it does not compound with the section scale. */
@media (max-width:339px){
  .r15-tr .r15-fan{zoom:1}
  .x4m .r15-tr{
    height:100svh!important;
    max-height:100svh!important;
    min-height:0;
    box-sizing:border-box;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:8px 0!important;
    overflow:hidden
  }
  .x4m .r15-tr > .r15-in{
    --fit:min(1, (100svh - 16px) / 880px, 100vw / 320px);
    width:100%;
    box-sizing:border-box;
    zoom:var(--fit)
  }
}
