.pl-gallery__link {
  display: block;
  color: inherit;
  text-decoration: none;
  font-size: inherit;
}
.pl-gallery__link:hover,
.pl-gallery__link:focus {
  color: inherit;
  text-decoration: none;
}
.pl-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1050;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pl-lightbox[hidden] {
  display: none;
}
.pl-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
}
.pl-lightbox__dialog {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.pl-lightbox__img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  display: block;
}
.pl-lightbox__caption {
  color: #fff;
  font-size: 0.875rem;
  text-align: center;
  margin-top: 0.5rem;
  max-width: 60ch;
}
.pl-lightbox__close,
.pl-lightbox__prev,
.pl-lightbox__next {
  position: absolute;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
}
.pl-lightbox__close {
  top: -2.5rem;
  right: 0;
}
.pl-lightbox__prev,
.pl-lightbox__next {
  top: 50%;
  transform: translateY(-50%);
}
.pl-lightbox__prev {
  left: -3rem;
}
.pl-lightbox__next {
  right: -3rem;
}
@media (max-width: 767px) {
  .pl-lightbox__prev {
    left: 0.25rem;
  }
  .pl-lightbox__next {
    right: 0.25rem;
  }
  .pl-lightbox__close {
    top: 0.25rem;
    right: 0.25rem;
  }
}
