.gau-product-gallery-open {
  overflow: hidden;
  scrollbar-gutter: stable;
}

html.gau-product-gallery-open {
  background: #000;
}

.pswp.gau-product-gallery {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

.pswp.gau-product-gallery .pswp__scroll-wrap {
  left: 5px;
  right: 5px;
  width: calc(100% - 10px);
  overflow: visible;
}

.pswp.gau-product-gallery .pswp__top-bar,
.pswp.gau-product-gallery .pswp__caption,
.pswp.gau-product-gallery .pswp__share-modal {
  display: none;
}

.pswp.gau-product-gallery .gau-gallery__toolbar {
  position: absolute;
  top: 0;
  left: -5px;
  width: calc(100% + 10px);
  background: rgb(0 0 0 / 45%);
  color: #999;
  opacity: 1;
  transition: opacity 350ms, transform 350ms;
  pointer-events: auto;
}

.gau-gallery__toolbar::after {
  display: table;
  clear: both;
  content: "";
}

.pswp.gau-product-gallery .gau-gallery__button {
  position: relative;
  float: right;
  display: grid;
  place-items: center;
  width: 50px;
  height: 47px;
  min-height: 0;
  padding: 10px 0;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #999;
  font: inherit;
  text-decoration: none;
  cursor: pointer;
  box-sizing: border-box;
}

.gau-gallery__button > img {
  display: block;
  width: 24px;
  height: 24px;
  max-width: none;
  filter: invert(60%);
  pointer-events: none;
}

.gau-gallery__button--actual-size > img {
  width: 20px;
  height: 20px;
}

.gau-gallery__button:hover > img,
.gau-gallery__button:focus-visible > img {
  filter: invert(100%);
}

.gau-gallery__button:focus-visible,
.gau-gallery__share-menu a:focus-visible {
  outline: 2px solid #fff;
  outline-offset: -3px;
}

.pswp.gau-product-gallery .gau-gallery__button:disabled {
  opacity: 0.5;
  cursor: default;
}

.gau-gallery__counter {
  display: inline-block;
  padding-top: 12px;
  padding-left: 20px;
  font-size: 16px;
  line-height: 24px;
  color: #999;
  vertical-align: middle;
}

.gau-gallery__share-group {
  position: relative;
  float: right;
  display: block;
  width: 50px;
  height: 47px;
}

.gau-gallery__share-menu[hidden] {
  display: none;
}

.gau-gallery__share-menu {
  position: absolute;
  top: 50px;
  right: 0;
  display: block;
  width: max-content;
  padding: 10px 0;
  margin: 0;
  border-radius: 2px;
  background: #fff;
  color: #333;
  list-style: none;
  text-align: left;
  z-index: 1;
  transform: translateX(var(--gallery-share-shift, 0px));
}

.gau-gallery__share-menu::before {
  position: absolute;
  top: -16px;
  right: calc(16px + var(--gallery-share-shift, 0px));
  border: 8px solid transparent;
  border-bottom-color: #fff;
  content: "";
}

.gau-gallery__share-menu li {
  padding: 0;
  margin: 0;
  list-style: none;
}

.gau-gallery__share-menu a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  color: #333;
  font: 12px/27px "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  text-decoration: none;
  white-space: nowrap;
}

.gau-gallery__share-menu a:hover,
.gau-gallery__share-menu a:focus-visible {
  background: rgb(0 0 0 / 7%);
  outline-color: #333;
}

.gau-gallery__share-menu img {
  width: 20px;
  height: 20px;
}

.pswp.gau-product-gallery--idle .gau-gallery__toolbar {
  opacity: 0;
  transform: translateY(-10px);
}

.pswp.gau-product-gallery--idle .gau-gallery__toolbar:focus-within {
  opacity: 1;
  transform: none;
}

.gau-gallery__status[hidden] {
  display: none;
}

.gau-gallery__status {
  position: absolute;
  bottom: 20px;
  left: 50%;
  width: max-content;
  max-width: calc(100% - 40px);
  padding: 8px 12px;
  background: rgb(0 0 0 / 80%);
  color: #fff;
  font-size: 14px;
  transform: translateX(-50%);
}

@media (prefers-reduced-motion: reduce) {
  .pswp.gau-product-gallery .gau-gallery__toolbar {
    transition: none;
  }
}
