.lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 1);
  opacity: 0;
  visibility: hidden;
}

.lightbox--open {
  opacity: 1;
  visibility: visible;
}

.lightbox__inner {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox__img {
  max-width: 100%;
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
}

.lightbox__close {
  position: fixed;
  top: var(--padding);
  right: var(--padding);
  z-index: 10001;
  padding: 0;
  border: none;
  background: transparent;
  color: #fff;
  line-height: 1;
  cursor: pointer;
}

.lightbox__close:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
}
