@import "variables";
@import "mixins";

.cta-grid {
  .cta-grid-wrap-inner {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: 1fr;
    grid-column-gap: 1rem;
    grid-row-gap: 1rem;
    @include bp("md") {
      grid-template-columns: repeat(2, 1fr);
    }
    @include bp("sm") {
      grid-template-columns: repeat(1, 1fr);
    }
    a {
      position: relative;
      padding: $space-lg 1.5rem $space-sm;
      h3,
      p {
        position: relative;
        z-index: 1;
        color: $white;
      }
      &:after {
        z-index: 0;
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.61) 100%);
      }
      &[href=""] {
        pointer-events: none;
      }
      &:hover {
        text-decoration: none;
      }
    }
  }
  .cta-grid-wrap {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: 1.5fr;
    grid-column-gap: 1.5rem;
    grid-row-gap: 1.5rem;
    @include bp("md") {
      grid-template-columns: repeat(2, 1fr);
    }
    @include bp("sm") {
      grid-template-columns: repeat(1, 1fr);
    }
  }
  .cta-section-placeholder {
    background-color: $col-prm;
  }
}
