/* ===== LukeRalph.ca Shared Lightbox ===== */

.lr-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.92);
}

.lr-lightbox.is-open {
  display: flex;
}

.lr-lightbox-dialog {
  position: relative;
  width: min(1400px, 100%);
  height: min(900px, calc(100vh - 48px));
  display: grid;
  place-items: center;
}

.lr-lightbox-image {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 110px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.55);
  user-select: none;
  -webkit-user-drag: none;
}

.lr-lightbox-close,
.lr-lightbox-prev,
.lr-lightbox-next {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: #fff;
  background: rgba(0, 0, 0, 0.58);
  cursor: pointer;
}

.lr-lightbox-close {
  top: 0;
  right: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.7rem;
}

.lr-lightbox-prev,
.lr-lightbox-next {
  top: 50%;
  width: 48px;
  height: 64px;
  transform: translateY(-50%);
  border-radius: 12px;
  font-size: 2rem;
}

.lr-lightbox-prev {
  left: 0;
}

.lr-lightbox-next {
  right: 0;
}

.lr-lightbox-close:hover,
.lr-lightbox-prev:hover,
.lr-lightbox-next:hover,
.lr-lightbox-close:focus-visible,
.lr-lightbox-prev:focus-visible,
.lr-lightbox-next:focus-visible {
  background: rgba(93, 214, 232, 0.28);
  border-color: rgba(93, 214, 232, 0.7);
}

.lr-lightbox-caption {
  position: absolute;
  left: 70px;
  right: 70px;
  bottom: 0;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  text-align: center;
  font-size: 0.9rem;
}

body.lr-lightbox-open {
  overflow: hidden;
}

@media (max-width: 700px) {
  .lr-lightbox {
    padding: 10px;
  }

  .lr-lightbox-dialog {
    height: calc(100vh - 20px);
  }

  .lr-lightbox-image {
    max-height: calc(100vh - 90px);
  }

  .lr-lightbox-prev,
  .lr-lightbox-next {
    width: 42px;
    height: 56px;
  }

  .lr-lightbox-caption {
    left: 48px;
    right: 48px;
  }
}