.bynd-lightbox-modal {
  display: flex;
  opacity: 0;
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.85);
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease-in-out;
  z-index: -1;
}

.bynd-lightbox-inner {
  box-sizing: border-box;
  margin: auto;
  max-width: 90%;
  height: calc(100% - 2rem);
  text-align: center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bynd-lightbox-gallery {
  position: relative;
  width: 100%;
  height: 100%;
}

.bynd-lightbox-slide {
  display: none;
  width: 100%;
  height: 100%;
}

.bynd-lightbox-slide img {
  max-width: 100% !important;
  max-height: 100% !important;
  height: auto !important;
  aspect-ratio: auto !important;
  object-fit: cover;
  display: block;
  margin: auto;
}

.bynd-lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  cursor: pointer;
  color: #fff;
  z-index: 999;
}

.bynd-lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  font-size: 3rem;
  cursor: pointer;
  user-select: none;
  z-index: 1001;
}
.bynd-lightbox-arrow svg {
  fill: #fff;
}
.bynd-lightbox-arrow {
  -webkit-tap-highlight-color: transparent; /* Removes mobile tap highlight */
}

.bynd-lightbox-arrow:focus,
.bynd-lightbox-arrow:active {
  background: transparent !important; /* No background */
  outline: none; /* Remove default outline */
}
.bynd-lightbox-arrow--prev {
  left: 0.5rem;
  transform: translateY(-50%) scaleX(-1);
}
.bynd-lightbox-arrow--next {
  right: 0.5rem;
}
@media (min-width: 1024px) {
  .bynd-lightbox-arrow--prev {
    left: 1rem;
  }
  .bynd-lightbox-arrow--next {
    right: 1rem;
  }
}
