:root {
  --font-montserrat: "Montserrat", sans-serif;
  --white: #ffffff;
  --black: #000000;
}

html {
  font-size: 62.5%; /* font-size base a nivel de html */
  box-sizing: border-box;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

body {
  font-size: 16px; /* font-size base a nivel del documento (1rem  = 10px) */
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 1.2rem;
}

@media (min-width: 992px) {
  body {
    padding: 0 calc(22.8rem + 0.5vw);
  }
}

/* general */

img {
  max-width: 100%;
}

/* header */

header {
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.artist-card {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.artist-card h1,
h2 {
  font-family: var(--font-montserrat);
  margin: 0;
}

.artist-card h1 {
  font-style: normal;
  font-weight: 600;
  font-size: 1.4rem;
  line-height: 1.7rem;
  text-align: center;
  color: #4e5150;
  margin-top: 1.124rem;
}

.artist-card h2 {
  font-style: normal;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2rem;
  text-align: center;
  color: #a9a9a9;
  margin-top: 0.4rem;
}

.artist-card img {
  border-radius: 1.6rem;
  width: 11rem;
}

.artist-stats {
  margin-top: 1.2rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 1.5rem;
  justify-items: center;
}

.artist-stats p {
  padding: 1rem 0;
  font-family: var(--font-montserrat);
  font-style: normal;
  font-weight: 600;
  font-size: 1.2rem;
  line-height: 1.5rem;
  text-align: center;
  background: #e5e5e5;
  border-radius: 1.2rem;
  margin: 0;
  width: calc(8rem + 0.5vw);
}

.artist-stats p span {
  color: #bdbdbd;
}

/* main */

.main {
  margin-top: 6.4rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)); /* fija áreas iguales */
  grid-auto-columns: minmax(0, 1fr); /* fija áreas iguales */
  grid-auto-flow: column; /* fija áreas iguales */
  gap: 1.17rem;
}

@media (min-width: 992px) {
  .main {
    gap: 3rem;
  }
}

.gallery-item {
  border-radius: 1.2rem;
  filter: drop-shadow(0px 4px 6px rgba(0, 0, 0, 0.15));
  height: 100%;
}

/* posicionamiento de cada imagen */

/* inicio / fin, ambos demarcados por los bordes del grid */

.main img:nth-child(1) {
  grid-row: 1 / 2;
  grid-column: 1 / 2;
}

.main img:nth-child(2) {
  grid-row: 1 / 2;
  grid-column: 2 / 4;
}

.main img:nth-child(3) {
  grid-row: 2 / 3;
  grid-column: 1 / 3;
}

.main img:nth-child(4) {
  grid-row: 2 / 4;
  grid-column: 3 / 4;
}

.main img:nth-child(5) {
  grid-row: 3 / 4;
  grid-column: 2 / 3;
}

.main img:nth-child(6) {
  grid-row: 3 / 4;
  grid-column: 1 / 2;
}

/* footer */

footer {
  margin-top: 9.5rem;
  padding-bottom: 2rem;
}

.footer-text {
  font-family: var(--font-montserrat);
  font-style: normal;
  font-weight: 500;
  font-size: 1.4rem;
  line-height: 1.7rem;
  text-align: center;
  color: #a9a9a9;
}

.username {
  text-decoration: underline;
  font-weight: bold;
}
