@media screen and (width<=768px) {
  .desktop-only {
    display: none;
  }
}

@media screen and (width>768px) {
  .mobile-only {
    display: none;
  }
}
body {
  position: relative;
}

.mentions {
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: center;
  font-size: 16px;
}

.medium-column {
  width: 100%;
  padding: var(--small-gutter);
  box-sizing: border-box;
}

.anchor-link {
  margin-top: 15px;
  float: right;
  padding: 8px;
  border: 1px solid var(--white);
  background-color: var(--accent);
  border-radius: 14px;
  color: var(--white);
}

.left {
  float: right;
  margin-bottom: 48px;
}

.anchor-link:hover {
  background-color: var(--white);
  color: var(--accent);
  border: 1px solid var(--accent);
}

section .content {
  display: flex;
  flex-direction: column;
  gap: var(--large-gutter);
}

section .content figure {
  width: 100%;
}
.palier {
  display: flex;
  flex-direction: column;
  align-items: stretch;

  h2 {
    aspect-ratio: 1;
    border: 1px solid var(--accent);
    color: var(--second-accent);
    border-radius: 10px;
    text-align: center;
    font-size: 16vw;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  p {
    margin: 0 var(--small-gutter);
    padding: 0;
    line-height: 1.4;
  }
}

.horizontal-pill {
  p {
    line-height: 1.2;
  }

  .content {
    align-items: flex-start;
    align-content: start;
  }
}

.square-row {
  display: flex;
  flex-direction: row;
  gap: 10px;
  flex-wrap: wrap;
  padding: 10px;
  border-radius: 12px;
}

.dark-background {
  background-color: var(--main-color);
}

.square {
  width: 96px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  border-radius: 12px;
  font-weight: 700;
  text-align: center;
}

.pills-rows {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  justify-content: space-around;
}

.vertical-pill {
  width: 100%;
  display: flex;
  flex-direction: column;

  .content {
    display: flex;
    flex: auto;
    flex-direction: column;

    figure {
      flex: none;
    }

    .text {
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      align-items: flex-end;
    }
  }

  h2 {
    min-height: 20px;
    margin: var(--small-gutter) 0;
  }

  figure {
    margin: 0;
    padding: 0;
  }

  picture,
  figure,
  img {
    width: 100%;
  }
}

@media screen and (min-width: 768px) and (width<=1024px) {
  .vertical-pill:nth-child(n + 3) {
    margin-top: var(--large-gutter);
  }
}

@media screen and (min-width: 768px) {
  .vertical-pill {
    width: 40%;

    h2 {
      min-height: 90px;
      margin: var(--small-gutter) 0;
    }

    p {
      line-height: 1.2;
    }
  }

  .left {
    float: left;
  }

  .whisper {
    text-align: right;
    width: 100%;
    display: block;
    margin-top: var(--small-gutter);
  }

  .medium-column {
    width: 90%;
    margin: 0 auto;
    padding: var(--small-gutter);
    box-sizing: border-box;
  }

  section .content {
    flex-direction: row;
  }

  section .content p,
  section .content .text {
    flex: 2;
  }

  section .content figure {
    flex: 1;
  }

  section .reverse {
    flex-direction: row-reverse;
  }

  .palier {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    width: 768px;
    margin: 0 auto;

    h2 {
      box-shadow: rgba(0, 0, 0, 0.16) 0px 3px 6px,
        rgba(0, 0, 0, 0.23) 0px 3px 6px;
      margin: var(--small-gutter);
      height: 260px;
      aspect-ratio: 1;
      border: 4px solid var(--accent);
      box-shadow: 3px;
      color: var(--second-accent);
      border-radius: 10px;
      text-align: center;
      font-size: 48px;
      display: flex;
      flex-direction: column;
      justify-content: center;
    }

    p {
      margin: var(--small-gutter) 0;
      padding: 0;
      line-height: 1.4;
    }
  }
}

.break-message li {
  margin-left: var(--large-gutter);
  margin-bottom: var(--small-gutter);
}
@media screen and (width>1024px) {
  .vertical-pill {
    width: 30%;
  }

  /* All but the first line */

  .vertical-pill:nth-child(n + 4) {
    margin-top: var(--large-gutter);
  }
  .medium-column {
    width: 960px;
  }
}
