/* -------------------------------------------------------- */
/* VINYL SLIDE */
/* -------------------------------------------------------- */

.vinyl-gallery {
  display: flex;
  flex-wrap: wrap;
}

.vinyl-gallery div{
  position: relative;
  z-index: 1;
  margin: 10px;
  width: calc(33% - 20px);
  overflow: visible;
  transition: z-index 0s linear 0.1s; /* delays lowering z-index after hover */
}

.vinyl-gallery div:hover {
  z-index: 4;
  transition-delay: 0s; /* raise z-index instantly on hover */
}
  
/* music notes / captions */
.vinyl-gallery div span {
  position: absolute;
  z-index: 5;
  opacity: 0;
  bottom: 5px;
  left: 0;
  width: 100%;
  max-height: 100%;
  overflow-y: scroll;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.7);
  color: var(--font);
  text-align: center; /* horizontal center */
  padding: 5px 5px;
  font-size: auto;
  transition: opacity 0.5s ease;
}
  
  .vinyl-gallery div:hover span{
    opacity: 1;
  }
  
  .album {
    width: 200;
    height: 200;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    position: relative;
    z-index: 3;
  }
  
  .record {
    position: absolute;
    z-index: 2;
    width: calc(100% - 20px);
    height: calc(100% - 20px);
    left: 10px;
    top: 10px;
    transition: transform 0.4s ease; /* timing */
  }
  
  .vinyl-gallery div:hover img.record{
    transform: translate(50%); /* slide out 100 px */
  }

  button {
  /* display: block; */
  background-color: #f9e9ba;
  font: var(--font);
  color: var(--light);
  margin: 5px;
  padding: 5px;
  width: 100px;
  border-top-color: #fdf2de;
  border-left-color: #fdf2de;
  border-width: 3px;
}

button:hover{
  color: var(--link-color-hover);
}