/* jp-maxwidth-20261201a
   JustPorn: cap the desktop layout at 1919px, same as Xvideos
   (#page { max-width: 1919px } from their min-width: 1440px stylesheet).

   Intentionally NOT copied from Xvideos:
   - the 1280px cap below 1440px
   - 80px body side padding from 1440px up
   JustPorn has a 260px fixed left sidebar, so those two rules would shrink
   normal 1280–1920 desktop layouts. The cap only matters on wider screens.

   Header (`header { position:fixed; width:100%; top:0 }`) and sidebar
   (`position:fixed`) are viewport-relative, so both must be pinned to the
   centered 1919px column. Footer and main content live inside .wrapper
   and inherit the cap. Mobile/tablet (<=1024px) is unchanged.

   Rollback: remove the <link> from include_footer_general.tpl (or restore
   the pre-deploy footer). This file can stay unused on the CDN.
*/

@media (min-width: 1920px) {
  .wrapper {
    width: 100%;
    max-width: 1919px;
    margin-left: auto;
    margin-right: auto;
  }

  .sidebar {
    left: max(0px, calc((100vw - 1919px) / 2));
  }

  header,
  header.header {
    left: max(0px, calc((100vw - 1919px) / 2));
    right: auto;
    width: 1919px;
    max-width: 1919px;
    box-sizing: border-box;
  }
}
