body.page-product .pdp-gallery-stage {
  cursor: default;
}

body.page-product .pdp-gallery-zoom-hint {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 3;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: #231f1c;
  box-shadow: 0 12px 30px rgba(31, 24, 19, 0.14);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  pointer-events: none;
  backdrop-filter: blur(10px);
}

body.pdp-photo-modal-open {
  overflow: hidden;
}

.pdp-photo-modal[hidden] {
  display: none !important;
}

.pdp-photo-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 28px 18px;
  background: rgba(0, 0, 0, 0.64);
}

.pdp-photo-modal__image {
  display: block;
  width: auto !important;
  height: auto !important;
  max-width: min(82vw, 760px) !important;
  max-height: calc(100vh - 56px) !important;
  object-fit: contain;
  background: #f5f0eb;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

.pdp-photo-modal__close {
  position: fixed;
  top: 28px;
  left: calc(50% + min(41vw, 380px) - 24px);
  z-index: 2;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 0;
  background: rgba(255, 255, 255, 0.62);
  color: #000;
  cursor: pointer;
  font: inherit;
  font-size: 1.35rem;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.pdp-photo-modal__close:hover,
.pdp-photo-modal__close:focus-visible {
  background: #fff;
  outline: 2px solid rgba(0, 0, 0, 0.38);
  outline-offset: 0;
}

.pdp-photo-modal__nav {
  position: fixed;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 54px;
  border: 0;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 3rem;
  line-height: 1;
  transform: translateY(-50%);
}

.pdp-photo-modal__nav:hover,
.pdp-photo-modal__nav:focus-visible {
  background: rgba(255, 255, 255, 0.32);
}

.pdp-photo-modal__nav--prev {
  left: max(20px, calc(50% - min(41vw, 380px) - 72px));
}

.pdp-photo-modal__nav--next {
  right: max(20px, calc(50% - min(41vw, 380px) - 72px));
}

@media (max-width: 720px) {
  .pdp-photo-modal {
    align-items: center;
    padding: 18px 10px;
  }

  .pdp-photo-modal__image {
    max-width: 94vw !important;
    max-height: calc(100vh - 36px) !important;
  }

  .pdp-photo-modal__close {
    top: 18px;
    right: calc(3vw + 4px);
    left: auto;
  }

  .pdp-photo-modal__nav {
    width: 40px;
    height: 48px;
    font-size: 2.45rem;
  }

  .pdp-photo-modal__nav--prev {
    left: 10px;
  }

  .pdp-photo-modal__nav--next {
    right: 10px;
  }
}
