/* Store photography uses an uncropped square with a centered image. */
.wd-product .product-image-link,
.vl-product-image,
.single-product .wd-gallery-images .woocommerce-product-gallery__image > a,
.single-product .wd-gallery-images .woocommerce-product-gallery__image--placeholder > a {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #fbf8f7;
  border-radius: 8px;
}

.wd-product .product-image-link > :is(picture, img),
.vl-product-image > img,
.single-product .wd-gallery-images .woocommerce-product-gallery__image > a > img:not(.zoomImg),
.single-product .wd-gallery-images .woocommerce-product-gallery__image--placeholder > a > img:not(.zoomImg) {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
  object-position: center;
}

.wd-product .product-wrapper .product-element-top :is(.product-image-link, .hover-img) :is(picture, img),
.wd-product .hover-img {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: contain;
  object-position: center;
}

.wd-product .product-element-top:hover .hover-img,
.vl-product-card a:hover .vl-product-image img {
  transform: none;
}

.single-product .wd-gallery-thumb .wd-carousel-item > img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  object-position: center;
  border-radius: 6px;
  background: #fbf8f7;
}

.wd-product .product-element-bottom:has(> .vl-video-trigger--loop),
.vl-home-product-title {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 6px;
  align-items: start;
}

.wd-product .product-element-bottom:has(> .vl-video-trigger--loop) > * {
  grid-column: 1 / -1;
}

.wd-product .product-element-bottom:has(> .vl-video-trigger--loop) > .wd-entities-title,
.vl-home-product-title > .vl-product-name {
  grid-column: 1;
  grid-row: 1;
}

.wd-product .product-element-bottom > .vl-video-trigger--loop,
.vl-home-product-title > .vl-video-trigger--home {
  grid-column: 2;
  grid-row: 1;
}

.vl-video-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 38px;
  min-height: 38px;
  padding: 0 8px;
  border: 1px solid #e6dce0;
  border-radius: 999px;
  background: #fff;
  color: var(--vl-wine, #7a2947);
  line-height: 1;
}

html:not(.vl-product-media-ready) button.vl-video-trigger { display: none; }

.vl-video-trigger:hover,
.vl-video-trigger:focus-visible {
  background: var(--vl-wine, #7a2947);
  border-color: var(--vl-wine, #7a2947);
  color: #fff;
}

.vl-video-trigger--home { margin-top: 5px; }

.single-product .wd-gallery-images .wd-carousel-inner { position: relative; }

.vl-video-trigger--gallery {
  position: absolute;
  z-index: 5;
  inset-block-end: 13px;
  inset-inline-end: 13px;
  isolation: isolate;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 3px;
  width: clamp(62px, 8vw, 76px);
  aspect-ratio: 1 / 1;
  padding: 4px;
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 70%);
  border-radius: 8px;
  background: #302329;
  color: #fff;
  box-shadow: 0 3px 12px rgb(35 17 24 / 20%);
}

.vl-video-trigger--gallery > .vl-video-poster {
  position: absolute;
  z-index: -1;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  opacity: .43;
}

.vl-video-play {
  display: grid;
  place-items: center;
}

.vl-video-trigger--gallery > .vl-video-play {
  width: 29px;
  height: 29px;
  border: 1px solid rgb(255 255 255 / 75%);
  border-radius: 50%;
  background: rgb(28 16 23 / 70%);
}

.vl-video-label {
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  text-shadow: 0 1px 3px #231118;
}

.single-product .summary-inner .product_title {
  font-size: clamp(24px, 2.6vw, 36px);
  line-height: 1.18;
}

.single-product .summary-inner .single_add_to_cart_button {
  min-height: 48px;
  border-radius: 999px;
}

.wd-product .star-rating,
.wd-product .wd-star-rating,
.single-product .wd-star-rating,
.single-product .woocommerce-product-rating {
  display: none;
}

.vl-video-dialog:not([open]),
.vl-video-dialog [hidden] { display: none; }

.vl-video-dialog {
  width: min(600px, calc(100% - 24px));
  max-height: calc(100dvh - 24px);
  padding: 0;
  border: 1px solid #ede5e7;
  border-radius: 16px;
  background: #fff;
  color: var(--vl-ink, #222);
}

.vl-video-dialog::backdrop { background: rgb(18 10 14 / 67%); }
body:has(.vl-video-dialog[open]) { overflow: hidden; }

.vl-video-header,
.vl-video-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
}

.vl-video-header h2 { margin: 0; font-size: 17px; line-height: 1.25; }
.vl-video-header form { margin: 0; }

.vl-video-header button {
  min-width: 42px;
  min-height: 42px;
  padding: 0;
  border-radius: 999px;
  background: #f7f1f2;
  color: #342a2c;
  font-size: 24px;
}

.vl-video-dialog video {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-height: min(64dvh, 560px);
  background: #151315;
  object-fit: contain;
}

.vl-video-error { margin: 0; padding: 12px 16px; }

.vl-video-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 16px 0;
}

.vl-video-choices button {
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid #e6dce0;
  border-radius: 999px;
  background: #fff;
  color: #342a2c;
}

.vl-video-choices button[aria-pressed="true"],
.vl-video-cta {
  background: var(--vl-wine, #7a2947);
  border-color: var(--vl-wine, #7a2947);
  color: #fff;
}

.vl-video-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding-inline: 15px;
  border-radius: 999px;
  white-space: nowrap;
}

.vl-video-cta:hover { color: #fff; text-decoration: underline; }

@media (max-width: 767px) {
  .vl-video-trigger { min-height: 42px; min-width: 42px; }
  .vl-video-trigger--gallery {
    inset-block-end: 9px;
    inset-inline-end: 9px;
  }
}
