.belighted-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  display: grid;
  align-items: center;
  justify-content: stretch;
  z-index: 9999;
  animation: fadeIn 0.3s ease;
}

.belighted-modal {
  align-items: center;
  animation: scaleIn 0.3s ease;
  display: grid;
  justify-content: stretch;
  position: relative;
  max-height: 90%;
  width: 100%;
}

.lightbox-container,
.lightbox-trigger-wrapper {
  display: grid;
  grid-gap: var(--space-4);
  justify-content: center;
}

.lightbox-trigger-wrapper {
  justify-content: start;
}

.lightbox-thumbnail {
  box-shadow: var(--box-shadow-large-soft);
  max-height: 400px;
  object-fit: contain;
  display: block;
}

.lightbox-trigger {
  background: var(--white);
  border: 2px solid var(--darkBlue);
  color: var(--darkBlue);
  font-family: Raleway, sans-serif;
  font-size: 16px;
  font-weight: bold;
  padding: var(--space-2);
}

.belighted-frame {
  height: calc(100vh - 160px);
  width: 100%;
  overflow: auto;
  display: block;
}

.belighted-image-wrapper {
  display: inline-block;
  line-height: 0;
  min-width: min-content;
  //transition: transform 0.2s ease-in-out;
}

.belighted-image-wrapper.can-zoom-in {
  cursor: zoom-in;
}

.belighted-image-wrapper.can-zoom-out {
  cursor: zoom-out;
}

.belighted-image {
  display: block;
  max-width: 100%;
  height: auto;
}

.belighted-close {
  align-items: center;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  display: grid;
  font-family: Raleway, sans-serif;
  font-size: 20px;
  font-weight: bold;
  grid-gap: 8px;
  grid-template-columns: auto auto;
  line-height: 1;
  padding: 0;
  position: absolute;
  height: 40px;
  right: 20px;
  top: -40px;
  transition: opacity 0.2s ease;
  z-index: 10;

  svg {
    height: 24px;
    stroke-width: 3px;
    width: 24px;
  }
}

.belighted-close:hover {
  opacity: 0.7;
}

.belighted-prev,
.belighted-next {
  align-items: center;
  background: rgba(0, 0, 0, 0.5);
  border: none;
  border-radius: 50%;
  color: white;
  cursor: pointer;
  display: grid;
  height: 60px;
  justify-content: center;
  padding: 0;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  transition:
    background 0.2s ease,
    opacity 0.2s ease;
  width: 60px;
  z-index: 10;

  svg {
    display: block;
    height: 32px;
    width: 32px;
  }
}

.belighted-prev {
  left: 20px;
}

.belighted-next {
  right: 20px;
}

.belighted-prev:hover:not(:disabled),
.belighted-next:hover:not(:disabled) {
  background: rgba(0, 0, 0, 0.8);
}

.belighted-prev:disabled,
.belighted-next:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.belighted-thumbnails {
  display: flex;
  gap: 10px;
  padding: 20px;
  overflow-x: auto;
  overflow-y: hidden;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.5);
}

.belighted-thumb {
  height: 80px;
  width: auto;
  cursor: pointer;
  opacity: 0.6;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
  flex-shrink: 0;
}

.belighted-thumb:hover {
  opacity: 0.9;
  transform: scale(1.05);
}

.belighted-thumb.active {
  opacity: 1;
  outline: 3px solid white;
  outline-offset: 2px;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes scaleIn {
  from {
    transform: scale(0.9);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}
