html.ptn-product-lightbox-open {
  overflow: hidden;
}

.ptn-product-lightbox {
  position: fixed;
  inset: 0;
  width: min(92vw, 800px);
  max-width: none;
  max-height: calc(100dvh - 24px);
  margin: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  overflow: visible;
}

.ptn-product-lightbox::backdrop {
  background: rgb(8 23 45 / 90%);
}

.ptn-product-lightbox-panel {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ptn-product-lightbox-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-inline: 4px;
}

.ptn-product-lightbox-count {
  display: block;
  padding-inline: 4px;
  text-align: right;
  font-size: 14px;
}

.ptn-product-lightbox-close,
.ptn-product-lightbox-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: rgb(255 255 255 / 14%);
  color: #fff;
  cursor: pointer;
}

.ptn-product-lightbox-close {
  width: 44px;
  height: 44px;
  font-size: 32px;
  line-height: 1;
}

.ptn-product-lightbox-viewer {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  align-items: center;
  gap: 8px;
}

.ptn-product-lightbox-viewer img {
  display: block;
  width: auto;
  height: auto;
  max-width: min(100%, 620px);
  max-height: min(68dvh, 620px);
  justify-self: center;
  object-fit: contain;
}

.ptn-product-lightbox-arrow {
  width: 44px;
  height: 44px;
  font-size: 36px;
  line-height: 1;
}

.ptn-product-lightbox-arrow:disabled {
  opacity: .35;
  cursor: not-allowed;
}

.ptn-product-lightbox-close:hover,
.ptn-product-lightbox-arrow:not(:disabled):hover {
  background: rgb(255 255 255 / 28%);
}

.ptn-product-lightbox :focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

@media (max-width: 480px) {
  .ptn-product-lightbox {
    width: 96vw;
  }

  .ptn-product-lightbox-viewer {
    grid-template-columns: 40px minmax(0, 1fr) 40px;
    gap: 4px;
  }

  .ptn-product-lightbox-arrow {
    width: 40px;
    height: 40px;
  }
}
