/* 4:3 tiles used by the gallery, album and interests grids */
.grid-item {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding-top: 75%;
}

.grid-item img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: cover;
}

img.Music {
  object-position: top;
}

.grid-item .overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  color: #fff;
  text-align: center;
  padding: 10px;
}

@media (min-width: 769px) {
  .grid-item:hover .overlay {
    opacity: 1;
    background: rgba(0, 0, 0, 0.6);
    transition: 0.5s ease;
  }
}

/* Lightbox for album pages */
#lightbox {
  width: 100vw;
  height: 100vh;
  max-width: none;
  max-height: none;
  padding: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.9);
}

#lightbox[open] {
  display: flex;
  align-items: center;
  justify-content: center;
}

#lightbox::backdrop {
  background: transparent;
}

#lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  margin: 0;
  object-fit: contain;
  cursor: pointer;
}

#lightbox button {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  padding: 1rem;
  font-size: 3rem;
  line-height: 1;
  color: #fff;
  background: none;
  border: 0;
  cursor: pointer;
}

#lightbox .lb-prev { left: 0; }
#lightbox .lb-next { right: 0; }
#lightbox.single button { display: none; }
