.wp-block-group.special-grid > .wp-block-group {

  .gc-link-anything {
    text-decoration: none !important;

    &:nth-child(2) {
      margin-left: -1px;
      margin-right: -1px;
    }

    > .wp-block-group {
      height: 100%;
      max-width: unset;

      display: flex;
      flex-direction: column;
      align-items: start;

      transition: all 0.3s ease-in-out;

      .wp-block-heading {
        margin: 0 !important;
      }

      > .wp-block-group {
        justify-content: space-between;
        flex: 1 0 auto;
        width: 100%;

        p:last-child {
          text-decoration: underline;
          text-decoration-style: dotted;
          justify-self: flex-end;
        }
      }
  
      * {
        max-width: unset;
      }
    }

    &:hover {
      > .wp-block-group {
        border: 1px solid #C6C6C6 !important;
        background: #DADADA !important;
      }
      > .wp-block-group > .wp-block-group > p:last-child {
        color: #353535;
        text-decoration: none;
      }
    }
  }


  @media screen and ( max-width: 850px ) and ( min-width: 600px ) {
    grid-template-columns: repeat( 2, 1fr );
    /* First child */
    .gc-link-anything:first-child {
      grid-area: 1 / 1 / 2 / 2;
    }

    /* Middle element */
    .gc-link-anything:nth-child(2) {
      grid-area: 1 / 2 / 2 / 3;
      margin-right: 0;
    }

    /* Last child */
    .gc-link-anything:last-child {
      margin-top: -1px;
      grid-area: 2 / 1 / 3 / 3;
    }
  }

  @media screen and ( max-width: 600px ) {
    grid-template-columns: 1fr;

    .gc-link-anything:nth-child(2) {
      margin-left: 0;
      margin-right: 0;
      margin-top: -1px;
      margin-bottom: -1px;
    }
  }
}

.has-custom-sort-90-main-background-color {
  .wp-block-group.special-grid > .wp-block-group {
    .gc-link-anything {
      color: #DADADA;

      > .wp-block-group {
        background-color: #353535;
      }

      * {
        color: #DADADA;
      }
      &:hover {
        > .wp-block-group {
          background-color: #5E5E5E !important;

          > .wp-block-group > p:last-child {
            color: #DADADA !important;
          }
        }
      }
    }
  }  
}
