/* VISUALISEUR / IMAGE  */
#lightbox {
  position: fixed;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10;

  backdrop-filter: blur(10px);
  background-color: rgba(0, 0, 0, 0.5);
}

#lightbox.hidden {
  display: none;
}

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.lightbox-image {
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* BOUTONS  */
#lightbox button {
  appearance: none;
  border: none;
  height: 50px;
  width: 50px;
  opacity: 0.7;
  position: absolute;
  border-radius: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

button.left {
  left: 20px;
  top: 50%;
}

button.right {
  top: 50%;
  right: 20px;
}

button.close {
  top: 25px;
  right: 15px;
}

@media (max-width: 1050px) {
  button.left {
    left: 20px;
    top: 70%;
  }

  button.right {
    top: 70%;
    right: 20px;
  }
}

button.left:hover,
button.right:hover,
button.close:hover {
  cursor: pointer;
}
