// ==============================================================
//  Breakpoints
//  Same widths as Bootstrap 5's grid (max-width = next breakpoint - 1px).
//  Usage: @use "../default/breakpoints" as bp;
//         @include bp.down(lg) { ... }   // max-width: 991px
//         @include bp.up(lg) { ... }     // min-width: 992px
// ==============================================================
@use "sass:map";

$breakpoints: (
  xs: 420px,
  sm: 575px,
  md: 767px,
  lg: 991px,
  xl: 1199px,
  xxl: 1399px,
);

@mixin down($key) {
  @media (max-width: map.get($breakpoints, $key)) {
    @content;
  }
}

@mixin up($key) {
  @media (min-width: map.get($breakpoints, $key) + 1) {
    @content;
  }
}
