main {
  display: block;
  position: relative;
  padding-bottom: 0;
}
main::after {
  content: '';
  display: block;
  clear: both;
}

h1 {
  max-width: 30rem;
  margin: 2.5rem 0 0 0;
  font-size: 1.67rem;
  font-style: italic;
  line-height: 1;
}
h1 > .logo {
  display: block;
  width: 100%;
  max-width: 19rem;
  margin: 0 0 0.7rem 0;
  padding: 0;
}

.specifications {
  padding-left: 1.2rem;
  font-size: 1.125rem;
  line-height: 1.25;
}
.specifications > li {
  margin: 0.5em 0;
}

.logos {
  margin: 1.5rem 0;
}
.logos > .logo {
  display: inline-block;
  width: auto;
  height: auto;
  max-width: 4rem;
  max-height: 4rem;
  margin: 0;
}
.logos > .logo:nth-child(even) {
  margin: 0 1.5rem;
}

.size-diagram {
  width: 100%;
  height: auto;
}
.grate-diagram {
  display: block;
  width: 85%;
  height: auto;
  margin: 0 0 3rem 12%;
}

.resources > h2 {
  margin: 1.5rem 0 0.3rem 0;
  font-size: 1.25rem;
}
.resources a {
  display: block;
  padding-top: 0.7rem;
  padding-bottom: 0.7rem;
  border-top: 1px solid rgba(0, 0, 0, 0.5);
  font-weight: bold;
  text-decoration: none;
  text-indent: 1.5rem;
  line-height: 1.25;
  color: black;
}
.resources .icon {
  background-position: 1.5rem 0.65rem;
  background-repeat: no-repeat;
}
.resources .pdf {
  background-image: url(../images/icon-pdf-16x16.png);
}
.resources .video {
  background-image:  url(../images/icon-youtube-square.svg);
  background-size: 16px;
}

@media all and (min-width: 24rem) {
  .logos > .logo {
    max-width: 5rem;
    max-height: 5rem;
  }
  .logos > .logo:nth-child(2) {
    margin: 0 2rem;
  }
}

@media all and (min-width: 48rem) {
  main {
    position: relative;
    padding-bottom: 11.5rem;
  }
  .primary {
    float:right;
    clear: right;
    width: 40%;
    margin-top: 5%;
  }
  .logos,
  .resources {
    position: absolute;
    bottom: 2.5rem;
  }
  .logos {
    margin-bottom: 0;
  }
  .logos > .logo {
    max-width: 4rem;
    max-height: 4rem;
  }
  .logos > .logo:nth-child(even) {
    margin: 0 1rem;
  }
  .size-diagram {
    float: left;
    clear: left;
    width: 60%;
    padding: 1.5rem 2rem 0 0;
  }
  .grate-diagram {
    float: left;
    clear: left;
    width: 48%;
    margin: 0 0 3rem 6%;
  }
  .resources {
    margin-bottom: 0.5rem;
  }
  .resources > h2 {
    margin: 0;
  }
  .resources a {
    padding-top: 0.2rem;
    padding-bottom: 0.2rem;
    border-top: none;
    background-position: top 0;
  }
  .resources .icon {
    background-position: 1.5rem 0.2em;
  }
  .resources a:hover {
    text-decoration: underline;
  }
  footer {
    clear: both;
  }
}

@media all and (min-width: 60rem) {
  h1 {
    margin-top: 4rem;
  }
  .resource-items {
    display: grid;
    grid-auto-flow: column;
    grid-template-rows: repeat(2, 1fr);
    column-gap: 2rem;
  }
  .logos > .logo {
    max-width: 4.5rem;
    max-height: 4.5rem;
  }
  .logos > .logo:nth-child(even) {
    margin: 0 1.5rem;
  }
}

@media all and (min-width: 72rem) {
  .resource-items {
    column-gap: 3rem;
  }
  .resources .icon {
    background-position: 2.5rem 0.15em;
  }
  .logos > .logo {
    max-width: 5rem;
    max-height: 5rem;
  }
  .logos > .logo:nth-child(even) {
    margin: 0 1.75rem;
  }
}
@media all and (min-width: 80rem) {
  main > .primary {
    width: 33rem;
  }
  main > .size-diagram {
    width: calc(100% - 33rem);
  }
}
