/* v5.1.61 — Arvutitark-style single product gallery
 * Large clean image frame, thumbnail strip underneath, JS-driven image swap,
 * and an in-page full-screen viewer. This intentionally does not rely on the
 * older .vlg-mobile-featured-image / hidden Woo gallery fallback stack.
 */
body.vlg-theme.single-product .vlg-at-product-gallery-card,
body.vlg-theme.single-product .vlg-product-gallery-card.vlg-at-product-gallery-card {
  position: relative !important;
  display: block !important;
  width: 100% !important;
  min-height: 0 !important;
  height: auto !important;
  padding: clamp(14px, 2vw, 24px) !important;
  border: 1px solid var(--vlg-line, #e8edf4) !important;
  border-radius: 22px !important;
  background: #fff !important;
  box-shadow: 0 18px 46px rgba(15, 23, 42, .07) !important;
  overflow: visible !important;
}

body.vlg-theme.single-product .vlg-at-product-gallery-card::before,
body.vlg-theme.single-product .vlg-at-product-gallery-card::after {
  display: none !important;
}

body.vlg-theme.single-product .vlg-at-product-gallery {
  display: grid !important;
  gap: 16px !important;
  width: 100% !important;
}

body.vlg-theme.single-product .vlg-at-gallery-main {
  position: relative !important;
  display: grid !important;
  place-items: center !important;
  width: 100% !important;
  min-height: clamp(360px, 42vw, 620px) !important;
  aspect-ratio: 1 / .72 !important;
  border-radius: 18px !important;
  background: #fff !important;
  overflow: hidden !important;
}

body.vlg-theme.single-product .vlg-at-gallery-open {
  appearance: none !important;
  -webkit-appearance: none !important;
  position: relative !important;
  display: grid !important;
  place-items: center !important;
  width: 100% !important;
  height: 100% !important;
  min-height: inherit !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  cursor: pointer !important;
  text-align: center !important;
}

body.vlg-theme.single-product .vlg-at-gallery-image-frame {
  display: grid !important;
  place-items: center !important;
  width: 100% !important;
  height: 100% !important;
  padding: clamp(8px, 1.6vw, 18px) !important;
}

body.vlg-theme.single-product .vlg-at-gallery-main-img,
body.vlg-theme.single-product .vlg-at-product-gallery img.vlg-at-gallery-main-img,
body.vlg-theme.single-product .vlg-at-gallery-image-frame img {
  display: block !important;
  width: auto !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: clamp(340px, 40vw, 600px) !important;
  object-fit: contain !important;
  object-position: center center !important;
  margin: auto !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
}

body.vlg-theme.single-product .vlg-at-gallery-zoom {
  position: absolute !important;
  right: 14px !important;
  bottom: 14px !important;
  display: grid !important;
  place-items: center !important;
  width: 42px !important;
  height: 42px !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, .92) !important;
  color: var(--vlg-text, #172033) !important;
  font-size: 20px !important;
  font-weight: 900 !important;
  box-shadow: 0 10px 28px rgba(15, 23, 42, .16) !important;
  opacity: 0 !important;
  transform: translateY(4px) !important;
  transition: opacity .16s ease, transform .16s ease !important;
  pointer-events: auto !important;
}

body.vlg-theme.single-product .vlg-at-gallery-open:hover .vlg-at-gallery-zoom,
body.vlg-theme.single-product .vlg-at-gallery-open:focus-visible .vlg-at-gallery-zoom {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

body.vlg-theme.single-product .vlg-at-gallery-nav {
  appearance: none !important;
  -webkit-appearance: none !important;
  position: absolute !important;
  top: 50% !important;
  z-index: 3 !important;
  display: grid !important;
  place-items: center !important;
  width: 42px !important;
  height: 42px !important;
  border: 1px solid var(--vlg-line, #e8edf4) !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, .96) !important;
  color: var(--vlg-text, #172033) !important;
  font-size: 28px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  cursor: pointer !important;
  box-shadow: 0 12px 28px rgba(15, 23, 42, .12) !important;
  transform: translateY(-50%) !important;
  transition: background-color .15s ease, color .15s ease, opacity .15s ease !important;
}

body.vlg-theme.single-product .vlg-at-gallery-nav--prev { left: 10px !important; }
body.vlg-theme.single-product .vlg-at-gallery-nav--next { right: 10px !important; }
body.vlg-theme.single-product .vlg-at-gallery-nav:hover {
  background: var(--vlg-primary, #f28a00) !important;
  color: #fff !important;
}
body.vlg-theme.single-product .vlg-at-gallery-nav:disabled {
  opacity: .32 !important;
  cursor: not-allowed !important;
  background: #fff !important;
  color: #94a3b8 !important;
}

body.vlg-theme.single-product .vlg-at-gallery-thumbs {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 2px 0 0 !important;
}

body.vlg-theme.single-product .vlg-at-gallery-thumb {
  appearance: none !important;
  -webkit-appearance: none !important;
  flex: 0 0 auto !important;
  display: grid !important;
  place-items: center !important;
  width: clamp(76px, 7.6vw, 118px) !important;
  height: clamp(76px, 7.6vw, 118px) !important;
  padding: 8px !important;
  border: 1px solid #dbe3ef !important;
  border-radius: 8px !important;
  background: #fff !important;
  cursor: pointer !important;
  box-shadow: none !important;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease !important;
}

body.vlg-theme.single-product .vlg-at-gallery-thumb:hover {
  border-color: #111827 !important;
  transform: translateY(-1px) !important;
}

body.vlg-theme.single-product .vlg-at-gallery-thumb.is-active,
body.vlg-theme.single-product .vlg-at-gallery-thumb[aria-current="true"] {
  border-color: #111827 !important;
  box-shadow: 0 0 0 1px #111827 inset !important;
}

body.vlg-theme.single-product .vlg-at-gallery-thumb img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  object-position: center center !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

body.vlg-theme .vlg-at-gallery-modal {
  position: fixed !important;
  inset: 0 !important;
  z-index: 100000 !important;
  display: none !important;
  align-items: center !important;
  justify-content: center !important;
  padding: clamp(12px, 2vw, 28px) !important;
  background: rgba(7, 18, 36, .92) !important;
}

body.vlg-theme .vlg-at-gallery-modal.is-open { display: flex !important; }

body.vlg-theme .vlg-at-gallery-modal__dialog {
  position: relative !important;
  display: grid !important;
  place-items: center !important;
  width: min(1180px, 96vw) !important;
  height: min(860px, 92vh) !important;
}

body.vlg-theme .vlg-at-gallery-modal__img {
  display: block !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  border-radius: 16px !important;
  background: #fff !important;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .32) !important;
}

body.vlg-theme .vlg-at-gallery-modal__close,
body.vlg-theme .vlg-at-gallery-modal__nav {
  appearance: none !important;
  -webkit-appearance: none !important;
  position: absolute !important;
  z-index: 2 !important;
  display: grid !important;
  place-items: center !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, .14) !important;
  color: #fff !important;
  cursor: pointer !important;
  backdrop-filter: blur(6px) !important;
}

body.vlg-theme .vlg-at-gallery-modal__close {
  top: 0 !important;
  right: 0 !important;
  width: 46px !important;
  height: 46px !important;
  font-size: 28px !important;
}

body.vlg-theme .vlg-at-gallery-modal__nav {
  top: 50% !important;
  width: 48px !important;
  height: 48px !important;
  font-size: 28px !important;
  font-weight: 900 !important;
  transform: translateY(-50%) !important;
}

body.vlg-theme .vlg-at-gallery-modal__nav--prev { left: 0 !important; }
body.vlg-theme .vlg-at-gallery-modal__nav--next { right: 0 !important; }
body.vlg-theme .vlg-at-gallery-modal__close:hover,
body.vlg-theme .vlg-at-gallery-modal__nav:hover { background: rgba(255, 255, 255, .28) !important; }
body.vlg-theme .vlg-at-gallery-modal__nav:disabled { opacity: .28 !important; cursor: not-allowed !important; }

body.vlg-theme .vlg-at-gallery-modal__counter {
  position: absolute !important;
  left: 50% !important;
  bottom: 0 !important;
  transform: translateX(-50%) !important;
  padding: 8px 12px !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, .14) !important;
  color: #fff !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  backdrop-filter: blur(6px) !important;
}

html.vlg-at-gallery-modal-open,
html.vlg-at-gallery-modal-open body { overflow: hidden !important; }

@media (max-width: 782px) {
  body.vlg-theme.single-product .vlg-at-product-gallery-card,
  body.vlg-theme.single-product .vlg-product-gallery-card.vlg-at-product-gallery-card {
    padding: 8px !important;
    border-radius: 18px !important;
    margin: 0 0 10px !important;
  }
  body.vlg-theme.single-product .vlg-at-product-gallery { gap: 10px !important; }
  body.vlg-theme.single-product .vlg-at-gallery-main {
    min-height: 230px !important;
    aspect-ratio: 1 / .78 !important;
    border-radius: 14px !important;
  }
  body.vlg-theme.single-product .vlg-at-gallery-image-frame { padding: 6px !important; }
  body.vlg-theme.single-product .vlg-at-gallery-main-img,
  body.vlg-theme.single-product .vlg-at-product-gallery img.vlg-at-gallery-main-img,
  body.vlg-theme.single-product .vlg-at-gallery-image-frame img {
    max-height: 260px !important;
  }
  body.vlg-theme.single-product .vlg-at-gallery-nav {
    width: 34px !important;
    height: 34px !important;
    font-size: 22px !important;
  }
  body.vlg-theme.single-product .vlg-at-gallery-nav--prev { left: 6px !important; }
  body.vlg-theme.single-product .vlg-at-gallery-nav--next { right: 6px !important; }
  body.vlg-theme.single-product .vlg-at-gallery-zoom {
    opacity: 1 !important;
    transform: none !important;
    right: 8px !important;
    bottom: 8px !important;
    width: 34px !important;
    height: 34px !important;
    font-size: 17px !important;
  }
  body.vlg-theme.single-product .vlg-at-gallery-thumbs {
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
    overflow-x: auto !important;
    padding: 4px 2px 6px !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
  }
  body.vlg-theme.single-product .vlg-at-gallery-thumbs::-webkit-scrollbar { display: none !important; }
  body.vlg-theme.single-product .vlg-at-gallery-thumb {
    width: 68px !important;
    height: 68px !important;
    padding: 5px !important;
    border-radius: 8px !important;
  }
  body.vlg-theme .vlg-at-gallery-modal__close {
    top: 6px !important;
    right: 6px !important;
  }
  body.vlg-theme .vlg-at-gallery-modal__nav--prev { left: 6px !important; }
  body.vlg-theme .vlg-at-gallery-modal__nav--next { right: 6px !important; }
}


/* v5.1.62 */
body.vlg-theme.single-product .vlg-at-gallery-open { cursor: pointer !important; }
body.vlg-theme.single-product .vlg-at-gallery-zoom { pointer-events: auto !important; cursor: zoom-in !important; }
body.vlg-theme.single-product .vlg-at-gallery-image-frame { cursor: pointer !important; }


/* v5.1.65 — Arvutitark-style product image lightbox: large image, arrows, bottom thumbnails. */
body.vlg-theme.single-product .vlg-at-gallery-open {
  cursor: zoom-in !important;
}
body.vlg-theme.single-product .vlg-at-gallery-image-frame {
  cursor: zoom-in !important;
}
body.vlg-theme .vlg-at-gallery-modal {
  background: rgba(248, 250, 252, .98) !important;
  backdrop-filter: blur(10px) !important;
  padding: clamp(10px, 2vw, 28px) !important;
}
body.vlg-theme .vlg-at-gallery-modal__dialog {
  width: min(1180px, 100%) !important;
  height: min(92dvh, 920px) !important;
  display: grid !important;
  grid-template-rows: minmax(0, 1fr) auto auto !important;
  align-items: center !important;
  gap: 12px !important;
  margin: auto !important;
  padding: clamp(12px, 2vw, 24px) !important;
  border: 1px solid rgba(226, 232, 240, .95) !important;
  border-radius: 28px !important;
  background: #fff !important;
  box-shadow: 0 24px 80px rgba(15, 23, 42, .22) !important;
}
body.vlg-theme .vlg-at-gallery-modal__stage {
  min-height: 0 !important;
  display: grid !important;
  place-items: center !important;
  width: 100% !important;
  height: 100% !important;
}
body.vlg-theme .vlg-at-gallery-modal__img {
  max-width: 100% !important;
  max-height: calc(92dvh - 190px) !important;
  object-fit: contain !important;
  border-radius: 0 !important;
  background: #fff !important;
}
body.vlg-theme .vlg-at-gallery-modal__close {
  top: clamp(12px, 2vw, 28px) !important;
  right: clamp(12px, 2vw, 28px) !important;
  background: #fff !important;
  color: #0f172a !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 12px 28px rgba(15, 23, 42, .16) !important;
}
body.vlg-theme .vlg-at-gallery-modal__nav {
  width: 54px !important;
  height: 54px !important;
  background: #fff !important;
  color: #0f172a !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 14px 32px rgba(15, 23, 42, .16) !important;
}
body.vlg-theme .vlg-at-gallery-modal__nav--prev { left: clamp(10px, 2vw, 26px) !important; }
body.vlg-theme .vlg-at-gallery-modal__nav--next { right: clamp(10px, 2vw, 26px) !important; }
body.vlg-theme .vlg-at-gallery-modal__counter {
  position: static !important;
  justify-self: center !important;
  color: #334155 !important;
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
}
body.vlg-theme .vlg-at-gallery-modal__thumbs {
  display: flex !important;
  gap: 10px !important;
  max-width: 100% !important;
  overflow-x: auto !important;
  padding: 4px 4px 2px !important;
  justify-content: center !important;
  scrollbar-width: thin !important;
}
body.vlg-theme .vlg-at-gallery-modal__thumb {
  appearance: none !important;
  -webkit-appearance: none !important;
  flex: 0 0 76px !important;
  width: 76px !important;
  height: 76px !important;
  display: grid !important;
  place-items: center !important;
  padding: 6px !important;
  border: 1px solid #d8e1ee !important;
  border-radius: 12px !important;
  background: #fff !important;
  cursor: pointer !important;
}
body.vlg-theme .vlg-at-gallery-modal__thumb.is-active {
  border-color: #0f172a !important;
  box-shadow: 0 0 0 2px rgba(15, 23, 42, .12) !important;
}
body.vlg-theme .vlg-at-gallery-modal__thumb img {
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
}
@media (max-width: 782px) {
  body.vlg-theme .vlg-at-gallery-modal { padding: 8px !important; }
  body.vlg-theme .vlg-at-gallery-modal__dialog {
    height: calc(100dvh - 16px) !important;
    border-radius: 20px !important;
    padding: 12px !important;
  }
  body.vlg-theme .vlg-at-gallery-modal__img { max-height: calc(100dvh - 180px) !important; }
  body.vlg-theme .vlg-at-gallery-modal__nav { width: 44px !important; height: 44px !important; }
  body.vlg-theme .vlg-at-gallery-modal__thumb { flex-basis: 64px !important; width: 64px !important; height: 64px !important; }
}

/* v5.1.66 — robust Arvutitark-style full-screen product image viewer.
   This intentionally overrides older modal/card and mobile plugin lightboxes. */
html.vlg-at-gallery-modal-open,
html.vlg-at-gallery-modal-open body {
  overflow: hidden !important;
  overscroll-behavior: none !important;
}
body.vlg-theme .vlg-at-gallery-modal,
body .vlg-at-gallery-modal {
  position: fixed !important;
  inset: 0 !important;
  z-index: 2147483000 !important;
  display: none !important;
  align-items: stretch !important;
  justify-content: stretch !important;
  width: 100vw !important;
  height: 100dvh !important;
  padding: 0 !important;
  margin: 0 !important;
  background: rgba(255,255,255,.985) !important;
  color: #0f172a !important;
  backdrop-filter: blur(8px) !important;
}
body.vlg-theme .vlg-at-gallery-modal.is-open,
body .vlg-at-gallery-modal.is-open {
  display: flex !important;
}
body.vlg-theme .vlg-at-gallery-modal__dialog,
body .vlg-at-gallery-modal__dialog {
  position: relative !important;
  display: grid !important;
  grid-template-rows: minmax(0, 1fr) auto !important;
  width: 100vw !important;
  height: 100dvh !important;
  max-width: none !important;
  max-height: none !important;
  margin: 0 !important;
  padding: clamp(12px, 2vw, 26px) clamp(12px, 4vw, 56px) calc(14px + env(safe-area-inset-bottom)) !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  gap: 12px !important;
  overflow: hidden !important;
}
body.vlg-theme .vlg-at-gallery-modal__stage,
body .vlg-at-gallery-modal__stage {
  display: grid !important;
  place-items: center !important;
  min-width: 0 !important;
  min-height: 0 !important;
  width: 100% !important;
  height: 100% !important;
  padding: clamp(42px, 6vh, 72px) clamp(0px, 6vw, 74px) 4px !important;
}
body.vlg-theme .vlg-at-gallery-modal__img,
body .vlg-at-gallery-modal__img {
  display: block !important;
  width: auto !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: calc(100dvh - 170px - env(safe-area-inset-bottom)) !important;
  object-fit: contain !important;
  object-position: center center !important;
  margin: auto !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
body.vlg-theme .vlg-at-gallery-modal__close,
body.vlg-theme .vlg-at-gallery-modal__nav,
body .vlg-at-gallery-modal__close,
body .vlg-at-gallery-modal__nav {
  appearance: none !important;
  -webkit-appearance: none !important;
  position: absolute !important;
  z-index: 4 !important;
  display: grid !important;
  place-items: center !important;
  border: 1px solid rgba(226,232,240,.95) !important;
  background: rgba(255,255,255,.94) !important;
  color: #0f172a !important;
  box-shadow: 0 14px 40px rgba(15,23,42,.13) !important;
  cursor: pointer !important;
}
body.vlg-theme .vlg-at-gallery-modal__close,
body .vlg-at-gallery-modal__close {
  top: calc(16px + env(safe-area-inset-top)) !important;
  right: clamp(14px, 3vw, 34px) !important;
  width: 46px !important;
  height: 46px !important;
  border-radius: 999px !important;
  font-size: 32px !important;
  line-height: 1 !important;
  font-weight: 500 !important;
}
body.vlg-theme .vlg-at-gallery-modal__nav,
body .vlg-at-gallery-modal__nav {
  top: 50% !important;
  width: 56px !important;
  height: 56px !important;
  border-radius: 999px !important;
  font-size: 42px !important;
  line-height: 1 !important;
  transform: translateY(-50%) !important;
}
body.vlg-theme .vlg-at-gallery-modal__nav--prev,
body .vlg-at-gallery-modal__nav--prev { left: clamp(10px, 2vw, 30px) !important; }
body.vlg-theme .vlg-at-gallery-modal__nav--next,
body .vlg-at-gallery-modal__nav--next { right: clamp(10px, 2vw, 30px) !important; }
body.vlg-theme .vlg-at-gallery-modal__close:hover,
body.vlg-theme .vlg-at-gallery-modal__nav:hover,
body .vlg-at-gallery-modal__close:hover,
body .vlg-at-gallery-modal__nav:hover {
  background: #fff !important;
  box-shadow: 0 18px 46px rgba(15,23,42,.18) !important;
}
body.vlg-theme .vlg-at-gallery-modal__nav:disabled,
body .vlg-at-gallery-modal__nav:disabled {
  opacity: .22 !important;
  cursor: default !important;
}
body.vlg-theme .vlg-at-gallery-modal__counter,
body .vlg-at-gallery-modal__counter {
  position: absolute !important;
  top: calc(18px + env(safe-area-inset-top)) !important;
  left: clamp(14px, 3vw, 34px) !important;
  z-index: 4 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 38px !important;
  padding: 0 14px !important;
  border: 1px solid rgba(226,232,240,.95) !important;
  border-radius: 999px !important;
  background: rgba(255,255,255,.94) !important;
  color: #334155 !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  box-shadow: 0 10px 28px rgba(15,23,42,.10) !important;
}
body.vlg-theme .vlg-at-gallery-modal__thumbs,
body .vlg-at-gallery-modal__thumbs {
  display: flex !important;
  justify-content: center !important;
  gap: 10px !important;
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  padding: 8px 8px 4px !important;
  margin: 0 auto !important;
  scrollbar-width: thin !important;
  -webkit-overflow-scrolling: touch !important;
}
body.vlg-theme .vlg-at-gallery-modal__thumb,
body .vlg-at-gallery-modal__thumb {
  appearance: none !important;
  -webkit-appearance: none !important;
  flex: 0 0 82px !important;
  width: 82px !important;
  height: 82px !important;
  display: grid !important;
  place-items: center !important;
  padding: 6px !important;
  border: 1px solid #d8e1ee !important;
  border-radius: 12px !important;
  background: #fff !important;
  cursor: pointer !important;
  box-shadow: 0 8px 20px rgba(15,23,42,.06) !important;
}
body.vlg-theme .vlg-at-gallery-modal__thumb.is-active,
body.vlg-theme .vlg-at-gallery-modal__thumb[aria-current="true"],
body .vlg-at-gallery-modal__thumb.is-active,
body .vlg-at-gallery-modal__thumb[aria-current="true"] {
  border-color: #0f172a !important;
  box-shadow: 0 0 0 2px rgba(15,23,42,.13), 0 8px 20px rgba(15,23,42,.08) !important;
}
body.vlg-theme .vlg-at-gallery-modal__thumb img,
body .vlg-at-gallery-modal__thumb img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center !important;
}
@media (max-width: 782px) {
  body.vlg-theme .vlg-at-gallery-modal__dialog,
  body .vlg-at-gallery-modal__dialog {
    padding: 10px 10px calc(10px + env(safe-area-inset-bottom)) !important;
    gap: 8px !important;
  }
  body.vlg-theme .vlg-at-gallery-modal__stage,
  body .vlg-at-gallery-modal__stage {
    padding: 56px 44px 0 !important;
  }
  body.vlg-theme .vlg-at-gallery-modal__img,
  body .vlg-at-gallery-modal__img {
    max-height: calc(100dvh - 154px - env(safe-area-inset-bottom)) !important;
  }
  body.vlg-theme .vlg-at-gallery-modal__nav,
  body .vlg-at-gallery-modal__nav {
    width: 42px !important;
    height: 42px !important;
    font-size: 32px !important;
  }
  body.vlg-theme .vlg-at-gallery-modal__nav--prev,
  body .vlg-at-gallery-modal__nav--prev { left: 8px !important; }
  body.vlg-theme .vlg-at-gallery-modal__nav--next,
  body .vlg-at-gallery-modal__nav--next { right: 8px !important; }
  body.vlg-theme .vlg-at-gallery-modal__close,
  body .vlg-at-gallery-modal__close {
    width: 42px !important;
    height: 42px !important;
    right: 10px !important;
    font-size: 30px !important;
  }
  body.vlg-theme .vlg-at-gallery-modal__counter,
  body .vlg-at-gallery-modal__counter {
    top: calc(14px + env(safe-area-inset-top)) !important;
    left: 10px !important;
    min-height: 34px !important;
    padding: 0 10px !important;
  }
  body.vlg-theme .vlg-at-gallery-modal__thumb,
  body .vlg-at-gallery-modal__thumb {
    flex-basis: 64px !important;
    width: 64px !important;
    height: 64px !important;
    border-radius: 10px !important;
  }
}

/* v5.1.77 — main product image changes image in the same gallery; zoom button opens large view. */
body.vlg-theme.single-product .vlg-at-gallery-open,
body.vlg-theme.single-product .vlg-at-gallery-image-frame {
  cursor: pointer !important;
}
body.vlg-theme.single-product .vlg-at-gallery-zoom {
  appearance: none !important;
  -webkit-appearance: none !important;
  border: 0 !important;
  outline: 0 !important;
  opacity: 1 !important;
  transform: translateY(0) !important;
  cursor: zoom-in !important;
  z-index: 5 !important;
}
body.vlg-theme.single-product .vlg-at-gallery-zoom:hover,
body.vlg-theme.single-product .vlg-at-gallery-zoom:focus-visible {
  transform: translateY(-1px) scale(1.03) !important;
}
