square {
  width: calc(calc(var(--main-width) / 3) - var(--square-margins));
}

section square .date,
section square .section {
  display: none;
}

section:nth-of-type(even) {
  background-color: var(--background);
}

section:nth-of-type(odd) {
  background-color: var(--background-1);
}

section:nth-of-type(even) square {
  background-color: var(--background-3);
  box-shadow: 0px 0px 2px rgba(0, 0, 0, 0.1);
}

/* sticky headers */

h1 {
  position: sticky;
  top: calc(4em / 3); /* 3em font-size */
  z-index: 9;
  padding: 0.25em 0 0 0;
}

h1.sticky {
  background-color: var(--background);
  box-shadow: 0px 0px 2px rgba(0, 0, 0, 0.3);
}

h1 .release-name {
  display: none;
}

h1.sticky .release-name {
  display: initial;
}

section:nth-of-type(even) > h1 {
  background-color: var(--background);
}

/* EDITORIAL */

section#editorial main {
  justify-content: center;
  align-items: center;
}

square.editorial .info {
  display: none;
}

#release-quote {
  text-align: left;
  font-size: 1.4em;
  width: calc(calc(calc(var(--main-width) / 3) - var(--square-margins)) / 1.7);
}

nav#sub-nav a[href="#editorial"] {
  display: none;
}

h2.dossier-last-section {
  margin: 2em;
  width: 100%;
  text-transform: uppercase;
  font-size: 1.7em;
  background: linear-gradient(to top,
                              transparent 0%,
                              transparent calc(50% - 0.8px),
                              gray 50%,
                              transparent calc(50% + 0.8px),
                              transparent 100%);
}

h2.dossier-last-section span {
  background-color: white;
  padding: 0 1em;
}

@media (min-width: 80em) {
  section#debate square {
    display: flex;
    flex-flow: column wrap;
    width: var(--main-width);
    height: 30em;
  }

  section#debate square .collabs-list {
    margin-bottom: 4em;
  }

  section#debate square h3 {
    width: calc(calc(calc(var(--main-width) / 2) / 1.5) - var(--square-margins));
  }

  section#debate square .image {
    width: calc(calc(var(--main-width) / 2) - var(--square-margins));
    height: 32em;
  }

  section#debate square > div > div {
    display: flex;
    flex-flow: row;
    justify-content: space-between;
    width: 100%;
  }

  /* PERIÓDICAS */

  square.periódicas {
    width: calc(calc(var(--main-width) / 2) - var(--square-margins));
    background-color: transparent !important;
    box-shadow: none !important;
  }

  square.periódicas .image-frame {
    padding: 3em 5em;
    background-color: var(--background-1);
  }

  square.periódicas:hover {
    background-color: var(--background-3) !important;
  }

  square.periódicas:hover .image-frame {
    background-color: var(--highlight);
  }

  square.periódicas .collabs-list {
    order: 3;
  }

  square.periódicas .image {
    order: 1;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
  }

  square.periódicas h3 {
    order: 2;
  }

  square.periódicas .info {
    order: -1;
    justify-content: space-around;
  }

  square.periódicas .info .subsection {
    font-family: avec;
    font-size: 1.5em;
  }

  square.periódicas .info .publication {
    font-family: avec;
  }

  square.periódicas.perfil-silvestre .info .date,
  square.periódicas.perfil-silvestre .info .publication,
  square.periódicas.perfil-silvestre .info .subsection,
  square.periódicas.perfil-silvestre .info .section {
    color: var(--background) !important;
  }

  square.periódicas.perfil-silvestre h3 {
    font-size: 2em;
  }

  square.periódicas.perfil-silvestre {
    order: 100;
    width: 100%;
    color: var(--background);
    background-color: var(--background-4) !important;
  }

  square.periódicas.perfil-silvestre .image-frame {
    width: 50em;
    margin: auto;
  }

  /* CRÍTICA */

  square.crítica {
    width: calc(calc(var(--main-width) / 2) - var(--square-margins));
    flex-flow: column wrap !important;
    justify-content: space-between;
    min-height: unset !important;
    height: 18em !important;
  }

  square.crítica .image {
    width: 12em;
    height: 18em;
  }

  square.crítica .collabs-list,
  square.crítica .info {
    width: calc(100% - 15em);
    min-height: 0.1px;
  }

  square.crítica h3 {
    width: calc(100% - calc(15em / 1.5));
    margin: auto;
  }

  square.crítica .image-frame {
    padding-right: 1.2em;
  }

  section:nth-of-type(even) square.crítica .image-frame {
    background-color: var(--background);
  }

  section:nth-of-type(odd) square.crítica .image-frame {
    background-color: var(--background-1);
  }
}

@media (max-width: 80em) {
  section#editorial #release-quote {
    display: none;
  }

  h1 .release-name {
    display: none !important;
  }
}
