.product-gallery-zoom {
  cursor: zoom-in;
}

.product-gallery-zoom:focus-visible {
  outline: 3px solid #dff247;
  outline-offset: 4px;
}

.product-gallery-lightbox {
  width: min(1200px, calc(100vw - 32px));
  max-width: none;
  height: min(900px, calc(100dvh - 32px));
  max-height: none;
  padding: 0;
  border: 0;
  border-radius: 18px;
  background: #11191e;
  box-shadow: 0 24px 80px rgb(0 0 0 / 42%);
  overflow: hidden;
}

.product-gallery-lightbox::backdrop {
  background: rgb(8 13 16 / 86%);
  backdrop-filter: blur(6px);
}

.product-gallery-lightbox__figure {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 24px;
  display: grid;
  place-items: center;
  box-sizing: border-box;
}

.product-gallery-lightbox__image {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.product-gallery-lightbox__close {
  position: absolute;
  z-index: 2;
  top: 14px;
  right: 14px;
  width: 46px;
  height: 46px;
  border: 1px solid rgb(255 255 255 / 24%);
  border-radius: 50%;
  display: grid;
  place-items: center;
  padding: 0;
  background: rgb(17 25 30 / 86%);
  color: #fff;
  font: 400 32px/1 Arial, sans-serif;
  cursor: pointer;
}

.product-gallery-lightbox__close:hover {
  background: #dff247;
  color: #11191e;
}

.product-gallery-lightbox__close:focus-visible {
  outline: 3px solid #dff247;
  outline-offset: 3px;
}

body.product-gallery-lightbox-open {
  overflow: hidden;
}

@media (max-width: 640px) {
  .product-gallery-lightbox {
    width: calc(100vw - 16px);
    height: calc(100dvh - 16px);
    border-radius: 14px;
  }

  .product-gallery-lightbox__figure {
    padding: 58px 10px 12px;
  }

  .product-gallery-lightbox__close {
    top: 10px;
    right: 10px;
    width: 42px;
    height: 42px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .product-gallery-lightbox::backdrop {
    backdrop-filter: none;
  }
}
