.product-gallery-controls { display: none; }

@media (width > 800px) {
  [data-gallery-current="false"] { display: none; }
}

@media (width <= 800px) {
  .layout-classic .detail-layout:has([data-mobile-gallery]),
  .rich-product-business:has([data-mobile-gallery]) {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
  [data-mobile-gallery] { min-width: 0; }
  [data-mobile-gallery] .sku-thumbnails { display: none; }
  .product-gallery-track {
    display: flex;
    align-items: flex-start;
    min-width: 0;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
  }
  .product-gallery-track > * {
    flex: 0 0 100%;
    min-width: 0;
    scroll-snap-align: start;
  }
  [data-mobile-gallery] .product-gallery-track figure { margin: 0; }
  [data-mobile-gallery] .sku-gallery-stage [data-media-slide] > figure {
    display: block;
    height: auto;
  }
  [data-mobile-gallery] .product-gallery-track figure > .image-original-link {
    display: block;
    height: clamp(240px, 75vw, 360px);
    background: #e5ece5;
  }
  [data-mobile-gallery] .product-gallery-track figure > .image-original-link > img {
    display: block;
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: contain;
  }
  [data-mobile-gallery] .product-gallery-track figcaption {
    padding: 8px 0;
    font-size: 13px;
    line-height: 1.45;
  }
  .product-gallery-controls:not([hidden]) {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
  }
  .product-gallery-controls button {
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 3px;
    background: var(--surface);
    color: var(--ink);
    font: 24px/1 var(--sans);
    cursor: pointer;
  }
  .product-gallery-controls button[aria-disabled="true"] { opacity: .45; cursor: default; }
  .product-gallery-controls output { font-size: 13px; font-variant-numeric: tabular-nums; }
}
