/* Minimal, dependency-free lightbox. */
.c-lightbox__overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4vh 4vw;
}
.c-lightbox__overlay[hidden] {
  display: none;
}
.c-lightbox__content {
  position: relative;
  max-width: 100%;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.c-lightbox__content img {
  max-width: 100%;
  max-height: 84vh;
  object-fit: contain;
  display: block;
}
.c-lightbox__content iframe {
  width: min(90vw, 1000px);
  height: 80vh;
  border: 0;
  background: #fff;
}
.c-lightbox__caption {
  color: #fff;
  margin-top: 1rem;
  text-align: center;
  font-size: 1.4rem;
}
.c-lightbox__close,
.c-lightbox__prev,
.c-lightbox__next {
  position: fixed;
  background: rgba(0, 0, 0, 0.55);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
  border: 0;
  border-radius: 50%;
  width: 4.4rem;
  height: 4.4rem;
  cursor: pointer;
  padding: 0;
  transition: background 0.15s;
}
.c-lightbox__close::before,
.c-lightbox__prev::before,
.c-lightbox__next::before {
  content: "";
  display: block;
  width: 1.8rem;
  height: 1.8rem;
  margin: auto;
  background-color: #fff;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
}
@media (prefers-color-scheme: dark) {
  .c-lightbox__close,
  .c-lightbox__prev,
  .c-lightbox__next {
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
  }
  .c-lightbox__close:hover,
  .c-lightbox__prev:hover,
  .c-lightbox__next:hover {
    background: rgba(255, 255, 255, 1);
  }
  .c-lightbox__close::before,
  .c-lightbox__prev::before,
  .c-lightbox__next::before {
    background-color: #1a1a1a;
  }
}
.c-lightbox__close {
  top: 2rem;
  right: 2rem;
}
.c-lightbox__close::before {
  -webkit-mask-image: url("/_shared/icons/x.svg");
  mask-image: url("/_shared/icons/x.svg");
}
.c-lightbox__prev,
.c-lightbox__next {
  top: 50%;
  transform: translateY(-50%);
}
.c-lightbox__prev {
  left: 2rem;
}
.c-lightbox__next {
  right: 2rem;
}
.c-lightbox__prev::before {
  -webkit-mask-image: url("/_shared/icons/arrow-left.svg");
  mask-image: url("/_shared/icons/arrow-left.svg");
}
.c-lightbox__next::before {
  -webkit-mask-image: url("/_shared/icons/arrow-right.svg");
  mask-image: url("/_shared/icons/arrow-right.svg");
}
.c-lightbox__close:hover,
.c-lightbox__prev:hover,
.c-lightbox__next:hover {
  background: rgba(0, 0, 0, 0.75);
}
