/* LIGHTBOXES *******************************************************************************/

.lightbox {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 99999;
}

.lightbox .lightbox-wrap {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
}

.lightbox .lightbox-wrap__inner {
  position: relative;
  width: 100%;
  max-width: 100em;
  max-height: 100%;
  min-height: 80vh;
}

.lightbox .lightbox-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.lightbox .lightbox-content {
  max-width: 100em;
  padding-bottom: 2em;
  margin: 0 auto;
}

.lightbox .lightbox-content .covered-image-wrap {
  max-width: 80vh;
  margin: 0 auto;
}

/* --- Lightbox Scroll Wrap */

.lightbox .scroll-wrap {
  position: relative;
}

.lightbox .scroll-wrap::before {
  z-index: 1;
  position: absolute;
  content: "";
  top: 0;
  left: 0;
  width: 100%;
  height: 2rem;
  background: -o-linear-gradient(top, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
  background: -webkit-gradient(linear, left top, left bottom, from(rgba(255, 255, 255, 1)), to(rgba(255, 255, 255, 0)));
  background: linear-gradient(180deg, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
}

.lightbox .scroll-wrap::after {
  position: absolute;
  content: "";
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2rem;
  background: -o-linear-gradient(top, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 100%);
  background: -webkit-gradient(linear, left top, left bottom, from(rgba(255, 255, 255, 0)), to(rgba(255, 255, 255, 1)));
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 100%);
}

.lightbox .scroll-wrap__inner {
  position: relative;
  height: 100%;
  width: 100%;
  max-height: calc(100vh - 10rem);
  overflow-y: scroll;
  overflow-x: hidden;
  /* padding-top: 2em; */
  padding-bottom: 2em;
}

.lightbox .scroll-wrap__inner::-webkit-scrollbar {
  width: 0;
}

/* */

.lightbox .reveal-wrap {
  overflow: hidden;
}

.lightbox p {
  white-space: pre-line;
}

.lightbox .close-wrap {
  z-index: 1;
  position: absolute;
  top: 0;
  right: 0;
  width: 4.5rem;
  height: 4.75rem;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  pointer-events: all;
  cursor: pointer;
}

.lightbox .close {
  position: absolute;
  right: 0;
  font-size: var(--isize__small);
  padding: 1.25rem 1.75rem;
  color: var(--color__primary);
}

.js-lightbox-trigger {
  display: inline-block;
  height: auto;
  cursor: pointer;
}