* {
    box-sizing: border-box;
  }

  h1 {
    text-align: center;
    margin-bottom: 20px;
  }

  p:not(#headerP) {text-align: center;font-size: 1.5em;padding-top: 1em;}
  
  /* @group mixins */
  /* @end */
  /* @group diamonds */
  .l-diamonds {
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0;
  }
 
  @media only screen and (min-width: 1650px) {
    .l-diamonds {
      max-width: 1270px;
      margin-left: 18%;
    }

    .l-diamonds > li:nth-child(9n+6) {
      margin-left: 100px;
    }
    .l-diamonds > li:nth-child(9n+5) {
      margin-right: 0;
    }
    .l-diamonds > li:nth-child(n+5) {
      margin-top: 20px;
    }
  }

  @media only screen and (max-width: 1670px) and (min-width: 1000px) {
      .l-diamonds > li{margin-right: 0px !important;}
  }


  img {
    transform: scale(0.4)
  }


  .l-diamonds > li {
    display: inline-block;
    font-size: 18px;
    margin-right: 80px;
  }

  @media screen and (max-width: 1245px) and (min-width: 940px) {
  .l-diamonds > li {margin-right: 50px;}
  }

  .l-diamonds .diamond {
    backface-visibility: hidden;
    color: #000;
    display: block;
    height: 300px;
    overflow: hidden;
    perspective: 1000;
    position: relative;
    text-decoration: none;
    width: 300px;
    overflow: hidden;
    border: .3em solid #333;
    transform: rotate(-45deg);
    transition: all 0.3s;
  }

  @media only screen and (max-width: 1555px) { .pageheader{text-align: center !important;}}
  @media only screen and (min-width: 1555px) { .button {margin: 0 45.7% !important;}}



  .l-diamonds .diamond:hover{
    width: 320px;height: 320px;filter:contrast(170%);
  }

  
  @media only screen and (max-width: 937px) {

    body, html{overflow-x: hidden !important;padding: 0 !important;}
    .pageheader{padding: 0 !important;}
    .pageheader h1 {margin-top: 2em;}

    .l-diamonds {
      text-align: center;
      margin: 0;
      padding: 0;
    }

    .l-diamonds .diamond {
      margin-bottom: 1em;
      height: 220px;
      transform: rotate(0);
      width: 220px;
      margin: 17%;

      
    }
  }
  .l-diamonds .diamond__content {
    display: flex;
    width: 270px;
    height: 270px;
    padding: 0;
    transform: rotate(45deg);
    transform-origin: 60% 25% 0;
    align-items: center;
    justify-content: center;
    text-align: center;
    vertical-align: center;
  }
  .l-diamonds .diamond__content::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0);
    transition: 0.4s ease;
  }
  @media only screen and (max-width: 537px) {
    .l-diamonds .diamond__content {
      height: 220px;
      transform: rotate(0);
      width: 220px;
    }
  }
  .l-diamonds .diamond__content:hover .diamond__title, .l-diamonds .diamond__content:hover .diamond__subtitle {
    opacity: 1;
    transition: opacity 2s ease;
  }
  .l-diamonds .diamond__title {
    position: absolute;
    opacity: 0;
    color: white;
    top: 90px;
  }
  .l-diamonds .diamond__subtitle {
    position: absolute;
    opacity: 0;
    color: white;
    top: 146px;
  }