@media (min-width: 769px) {

  .single-product .woocommerce-product-gallery.b2b-thumbs-scroll-ready {
    grid-template-columns: 90px 450px;
  }

  .b2b-gallery-thumbs-wrap {
    grid-column: 1;
    grid-row: 1;
    width: 90px !important;
    height: 450px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
    box-sizing: border-box;
  }

  .b2b-gallery-thumbs-scroll {
    width: 90px;
    max-height: 410px;
    overflow-y: auto;
    overflow-x: hidden;
    scroll-behavior: smooth;
    scrollbar-width: none;
    box-sizing: border-box;
  }

  .b2b-gallery-thumbs-scroll::-webkit-scrollbar {
    display: none;
  }

  .b2b-gallery-thumbs-scroll ol.flex-control-thumbs {
    width: 90px !important;
    max-width: 90px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 10px !important;
    margin: 0 auto !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    overflow: visible !important;
  }

  .b2b-gallery-thumbs-scroll ol.flex-control-thumbs li,
  .b2b-gallery-thumbs-scroll ol.flex-control-thumbs li:first-child {
    width: 80px !important;
    height: 80px !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
  }

  .b2b-thumbs-arrow {
    width: 80px;
    height: 18px;
    min-height: 18px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background: #fff;
    cursor: pointer;
    font-size: 13px;
    line-height: 14px;
    padding: 0;
    margin: 0 auto;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
  }

  .b2b-thumbs-arrow:hover {
    background: #f5f5f5;
  }

  .b2b-thumbs-arrow-up {
    margin-bottom: 4px;
  }

  .b2b-thumbs-arrow-down {
    margin-top: 4px;
  }

  .b2b-thumbs-arrow.is-disabled {
    opacity: 0.35;
    cursor: default;
    pointer-events: none;
  }

}

@media (max-width: 768px) {

  .b2b-gallery-thumbs-wrap,
  .b2b-gallery-thumbs-scroll {
    display: contents;
  }

  .b2b-thumbs-arrow {
    display: none;
  }

}