/* Small devices */
@media screen and (max-width: 600px) {

  section .list-container,
  section .list-container.horizontal-scroll,
  section .list-container.grid-4 {
    grid-template-columns: repeat(1, minmax(0, 1fr)) !important;
  }

  section .list-container.horizontal-scroll {
    grid-auto-flow: row;
  }

  /* resources description content */
  .entry-content {
    display: grid;
    gap: 1.5rem;
  }

  .entry-content figure {
    height: auto;
    max-width: 100%;
  }

  .entry-content figure img {
    height: auto;
    max-width: 100%;
  }
}

@media screen and (max-width: 720px) {
  .responsive-width-30 {
    width: 90vw !important;
  }

  .responsive-width-40 {
    width: 90vw !important;
  }

  .responsive-width-60 {
    width: 60% !important;
  }

  .responsive-width-70 {
    width: 70% !important;
  }

  .clamp-width-55 {
    width: 100vw;
  }

  .responsive-flex-column {
    flex-direction: column;
  }

  .hyperlink.view-all {
    margin-top: 1.5rem;
  }

  .topbar {
    align-items: baseline;
    padding: 1.5rem 1.09375rem;
  }

  .topbar .pages a:not(:first-child) {
    display: none;
  }

  .topbar a.hamburger {
    display: block;
  }

  .topbar .pages {
    position: relative;
    flex-direction: column;
    align-items: flex-start;
    gap: 2rem;
  }

  .topbar .hamburger {
    display: block;
  }

  .topbar.open .pages a {
    float: none;
    display: block;
    text-align: left;
  }

  .topbar a.sign-up-btn {
    margin-right: 1rem;
    padding: 0.75rem 1rem;
  }

  .responsive-image {
    height: 120px !important;
    margin-top: 1.5rem;
  }

  .responsive-hide {
    display: none;
  }

  .content-header {
    flex-direction: row !important;
  }

  .content-header.sm-top-logo {
    flex-direction: column-reverse !important;
    align-items: flex-start;
  }

  .content-header.sm-top-logo .responsive-image {
    margin-bottom: 2rem;
  }

  .text-container {
    width: 100% !important;
    font-size: 1rem;
  }

  .text-container.responsive-width-70 {
    width: 70% !important;
  }

  .image-container {
    width: 100% !important;
  }

  .description-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
  }

  nav a.tabs {
    display: inline-block;
    margin-top: 0.3rem;
    margin-right: 0.5rem;
    padding: 0.9rem 2.08rem;
    border: 1px solid var(--border-color);
    border-radius: 1.5rem;
    text-decoration: none;
    color: var(--bold-text-color);
    font-weight: 500;
  }

  nav a.tabs:first-child {
    margin-left: 1rem;
  }

  footer {
    padding: 1.38rem;
  }

  footer div {
    flex-direction: column;
  }

  footer div.list-container {
    width: 100%;
    flex-direction: column;
  }

  footer ul li,
  footer #page-list,
  .footer-links {
    width: 100%;
  }

  .footer-links {
    white-space: normal;
  }

  .footer-container {
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
  }

  .footer-text {
    width: 100%;
  }

  .footer-title {
    font-size: 1.25rem;
    width: 90%;
  }

  .footer-subtitle {
    width: 70%;
    color: #777;
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.6875rem;
    margin-top: 0.62rem;
  }

  footer .socials {
    text-align: center;
  }

  input,
  select {
    width: 50vw;
  }

  select {
    width: 25vw;
  }

  section {
    flex-direction: column !important;
    align-items: center;
    justify-content: space-evenly;
    padding: 1.25rem 1.09375rem;
    min-height: 50vh;
  }

  section .list-container,
  section .list-container.grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: center;
    gap: 5rem;
  }

  section .list-container.horizontal-scroll {
    justify-content: initial;
  }

  section.responsive-fit {
    padding: 0;
    justify-content: flex-start;
  }

  .responsive-center {
    padding: 1rem 0;
  }

  .responsive-center div {
    padding: 1rem;
    width: fit-content;
  }

  .responsive-center h1 {
    padding: 1rem;
    width: fit-content;
  }

  h1.title {
    font-size: 1.8rem;
  }

  h1.subtitle {
    font-size: 1.2rem;
  }

  iframe {
    width: 100%;
    height: 230px;
  }

  img.acs {
    width: 25rem;
  }

  img.illustration {
    height: 500px;
  }

  .resource-media {
    height: 35vh;
    width: 90vw;
  }

  .bottom-highlight {
    margin-top: 10px;
  }

  .list-item .item-text {
    font-size: 1.125rem;
    margin: 0.75rem auto;
  }

  .list-item .item-description {
    font-size: 1rem;
    color: var(--text-color);
    font-weight: 400;
    line-height: 1.25rem;
  }

  .list-item .item-details {
    margin-top: 1rem;
  }

  .list-item .item-image.product-image {
    width: 21.125rem;
    height: 28.5rem;
  }

  .item-text.set-overflow {
    height: unset;
    overflow: hidden;
  }

  .item-description.set-overflow-2 {
    height: unset;
  }

  .item-description.set-overflow-5 {
    height: unset;
  }

  .resource-articles-header,
  .resource-videos-header {
    margin-left: 2rem;
  }

  button {
    padding: 1rem 1rem !important;
  }

  button.products {
    width: 100%;
  }

  #mcf-illustration {
    margin: auto;
    max-height: 50vh;
  }

  #sign-up-body {
    width: 90% !important;
  }
}

/* medium screens */
@media screen and (min-width: 721px) and (max-width: 1019px) {
  .topbar .pages {
    gap: 2rem;
  }

  section .list-container.grid-4 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer-title {
    width: 90%;
  }
}

@media screen and (min-width: 1020px) and (max-width: 1200px) {

  /* .topbar {
        align-items: baseline;
        padding: 1.5rem 1.09375rem;
    }
    .topbar .pages a:not(:first-child) {
        display: none;
    }
    .topbar a.hamburger {
        display: block;
    }
    .topbar .pages {
        position: relative;
        flex-direction: column;
        align-items: flex-start;
        gap: 2rem;
        margin-left: 2rem;
    }
    .topbar .hamburger {
        display: block;
    }
    .topbar.open .pages a {
        float: none;
        display: block;
        text-align: left;
    }
    .topbar a.sign-up-btn {
        margin-right: 1rem;
    } */
  .topbar .pages {
    width: 75%;
  }

  .list-item {
    width: 100%;
  }
}

/* large screens */
@media screen and (min-width: 1200px) {
  section.responsive-justify {
    justify-content: space-between;
  }

  .topbar {
    justify-content: space-between;
  }
}

/* large screens to extra large screens */
@media screen and (min-width: 1500px) {

  section .list-container,
  section .list-container.grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
}

/* extra large screens */
@media screen and (min-width: 1800px) {

  section .list-container,
  section .list-container.grid-4 {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  }
}