/* Let WooCommerce size each slide to the photograph's own proportions. */
.va-pdp__gallery .woocommerce-product-gallery__image {
  aspect-ratio: auto;
  background: transparent;
  border-radius: 8px;
}
.va-pdp__gallery .woocommerce-product-gallery__image > a {
  display: block;
  width: 100%;
}
.va-pdp__gallery .woocommerce-product-gallery__image img {
  display: block;
  width: 100%;
  height: auto !important;
  max-height: none !important;
  object-fit: contain !important;
}
.va-pdp__gallery .flex-direction-nav {
  margin: 0;
  padding: 0;
  list-style: none;
}
.va-pdp__gallery .flex-direction-nav a {
  position: absolute;
  top: min(50%, 42dvh) !important;
  z-index: 6;
  display: grid !important;
  place-items: center;
  width: 34px;
  height: 34px;
  margin: 0 !important;
  border: 1px solid rgba(47, 62, 61, .14);
  border-radius: 50%;
  background: rgba(255, 255, 255, .82);
  color: #344745;
  font-size: 0;
  text-indent: 0;
  overflow: hidden;
  opacity: 1 !important;
  transform: translateY(-50%);
  box-shadow: none;
  transition: background .2s ease, opacity .2s ease;
}
.va-pdp__gallery .flex-direction-nav a::before {
  content: "";
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  border: 0;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 18px 18px;
  transform: none;
  text-indent: 0;
}
.va-pdp__gallery .flex-direction-nav a::after { content: none !important; }
.va-pdp__gallery .flex-direction-nav .flex-prev { left: 10px !important; }
.va-pdp__gallery .flex-direction-nav .flex-next { right: 10px !important; }
.va-pdp__gallery .flex-direction-nav .flex-prev::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23344745' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 5l-7 7 7 7'/%3E%3C/svg%3E");
}
.va-pdp__gallery .flex-direction-nav .flex-next::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23344745' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 5l7 7-7 7'/%3E%3C/svg%3E");
}
.va-pdp__gallery .flex-direction-nav a:hover,
.va-pdp__gallery .flex-direction-nav a:focus-visible { background: rgba(255, 255, 255, .96); }
.va-pdp__gallery .flex-direction-nav a.flex-disabled {
  opacity: .35 !important;
  pointer-events: none;
}
.va-pdp__gallery { position: static; }
.va-pdp__gallery .woocommerce-product-gallery {
  width: min(calc(100% - 84px), 460px) !important;
  margin-left: 84px !important;
  overflow: visible;
}
.va-pdp__gallery .flex-control-nav.flex-control-thumbs,
.va-pdp__gallery .flex-control-thumbs {
  display: flex !important;
  flex-direction: column;
  gap: 8px;
  max-height: calc(100dvh - 112px);
  overflow-x: hidden;
  overflow-y: auto;
  margin: 0 !important;
  padding: 0 2px 2px;
  position: absolute;
  top: 0;
  left: -84px;
  width: 72px;
  scrollbar-width: thin;
}
.va-pdp__gallery .flex-control-thumbs li { flex: 0 0 66px; width: 66px !important; }
@media (max-width: 900px) {
  .va-pdp__gallery .woocommerce-product-gallery {
    display: flex;
    flex-direction: column;
    width: 100% !important;
    margin-left: 0 !important;
  }
  .va-pdp__gallery .flex-control-nav.flex-control-thumbs,
  .va-pdp__gallery .flex-control-thumbs {
    position: static;
    display: flex !important;
    flex-direction: row;
    order: -1;
    max-height: none;
    width: auto;
    overflow-x: auto;
    overflow-y: hidden;
    margin: 0 0 12px !important;
  }
}

.va-prot-detail .va-prot-media__stage { border: 0; background: transparent; }
.va-prot-detail .va-prot-media__photo img { width: 100%; height: 100%; max-width: none; object-fit: cover; }
.va-prot-detail .va-prot-media__slide--logo .va-prot-media__photo { aspect-ratio: 4/3; background: #fff; }
.va-prot-detail .va-prot-media__slide--logo .va-prot-media__photo img { width: 74%; height: 74%; max-width: 100%; object-fit: contain; }
.va-prot-detail .va-prot-media__thumb--logo img { object-fit: contain; background: #fff; }
.va-prot-media__thumbs button { flex-basis: 66px; width: 66px; height: 66px; }

.va-shop__sidebar {
  align-self: start;
  max-height: calc(100dvh - 160px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  padding-right: 8px;
}
@media (max-width: 900px) {
  .va-shop__sidebar { max-height: none; overflow: visible; padding-right: 0; }
}
