/*
 * This is a globally available SCSS project file.
 * It contains project specific utilities (variables, mixins, functions) that don't! output CSS by default.
 * We use it to be imported in a webpack loader to avoid having to import these in each separate file.
 *
 * This file is used next to "seng-scss" which is imported globally as well and contain the default mixins/vars/functions
 */
/**
 * Asset URL builder
 *
 * @param {String} $type - Asset type, matching folder name
 * @param {String} $file - Asset file name, including extension
 *
 * @return {URL} - A `url()` function leading to the asset
 */
/*
 * Font asset helper
 * @access public
 * @param {String} $file - Asset file name, including extension
 * @return {URL} - A `url()` function leading to the font
 * @require {function} asset
 */
/*
 * Get Font weight
 *
 * @param {String} $weight - The name of the weight you need
 *
 * @return {Number} - The CSS based font weight on the name
 */
/**
 * Z-Index function
 *
 * @param {string} $list (Array) - The list to find the current z-index in
 * @param {string} $element (String) - The name of the current element, must be in the $list
 *
 * @returns {number}
 */
/**
 * Get EM size of a value based on a base size
 *
 * @param {Number} $value - The value you need the EM value from
 * @param {Number} $base - The base value where the $value is calculated upon
 *
 * @return {EM Value} - The EM value based on $value and $base
 */
/**
 * Font Face
 *
 * @param {string} $fontName - Name of the font
 * @param {string} $folderName - Subfolder inside the fonts folder
 * @param {string} $fileName - Name of the font-file
 * @param {string} $fontWeight (normal) - Font weight value
 * @param {string} $fontStyle (normal) - Font style value
 */
/**
 * Respond To (Breakpoint)
 *
 * @param {string} $name - Name of the breakpoint used in $breakpoints
 */
/**
 * Aspect ratio, create a :before pseudo element for setting an aspect ratio on an element
 *
 * @param {number} $width (1) - Percentage width
 * @param {number} $height ($width) - Percentage height
 * @param {boolean} $relative (true) - Add relative position to element
 */
/**
 * Hover Mixin for applying :hover pseudo styles
 *
 * Add your own implementation for showing hovers
 * Example using Modernizr touch check: html.no-touch &:hover { @content; }
 * Leaving it to just :hover by default. But best practice to always use the mixin
 *
 * @param $extraSelector:string (optional) = an extra selector that can have the same styles as a hover (for mobile/active state)
 */
/**
 * Offset
 *
 * @param {number} $top (0) - Top Offset
 * @param {number} $left (0) - Left Offset
 */
/**
 * Position mixin for setting absolute position values
 *
 * The mixin can have multiple arguments providing a number
 * @param {number} $top (0) - Top Position
 * @param {number} $right ($top) - Right Position
 * @param {number} $bottom ($top) - Bottom Position
 * @param {number} $left ($right) - Left Position
 *
 * Or a map of multiple positions
 * @param {map} $args... - A map containing multiple positions (top: 1px, left: 1px)
 */
/**
 * Set pseudo elements styles that are used mostly (content, display, position)
 *
 * @param {display} $display (block)
 * @param {position} $position (absolute)
 * @param {string} $content ('')
 */
/**
 * Size an Element
 *
 * @param {number} $width (1em) - Width of the element
 * @param {number} $height ($width) - Height of the element
 */
.card {
	width: 100%;
	position: relative;
	display: block;
	cursor: pointer;
}

.card::before {
	content: "";
	display: block;
	position: absolute;
	width: calc(100% - 48px);
	height: calc(100% - 76px);
	bottom: 0;
	left: 50%;
	-webkit-transform: translateX(-50%);
	        transform: translateX(-50%);
	background: #858587;
	border-radius: 10px;
	-webkit-box-shadow: 0 0 12px 0 #858587;
	        box-shadow: 0 0 12px 0 #858587;
	opacity: 0;
	-webkit-transition: opacity 0.3s ease-in-out;
	transition: opacity 0.3s ease-in-out;
}

.card:hover::before {
	opacity: 1;
}

.card__label {
	top: 16px;
	left: 8px;
	position: absolute;
}

.card__note {
	color: #fff;
	position: absolute;
	top: 16px;
	right: 16px;
	line-height: 32px;
}

@media (min-width: 768px) {
	.card__note {
		line-height: 40px;
	}
}

.card__image {
	position: relative;
}

.card__image::before {
	content: "";
	display: block;
	position: absolute;
	width: calc(100% - 48px);
	height: calc(100% - 76px);
	bottom: 0;
	left: 50%;
	-webkit-transform: translateX(-50%);
	        transform: translateX(-50%);
	background: #858587;
	border-radius: 10px;
	-webkit-box-shadow: 0 0 12px 0 #858587;
	        box-shadow: 0 0 12px 0 #858587;
	opacity: 0;
	-webkit-transition: opacity 0.3s ease-in-out;
	transition: opacity 0.3s ease-in-out;
}

.card picture {
	position: relative;
	display: block;
	width: 100%;
	overflow: hidden;
	border-radius: 10px;
	background: #f3f4f8;
	position: relative;
	will-change: transform;
}

.card picture::before {
	content: '';
	display: block;
	padding-top: 56.25%;
}

.card picture img {
	top: 0;
	left: 0;
	height: 100%;
	width: 100%;
	position: absolute;
	-o-object-fit: cover;
	   object-fit: cover;
	-webkit-transition: -webkit-transform 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
	transition: -webkit-transform 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
	transition: transform 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
	transition: transform 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), -webkit-transform 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
	font-family: 'object-fit: cover;';
}

.card__description {
	width: 100%;
	padding: 16px 0;
	display: -webkit-box;
	display: -webkit-flex;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-align: end;
	-webkit-align-items: flex-end;
	    -ms-flex-align: end;
	        align-items: flex-end;
	color: #171717;
}

.card__description .copy-01 {
	color: #858587;
}

.card__copy {
	-webkit-box-flex: 1;
	-webkit-flex-grow: 1;
	    -ms-flex-positive: 1;
	        flex-grow: 1;
	max-width: 100%;
}

.card[data-inset-description] .card__description {
	padding: 24px 16px;
	position: absolute;
	bottom: 0;
	color: #fff;
}

.card[data-inset-description] .card__description.black-bg {
	height: 88px;
	background-color: rgba(23, 23, 23, 0.8);
	padding: 8px 8px 16px !important;
	border-bottom-left-radius: 10px;
	border-bottom-right-radius: 10px;
}

.card[data-inset-description]:not([data-no-image]) picture::after {
	content: "";
	display: block;
	position: absolute;
	height: 50%;
	width: 100%;
	bottom: 0;
	left: 0;
	background: -webkit-gradient(linear, left top, left bottom, from(rgba(0, 0, 0, 0)), to(rgba(0, 0, 0, 0.5)));
	background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.5) 100%);
}

.card[data-no-image] picture {
	background: #d9261c;
}

.card[data-no-image] .card__description .copy-01 {
	color: #fff;
}

.card:hover .card__image img {
	-webkit-transform: scale(1.05);
	        transform: scale(1.05);
}

.card:hover .card__image::before {
	opacity: 1;
}

@media (min-width: 480px) {
	.card__label {
		top: 16px;
		left: 16px;
	}
	.card[data-inset-description] .card__description {
		padding: 32px 24px;
	}
}

@media (min-width: 768px) {
	.card__image {
		position: relative;
	}
	.card__image::before {
		border-radius: 20px;
	}
	.card picture {
		border-radius: 20px;
	}
	.card[data-inset-description] .card__description.black-bg {
		height: 152px;
		padding: 16px 16px 24px !important;
		border-bottom-left-radius: 20px;
		border-bottom-right-radius: 20px;
	}
}
