@media(min-width:901px){
  .storefront-v12.page-product .store-main,
  .storefront-v12 .product-page-v8,
  .storefront-v12 .product-v8-layout,
  .storefront-v12 .product-v8-visual-slot{
    overflow:visible!important;
  }

  .storefront-v12 .product-page-v8{
    margin-top:0!important;
    padding-top:0!important;
  }

  .storefront-v12 .product-v8-layout{
    position:relative!important;
    display:grid!important;
    grid-template-columns:minmax(0,1.16fr) minmax(430px,.84fr)!important;
    gap:8px!important;
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    align-items:stretch!important;
  }

  .storefront-v12 .product-v8-visual-slot{
    position:relative!important;
    min-width:0!important;
    height:100%!important;
    min-height:calc(100dvh - 92px)!important;
    align-self:stretch!important;
  }

  .storefront-v12 .product-v8-visual-sticky{
    --v47-sticky-top:84px;
    position:-webkit-sticky;
    position:sticky;
    top:var(--v47-sticky-top);
    left:auto;
    z-index:12;
    display:grid;
    grid-template-columns:clamp(138px,10vw,190px) minmax(0,1fr);
    gap:8px;
    width:100%;
    height:min(820px,calc(100dvh - var(--v47-sticky-top) - 8px));
    min-height:540px;
    max-height:820px;
    align-items:stretch;
  }

  .storefront-v12 .product-v8-visual-sticky.is-v47-fixed{
    position:fixed!important;
    top:var(--v47-fixed-top)!important;
    left:var(--v47-fixed-left)!important;
    width:var(--v47-fixed-width)!important;
    height:var(--v47-fixed-height)!important;
  }

  .storefront-v12 .product-v8-visual-sticky.is-v47-bottomed{
    position:absolute!important;
    top:var(--v47-bottom-top)!important;
    left:0!important;
    width:100%!important;
    height:var(--v47-fixed-height)!important;
  }

  .storefront-v12 .product-v8-visual-sticky .product-v8-story,
  .storefront-v12 .product-v8-visual-sticky .product-media-v12{
    position:relative!important;
    top:auto!important;
    left:auto!important;
    width:auto!important;
    height:100%!important;
    min-height:0!important;
    max-height:none!important;
    margin:0!important;
    align-self:stretch!important;
  }

  .storefront-v12 .product-v8-visual-sticky .product-media-v12{
    min-width:0!important;
  }

  .storefront-v12 .product-v8-visual-sticky .product-gallery,
  .storefront-v12 .product-v8-visual-sticky .product-gallery-slide{
    height:100%!important;
    min-height:0!important;
    max-height:none!important;
  }

  .storefront-v12 .product-buybox-v8{
    position:relative!important;
    top:auto!important;
    align-self:start!important;
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    margin:0!important;
    overflow:visible!important;
  }
}

@media(min-width:901px) and (max-width:1180px){
  .storefront-v12 .product-v8-layout{
    grid-template-columns:minmax(0,1.08fr) minmax(370px,.92fr)!important;
  }

  .storefront-v12 .product-v8-visual-sticky{
    grid-template-columns:minmax(0,1fr)!important;
  }

  .storefront-v12 .product-v8-visual-sticky .product-v8-story{
    display:none!important;
  }
}

@media(max-width:900px){
  .storefront-v12 .product-v8-visual-slot,
  .storefront-v12 .product-v8-visual-sticky{
    display:contents!important;
  }
}
