.block-product-image__layer-wrapper {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

@layer theme {
  .block-product-image__layer-wrapper * {
    pointer-events: auto;
  }
}
.block-product-image__layer-image-wrapper {
  position: relative;
  display: flex;
  width: 100%;
  padding: var(--padding);
  overflow: hidden;
}
.block-product-image__layer-image-wrapper > a {
  position: absolute;
  inset: 0;
  display: block;
}
.block-product-image__mobile-carousel {
  display: none;
}
@media (min-width: 960px) {
  .block-product-image__layer-image-wrapper.desktop-hover:hover
    .block-product-image__image:nth-of-type(1) {
    opacity: 0;
  }

  .block-product-image__layer-image-wrapper.desktop-hover:hover
    .block-product-image__image:nth-of-type(2) {
    opacity: 1;
  }
}
@media (max-width: 959px) {
  .block-product-image__layer-image-wrapper {
    padding: 0;
  }

  .block-product-image__layer-image-wrapper.mobile-hover:hover
    .block-product-image__image:nth-of-type(1) {
    opacity: 0;
  }

  .block-product-image__layer-image-wrapper.mobile-hover:hover
    .block-product-image__image:nth-of-type(2) {
    opacity: 1;
  }

  .block-product-image__desktop {
    display: none;
  }

  .block-product-image__mobile-carousel {
    display: block;
    width: 100%;
  }

  .block-product-image__mobile-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 100%;
  }

  .block-product-image__mobile-slide,
  .block-product-image__mobile-link,
  .block-product-image__mobile-placeholder {
    display: block;
    width: 100%;
  }

  .block-product-image__mobile-link,
  .block-product-image__mobile-placeholder {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: var(--mobile-media-aspect-ratio, var(--aspect-ratio));
    overflow: hidden;
    background-color: rgb(243 243 243 / 100%);
    border-radius: var(--border-radius);
  }

  .block-product-image__mobile-image,
  .block-product-image__mobile-image picture,
  .block-product-image__mobile-image img,
  .block-product-image__mobile-placeholder > svg {
    display: block;
    width: 100%;
    height: 100%;
  }

  .block-product-image__mobile-image {
    object-fit: contain;
  }

  .block-product-image__mobile-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
  }

  .block-product-image__mobile-pagination {
    margin-top: 12px;
    padding: 2px 0;
  }
}
.block-product-image__image-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  aspect-ratio: var(--aspect-ratio);
  overflow: hidden;
  pointer-events: none;
  background-color: rgb(243 243 243 / 100%);
  border-radius: var(--border-radius);
}
@layer theme {
  .block-product-image__image-wrapper * {
    pointer-events: auto;
  }
}
.block-product-image__image-wrapper > svg {
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.block-product-image__image-wrapper > .block-product-image__image {
  position: absolute;
  width: 100%;
  height: 100%;
  pointer-events: none;
  object-fit: var(--fit-type);
  transition: 1s;
}
.block-product-image__image-wrapper > .block-product-image__image * {
  pointer-events: all;
}
.block-product-image__image-wrapper
  > .block-product-image__image:nth-of-type(1) {
  opacity: 1;
}
.block-product-image__image-wrapper
  > .block-product-image__image:nth-of-type(2) {
  opacity: 0;
}
