#gallery {
  display: flex;
  flex-direction: column;
}

#gallery img:not([data-attr="vid"]) {
  object-fit: cover;
  cursor: pointer;
  width: var(--gallery-img-size);
  height: var(--gallery-img-size);
  background-color: white;
  transition: var(--transition);
  border-radius: var(--image-border-radius);
}

#gallery img:hover {
  scale: 1.05;
}

#gallery .vid-link {
  margin: 0 auto;
  scale: 0.8;
}

.year {
  margin-bottom: 40px;
}

.year .description {
  margin-top: 10px;
}

.img-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 5px;
  margin-top: 10px;
}

/* Lightbox */

.lightbox {
  position: fixed;
  z-index: 100;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgb(0 0 0 / 85%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 80vh;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgb(0 0 0 / 50%);
}

.lightbox-img[data-loading-gif="true"] {
  box-shadow: none;
  scale: 0.5;
}

.lightbox-close {
  position: absolute;
  top: 30px; right: 40px;
  font-size: 3rem;
  color: white;
  cursor: pointer;
  z-index: 2010;
}

.lightbox-arrow {
  position: absolute;
  top: 50%;
  font-size: 3rem;
  color: white;
  cursor: pointer;
  user-select: none;
  z-index: 2010;
  padding: 0 20px;
  transform: translateY(-50%);
}

.lightbox-arrow.left { left: 10px; }

.lightbox-arrow.right { right: 10px; }

/* Collapsible gallery */
.img-list img.hidden {
  display: none;
}

.show-more-btn {
  display: block;
  background-color: transparent;
  color: var(--primary);
  border: 3px solid var(--primary);
  font-size: 1em;
  border-radius: 9999px;
  cursor: pointer;
  margin: 10px auto;
  font-weight: bold;
  padding: 12px 24px;
  text-decoration: none;
  transition: var(--transition);
}

.show-more-btn:hover {
  color: white;
  background-color: var(--primary);
}

.show-more-btn:disabled {
  pointer-events: none;
}