/* project overview - leads to single albums */

.projects .header { padding-top: 0; }

.albums {
  margin-top: 2rem;
  padding: 0 1rem;
  display: grid;
}

address { padding-left: 0; padding-bottom: 0rem }


/* BREAK POINTS 30 60 */
/* BREAK POINTS 37 67 */


/* narrow */
@media screen and (max-width: 40rem) {

  address { display: none; }
  .albums { margin-top: 1rem; padding: 0; grid-gap: 1rem;  }
  .albums div:first-child { margin-bottom: -1rem; } /* remove grid gap */
  .albums span { padding-bottom: 2rem;  }
  .albums figcaption {
    position: absolute;
    font-size: .9rem;
    bottom:  -1.65rem;
  }
} /* end narrow */


/* inbetween */
@media screen and (min-width: 40rem) {

/*   .albums { grid-template-columns: repeat(2, 1fr); padding: .5rem; grid-gap: 1.5rem; } */
  .albums { grid-template-columns: repeat(2, 1fr); grid-gap: 1.5rem; }
  .albums figcaption {
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    color: rgba(0, 0, 0, 0);
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    line-height: 1.5em;
    padding: 0.75rem 1rem;
    font-size: .875rem;
    text-transform: uppercase;
    letter-spacing: .125em;
  }
  .albums figcaption:hover {
    background: rgba(0,0,0, .25);
    color: #fff;
    transition: all .3s;
  }
} /* end inbetween */


/* wide */
@media screen and (min-width: 65rem) { 
  .albums { grid-template-columns: repeat(3, 1fr); grid-gap: 2rem }
} /* end wide */



.albums div:first-child { 
  display: flex;
  flex-direction: column; 
  justify-content: space-between; 
}

.albums span {
  overflow: hidden; 
}
.albums figure {
  position: relative;
  padding-bottom: 100%; /* squares */
}

.albums .tile img {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all .3s;
}
.albums img:hover {
  /* opacity: .2; */
}
