/* Sarang product gallery thumbnails left */
.woocommerce .wp-block-woocommerce-product-image-gallery{
   max-width: 100%; 
}

@media (min-width: 768px) {
  .single-product .woocommerce-product-gallery,
  .single-product div.product .woocommerce-product-gallery,
  .single-product .wp-block-woocommerce-product-image-gallery .woocommerce-product-gallery {
    display: block;
  }

  .single-product .woocommerce-product-gallery:has(.flex-control-thumbs),
  .single-product div.product .woocommerce-product-gallery:has(.flex-control-thumbs),
  .single-product .wp-block-woocommerce-product-image-gallery .woocommerce-product-gallery:has(.flex-control-thumbs) {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    column-gap: 18px;
    align-items: start;
  }

  .single-product .woocommerce-product-gallery:has(.flex-control-thumbs) .flex-viewport,
  .single-product div.product .woocommerce-product-gallery:has(.flex-control-thumbs) .flex-viewport,
  .single-product .wp-block-woocommerce-product-image-gallery .woocommerce-product-gallery:has(.flex-control-thumbs) .flex-viewport {
    grid-column: 2;
    grid-row: 1;
    width: 100%;
    margin: 0;
  }

  .single-product .woocommerce-product-gallery:has(.flex-control-thumbs) .flex-control-thumbs,
  .single-product div.product .woocommerce-product-gallery:has(.flex-control-thumbs) .flex-control-thumbs,
  .single-product .wp-block-woocommerce-product-image-gallery .woocommerce-product-gallery:has(.flex-control-thumbs) .flex-control-thumbs {
    grid-column: 1;
    grid-row: 1;
    width: 92px;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    list-style: none;
  }

  .single-product .woocommerce-product-gallery:has(.flex-control-thumbs) .flex-control-thumbs li,
  .single-product div.product .woocommerce-product-gallery:has(.flex-control-thumbs) .flex-control-thumbs li,
  .single-product .wp-block-woocommerce-product-image-gallery .woocommerce-product-gallery:has(.flex-control-thumbs) .flex-control-thumbs li {
    width: 92px;
    float: none;
    margin: 0;
    padding: 0;
  }

  .single-product .woocommerce-product-gallery:has(.flex-control-thumbs) .flex-control-thumbs img,
  .single-product div.product .woocommerce-product-gallery:has(.flex-control-thumbs) .flex-control-thumbs img,
  .single-product .wp-block-woocommerce-product-image-gallery .woocommerce-product-gallery:has(.flex-control-thumbs) .flex-control-thumbs img {
    display: block;
    width: 92px !important;
    max-width: 92px;
    height: 92px !important;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border: 1px solid rgba(17, 17, 17, 0.16);
    border-radius: 12px;
    background: #f7f7f7;
    opacity: 1;
  }

  .single-product .woocommerce-product-gallery:has(.flex-control-thumbs) .flex-control-thumbs img.flex-active,
  .single-product div.product .woocommerce-product-gallery:has(.flex-control-thumbs) .flex-control-thumbs img.flex-active,
  .single-product .wp-block-woocommerce-product-image-gallery .woocommerce-product-gallery:has(.flex-control-thumbs) .flex-control-thumbs img.flex-active {
    border-color: #111111;
  }
}
@media (max-width: 767px) {
  .single-product .woocommerce-product-gallery,
  .single-product div.product .woocommerce-product-gallery,
  .single-product .wp-block-woocommerce-product-image-gallery .woocommerce-product-gallery {
    display: block;
  }
  .single-product .woocommerce-product-gallery .flex-control-thumbs,
  .single-product div.product .woocommerce-product-gallery .flex-control-thumbs,
  .single-product .wp-block-woocommerce-product-image-gallery .woocommerce-product-gallery .flex-control-thumbs {
    width: 100%;
    margin: 12px 0 0;
    padding: 0;
    display: flex;
    flex-direction: row;
    gap: 10px;
    overflow-x: auto;
    list-style: none;
  }
  .single-product .woocommerce-product-gallery .flex-control-thumbs li,
  .single-product div.product .woocommerce-product-gallery .flex-control-thumbs li,
  .single-product .wp-block-woocommerce-product-image-gallery .woocommerce-product-gallery .flex-control-thumbs li {
    flex: 0 0 72px;
    width: 72px;
    float: none;
    margin: 0;
  }
  .single-product .woocommerce-product-gallery .flex-control-thumbs img,
  .single-product div.product .woocommerce-product-gallery .flex-control-thumbs img,
  .single-product .wp-block-woocommerce-product-image-gallery .woocommerce-product-gallery .flex-control-thumbs img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border: 1px solid rgba(17, 17, 17, 0.16);
    border-radius: 10px;
  }
}
