/* JP 2_1_1 curtain BS5 v6 - mobile B1 400px swipe/recenter only.
   Frozen: desktop navbar/footer; mobile shell; B DOM/text/href/img src;
   v4 CTA style; shared mobile application submenu arrows; all image files. */

@media (max-width: 767.98px) {
  /* B1 visible viewport: 100% wide x 400px high. */
  body.jp-bs5-2-1-1-curtain-page > nav + .container-fluid {
    width: 100% !important;
    max-width: 100% !important;
    height: 400px !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    touch-action: pan-x pan-y;
  }

  body.jp-bs5-2-1-1-curtain-page > nav + .container-fluid::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
  }

  /* Let the original 1680x381 image keep its natural aspect ratio at 400px high.
     This creates horizontal travel while the visible B1 viewport remains 100% wide. */
  body.jp-bs5-2-1-1-curtain-page > nav + .container-fluid > .row,
  body.jp-bs5-2-1-1-curtain-page > nav + .container-fluid > .row > .col-xs-12,
  body.jp-bs5-2-1-1-curtain-page > nav + .container-fluid > .row > .col-sm-12,
  body.jp-bs5-2-1-1-curtain-page > nav + .container-fluid > .row > .col-xs-12 > .row,
  body.jp-bs5-2-1-1-curtain-page > nav + .container-fluid > .row > .col-sm-12 > .row {
    width: max-content !important;
    min-width: 100% !important;
    max-width: none !important;
    height: 400px !important;
    min-height: 400px !important;
    margin: 0 !important;
    padding: 0 !important;
    flex-wrap: nowrap !important;
  }

  body.jp-bs5-2-1-1-curtain-page > nav + .container-fluid img[src="img/2_1_1_01.jpg"] {
    display: block !important;
    width: auto !important;
    min-width: 100vw !important;
    max-width: none !important;
    height: 400px !important;
    min-height: 400px !important;
    object-fit: cover !important;
    object-position: center center !important;
    margin: 0 !important;
    padding: 0 !important;
    scroll-snap-align: center;
    scroll-snap-stop: always;
    user-select: none;
    -webkit-user-drag: none;
  }
}
