@import url('https://fonts.googleapis.com/css?family=Teko:500&display=swap');

<style>
  .ew-section-wrapper {
    position: relative;
    width: 100vw;
    max-width: 100%;
    height: 587px;
    min-height: 587px;
    overflow: hidden;
    background: #181818;
    font-family: 'Teko', Arial, sans-serif;
    display: flex;
    align-items: stretch;
    justify-content: center;
  }
  .ew-blocks-container {
    z-index: 1;
    position: relative;
    width: 100vw;
    max-width: 100vw;
    height: 587px;
    min-height: 587px;
    display: flex;
    align-items: stretch;
    justify-content: stretch;
  }
  .ew-blocks-1 .ew-block { width: 100vw; }
  .ew-blocks-2 .ew-block { width: 50vw; }
  .ew-blocks-3 .ew-block { width: 33.3333vw; }
  .ew-blocks-4 .ew-block { width: 25vw; }
  .ew-blocks-5 .ew-block { width: 20vw; }
  .ew-blocks-6 .ew-block { width: 16.6667vw; }
  .ew-block {
    position: relative;
    height: 587px;
    min-height: 587px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
  }
  .ew-block-gradient {
    position: absolute;
    top: 0; left: 0; right: 0; height: 587px;
    background: linear-gradient(to bottom, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.0) 40%);
    z-index: 1;
    pointer-events: none;
  }
  .ew-block:hover .ew-block-gradient {
    background: linear-gradient(to bottom, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.3) 40%);
  }
  .ew-block-title-row {
    position: absolute;
    top: 57px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 16px;
    justify-content: center;
    width: max-content;
    max-width: 90%;
  }
  .ew-block-title {
    color: #fff;
    font-family: 'Teko', Arial, sans-serif;
    font-weight: 500;
    font-size: 40pt;
    text-transform: uppercase;
    letter-spacing: 2px;
    line-height: 1;
    text-shadow: 0 2px 8px rgba(0,0,0,0.22), 0 1px 2px rgba(0,0,0,0.11);
    padding: 0;
    background: none;
    border-radius: 0;
    display: inline-block;
    margin: 12px 0 0 0;
    white-space: nowrap;
  }
  .ew-block-icon {
    display: inline-flex;
    align-items: center;
    height: 52px;
    min-width: 52px;
    justify-content: center;
    vertical-align: middle;
    max-width: 52px;
    max-height: 52px;
    margin-top: 5px;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.18));
  }
  .ew-block-link {
    position: absolute;
    inset: 0;
    z-index: 10;
    text-indent: -9999px;
    overflow: hidden;
  }

  @media (max-width: 1300px) {
    .ew-block-title {
      font-size: 32pt;
    }
    .ew-block-icon {
      height: 46px;
      min-width: 46px;
      max-width: 46px;
      max-height: 46px;
    }
    .ew-block-title-row {
      top: 38px;
      gap: 10px;
    }
  }

  @media (max-width: 1100px) {
    .ew-block-title {
      font-size: 26pt;
    }
    .ew-block-icon {
      height: 38px;
      min-width: 38px;
      max-width: 38px;
      max-height: 38px;
    }
    .ew-block, .ew-section-wrapper, .ew-blocks-container {
      height: 420px;
      min-height: 420px;
    }
    .ew-block-title-row {
      top: 28px;
      gap: 10px;
    }
  }
  @media (max-width: 900px) {
    .ew-blocks-container {
      flex-wrap: wrap;
      height: auto;
      min-height: 260px;
    }
    .ew-block {
      height: 260px;
      min-height: 260px;
      width: 100vw !important;
      max-width: 100vw;
    }
    .ew-section-wrapper {
      height: auto;
      min-height: 260px;
      padding: 12px 0;
    }
    .ew-block-title {
      font-size: 22pt;
    }
    .ew-block-icon {
      height: 38px;
      min-width: 38px;
      max-width: 38px;
      max-height: 38px;
    }
    .ew-block-title-row {
      top: 14px;
      gap: 8px;
    }
  }
  @media (max-width: 700px) {
    .ew-block-title {
      font-size: 22pt;
    }
    .ew-block-icon {
      height: 38px;
      min-width: 38px;
      max-width: 38px;
      max-height: 38px;
    }
    .ew-block, .ew-section-wrapper, .ew-blocks-container {
      min-height: 140px;
      height: 140px;
    }

  }
</style>