.pm-fs__bg { position: relative; }
.pm-film, .pm-photo-motion, .pm-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border: 0;
}
.pm-photo-motion { opacity: 0; pointer-events: none; transition: opacity 160ms ease; }
.pm-media--playing > .pm-photo-motion { opacity: 1; }
.pm-media--film { cursor: default; background-color: #151414; }
.pm-media--film::after { display: none; }
.pm-media--film .pm-expand-btn { top: 12px; left: 12px; right: auto; bottom: auto; }
.pm-fs__bg.pm-media--film { height: calc(100dvh - 160px); max-height: 84vh; }
/* Mobile players can put their sound control at the top right of the video. */
@media (max-width: 720px), (pointer: coarse) {
  .pm-gallery__main.pm-media--film > .pm-film {
    top: 64px;
    height: calc(100% - 64px);
  }
}
.pm-gallery__thumb.pm-thumb-video {
  position: relative;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}
.pm-thumb-video .pm-thumb-play {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(0, 0, 0, .65);
  color: #fff;
  font-size: 13px;
  opacity: 1;
}
.pm-media-error {
  position: absolute;
  inset: 38% 12% auto;
  padding: 12px;
  background: #fff;
  color: #151414;
  text-align: center;
  z-index: 5;
}
@media (prefers-reduced-motion: reduce) {
  .pm-photo-motion { transition: none; }
}
