.pm-gallery {
  --pm-accent: #e50914;
  --pm-radius: 14px;
  box-sizing: border-box;
  display: block;
  margin-left: auto;
  margin-right: auto;
  max-width: 820px;
  width: 100%;
}
.pm-gallery *, .pm-gallery *::before, .pm-gallery *::after { box-sizing: border-box; }
.pm-stage {
  align-items: center;
  aspect-ratio: 1 / 1;
  background: #f7f7f7;
  border: 1px solid #ececec;
  border-radius: var(--pm-radius);
  display: flex;
  justify-content: center;
  min-height: 420px;
  overflow: hidden;
  position: relative;
  width: 100%;
}
.pm-media {
  display: block;
  height: 100%;
  inset: 0;
  object-fit: contain;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  transform: translate3d(15%, 0, 0);
  transition: opacity .42s ease, transform .42s cubic-bezier(.22, .61, .36, 1);
  visibility: hidden;
  width: 100%;
  will-change: opacity, transform;
}
.pm-media.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: translate3d(0, 0, 0);
  visibility: visible;
  z-index: 1;
}
.pm-media.pm-enter-left { transform: translate3d(-15%, 0, 0); }
.pm-media.pm-enter-right { transform: translate3d(15%, 0, 0); }
.pm-media.pm-exit-left,
.pm-media.pm-exit-right {
  opacity: 0;
  pointer-events: none;
  visibility: visible;
}
.pm-media.pm-exit-left { transform: translate3d(-15%, 0, 0); }
.pm-media.pm-exit-right { transform: translate3d(15%, 0, 0); }
.pm-stage.has-active-image .pm-media.is-active { cursor: zoom-in; }
.pm-media:focus-visible {
  outline: 3px solid rgba(229, 9, 20, .55);
  outline-offset: -4px;
}
.pm-zoom-icon {
  align-items: center;
  background: rgba(255,255,255,.92);
  border-radius: 50%;
  box-shadow: 0 4px 18px rgba(0,0,0,.2);
  color: #222;
  display: flex;
  height: 58px;
  justify-content: center;
  left: 50%;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  top: 50%;
  transform: translate(-50%,-50%) scale(.82);
  transition: opacity .22s ease, transform .3s cubic-bezier(.22, .61, .36, 1);
  width: 58px;
  z-index: 3;
}
.pm-zoom-icon svg {
  fill: none;
  height: 29px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  width: 29px;
}
.pm-stage.has-active-image:hover .pm-zoom-icon,
.pm-stage.has-active-image:focus-within .pm-zoom-icon {
  opacity: 1;
  transform: translate(-50%,-50%) scale(1);
}
.pm-lightbox {
  align-items: center;
  background: rgba(0,0,0,.9);
  display: flex;
  height: 100%;
  height: 100dvh;
  justify-content: center;
  left: 0;
  opacity: 0;
  padding: 32px 72px;
  pointer-events: none;
  position: fixed;
  top: 0;
  transition: opacity .28s ease, visibility 0s linear .28s;
  visibility: hidden;
  width: 100%;
  z-index: 100000;
}
.pm-lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
  transition-delay: 0s;
  visibility: visible;
}
.pm-lightbox-viewport {
  background: transparent;
  height: calc(100vh - 64px);
  height: calc(100dvh - 64px);
  max-width: 1100px;
  opacity: .35;
  overflow: hidden;
  position: relative;
  transform: scale(.82);
  transition: opacity .34s ease, transform .42s cubic-bezier(.22, .61, .36, 1);
  width: calc(100vw - 144px);
}
.pm-lightbox.is-open .pm-lightbox-viewport {
  opacity: 1;
  transform: scale(1);
}
.pm-lightbox .pm-lightbox-image {
  display: block;
  height: 100%;
  max-height: 100%;
  inset: 0;
  object-fit: contain;
  opacity: 0;
  position: absolute;
  transform: translate3d(100%, 0, 0);
  transition: opacity .42s ease, transform .42s cubic-bezier(.22, .61, .36, 1);
  width: 100%;
  will-change: opacity, transform;
}
.pm-lightbox-image.is-current {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}
.pm-lightbox-image.pm-lightbox-enter-left { transform: translate3d(-100%, 0, 0); }
.pm-lightbox-image.pm-lightbox-enter-right { transform: translate3d(100%, 0, 0); }
.pm-lightbox-image.pm-lightbox-exit-left { opacity: 0; transform: translate3d(-100%, 0, 0); }
.pm-lightbox-image.pm-lightbox-exit-right { opacity: 0; transform: translate3d(100%, 0, 0); }
.pm-lightbox-close {
  background: transparent;
  border: 0;
  color: #fff;
  cursor: pointer;
  font-size: 48px;
  line-height: 1;
  padding: 8px;
  position: absolute;
  right: 20px;
  top: 12px;
  z-index: 3;
}
.pm-lightbox-arrow {
  align-items: center;
  background: rgba(255,255,255,.94);
  border: 0;
  border-radius: 50%;
  color: #222;
  cursor: pointer;
  display: flex;
  font-size: 38px;
  height: 52px;
  justify-content: center;
  line-height: 1;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  transition: transform .2s ease, background .2s ease;
  width: 52px;
  z-index: 3;
}
.pm-lightbox-arrow:hover { background: #fff; transform: translateY(-50%) scale(1.06); }
.pm-lightbox-close:focus-visible,
.pm-lightbox-arrow:focus-visible { outline: 3px solid rgba(255,255,255,.8); outline-offset: 3px; }
.pm-lightbox-prev { left: 18px; }
.pm-lightbox-next { right: 18px; }
body.pm-lightbox-open { overflow: hidden; }
.pm-centered-description {
  clear: both;
  float: none !important;
  margin: 32px auto 0 !important;
  max-width: 820px !important;
  width: calc(100% - 30px) !important;
}
.pm-arrow {
  align-items: center;
  background: rgba(255,255,255,.94);
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 50%;
  box-shadow: 0 4px 14px rgba(0,0,0,.14);
  color: #222;
  cursor: pointer;
  display: flex;
  font-size: 32px;
  height: 44px;
  justify-content: center;
  line-height: 1;
  opacity: 0;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  transition: opacity .2s ease, transform .2s ease, background .2s ease;
  width: 44px;
  z-index: 2;
}
.pm-stage:hover .pm-arrow, .pm-arrow:focus { opacity: 1; }
.pm-arrow:hover { background: #fff; transform: translateY(-50%) scale(1.06); }
.pm-prev { left: 16px; }
.pm-next { right: 16px; }
.pm-counter {
  background: rgba(20,20,20,.68);
  border-radius: 999px;
  bottom: 14px;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .02em;
  padding: 5px 10px;
  position: absolute;
  right: 14px;
  z-index: 2;
}
.pm-thumbs {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  max-width: 100%;
  overflow-x: auto;
  padding: 2px 2px 8px;
  scroll-behavior: smooth;
  scrollbar-color: #c9c9c9 transparent;
  scrollbar-width: thin;
}
.pm-thumb {
  background: #f5f5f5;
  border: 2px solid transparent;
  border-radius: 9px;
  cursor: pointer;
  flex: 0 0 88px;
  height: 78px;
  overflow: hidden;
  padding: 0;
  position: relative;
  transition: border-color .18s ease, box-shadow .18s ease, opacity .18s ease, transform .18s ease;
  width: 88px;
}
.pm-thumb:not(.is-active) { opacity: .78; }
.pm-thumb:hover { opacity: 1; transform: translateY(-2px); }
.pm-thumb.is-active {
  border-color: var(--pm-accent);
  box-shadow: 0 0 0 2px rgba(229,9,20,.12);
  opacity: 1;
}
.pm-thumb:focus-visible { outline: 3px solid rgba(229,9,20,.35); outline-offset: 2px; }
.pm-thumb img, .pm-thumb video { height: 100%; object-fit: cover; width: 100%; }
.pm-play {
  align-items: center;
  background: rgba(0,0,0,.5);
  border-radius: 50%;
  color: #fff;
  display: flex;
  font-size: 15px;
  height: 34px;
  justify-content: center;
  left: 50%;
  padding-left: 2px;
  position: absolute;
  top: 50%;
  transform: translate(-50%,-50%);
  width: 34px;
}
@media (max-width: 767px) {
  .pm-gallery { max-width: 100%; }
  .pm-stage { aspect-ratio: 1 / 1; min-height: 280px; }
  .pm-arrow { height: 38px; opacity: 1; width: 38px; }
  .pm-prev { left: 10px; }
  .pm-next { right: 10px; }
  .pm-thumbs { gap: 8px; margin-top: 9px; }
  .pm-thumb { flex-basis: 70px; height: 64px; width: 70px; }
  .pm-counter { bottom: 10px; right: 10px; }
  .pm-zoom-icon { display: none; height: 48px; width: 48px; }
  .pm-zoom-icon svg { height: 24px; width: 24px; }
  .pm-stage.has-active-image .pm-zoom-icon {
    opacity: .92;
    transform: translate(-50%,-50%) scale(1);
  }
  .pm-lightbox { padding: 50px 12px 70px; }
  .pm-lightbox-viewport {
    height: calc(100vh - 120px);
    height: calc(100dvh - 120px);
    width: calc(100vw - 24px);
  }
  .pm-lightbox-arrow {
    bottom: 10px;
    height: 44px;
    top: auto;
    transform: none;
    width: 44px;
  }
  .pm-lightbox-arrow:hover { transform: scale(1.06); }
  .pm-lightbox-prev { left: calc(50% - 54px); }
  .pm-lightbox-next { right: calc(50% - 54px); }
  .pm-centered-description {
    margin-top: 20px !important;
    width: calc(100% - 20px) !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  .pm-media,
  .pm-lightbox,
  .pm-lightbox-viewport,
  .pm-lightbox-image,
  .pm-arrow,
  .pm-thumb,
  .pm-zoom-icon {
    scroll-behavior: auto;
    transition: none !important;
  }
}
