/*  _  _ ______ _____      ___ _____ */
/* |_||_) |  | (_  |    |   | (_  |  */
/* | || \ | _|___) |    |___|___) |  */
/* layout for list elements */
.list-artist {
  --columns: 4;
}

.list-artist article header {
  width: 100%;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
}

.list-artist article header figure {
  background-color: var(--off-color);
  border-radius: 50%;
  width: 54px;
  height: 54px;
  aspect-ratio: 1;
  filter: grayscale(100%);
  object-fit: cover;
  margin-right: 12px;
}

.list-artist article header h2 {
  text-align: left;
}

.list-artist article header p {
  color: var(--secondary-color);
  text-align: left;
  font-weight: 400;
  font-size: 16px;
}

.list-artist article figure,
.list-artist article figure img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
}

.list-artist article header figure img {
  object-fit: cover;
}

/*  _  _ ______ _____ */
/* |_||_) |  | (_  |  */
/* | || \ | _|___) |  */
.single-artist>main {
  display: flex;
  gap: 16px;
  flex-direction: column;
}

.single-artist>main>h2 {
  margin-top: 80px;
  font-family: 'Playfair Display', serif;
  font-weight: 400;
  font-size: 22px;
  line-height: 30px;
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: end;
}

.single-artist>main>h2:after {
  content: "-";
  height: 2px;
  color: transparent;
  background-color: var(--cta-color);
  flex: 1;
  margin-left: 10px;
  position: relative;
  top: -5px;
}

.artist-bio {
  display: flex;
  border: 1px solid var(--off-color);
  padding: 24px;
  gap: 32px;
}

.list.carousel {
  margin-top: 0;
  /* TODO: removes the margin altogether and use gap */
}

.artist-bio figure {
  flex: 0 0 25%;
}

.artist-bio img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  filter: grayscale(1);
}

.artist-bio>article {
  display: flex;
  flex-direction: column;
  row-gap: 16px;
}

.artist-bio .bio-text {
  max-height: calc(6 * 26px);
  overflow: hidden;
  transition: 1.5s max-height ease-in;
}

.artist-bio .bio-text.full {
  max-height: 1000px;
}

.artist-bio p.bitonio {
  text-align: right;
  margin-right: 36px;
}

.list-work {
  --columns: 4;
}

.list-work article {
  display: flex;
  box-sizing: border-box;
  flex-direction: column;
  justify-content: space-between;
  padding: 12px;
  gap: 16px;
}

.list-work article footer {
  margin: 0;
  padding: 0;
  text-align: left;
  background-color: transparent;
  line-height: 26px;
  border-top: none;
  flex-direction: column;
}

.list-work article footer p {
  display: block;
  font-size: 16px;
  color: var(--text-color)
}

.list-work article h3.artist {
  font-size: 16px;
  font-weight: 600;
}

.list-work article img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
}

/* small screens */
@media screen and (max-width: 812px) {
  .list-artist {
    --columns: 1;
  }

  .artist-bio,
  .list-work {
    flex-direction: column;
  }

  .list-work article img {
    width: auto;
    max-width: 100%;
  }

  .single-artist>main>h2 {
    margin-top: 60px;
  }
}
