
#lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index:9999;
  touch-action: none;
}

#close-button {
  position: absolute;
  top: 10px;
  right: 10px;
  padding-right:10px;
  padding-top:10px;
  font-size: 24px;
  color: #fff;
  cursor: pointer;
  z-index: 10000;
}

#lightbox-content {
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: stretch;

  max-height:98vh;
  max-width:98vw;
  overflow: hidden;

  border:2px solid #808080;
  border-radius: 5px;
}

#lightbox-bar {
  font-size:20px;
  background-color: black;
  color: white;
  text-align: center;
  position: relative;
  z-index: 1;
}

#lightbox-image,
#lightbox-video {
  max-width: 95vw;
  max-height: 95vh;
  object-fit:contain;
}

#lightbox-image {
  transform-origin: center center;
  will-change: transform;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

#lightbox.zoomed #lightbox-content {
  width: 100vw;
  height: 100vh;
  max-width: 100vw;
  max-height: 100vh;
  align-items: center;
  border: none;
  border-radius: 0;
}

#lightbox.zoomed #lightbox-bar {
  display: none;
}

#lightbox-video {
  width: 95vw;
  height: 95vh;
}

.hidden {
  display: none !important;
}