.noselect {
  -webkit-touch-callout: none; /* iOS Safari */
  -webkit-user-select: none; /* Safari */ /* Konqueror HTML */
  -moz-user-select: none; /* Old versions of Firefox */ /* Internet Explorer/Edge */
  user-select: none; /* Non-prefixed version, currently
   supported by Chrome, Edge, Opera and Firefox */
}

.bpag-gallery {
  --thumbnail-height: 100px;
  position: relative;
  max-height: 100vh;
  width: 100%;
  /* The main image wrapper */
  /* The thumbnails wrapper */
}
.bpag-gallery:hover .bpag-gallery__foreground {
  opacity: 1;
}
.bpag-gallery__foreground {
  opacity: 1;
  z-index: 10;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: var(--thumbnail-height);
  pointer-events: none;
}
@media (max-width: 768px) {
  .bpag-gallery__foreground {
    opacity: 1;
  }
}
.bpag-gallery__foreground .prev {
  display: flex;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  pointer-events: all;
  background: rgba(0, 0, 0, 0.4);
  position: absolute;
  left: 0px;
  top: 50%;
  width: 40px;
  height: 40px;
  transform: translateY(-50%);
  transition: background 0.3s ease-in-out;
  border-radius: 50%;
}
.bpag-gallery__foreground .prev:hover {
  background: rgba(0, 0, 0, 0.5);
}
.bpag-gallery__foreground .prev > svg {
  transform: rotate(180deg);
}
.bpag-gallery__foreground .next {
  display: flex;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  pointer-events: all;
  background: rgba(0, 0, 0, 0.4);
  transition: background 0.3s ease-in-out;
  position: absolute;
  top: 50%;
  right: 0px;
  transform: translateY(-50%);
  border-radius: 50%;
  height: 40px;
  width: 40px;
}
.bpag-gallery__foreground .next:hover {
  background: rgba(0, 0, 0, 0.5);
}
.bpag-gallery__content {
  z-index: 5;
  overflow: hidden;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr 100px;
  background-color: white;
  max-height: 98vh;
}
.bpag-gallery__background {
  z-index: 1;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}
.bpag-gallery__main {
  position: relative;
  overflow: hidden;
}
.bpag-gallery__main > * {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  bottom: 0;
  pointer-events: none;
  z-index: 5;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}
.bpag-gallery__main > .active.full img {
  width: 100%;
  height: 100%;
  -o-object-fit: contain;
     object-fit: contain;
}
.bpag-gallery__main > .active {
  position: absolute;
  pointer-events: all;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 6;
  opacity: 1;
}
.bpag-gallery__main img {
  width: 100%;
  max-width: none !important;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}
.bpag-gallery__thumbnails {
  position: relative;
  overflow: hidden;
  display: flex;
}
.bpag-gallery__thumbnails .bpag-gallery__thumbnail.active {
  outline: 2px solid var(--color-primary);
  margin: 2px;
  z-index: 10;
}
.bpag-gallery__thumbnails .bpag-gallery__thumbnail {
  z-index: 9;
}
.bpag-gallery__thumbnails img {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
  max-width: none;
  width: 100px;
  -o-object-fit: cover;
     object-fit: cover;
  height: 100px;
}

#pdp-modal {
  transition: all 300ms ease-in-out;
  pointer-events: none;
  opacity: 0;
  max-width: 100vw;
  max-height: 100vh;
  background: rgba(0, 0, 0, 0.3);
}
#pdp-modal #pdp-modal-content {
  background-color: white;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
#pdp-modal [bx-trigger=close-modal] {
  border: none;
  background: none;
}
#pdp-modal[open] {
  pointer-events: all;
  opacity: 1;
}
