$elementor-breakpoints: (
	// Phone
	sm: 0,
	// Tablet
	md: 768px,
	// Desktop
	lg: 1025px
) !default;

// Breakpoint viewport sizes and media queries.
//
// Breakpoints are defined as a map of (name: minimum width), order from small to large:
//
//    (xs: 0, sm: 544px, md: 768px)
//
// The map defined in the `$elementor-breakpoints` global variable is used as the `$breakpoints` argument by default.

// Name of the next breakpoint, or null for the last breakpoint.
//
//    >> breakpoint-next(sm)
//    md
//    >> breakpoint-next(sm, (xs: 0, sm: 544px, md: 768px))
//    md
//    >> breakpoint-next(sm, $breakpoint-names: (xs sm md))
//    md
@function elementor-breakpoint-next($name, $breakpoints: $elementor-breakpoints, $breakpoint-names: map-keys($breakpoints)) {
	$n: index($breakpoint-names, $name);
	@return if($n < length($breakpoint-names), nth($breakpoint-names, $n + 1), null);
}

// Minimum breakpoint width. Null for the smallest (first) breakpoint.
//
//    >> breakpoint-min(sm, (xs: 0, sm: 544px, md: 768px))
//    544px
@function elementor-breakpoint-min($name, $breakpoints: $elementor-breakpoints) {
	$min: map-get($breakpoints, $name);
	@return if($min != 0, $min, null);
}

// Maximum breakpoint width. Null for the largest (last) breakpoint.
// The maximum value is calculated as the minimum of the next one less 0.1.
//
//    >> breakpoint-max(sm, (xs: 0, sm: 544px, md: 768px))
//    767px
@function elementor-breakpoint-max($name, $breakpoints: $elementor-breakpoints) {
	$next: elementor-breakpoint-next($name, $breakpoints);
	@return if($next, elementor-breakpoint-min($next, $breakpoints) - 1px, null);
}

// 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 elementor-breakpoint-up($name, $breakpoints: $elementor-breakpoints) {
	$min: elementor-breakpoint-min($name, $breakpoints);
	@if $min {
		@media (min-width: $min) {
			@content;
		}
	} @else {
		@content;
	}
}

// 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 elementor-breakpoint-down($name, $breakpoints: $elementor-breakpoints) {
	$max: elementor-breakpoint-max($name, $breakpoints);
	@if $max {
		@media (max-width: $max) {
			@content;
		}
	} @else {
		@content;
	}
}

// Media between the breakpoint's minimum and maximum widths.
// No minimum for the smallest breakpoint, and no maximum for the largest one.
// Makes the @content apply only to the given breakpoint, not viewports any wider or narrower.
@mixin elementor-breakpoint-only($name, $breakpoints: $elementor-breakpoints) {
	@include elementor-breakpoint-up($name, $breakpoints) {
		@include elementor-breakpoint-down($name, $breakpoints) {
			@content;
		}
	}
}

// Media that spans multiple breakpoint widths.
// Makes the @content apply between the min and max breakpoints
@mixin elementor-breakpoint-between($lower, $upper, $breakpoints: $elementor-breakpoints) {
	@include elementor-breakpoint-up($lower, $breakpoints) {
		@include elementor-breakpoint-down($upper, $breakpoints) {
			@content;
		}
	}
}
