/* EC Match Slugs — product image lightbox, v1.0.23 */

/*
 * WooCommerce already opens the product image with PhotoSwipe. Keep that
 * proven interaction, but make it feel like a modal over the current product
 * page instead of an opaque full-screen destination.
 */
body.single-product .pswp {
  background: transparent !important;
}

body.single-product .pswp__bg {
  background: rgba(7, 9, 11, .58) !important;
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}

body.single-product .pswp__img {
  border-radius: 18px;
  box-shadow: 0 28px 90px rgba(0, 0, 0, .34);
}

body.single-product .pswp__top-bar {
  background: transparent !important;
}

body.single-product .pswp__button {
  border-radius: 999px;
  background-color: rgba(11, 13, 16, .78) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .22);
}

body.single-product .pswp__button:hover,
body.single-product .pswp__button:focus-visible {
  background-color: rgba(11, 13, 16, .94) !important;
}

body.single-product .pswp__counter {
  margin: 10px 0 0 10px;
  padding: .2rem .55rem;
  border-radius: 999px;
  background: rgba(11, 13, 16, .72);
  color: #fff;
}

@media (max-width: 720px) {
  body.single-product .pswp__bg {
    background: rgba(7, 9, 11, .64) !important;
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
  }

  body.single-product .pswp__img {
    border-radius: 12px;
  }
}

@media (prefers-reduced-transparency: reduce) {
  body.single-product .pswp__bg {
    background: rgba(7, 9, 11, .82) !important;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}
