// RANGES
// We use these functions to define ranges for various things, like media queries.
@use 'sass:list';

@function lower-bound($range) {
  @if list.length($range) <= 0 {
    @return 0;
  }
  @return list.nth($range, 1);
}

@function upper-bound($range) {
  @if list.length($range) < 2 {
    @return 999999999999;
  }
  @return list.nth($range, 2);
}
