.lightbox {
  cursor: pointer;
}

.lightboxContainer {
  position: fixed;
  z-index: 9999;
  inset: 0;
  background: rgb(0 0 0 / 80%);
  display: flex;
  justify-content: center;
  align-items: center;
}

.lightboxContainer .lightboxWrapper {
  position: relative;
}

.lightboxContainer .lbContent {
  padding-inline: calc(0.5rem + 1.5vw);
  border-radius: 0.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightboxContainer .lbImg {
  max-width: 100%;
  max-height: 90vh;
}

.lightboxContainer .lbClose {
  position: fixed;
  top: 1rem;
  right: 1rem;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  color: #fff;
  background: none;
  border: none;
  z-index: 999;
}

.lightboxContainer .lbClose::before {
  content: "";
  background: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M.293.293a1 1 0 011.414 0L8 6.586 14.293.293a1 1 0 111.414 1.414L9.414 8l6.293 6.293a1 1 0 01-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 01-1.414-1.414L6.586 8 .293 1.707a1 1 0 010-1.414z'/%3e%3c/svg%3e")
    no-repeat;
  display: inline-block;
  width: 100%;
  height: 100%;
  position: relative;
  top: 0.325rem;
}

.lightboxContainer .controls {
  position: fixed;
  inset: 0;
  display: flex;
  justify-content: space-between;
  height: 100%;
  max-height: 128px;
  top: 50%;
  transform: translateY(-50%);
}

.lightboxContainer .controls :is(.prev, .next) {
  border: none;
  background: none;
  width: 128px;
  display: flex;
  justify-content: center;
  align-items: center;
  --padding-inner: 3rem;
  --padding-outer: 1.5rem;
  opacity: 0.4;
  transition: opacity 150ms ease;
}

.lightboxContainer .controls :is(.prev, .next):hover {
  opacity: 1;
}

.lightboxContainer .controls :is(.prev, .next):focus-visible {
  border: transparent;
  outline: transparent;
}

.lightboxContainer .controls .prev {
  padding-inline: var(--padding-outer) var(--padding-inner);
}

.lightboxContainer .controls .next {
  padding-inline: var(--padding-inner) var(--padding-outer);
}

.lightboxContainer .controls .prev::before {
  content: "";
  position: absolute;
  width: 2rem;
  height: 2rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23ffffff' viewBox='0 0 6.84 14.77'%3E%3Cpath d='m6.34,14.77c.11,0,.23-.04.32-.12.21-.18.24-.49.06-.7L1.16,7.38,6.72.82c.18-.21.15-.53-.06-.7-.21-.18-.53-.15-.7.06L.12,7.06c-.16.19-.16.46,0,.65l5.84,6.88c.1.12.24.18.38.18Z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

.lightboxContainer .controls .next::before {
  content: "";
  position: absolute;
  width: 2rem;
  height: 2rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23ffffff'  viewBox='0 0 6.84 14.77'%3E%3Cpath d='m.5,14.77c-.11,0-.23-.04-.32-.12-.21-.18-.24-.49-.06-.7l5.56-6.56L.12.82C-.06.61-.03.3.18.12.39-.06.7-.03.88.18l5.84,6.88c.16.19.16.46,0,.65L.88,14.59c-.1.12-.24.18-.38.18Z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

.lightboxContainer .dots {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  display: flex;
  column-gap: 0.25rem;
  transform: translateX(-50%);
}

.lightboxContainer .dots .dotsChild {
  border: 2px solid #fff;
  border-radius: 50vw;
  opacity: 0.4;
  width: 2px;
  transition: width 500ms ease;
}

.lightboxContainer .dots .dotsChild.active {
  opacity: 1;
  width: 1rem;
}
