/* gallery.css */
.gallery {
  width: 100%;
  height: 100%;
  overflow-y: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-content: flex-start;
  justify-content: center;
}

img.gallery-thumb,
.video-thumb {
  cursor: pointer;
  max-height: 150px;
  object-fit: cover;
  border: 2px solid transparent;
  display: block;
}

img.gallery-thumb:focus,
.video-thumb:focus {
  outline: none;
  border-color: #999;
}

.video-thumb {
  position: relative;
  max-width: 150px;
  max-height: 150px;
}

.video-thumb video {
  display: block;
  max-width: 100%;
  max-height: 100%;
}

.play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #FFF;
  font-size: 2rem;
  pointer-events: none;
  user-select: none;
}

.nav-arrow {
  font-size: 3rem;
  color: #FFF;
  background: none;
  border: none;
  cursor: pointer;
  user-select: none;
  display: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1100;
}

#lightbox #prev {
  left: 2%;
}

#lightbox #next {
  right: 2%;
}

#lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.9);
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

#lightbox-content {
  max-width: 90vw;
  max-height: 90vh;
  position: relative;
}
