/**
 * @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--media-image-video.light-bg {
  background-color: #f9f9f9;
  text-align: left;
  overflow: visible;
  padding: 25px 0;
}

.component--media-image-video.light-bg .carousel-indicators .indicator-total-number {
  background: linear-gradient(90deg, rgba(249, 249, 249, 0) 0%, #f9f9f9 30%, #f9f9f9 100%);
}

.component--media-image-video .media-image-video--title {
  font-size: 1.875rem;
  line-height: 2.25rem;
  margin-bottom: 30px;
}

.component--media-image-video .media-item-caption {
  font-family: "antenna-purina", Helvetica, sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 1.25rem;
  line-height: 1.625rem;
}

.component--media-image-video .media-item-description {
  font-family: "antenna-purina", Helvetica, sans-serif;
  font-weight: 300;
  font-style: normal;
  font-size: 1rem;
  line-height: 1.5rem;
  margin-top: 20px;
}

.component--media-image-video .carousel-controls {
  display: none;
}

.component--media-image-video .carousel-controls.show {
  display: block;
}

.component--media-image-video .carousel-controls .carousel-control {
  display: none;
}

.component--media-image-video .carousel-controls .carousel-control .info {
  display: none;
}

.component--media-image-video .carousel-inner {
  position: relative;
  padding-bottom: 10px;
}

.component--media-image-video .carousel-inner .field--name-field-c-media-item-media {
  margin-bottom: 20px;
}

.component--media-image-video .carousel-inner .field--name-field-c-media-item-media .field--name-image {
  width: 100%;
}

.component--media-image-video .carousel-inner .field--name-field-c-media-item-media .field--name-image img {
  width: 100%;
}

.component--media-image-video .carousel-inner .video-embed-field-provider-youtube:before {
  content: "";
  position: absolute;
  width: 48px;
  height: 48px;
  background: url("../../images/icons/icon-red-white-video-play.svg") center center/48px 48px no-repeat;
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%);
          transform: translate(-50%, -50%);
  z-index: 2;
}

.component--media-image-video .carousel-inner .video-embed-field-provider-youtube.js-player-loaded:before {
  display: none;
}

.component--media-image-video .carousel-indicators {
  display: none;
  position: relative;
  justify-content: flex-start;
  margin: 0 0 20px 0;
  padding-bottom: 10px;
  border-bottom: 1px solid #c9c5b9;
}

.component--media-image-video .carousel-indicators li {
  height: 10px;
  width: 10px;
  background-color: #3a3533;
  border-radius: 50%;
  display: inline-block;
  opacity: 1;
  margin: 0 10px 0 0;
  border-width: 7px;
}

.component--media-image-video .carousel-indicators li:last-child {
  margin: 0;
}

.component--media-image-video .carousel-indicators li.active {
  background-color: #e91c24;
}

.component--media-image-video .carousel-indicators li.active .indicator-number {
  display: block;
}

.component--media-image-video .carousel-indicators.show {
  display: flex;
}

.component--media-image-video .carousel-indicators .indicator-total-number {
  font-size: 1rem;
  line-height: 1.5rem;
  color: #3a3533;
  position: absolute;
  right: -12px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, #ffffff 30%, #ffffff 100%);
  padding-right: 12px;
  padding-left: 40px;
  padding-bottom: 2px;
}

.component--media-image-video .media-image-video--cta {
  display: flex;
  justify-content: center;
}

.component--media-image-video .media-image-video--cta .field--name-field-c-media-cta {
  margin: 0 auto;
}

@media (min-width: 1140px) {
  .component--media-image-video.light-bg {
    padding: 50px 0;
  }

  .component--media-image-video .twb-container {
    max-width: 730px;
    padding: 0;
  }

  .component--media-image-video .media-item-caption {
    padding-right: 80px;
  }

  .component--media-image-video .media-item-description {
    padding-right: 65px;
  }

  .component--media-image-video .carousel-controls .carousel-control {
    display: block;
    position: absolute;
    width: 24px;
    height: 24px;
    background-color: #e91c24;
    border-radius: 3px;
    top: 50%;
    -webkit-transform: translateY(-50%);
            transform: translateY(-50%);
    z-index: 2;
  }

  .component--media-image-video .carousel-controls .carousel-control:after {
    content: "";
    width: 24px;
    height: 24px;
    position: absolute;
    top: 50%;
    -webkit-transform: translateY(-50%);
            transform: translateY(-50%);
  }

  .component--media-image-video .carousel-controls .carousel-control.left {
    left: -12px;
  }

  .component--media-image-video .carousel-controls .carousel-control.left:after {
    background: url("../../images/icons/icon-white-left-arrow.svg") center center/20px 20px no-repeat;
  }

  .component--media-image-video .carousel-controls .carousel-control.right {
    right: -12px;
  }

  .component--media-image-video .carousel-controls .carousel-control.right:after {
    background: url("../../images/icons/icon-white-right-arrow.svg") center center/20px 20px no-repeat;
  }

  .component--media-image-video .carousel-inner {
    padding-bottom: 30px;
  }

  .component--media-image-video .carousel-inner .carousel-item {
    padding: 0;
  }

  .component--media-image-video .carousel-indicators {
    border: none;
    position: absolute;
    height: 0;
    top: 0;
    right: 12px;
  }

  .component--media-image-video .carousel-indicators li {
    height: 0;
    width: 0;
  }

  .component--media-image-video .media-image-video--cta {
    justify-content: flex-start;
    padding: 0 12px;
  }
}