


$spacer: 1rem !default;
$spacers: (
        0: 0,
        1: $spacer * .25,  //2.5px
        2: $spacer * .5,   //5px
        3: $spacer,        //10px
        4: $spacer * 1.5,  //15px
        5: $spacer * 3,    //30px
        6: $spacer * 5,    //50px
        7: $spacer * 7,    //70px
);

@import "../../../node_modules/bootstrap/scss/bootstrap";

.order-last{
  order: 100 !important;
}

.order-6{
  order: 6;
}
.order-7{
  order: 7;
}
.order-8{
  order: 8;
}
.order-9{
  order: 9;
}
.order-10{
  order: 10;
}
.order-11{
  order: 11;
}
.order-12{
  order: 12;
}
$grid-breakpoints-container: (
        cxs: 420px,
        csm: 600px,
        cmd: 780px,
        clg: 950px,
        cxl: 1100px,
        cxxl: 1270px
) !default;

//Copy paste from bs but for container responsiveness
// Media of at least the minimum breakpoint width. No query for the smallest breakpoint.
// Makes the @content apply to the given breakpoint and wider.
@mixin container-breakpoint-up($name, $breakpoints: $grid-breakpoints-container, $t: '@container') {
  $min: breakpoint-min($name, $breakpoints);
  @if $min {
    @container content (min-width: #{$min}) {
      @content;
    }
  } @else {
    @content;
  }
}

//Copy paste from bs but for container responsiveness
// Media of at most the maximum breakpoint width. No query for the largest breakpoint.
// Makes the @content apply to the given breakpoint and narrower.
@mixin container-breakpoint-down($name, $breakpoints: $grid-breakpoints-container) {
  $max: breakpoint-max($name, $breakpoints);
  @if $max {
    @container content (max-width: #{$max}) {
      @content;
    }
  } @else {
    @content;
  }
}

//Make CSS classes that are responsive to the container
@mixin make-grid-columns-container($columns: $grid-columns, $gutter: $grid-gutter-width, $breakpoints: $grid-breakpoints-container) {
  @each $breakpoint in map-keys($breakpoints) {
    $infix: breakpoint-infix($breakpoint, $breakpoints);

    @include container-breakpoint-up($breakpoint, $breakpoints) {

      // Provide basic `.col-{bp}` classes for equal-width flexbox columns

      //these classes are already made, if we make them again they will break the class order
      .col#{$infix} {
        flex: 1 0 0%; // Flexbugs #4: https://github.com/philipwalton/flexbugs#flexbug-4
      }

      .row-cols#{$infix}-auto > * {
        @include make-col-auto();
      }

      @if $grid-row-columns > 0 {
        @for $i from 1 through $grid-row-columns {W
          .row-cols#{$infix}-#{$i} {
            @include row-cols($i);
          }
        }
      }

      .col#{$infix}-auto {
        @include make-col-auto();
      }

      @if $columns > 0 {
        @for $i from 1 through $columns {
          .col#{$infix}-#{$i} {
            @include make-col($i, $columns);
          }
        }

        // `$columns - 1` because offsetting by the width of an entire row isn't possible
        @for $i from 0 through ($columns - 1) {
          @if not ($infix == "" and $i == 0) { // Avoid emitting useless .offset-0
            .offset#{$infix}-#{$i} {
              @include make-col-offset($i, $columns);
            }
          }
        }
      }

      // Gutters
      //
      // Make use of `.g-*`, `.gx-*` or `.gy-*` utilities to change spacing between the columns.
      @each $key, $value in $gutters {
        .g#{$infix}-#{$key},
        .gx#{$infix}-#{$key} {
          --#{$prefix}gutter-x: #{$value};
        }

        .g#{$infix}-#{$key},
        .gy#{$infix}-#{$key} {
          --#{$prefix}gutter-y: #{$value};
        }
      }
    }
  }
}

@include make-grid-columns-container();