/**
 * @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.
*/

.component--brand-carousel {
  margin-top: 30px;
  margin-bottom: 30px;
}

.component--brand-carousel .brand-carousel--title {
  font-size: 1.875rem;
  line-height: 2.25rem;
  width: 100%;
  max-width: 100%;
  margin-bottom: 20px;
  text-align: center;
}

.component--brand-carousel .row {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
}

.component--brand-carousel .row .title {
  order: 1;
}

.component--brand-carousel .row .brands__container {
  order: 2;
}

.component--brand-carousel .row .field--name-field-c-brand-car-cta {
  order: 3;
}

.component--brand-carousel .brands__container {
  width: 100%;
  max-width: 100%;
  background-color: #f9f9f9;
}

.component--brand-carousel .slick-slider {
  padding: 0;
}

.component--brand-carousel .slick-list {
  margin: 12px 0;
}

.component--brand-carousel .slick-track {
  display: flex;
  align-items: stretch;
  height: 124px;
}

.component--brand-carousel .slick-slide {
  height: auto;
  min-height: 0;
  margin: 0 10px;
}

.component--brand-carousel .slick-dots {
  margin-top: 0;
  margin-bottom: 20px;
}

.component--brand-carousel .slick-arrow {
  top: 50%;
  width: 24px;
  height: 24px;
}

.component--brand-carousel .slick-arrow.slick-prev {
  left: 0;
  -webkit-transform: translate3d(-50%, -50%, 0);
          transform: translate3d(-50%, -50%, 0);
}

.component--brand-carousel .slick-arrow.slick-next {
  right: 0;
  -webkit-transform: translate3d(50%, -50%, 0);
          transform: translate3d(50%, -50%, 0);
}

.component--brand-carousel .brand__container {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.component--brand-carousel .brand__container .brand__link {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
  height: 100%;
}

.component--brand-carousel .brand__container .brand__link:focus {
  outline: none;
}

.component--brand-carousel .brand__container .brand__link img {
  width: 100%;
  height: 100%;
  -o-object-fit: contain;
     object-fit: contain;
}

.component--brand-carousel .field--name-field-c-brand-car-cta {
  width: 100%;
  max-width: 100%;
  margin-top: 20px;
  text-align: center;
}

@media (min-width: 467.1px) {
  .component--brand-carousel .brand__container .brand__link img {
    position: absolute;
    width: auto;
    -o-object-fit: unset;
       object-fit: unset;
  }
}

@media (min-width: 1140px) {
  .component--brand-carousel {
    padding-left: 27px;
    padding-right: 27px;
    margin-top: 50px;
    margin-bottom: 50px;
  }

  .component--brand-carousel .brand-carousel--title {
    font-size: 2.5rem;
    line-height: 3.25rem;
    max-width: 75%;
    margin-bottom: 0;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .component--brand-carousel .row {
    flex-direction: row;
    justify-content: space-between;
    margin-left: 0;
    margin-right: 0;
  }

  .component--brand-carousel .row .brands__container {
    order: 3;
  }

  .component--brand-carousel .row .field--name-field-c-brand-car-cta {
    order: 2;
  }

  .component--brand-carousel .brands__container {
    margin-top: 20px;
    max-width: calc(1110px - 24px);
    min-height: 151px;
  }

  .component--brand-carousel .slick-slider {
    padding: unset;
  }

  .component--brand-carousel .slick-list {
    margin: 22px 34px;
  }

  .component--brand-carousel .slick-slide {
    margin: 0 5px;
  }

  .component--brand-carousel .field--name-field-c-brand-car-cta {
    max-width: 25%;
    margin-top: 0;
    text-align: right;
  }
}