.album{
  margin-top: 10vh;
}

.album-cover {
  position: relative;
  line-height: 0;
  margin-bottom: 6rem;
  background: #000;
  padding-bottom: 75%;
}
.album-cover figcaption {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  bottom: 0;
  left: 0;
  right: 0;
  top: 0;
  text-align: center;
  color: #fff;
  line-height: 1;
  padding: 1.5rem;
}
.album-cover img {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.album-cover h1 {
  font-size: 3rem;
  font-family: miller-display, serif;
  font-weight: 600;
  font-style: italic;
}
.album-text {
  max-width: 100rem;
  margin: 0 auto 2rem;
  text-align: left;
  display: flex;
}

.album-text p{
  width: 40%;
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.05em;
}

p.album-tags.tags{
  text-align: left;
  text-transform: none;
  font-size: 0.875rem;
  font-weight: 400;
}

.album-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  margin: 0 auto;
  grid-gap: 1rem;
  max-width: calc(var(--content-width) - 15rem);
  justify-content: center;
}
.album-gallery[data-even] {
  grid-template-columns: repeat(4, 1fr);
}
.album-gallery[data-count="1"] {
  grid-template-columns: 1fr;
}
.album-gallery[data-count="2"] {
  grid-template-columns: 1fr 1fr;
}

.grid-2 {
  display: grid;
  list-style: none;
  grid-gap: 1rem;
  line-height: 0;
  grid-auto-rows: 300px;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-flow: dense;
}
.grid-2 li {
  position: relative;
  --cols: 1;
  --rows: 1;

  overflow: hidden;
  background: #000;
  line-height: 0;
}
.grid-2 li:first-child {
  grid-column:1/3;
  grid-row: 1/3;
}
.grid-2 li:nth-child(5) {
  grid-column:2/4;
  grid-row: 3/5
}
.grid-2 li:nth-child(6) {
  --rows: 2;
}
.grid-2 li:nth-child(7) {
  --cols: 2;
}

.grid-2 a {
  display: block;
  height: 10rem;
}
.grid-2 img {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all .3s;
}

@media screen and (max-width: 768px) {
  .album-text{
    display: block;
  }
  .album-text p{
    width: 100%;
    display: block;
  }

  .grid-2{
    grid-template-columns:repeat(1, 1fr);
  }

  .grid-2 li{
    grid-column: 1/4;
  }

  .grid-2 li:first-child {
    grid-column:1/4;
    grid-row: 1/2;
  }

  .grid-2 li:nth-child(5) {
    grid-column:1/4;
    grid-row: 3/4
  }

}
