//=============================
//        Layout Mixins
//=============================

// Break Point
@mixin breakpoint($point, $minOrMax: min-width) {
  @media ($minOrMax: $point) {
    @content;
  }
}

// Container
@mixin container {
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
  margin-right: auto;
  margin-left: auto;
  max-width: 1150px;

  @include breakpoint($xxl, min-width) {
    max-width: 1360px;
  }
}

// Boxed Layout
@mixin boxed-layout {
  max-width: 1500px;
  margin-left: auto;
  margin-right: auto;
}

// Absolute element
@mixin absolute-element($top: 0, $right: 0, $bottom: 0, $left: 0) {
  position: absolute;
  top: $top;
  right: $right;
  bottom: $bottom;
  left: $left;
}

// Fixed element
@mixin fixed-element($top: 0, $right: 0, $bottom: 0, $left: 0) {
  position: fixed;
  top: $top;
  right: $right;
  bottom: $bottom;
  left: $left;
}
