/**
 * @file
 * Breakpoints
 *
 * With these breakpoints we will define how the page layout works.
 * For reference, below are the grid default breakpoints and max-widths defined by Bootstrap 4.
 * https://getbootstrap.com/docs/4.4/layout/grid/#grid-tiers
 *
 * $grid-breakpoints: (
 *   xs: 0,
 *   sm: 576px,
 *   md: 768px,
 *   lg: 992px,
 *   xl: 1200px
 * );
 *
 * $container-max-widths: (
 *   sm: 540px,
 *   md: 720px,
 *   lg: 960px,
 *   xl: 1140px
 * );
 *
 */

/*
 * Usage:
 * @include breakpoint(md){
 *   background: blue;
 * }
 */

/*
example for $data argument
each breakpoint has a pair of corresponding values
$breakpoints-data: (
  breakpoints: (365px + 20px, 767px, 1023px, 1199px, 1440px - 20px, 1440px + 20px, 1600px),
  values: ((190px, 190px), (400px, 190px), (261px, 194px), (230px, 243px), (266px, 266px), (266px, 266px), (300px, 300px))
);
*/

/*
 * Usage:
 * @include breakpoint(md, 700px){
 *   background: blue;
 * }
 */

/**
* @file
* Colors
*
* Colors variables for the whole project.
*/

/**
* @file
* Common variables
*
* Common variables for the whole project
*/

/**
* @file
* Mixins
*
*/

/*
  example:
  .root-class {
    .element {
      .theme_cat & {
        ...
      }
    }
  }
  will result into
  .theme_cat .root-class .element

  .root-class {
    .element {
      @include insert-into-selector-as-last-but-one(".theme_cat") {
        ...
      }
    }
  }
  will result into
  .root-class .theme_cat .element
*/

/*
  example:
  repeat-last-part-of-selector(".root-class .element", 3);
  returns
  ".root-class .element.element.element"
*/

/*
A simple little SCSS mixin for creating scrim gradients
Inspired by Andreas Larson - https://github.com/larsenwork
https://css-tricks.com/easing-linear-gradients/
https://toward.studio/latest/making-css-gradients-smooth
*/

/*
a W3C Specs compliant way to override legacy CSS while explicitly highlighting the pieces of CSS code where refactoring is needed

example of usage:

.page {
  .container {
    &__item {
      @include increase-specificity-by-repeating(3) {
        ...
      }
    }
  }
}

will be built into

.page .container__item.container__item.container__item {
  ...
}

this method of increasing specificity is allowed by CSS Specifications
quote from https://www.w3.org/TR/selectors-3/#specificity:
> Note: Repeated occurrences of the same simple selector are allowed and do increase specificity.
*/

.paragraph--type--c-image {
  overflow: hidden;
  padding-right: 15px !important;
  padding-left: 15px !important;
}

.paragraph--type--c-image .content {
  display: flex;
  position: relative;
  flex-direction: column;
}

.paragraph--type--c-image .field--name-field-c-image img {
  display: block;
  margin: 0 auto;
  height: auto;
  width: 100%;
}

.paragraph--type--c-image .text-container {
  padding-left: 15px;
  padding-right: 15px;
  position: absolute;
  color: #ffffff;
  bottom: 0;
}

.paragraph--type--c-image .field--name-field-c-image-summary-text {
  color: #ffffff;
}

.paragraph--type--c-image h2.paragraph-title {
  font-size: 1.875rem;
  line-height: 2.25rem;
  margin-bottom: 20px;
}

.paragraph--type--c-image .sub-title {
  font-weight: bold;
  margin-bottom: 10px;
}

.paragraph--type--c-image .image-cta-link {
  display: inline-block;
  font-family: "antenna-purina", Helvetica, sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 1rem;
  line-height: 1.375rem;
  margin-bottom: 20px;
}

.paragraph--type--c-image.vertical-above .text-container,
.paragraph--type--c-image.vertical-below .text-container {
  padding: 0;
  color: inherit;
  position: static;
}

.paragraph--type--c-image.vertical-above .field--name-field-c-image-summary-text,
.paragraph--type--c-image.vertical-below .field--name-field-c-image-summary-text {
  color: inherit;
}

.paragraph--type--c-image.vertical-above .text-container {
  order: 1;
}

.paragraph--type--c-image.vertical-above .field--name-field-c-image {
  order: 2;
}

.paragraph--type--c-image.vertical-below .text-container {
  order: 2;
}

.paragraph--type--c-image.vertical-below .field--name-field-c-image {
  margin-bottom: 20px;
  order: 1;
}

.paragraph--type--c-image.horizontal-right {
  text-align: right;
}

.paragraph--type--c-image.horizontal-center {
  text-align: center;
}

.paragraph--type--c-image .text-container.text-vertical-top {
  top: 20px;
  left: 0;
  right: 0;
  bottom: auto;
}

.paragraph--type--c-image .text-container.text-vertical-middle {
  top: 50%;
  left: 0;
  right: 0;
  bottom: auto;
  align-items: flex-start;
  flex-direction: column;
  justify-content: center;
  -webkit-transform: translateY(-50%);
          transform: translateY(-50%);
}

.paragraph--type--c-image .text-container.text-vertical-bottom {
  bottom: 0;
  left: 0;
  right: 0;
  top: auto;
}

.paragraph--type--c-image .text-container.text-horizontal-position-center {
  text-align: center;
}

.paragraph--type--c-image .text-container.text-horizontal-position-right {
  text-align: right;
}

.paragraph--type--c-image.white-text .paragraph-title,
.paragraph--type--c-image.white-text .sub-title,
.paragraph--type--c-image.white-text .field--name-field-c-image-summary-text {
  color: #ffffff;
}

.paragraph--type--c-image.dark-text .paragraph-title,
.paragraph--type--c-image.dark-text .sub-title,
.paragraph--type--c-image.dark-text .field--name-field-c-image-summary-text {
  color: #3a3533;
}