.block-product-card__layer-image-wrapper {
  position: relative;
  display: flex;
  width: 100%;
  padding: var(--padding);
  overflow: hidden;
}

@media (min-width: 960px) {
  .block-product-card__layer-image-wrapper.desktop-hover:hover
    .block-product-card__image-wrapper
    > .block-product-card__image:nth-of-type(1) {
    opacity: 0;
  }

  .block-product-card__layer-image-wrapper.desktop-hover:hover
    .block-product-card__image-wrapper
    > .block-product-card__image:nth-of-type(2) {
    opacity: 1;
  }
}

@media (max-width: 959px) {
  .block-product-card__layer-image-wrapper.mobile-hover:hover
    .block-product-card__image-wrapper
    > .block-product-card__image:nth-of-type(1) {
    opacity: 0;
  }

  .block-product-card__layer-image-wrapper.mobile-hover:hover
    .block-product-card__image-wrapper
    > .block-product-card__image:nth-of-type(2) {
    opacity: 1;
  }
}

.block-product-card__image-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  aspect-ratio: var(--aspect-ratio);
  overflow: hidden;
  background-color: rgb(243 243 243 / 100%);
  border-radius: var(--border-radius);
  cursor: pointer;
}

.block-product-card__image-wrapper > svg {
  width: 100%;
  height: 100%;
}

.block-product-card__image-wrapper > .block-product-card__image {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: var(--fit-type);
  transition: opacity 1s;
}

.block-product-card__image-wrapper > .block-product-card__image:nth-of-type(1) {
  opacity: 1;
}

.block-product-card__image-wrapper > .block-product-card__image:nth-of-type(2) {
  opacity: 0;
}

.block-product-card__image-slot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.block-product-card__image-slot .block-product-card__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: var(--fit-type);
}

.block-product-card__image-slot > theme-video-media.block-product-card__video {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: auto;
}

.block-product-card__image-slot theme-video-media.block-product-card__video .theme-video-media {
  width: 100%;
  height: 100%;
  max-height: none !important;
  aspect-ratio: unset !important;
}

.block-product-card__image-slot .block-product-card__image--placeholder {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: var(--fit-type);
}

.block-product-card__image-slot theme-video-media.block-product-card__video .theme-video-media__poster {
  display: none;
}

.block-product-card__image-slot > theme-video-media.block-product-card__video--card-overlay .theme-video-media {
  background: transparent !important;
}

.block-product-card__image-slot > theme-video-media.block-product-card__video--card-overlay .theme-video-media__media {
  background-color: transparent !important;
}

.block-product-card__image-slot
  > theme-video-media.block-product-card__video--card-overlay
  .theme-video-media__media:not(.active) {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.block-product-card__image-slot
  > theme-video-media.block-product-card__video--card-overlay
  .theme-video-media__media.active {
  background-color: #000 !important;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.block-product-card__image-slot theme-video-media.block-product-card__video .theme-video-media__media,
.block-product-card__image-slot theme-video-media.block-product-card__video .theme-video-media__media video,
.block-product-card__image-slot theme-video-media.block-product-card__video .theme-video-media__media iframe {
  width: 100%;
  height: 100%;
  object-fit: var(--fit-type);
}

.block-product-card__layer-wrapper {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.block-product-card__layer-wrapper > * {
  pointer-events: auto;
}

.block-product-card__image-slot > theme-video-media.block-product-card__video.is-video-hidden {
  display: none !important;
  pointer-events: none !important;
}
