/*!*******************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-2.use[3]!./web/profiles/uw/uw_profile/modules/uw_theme_components/patterns/molecules/media_image/media-image.scss ***!
  \*******************************************************************************************************************************************************************************************************************************************************************/
/********
 * Colors
 ********/
/************
 * Typography
 ************/
/*
 * We can use the font weight fot the bold styling example below
 * .test-font { font-family: $font-default; } regular
 * .test-font-bold { font-family: $font-default; font-weight: $font-weight-bold; }
 * @see: _typography.scss
*/
/*****************
 * Global elements
 *****************/
/****************
 * Sizing/Spacing
 ****************/
/*******
 * Forms
 ******/
/***********
 * Bootstrap
 ***********/
/**********
 * Mappings
 *********/
/*
 * IMPORTANT:
 *   - This file should *only contain* variables not considered UN style guide *
 */
/**
  Help theming for rtl languages.
*/
/*
 * This handles indentation for the depth of child levels for accordion
 * TODO: improve this implementation, overly complex due to previous design
 */
/*
 * Reset the button appearance to make it look like regular text.
 *
 * The padding can be optionally passed, as it is usually overriden.
 *
 * @param {Number} $padding - The padding to apply to the button.
 */
/*
 * Adds color & text-shadow-based outline to type.
 *
 * @param {color} $color - Color of the marker.
 * @param {color} $border-color - Color for the outline, or border.
 * @param {percent} $border-alpha - Value used in sass:color.scale().
 */
/*
 * Encapsulates the styles for the WYSIWYG editor.
 *
 * We use a mixin in order to be able to reuse these rules inside the
 * CKEditor5 stylesheet to provide the same styles for the editor content.
 * @see un2_theme/scss/admin/_ckeditor5.scss.
 * @see un2_theme/scss/components/_wysiwyg.scss.
 */
.pattern-media-image--wrapped {
  width: 100%;
}
.pattern-media-image--wrapped .pattern-media-image__media {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #f5f5f5;
  aspect-ratio: 16/9;
}
.pattern-media-image--wrapped picture {
  display: contents;
}
.pattern-media-image--wrapped img {
  width: auto;
  max-height: 100%;
}

.pattern-media-image--ratio-1-1 .pattern-media-image__media {
  aspect-ratio: 1/1;
}

.pattern-media-image--ratio-3-2 .pattern-media-image__media {
  aspect-ratio: 3/2;
}

.pattern-media-image--ratio-3-4 .pattern-media-image__media {
  aspect-ratio: 3/4;
}

.pattern-media-image--ratio-4-1 .pattern-media-image__media {
  aspect-ratio: 4/1;
}

.pattern-media-image--ratio-4-3 .pattern-media-image__media {
  aspect-ratio: 4/3;
}

.pattern-media-image--ratio-6-1 .pattern-media-image__media {
  aspect-ratio: 6/1;
}

.pattern-media-image--ratio-9-16 .pattern-media-image__media {
  aspect-ratio: 9/16;
}

.pattern-media-image--ratio-12-5 .pattern-media-image__media {
  aspect-ratio: 12/5;
}

.pattern-media-image--ratio-16-9 .pattern-media-image__media {
  aspect-ratio: 16/9;
}

.pattern-media-image--ratio-27-10 .pattern-media-image__media {
  aspect-ratio: 27/10;
}

.pattern-media-image__download-button {
  position: absolute;
  margin: 0.25rem;
  inset-block-end: 0;
  inset-inline-end: 0;
}
