@media (max-width: 750px) {
  #jp-collection .jp-mobile-case-panel,
  #jp-collection .jp-mobile-case-bar {
    display: none;
  }

  #jp-collection.jp-marque-enhanced.jp-case-mobile-ready .jp-mobile-case-panel {
    display: block;
    margin: 0 0 16px;
    text-align: left;
  }
  #jp-collection .jp-mobile-case-panel > h3 {
    margin: 0 0 10px;
    color: var(--jp-ink);
    font: inherit;
    font-size: 20px;
    font-weight: 600;
  }
  #jp-collection .jp-mobile-case-picture {
    position: relative;
    width: 100%;
  }
  #jp-collection.jp-marque-enhanced .jp-mobile-case-picture > .jpm-stage {
    align-items: flex-start;
    width: 100%;
    height: auto;
    padding: 0;
    gap: 6px;
  }
  #jp-collection.jp-marque-enhanced .jp-mobile-case-picture .jpm-stage > figure {
    flex: 1 1 0;
    width: auto;
    max-width: 100%;
    min-width: 0;
    margin: 0;
    text-align: left;
  }
  #jp-collection.jp-marque-enhanced .jp-mobile-case-picture .jpm-holder {
    box-sizing: content-box;
    width: min(74%, 248px);
    height: auto;
    aspect-ratio: 107 / 144;
    margin: 0 auto 10px;
  }
  /* Keep the native sprite and mark at their original relative positions. */
  #jp-collection .jp-mobile-case-picture figure {
    background: #fdfdf5;
  }
  #jp-collection .jp-mobile-case-picture .jpm-brand-name,
  #jp-collection.jp-marque-enhanced.jp-case-mobile-ready .jp-mobile-case-picture .jpm-stage figcaption {
    display: block;
    background: var(--jp-paper, white);
    text-align: left;
    white-space: normal;
    overflow-wrap: break-word;
    line-height: 1.4;
  }
  #jp-collection.jp-marque-enhanced .jp-mobile-case-picture .jpm-brand-name {
    padding-top: 8px;
    font-size: 18px;
    font-weight: 600;
  }
  #jp-collection.jp-marque-enhanced.jp-case-mobile-ready .jp-mobile-case-picture .jpm-stage figcaption,
  #jp-collection.jp-marque-enhanced .jp-mobile-case-picture .jpm-pending {
    font-size: 13px;
  }
  #jp-collection .jp-mobile-case-compare {
    display: inline-block;
    min-height: 44px;
    background: transparent;
    border: none;
    padding: 6px 0;
    font: inherit;
    font-size: 14px;
    color: var(--jp-terra, #b45535);
    text-decoration: underline;
    text-underline-offset: 3px;
  }
  #jp-collection .jp-mobile-case-loupe,
  #jp-collection.jp-marque-enhanced.jpm-docked.jp-case-mobile-ready:not(.jpm-capturing) .jp-mobile-case-bar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 44px;
    padding: 8px 12px;
    border: 1px solid var(--jp-line);
    border-radius: 999px;
    background: var(--jp-paper, white);
    color: var(--jp-ink);
    font: inherit;
    font-size: 14px;
  }
  #jp-collection .jp-mobile-case-loupe {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 44px;
    padding: 0;
    z-index: 1;
  }
  #jp-collection .jp-mobile-case-glass {
    display: inline-block;
    position: relative;
    width: 14px;
    height: 14px;
    border: 1.6px solid currentColor;
    border-radius: 50%;
    margin: -3px 3px 0 0;
    background: linear-gradient(currentColor, currentColor) center / 7px 1px no-repeat,
                linear-gradient(currentColor, currentColor) center / 1px 7px no-repeat;
  }
  #jp-collection .jp-mobile-case-glass::after {
    content: '';
    position: absolute;
    right: -5px;
    bottom: -3px;
    width: 7px;
    height: 1.6px;
    background: currentColor;
    transform: rotate(45deg);
  }
  #jp-collection .jp-mobile-case-panel button:focus-visible,
  #jp-collection .jp-mobile-case-bar:focus-visible {
    outline: 2px solid var(--jp-terra);
    outline-offset: 2px;
  }
  #jp-collection.jp-marque-enhanced.jp-case-mobile-ready:not(.jpm-capturing).jp-marque-selection:not(.jpm-docked) .jp-gallery {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    max-height: none;
    overflow: visible;
  }
  #jp-collection.jp-marque-enhanced.jp-case-mobile-ready:not(.jpm-capturing):not(.jpm-docked) #jp-main-photo .jpm-stage figure {
    width: min(72%, 248px);
  }
  #jp-collection.jp-marque-enhanced.jp-case-mobile-ready:not(.jpm-capturing):not(.jpm-docked) #jp-main-photo .jpm-compare figure {
    width: calc(50% - 5px);
  }
  #jp-collection.jp-marque-enhanced.jp-case-mobile-ready:not(.jpm-capturing).jp-marque-selection:not(.jpm-docked) .jpm-gallery-actions {
    order: 1;
    flex-direction: row;
    margin: 0;
  }
  #jp-collection.jp-marque-enhanced.jp-case-mobile-ready.jpm-docked:not(.jpm-capturing) .jp-gallery {
    grid-template-columns: 1fr;
    padding: 4px 0;
  }
  #jp-collection.jp-marque-enhanced.jp-case-mobile-ready.jpm-docked:not(.jpm-capturing) .jp-gallery > :is(.jp-main-photo, .jpm-gallery-actions) {
    display: none;
  }
  #jp-collection.jp-marque-enhanced.jp-case-mobile-ready.jpm-docked:not(.jpm-capturing) .jp-mobile-case-bar {
    grid-area: 1 / 1;
    display: grid;
    grid-template-columns: clamp(88px, min(42vw, 19vh), 164px) minmax(0, 1fr);
    width: 100%;
    gap: 14px;
    padding: 0 10px 0 0;
    border: 0;
    border-radius: 0;
    text-align: left;
  }
  #jp-collection .jp-mobile-case-bar .jp-mobile-case-thumb {
    display: block;
    width: 100%;
    margin: 0;
    aspect-ratio: 107 / 144;
  }
  #jp-collection .jp-mobile-case-summary {
    display: grid;
    align-content: center;
    justify-items: start;
    gap: 4px;
    min-width: 0;
    padding: 4px 0;
    line-height: 1.3;
    overflow-wrap: anywhere;
  }
  #jp-collection .jp-mobile-case-summary strong {
    font-size: 17px;
  }
  #jp-collection .jp-mobile-case-summary small {
    color: var(--jp-muted);
    font-size: 11px;
  }
  #jp-collection .jp-mobile-case-zoom-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 5px;
    color: var(--jp-terra, #b45535);
    font-size: 13px;
  }
  #jp-collection.jpm-keyboard .jp-mobile-case-bar {
    grid-template-columns: min(23vw, 82px) minmax(0, 1fr) !important;
  }
  #jp-collection.jp-marque-enhanced.jp-case-mobile-ready.jp-case-inline-visible.jpm-docked:not(.jpm-capturing) .jp-mobile-case-bar {
    display: none;
  }
  #jp-collection.jp-marque-enhanced.jp-case-mobile-ready.jp-case-inline-visible.jpm-docked:not(.jpm-capturing) .jp-gallery:has(#jp-keyring-preview[hidden]) {
    padding: 0;
    border: 0;
    box-shadow: none;
  }
  #jp-collection.jp-marque-enhanced.jp-case-mobile-ready .jpm-dialog[open] {
    inset: 0;
    margin: 0;
    width: 100%;
    max-width: none;
    height: 100%;
    height: 100dvh;
    max-height: none;
    box-sizing: border-box;
    border-radius: 0;
    padding: max(12px, env(safe-area-inset-top)) 12px max(12px, env(safe-area-inset-bottom));
  }
  #jp-collection.jp-marque-enhanced.jp-case-mobile-ready .jpm-dialog[open] .jpm-stage figure {
    width: var(--jpm-zoom-width, 80vw);
    max-width: none;
  }
}
