// stylelint-disable declaration-no-important

// Flex variation
//
// Custom styles for additional flex alignment options.

@each $breakpoint in map-keys($grid-breakpoints) {
  @include media-breakpoint-up($breakpoint) {
    $infix: breakpoint-infix($breakpoint, $grid-breakpoints);

    .esf-insta-flex#{$infix}-row {
      flex-direction: row !important;
    }
    .esf-insta-flex#{$infix}-column {
      flex-direction: column !important;
    }
    .esf-insta-flex#{$infix}-row-reverse {
      flex-direction: row-reverse !important;
    }
    .esf-insta-flex#{$infix}-column-reverse {
      flex-direction: column-reverse !important;
    }

    .esf-insta-flex#{$infix}-wrap {
      flex-wrap: wrap !important;
    }
    .esf-insta-flex#{$infix}-nowrap {
      flex-wrap: nowrap !important;
    }
    .esf-insta-flex#{$infix}-wrap-reverse {
      flex-wrap: wrap-reverse !important;
    }

    .esf-insta-justify-content#{$infix}-start {
      justify-content: flex-start !important;
    }
    .esf-insta-justify-content#{$infix}-end {
      justify-content: flex-end !important;
    }
    .esf-insta-justify-content#{$infix}-center {
      justify-content: center !important;
    }
    .esf-insta-justify-content#{$infix}-between {
      justify-content: space-between !important;
    }
    .esf-insta-justify-content#{$infix}-around {
      justify-content: space-around !important;
    }

    .esf-insta-align-items#{$infix}-start {
      align-items: flex-start !important;
    }
    .esf-insta-align-items#{$infix}-end {
      align-items: flex-end !important;
    }
    .esf-insta-align-items#{$infix}-center {
      align-items: center !important;
    }
    .esf-insta-align-items#{$infix}-baseline {
      align-items: baseline !important;
    }
    .esf-insta-align-items#{$infix}-stretch {
      align-items: stretch !important;
    }

    .esf-insta-align-content#{$infix}-start {
      align-content: flex-start !important;
    }
    .esf-insta-align-content#{$infix}-end {
      align-content: flex-end !important;
    }
    .esf-insta-align-content#{$infix}-center {
      align-content: center !important;
    }
    .esf-insta-align-content#{$infix}-between {
      align-content: space-between !important;
    }
    .esf-insta-align-content#{$infix}-around {
      align-content: space-around !important;
    }
    .esf-insta-align-content#{$infix}-stretch {
      align-content: stretch !important;
    }

    .esf-insta-align-self#{$infix}-auto {
      align-self: auto !important;
    }
    .esf-insta-align-self#{$infix}-start {
      align-self: flex-start !important;
    }
    .esf-insta-align-self#{$infix}-end {
      align-self: flex-end !important;
    }
    .esf-insta-align-self#{$infix}-center {
      align-self: center !important;
    }
    .esf-insta-align-self#{$infix}-baseline {
      align-self: baseline !important;
    }
    .esf-insta-align-self#{$infix}-stretch {
      align-self: stretch !important;
    }
  }
}
