.webx-woo-gallery{
  --webx-gap: 14px;
  --webx-radius: 12px;
  --webx-border: #e3e3e3;
  --webx-overlay: #BFDDCA;
  position: relative;
}

.webx-woo-gallery button{
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  background: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
}

.webx-woo-gallery__main-wrap{
  position: relative;
  margin-bottom: var(--webx-gap);
}

.webx-woo-gallery__main{
  border: 1px solid var(--webx-border);
  border-radius: var(--webx-radius);
  overflow: hidden;
  background: #fff;
}

.webx-woo-gallery__main-img{
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: #fff;
  cursor: zoom-in;
}

.webx-woo-gallery__grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--webx-gap);
}

.webx-woo-gallery__thumb-card{
  display: block;
  width: 100%;
  border: 1px solid var(--webx-border) !important;
  border-radius: var(--webx-radius);
  overflow: hidden;
  background: #fff !important;
  transition: border-color .2s ease, transform .2s ease;
}

.webx-woo-gallery__thumb-card img{
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.webx-woo-gallery__thumb-card:hover,
.webx-woo-gallery__thumb-card.is-active{
  border-color: #111 !important;
}

.webx-woo-gallery__mobile-strip-wrap{
  display: none;
  align-items: center;
  gap: 8px;
}

.webx-woo-gallery__mobile-strip{
  overflow: hidden;
  width: 100%;
}

.webx-woo-gallery__mobile-track{
  display: flex;
  gap: 10px;
  transition: transform .25s ease;
  will-change: transform;
}

.webx-woo-gallery__mobile-thumb{
  flex: 0 0 82px;
  width: 82px;
  border: 2px solid transparent !important;
  border-radius: 10px;
  overflow: hidden;
  background: #fff !important;
}

.webx-woo-gallery__mobile-thumb img{
  display: block;
  width: 100%;
  height: 82px;
  object-fit: cover;
}

.webx-woo-gallery__mobile-thumb.is-active{
  border-color: #111 !important;
}

.webx-woo-gallery__nav{
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  border-radius: 999px !important;
  background: #fff !important;
  border: 1px solid var(--webx-border) !important;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #111;
}

.webx-woo-gallery__nav:disabled{
  opacity: .35;
  cursor: not-allowed;
}

.webx-woo-gallery__lightbox{
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: none;
  align-items: center;
  justify-content: center;
  background: var(--webx-overlay);
}

.webx-woo-gallery__lightbox.is-open{
  display: flex;
}

.webx-woo-gallery__lightbox-stage{
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  touch-action: pan-y;
}

.webx-woo-gallery__lightbox-drag{
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: grab;
  user-select: none;
}

.webx-woo-gallery__lightbox-drag.is-dragging,
.webx-woo-gallery__lightbox-drag.is-dragging .webx-woo-gallery__lightbox-img{
  cursor: grabbing;
}

.webx-woo-gallery__lightbox-img{
  max-width: 90vw;
  max-height: 84vh;
  object-fit: contain;
  transform: translateX(0);
  transition: transform .22s ease;
  user-select: none;
  -webkit-user-drag: none;
  user-drag: none;
  cursor: grab;
}

.webx-woo-gallery__lightbox-btn{
  position: absolute;
  z-index: 3;
  width: 52px;
  height: 52px;
  border-radius: 999px !important;
  background: rgba(255,255,255,.72) !important;
  border: 1px solid rgba(0,0,0,.12) !important;
  color: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.webx-woo-gallery__lightbox-close{
  position: absolute;
  z-index: 4;
  top: 20px;
  right: 20px;
  font-size: 38px;
  color: #111;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  width: auto;
  height: auto;
  line-height: 1;
  padding: 0;
}

.webx-woo-gallery__lightbox-prev,
.webx-woo-gallery__lightbox-next{
  top: 50%;
  transform: translateY(-50%);
}

.webx-woo-gallery__lightbox-prev{ left: 16px; }
.webx-woo-gallery__lightbox-next{ right: 16px; }

.webx-woo-gallery__lightbox-dots{
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 22px;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.webx-woo-gallery__lightbox-dot{
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.85);
  border: 1px solid rgba(0,0,0,.2);
}

.webx-woo-gallery__lightbox-dot.is-active{
  background: #111;
  border-color: #111;
}

@media (hover:hover){
  .webx-woo-gallery__lightbox-btn:hover,
  .webx-woo-gallery__nav:hover{
    filter: brightness(.96);
  }
}

@media (max-width: 1023px){
  .webx-woo-gallery__grid{
    display: none;
  }

  .webx-woo-gallery__mobile-strip-wrap{
    display: flex;
  }

  .webx-woo-gallery__main-wrap{
    margin-bottom: 10px;
  }

  .webx-woo-gallery__lightbox-img{
    max-width: 94vw;
    max-height: 78vh;
  }

  .webx-woo-gallery__lightbox-prev,
  .webx-woo-gallery__lightbox-next{
    width: 46px;
    height: 46px;
  }
}
