square {
  display: flex;
  flex-flow: column;
  justify-content: space-between;
  background-color: var(--background);
  min-height: 32em;
  margin: 2em var(--square-margin);
  position: relative;
}

square[onclick] {
  cursor: pointer;
}

square h3,
square h4 {
  font-weight: normal;
  margin: 1.5em calc(1em / 1.5);
  flex-grow: 1;
  align-content: center;
  text-align: center;
}

square h3 {
  font-size: 1.5em;
}

square h4 {
  font-size: 1.2em;
  margin: 0.3em auto;
}

square h4 .collab-relation {
  color: var(--foreground-2);
}

square h3 a {
  margin-left: 0.3em;
}

square h3 p {
  margin: 0;
  display: inline-block;
}

square h3 .bi-star-fill {
  fill: var(--highlight);
  stroke: var(--foreground-2);
  margin-right: 0.3em;
  display: none;
}

square .info {
  display: flex;
  flex-flow: row;
  justify-content: space-between;
  align-items: center;
  margin: auto 1em;
}

square .info .subsection,
square .info .section,
square .info .publication,
square .info .date {
  font-family: mono;
  font-size: 0.9em;
  color: var(--foreground-2);
  text-transform: uppercase;
  margin: 1em 0;
}

square .info .name {
  font-family: avec;
  font-size: 2em !important;
  text-transform: uppercase;
}

square .image {
  height: 20em;
  width: 100%;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
}

square.missing-image > .image {
  background-image: url(/images/rum-monogram.svg);
  background-size: auto 85%;
  background-position: center;
}

square ul.collabs-list {
  list-style-type: none;
  padding: 0;
  margin: 1em calc(1em / 0.9);
}

square ul.collabs-list li {
  font-size: 0.9em;
  text-transform: uppercase;
  line-height: 2em;
  text-align: center;
}

square .tag-list {
  display: flex;
  flex-flow: row wrap;
  justify-content: space-evenly;
  width: calc(100% - 12em);
  margin: 0 1em;
}

square .tag-list div {
  font-size: 0.8em;
  font-family: mono;
  margin: 1em 0;
  text-transform: uppercase;
}

square .overlay {
  display: none;
  position: absolute;
  background-color: var(--highlight);
  margin: 0 1em;
  width: calc(100% - 2em);
  padding: 3em 2em;
  text-align: center;
}

square:hover .overlay {
  display: block;
}

square:hover .overlay:empty {
  display: none;
}

square.release .overlay {
  margin-top: 4.7em;
}

square.article:hover {
  background-color: var(--highlight);
}

square.collab:hover {
  background-color: var(--highlight);
}

square .overlay .quote-content {
  margin-bottom: 2em;
  font-size: 1.2em;
}

square .overlay .quote-author {
  text-transform: uppercase;
  font-size: 0.9em;
}

square .overlay .document {
  font-family: mono;
  font-size: 0.8em;
  text-decoration: underline;
  text-transform: uppercase;
}

/* mobile */
@media (max-width: 80em) {
  square {
    margin: 1em 0 !important;
    width: calc(100% - 4em) !important;
  }
}
