@import "../defaults";   // Global defaults.

// Vartheme Equal height layout for bootstrap rows.
// -----------------------------------------------------------------------------

.equal-height {
  .row {
    display: flex;
    flex-wrap: wrap;

    & > div[class*='col-'] {
      display: flex;
      flex-direction: column;

      article.node {
        height: 100%;
        div.main-content {
          height: 100%;
          div.card {
            height: 100%;
          }
        }
      }
    }
  }
}

@media (min-width: map-get($grid-breakpoints, "sm")) {
  .equal-height-sm {
    .row {
      display: flex;
      flex-wrap: wrap;

      & > div[class*='col-'] {
        display: flex;
        flex-direction: column;

        article.node {
          height: 100%;
          div.main-content {
            height: 100%;
            div.card {
              height: 100%;
            }
          }
        }
      }
    }
  }
}

@media (min-width: map-get($grid-breakpoints, "md")) {
  .equal-height-md {
    .row {
      display: flex;
      flex-wrap: wrap;

      & > div[class*='col-'] {
        display: flex;
        flex-direction: column;

        article.node {
          height: 100%;
          div.main-content {
            height: 100%;
            div.card {
              height: 100%;
            }
          }
        }
      }
    }
  }
}

@media (min-width: map-get($grid-breakpoints, "lg")) {
  .equal-height-lg {
    .row {
      display: flex;
      flex-wrap: wrap;

      & > div[class*='col-'] {
        display: flex;
        flex-direction: column;

        article.node {
          height: 100%;
          div.main-content {
            height: 100%;
            div.card {
              height: 100%;
            }
          }
        }
      }
    }
  }
}

@media (min-width: map-get($grid-breakpoints, "xl")) {
  .equal-height-xl {
    .row {
      display: flex;
      flex-wrap: wrap;

      & > div[class*='col-'] {
        display: flex;
        flex-direction: column;

        article.node {
          height: 100%;
          div.main-content {
            height: 100%;
            div.card {
              height: 100%;
            }
          }
        }
      }
    }
  }
}
