#content #product[data-va-gallery-layout][data-va-clothing] {
  --vg-height:clamp(515px,calc(100svh - 168px),990px);
  --vg-rail:clamp(54px,4.65vw,76px);
  --vg-gap:clamp(8px,.8vw,14px);
  --vg-edge:clamp(11px,1.15vw,21px);
  --vg-step:48px;
}
@media (min-width:992px) {
  body #content #product[data-va-gallery-layout][data-va-clothing] {
    grid-template-columns:minmax(0,1fr) clamp(346px,35.5%,548px)!important;
    column-gap:clamp(28px,3.3vw,58px)!important;
    max-width:1670px!important;
  }
}
#content #product[data-va-clothing] .image-block [data-va-host="native"][data-apparel-gallery] {
  position:relative!important;isolation:isolate;display:grid!important;
  grid-template-columns:var(--vg-rail) minmax(0,1fr)!important;
  grid-template-rows:var(--vg-height)!important;
  column-gap:var(--vg-gap)!important;row-gap:0!important;
  width:100%!important;min-width:0;min-height:0;padding:0!important;margin:0!important;
}
#content #product[data-va-clothing] .image-block [data-apparel-gallery] #image-box,
#content #product[data-va-clothing] .image-block [data-apparel-gallery]>.va-surface {
  grid-area:1/2!important;width:100%!important;height:var(--vg-height)!important;
  border-radius:8px!important;overflow:hidden!important;margin:0!important;
}
#content #product[data-va-clothing] .image-block [data-va-host="native"][data-apparel-gallery]>.va-surface {
  background:linear-gradient(90deg,var(--vg-paper-left,#dededc),var(--vg-paper-right,#d7d6d4))!important;
}
#content #product[data-va-clothing] .image-block [data-va-host="native"][data-apparel-gallery]>.va-surface>img.va-frame {
  position:absolute!important;display:block;inset:auto!important;
  top:var(--vg-top,0px)!important;left:var(--vg-left,0px)!important;
  width:var(--vg-image-width,100%)!important;height:var(--vg-image-height,100%)!important;
  min-width:0!important;min-height:0!important;max-width:none!important;max-height:none!important;
  object-fit:contain!important;object-position:center!important;border-radius:0!important;pointer-events:none!important;
}
#content #product[data-va-clothing] [data-apparel-gallery] .vg-rail {
  grid-area:1/1;align-self:start;position:relative;display:grid;grid-template-columns:minmax(0,1fr);
  grid-template-rows:repeat(var(--vg-frames),minmax(44px,1fr));gap:5px;
  width:100%;height:var(--vg-height);min-width:0;min-height:0;
  padding:0;margin:0;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;
  scrollbar-width:thin;scrollbar-color:#9ca8ac transparent;
}
#content #product[data-va-clothing] [data-apparel-gallery] .vg-thumb {
  display:grid;place-items:center;box-sizing:border-box;overflow:hidden;min-height:44px;min-width:0;
  width:100%;height:100%;position:relative;margin:0;padding:0;border:0;border-radius:4px;
  background:#e3e3e1;color:inherit;cursor:pointer;
}
#content #product[data-va-clothing] .image-block [data-apparel-gallery] .vg-rail .vg-thumb>img {
  display:block;width:100%!important;height:100%!important;min-width:0!important;min-height:0!important;
  max-width:none!important;max-height:none!important;object-fit:contain!important;object-position:center!important;
  margin:0!important;padding:0!important;border:0!important;border-radius:0!important;
}
#content #product[data-va-clothing] [data-apparel-gallery] .vg-thumb::after {
  content:"";position:absolute;inset:0;border:1px solid #10262c12;border-radius:inherit;pointer-events:none;
}
#content #product[data-va-clothing] [data-apparel-gallery] .vg-thumb[aria-current="true"]::after {
  border:2px solid #153843;box-shadow:inset 0 0 0 2px #fff;
}
#content #product[data-va-clothing] [data-apparel-gallery] .vg-thumb:hover::after,
#content #product[data-va-clothing] [data-apparel-gallery] .vg-thumb:focus-visible::after {
  border:2px solid #11647b;box-shadow:inset 0 0 0 2px #fff;
}
#content #product[data-va-clothing] .image-block [data-va-host="native"][data-apparel-gallery]>.va-controls {
  position:absolute!important;inset:0 0 0 calc(var(--vg-rail) + var(--vg-gap))!important;grid-area:auto!important;
  display:block!important;width:auto!important;height:var(--vg-height)!important;min-height:0!important;
  padding:0!important;margin:0!important;background:transparent!important;z-index:7;pointer-events:none;
}
#content #product[data-va-clothing] [data-apparel-gallery] .va-paging {display:contents!important}
#content #product[data-va-clothing] [data-apparel-gallery] .va-controls :is(.va-step,.va-all) {
  pointer-events:auto;color:#122c36;background:rgba(255,255,255,.96);border:1px solid #17374626;
  box-shadow:0 2px 9px #142c3614;
}
#content #product[data-va-clothing] [data-apparel-gallery] .va-controls .va-step {
  position:absolute;top:50%;transform:translateY(-50%);width:var(--vg-step);height:var(--vg-step);
  min-width:var(--vg-step);padding:0;border-radius:50%;
}
#content #product[data-va-clothing] [data-apparel-gallery] .va-controls .va-prev {left:var(--vg-edge)}
#content #product[data-va-clothing] [data-apparel-gallery] .va-controls .va-next {right:var(--vg-edge)}
#content #product[data-va-clothing] [data-apparel-gallery] .va-step::before {
  position:absolute;top:50%;left:50%;width:10px;height:10px;margin:-5px 0 0 -5px;
  border:solid currentColor;border-width:1.7px 1.7px 0 0;border-radius:0;
}
#content #product[data-va-clothing] [data-apparel-gallery] .va-prev::before {transform:translateX(-2.5px) rotate(-135deg)}
#content #product[data-va-clothing] [data-apparel-gallery] .va-next::before {transform:translateX(2.5px) rotate(45deg)}
#content #product[data-va-clothing] [data-apparel-gallery] .va-step::after {
  content:"";position:absolute;top:50%;left:50%;width:15px;height:1.7px;margin:-.85px 0 0 -7.5px;background:currentColor;
}
#content #product[data-va-clothing] [data-apparel-gallery] .va-count {
  position:absolute;left:var(--vg-edge);bottom:var(--vg-edge);min-width:0;min-height:28px;
  padding:5px 10px;border:0;border-radius:15px;background:#ffffffed;color:#16323b;font-size:13px;line-height:18px;
}
#content #product[data-va-clothing] [data-apparel-gallery] .va-all {
  position:absolute;right:var(--vg-edge);bottom:var(--vg-edge);min-height:34px;padding:5px 10px;
  border-radius:18px;font-size:13px;line-height:18px;
}
#content #product[data-va-clothing] [data-apparel-gallery] .va-controls button:is(:hover,:focus-visible) {background:white;border-color:#60858e}
#content #product[data-va-clothing] .image-block [data-apparel-gallery] .vj109-sale {
  position:absolute!important;left:calc(var(--vg-rail) + var(--vg-gap) + var(--vg-edge))!important;top:var(--vg-edge)!important;
}
#content #product[data-va-clothing] .image-block [data-apparel-gallery] .vj109-photo-tools {
  z-index:8!important;right:var(--vg-edge)!important;top:var(--vg-edge)!important;
}
@media (max-width:991px) {
  #content #product[data-va-gallery-layout][data-va-clothing] {
    --vg-height:clamp(368px,min(134vw,74svh),735px);
    --vg-rail:clamp(45px,8.8vw,63px);--vg-gap:6px;--vg-edge:8px;--vg-step:44px;
  }
  #content #product[data-va-clothing] [data-apparel-gallery] .vg-rail {gap:3px}
}
/* Leave the lower left corner clear for the storefront's floating chat button. */
@media (min-width:576px) and (max-width:1740px) {
  #content #product[data-va-clothing] [data-apparel-gallery] .vg-rail {
    height:min(var(--vg-height),max(200px,calc(100svh - 260px)));
    grid-template-rows:repeat(var(--vg-frames),minmax(42px,1fr));
  }
  #content #product[data-va-clothing] [data-apparel-gallery] .vg-thumb {min-height:42px}
}
@media (max-width:575px) {
  #content #product[data-va-clothing] [data-apparel-gallery] .vg-rail {
    height:min(var(--vg-height),max(180px,calc(100svh - 272px)));
    scrollbar-width:none;
  }
  #content #product[data-va-clothing] [data-apparel-gallery] .vg-rail::-webkit-scrollbar {display:none}
  #content #product[data-va-gallery-layout][data-va-clothing] .image-block .vx-gallery {
    width:calc(100% + 16px)!important;max-width:none!important;margin-left:-8px!important;margin-right:-8px!important;
  }
  #content #product[data-va-clothing] [data-apparel-gallery] .va-all {min-height:36px}
}
@media (prefers-reduced-motion:reduce) {
  #content #product[data-va-clothing] [data-apparel-gallery] * {scroll-behavior:auto!important}
}
#content #product[data-va-gallery-layout][data-va-clothing] .image-block [data-apparel-gallery]>.va-surface>img.va-frame,
#content #product[data-va-gallery-layout][data-va-clothing] .image-block :is(#vmp-gallery,#p219-gallery) .va-surface>img.va-frame {
  position:absolute!important;inset:0!important;display:block!important;width:100%!important;height:100%!important;
  min-width:0!important;min-height:0!important;max-width:100%!important;max-height:100%!important;
  object-fit:contain!important;object-position:center!important;margin:0!important;padding:0!important;pointer-events:none;
}
#content #product[data-va-clothing] .image-block [data-apparel-gallery]>.stickers-ns {
  position:absolute!important;left:calc(var(--vg-rail) + var(--vg-gap) + var(--vg-edge))!important;top:var(--vg-edge)!important;
}
#content #product[data-va-clothing] .image-block :is(#vmp-gallery,#p219-gallery) [data-apparel-gallery][data-va-host="custom"] {
  position:relative!important;isolation:isolate;display:grid!important;min-width:0!important;width:100%!important;
  grid-template-columns:var(--vg-rail) minmax(0,1fr)!important;grid-template-rows:var(--vg-height) auto!important;
  column-gap:var(--vg-gap)!important;row-gap:0!important;padding:0!important;margin:0!important;
}
#content #product[data-va-clothing] .image-block :is(#vmp-gallery,#p219-gallery) [data-apparel-gallery]>.vg-rail {grid-area:1/1!important;order:0}
#content #product[data-va-clothing] .image-block :is(#vmp-gallery,#p219-gallery) [data-apparel-gallery]>:is(.vmp-stage,.p219-stage) {
  position:relative!important;grid-area:1/2!important;width:100%!important;height:var(--vg-height)!important;border-radius:8px!important;
  min-width:0!important;min-height:0!important;overflow:hidden!important;
}
#content #product[data-va-clothing] .image-block :is(#vmp-gallery,#p219-gallery) [data-apparel-gallery] .va-surface {
  position:absolute!important;inset:0!important;overflow:hidden!important;background:var(--vg-paper-left,#f8f8f7)!important;border-radius:8px!important;
}
#content #product[data-va-clothing] .image-block :is(#vmp-gallery,#p219-gallery) [data-apparel-gallery]>.va-controls {
  grid-area:auto!important;position:absolute!important;inset:0 0 auto calc(var(--vg-rail) + var(--vg-gap))!important;
  display:block!important;width:auto!important;height:var(--vg-height)!important;min-height:0!important;z-index:7;pointer-events:none;background:transparent!important;
}
#content #product[data-va-clothing] :is(#vmp-gallery,#p219-gallery) [data-apparel-gallery]>:is(.vbf-fit-picker,.vmp-gallery-footer,.p219-gallery-footer) {grid-column:1/-1!important}
#content #product[data-va-clothing] :is(#vmp-gallery,#p219-gallery) [data-apparel-gallery] :is(.vmp-zoom,.p219-zoom) {visibility:hidden!important}
@media(max-width:575px) {
 #content #product[data-va-gallery-layout][data-va-clothing] .image-block :is(#vmp-gallery,#p219-gallery):has([data-apparel-gallery]) {
  width:calc(100% + 16px)!important;max-width:none!important;margin-left:-8px!important;margin-right:-8px!important;
 }
}
