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

.view-nppe-article-list {
  counter-reset: featured-counter;
}

.view-nppe-article-list .view-header {
  font-size: 1rem;
  line-height: 1.5rem;
  margin-bottom: -5px;
}

.view-nppe-article-list .view-title {
  font-family: "antenna-purina", Helvetica, sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 1.5625rem;
  line-height: 2.1875rem;
  margin-top: 4px;
  margin-bottom: -11px;
  margin-left: -2px;
}

.view-nppe-article-list .view-content,
.view-nppe-article-list .row__content {
  margin-top: 30px;
}

.view-nppe-article-list .view-content.with-sticky,
.view-nppe-article-list .row__content.with-sticky {
  margin-top: 0;
}

.view-nppe-article-list .row__content {
  width: 100%;
}

.view-nppe-article-list .component--article-tile {
  margin-bottom: 30px;
}

.view-nppe-article-list .views-row {
  position: relative;
  width: 100%;
}

.view-nppe-article-list .views-row:before {
  content: "";
  position: absolute;
  width: 50px;
  height: 50px;
  left: 0;
  top: -45px;
  color: transparent;
  background-color: transparent;
  z-index: -1;
}

.view-nppe-article-list .views-row.first-not-sticky {
  padding-top: 20px;
}

.view-nppe-article-list .views-row:last-child .component--article-tile {
  margin-bottom: 50px;
}

.view-nppe-article-list .view-footer {
  font-size: 1rem;
  line-height: 1.5rem;
  text-align: center;
  margin-top: 50px;
  margin-bottom: 10px;
}

.view-nppe-article-list.views-page--0 .row__content.with-sticky .views-row.is-sticky:nth-child(1),
.view-nppe-article-list.views-page--0 .row__content.with-sticky .views-row.is-sticky:nth-child(2),
.view-nppe-article-list.views-page--0 .row__content.with-sticky .views-row.is-sticky:nth-child(3),
.view-nppe-article-list.views-page--0 .row__content.with-sticky .views-row.is-sticky:nth-child(4) {
  margin-top: 75px;
}

.view-nppe-article-list.views-page--0 .views-row.is-sticky:nth-child(1):before,
.view-nppe-article-list.views-page--0 .views-row.is-sticky:nth-child(2):before,
.view-nppe-article-list.views-page--0 .views-row.is-sticky:nth-child(3):before,
.view-nppe-article-list.views-page--0 .views-row.is-sticky:nth-child(4):before {
  counter-increment: featured-counter;
  content: counter(featured-counter);
  font-family: "antenna-purina", Helvetica, sans-serif;
  font-weight: 400;
  font-style: normal;
  color: #ffffff;
  background-color: #e91c24;
  font-size: 1.5625rem;
  line-height: 3.125rem;
  text-align: center;
  border-radius: 3px;
  border-bottom-left-radius: 0;
  z-index: 2;
}

.view-nppe-article-list.views-page--0 .views-row.is-sticky:nth-child(1) .component--article-tile,
.view-nppe-article-list.views-page--0 .views-row.is-sticky:nth-child(2) .component--article-tile,
.view-nppe-article-list.views-page--0 .views-row.is-sticky:nth-child(3) .component--article-tile,
.view-nppe-article-list.views-page--0 .views-row.is-sticky:nth-child(4) .component--article-tile {
  height: 100%;
  flex-direction: column;
  box-shadow: 0 4px 12px 0 rgba(88, 79, 76, 0.16);
}

.view-nppe-article-list.views-page--0 .views-row.is-sticky:nth-child(1) .component--article-tile > .image-wrapper,
.view-nppe-article-list.views-page--0 .views-row.is-sticky:nth-child(2) .component--article-tile > .image-wrapper,
.view-nppe-article-list.views-page--0 .views-row.is-sticky:nth-child(3) .component--article-tile > .image-wrapper,
.view-nppe-article-list.views-page--0 .views-row.is-sticky:nth-child(4) .component--article-tile > .image-wrapper {
  width: 100%;
}

.view-nppe-article-list.views-page--0 .views-row.is-sticky:nth-child(1) .component--article-tile > .image-wrapper:before,
.view-nppe-article-list.views-page--0 .views-row.is-sticky:nth-child(2) .component--article-tile > .image-wrapper:before,
.view-nppe-article-list.views-page--0 .views-row.is-sticky:nth-child(3) .component--article-tile > .image-wrapper:before,
.view-nppe-article-list.views-page--0 .views-row.is-sticky:nth-child(4) .component--article-tile > .image-wrapper:before {
  content: "";
  position: absolute;
  height: 5px;
  width: 100%;
  z-index: 1;
}

.view-nppe-article-list.views-page--0 .views-row.is-sticky:nth-child(1) .component--article-tile > .image-wrapper .field--type-image,
.view-nppe-article-list.views-page--0 .views-row.is-sticky:nth-child(2) .component--article-tile > .image-wrapper .field--type-image,
.view-nppe-article-list.views-page--0 .views-row.is-sticky:nth-child(3) .component--article-tile > .image-wrapper .field--type-image,
.view-nppe-article-list.views-page--0 .views-row.is-sticky:nth-child(4) .component--article-tile > .image-wrapper .field--type-image {
  width: 100%;
}

.view-nppe-article-list.views-page--0 .views-row.is-sticky:nth-child(1) .component--article-tile > .image-wrapper img,
.view-nppe-article-list.views-page--0 .views-row.is-sticky:nth-child(2) .component--article-tile > .image-wrapper img,
.view-nppe-article-list.views-page--0 .views-row.is-sticky:nth-child(3) .component--article-tile > .image-wrapper img,
.view-nppe-article-list.views-page--0 .views-row.is-sticky:nth-child(4) .component--article-tile > .image-wrapper img {
  width: 100%;
}

.view-nppe-article-list.views-page--0 .views-row.is-sticky:nth-child(1) .component--article-tile > .image-wrapper .sponsored-by-image,
.view-nppe-article-list.views-page--0 .views-row.is-sticky:nth-child(2) .component--article-tile > .image-wrapper .sponsored-by-image,
.view-nppe-article-list.views-page--0 .views-row.is-sticky:nth-child(3) .component--article-tile > .image-wrapper .sponsored-by-image,
.view-nppe-article-list.views-page--0 .views-row.is-sticky:nth-child(4) .component--article-tile > .image-wrapper .sponsored-by-image {
  width: 50px;
}

.view-nppe-article-list.views-page--0 .views-row.is-sticky:nth-child(1) .component--article-tile > .inner-content,
.view-nppe-article-list.views-page--0 .views-row.is-sticky:nth-child(2) .component--article-tile > .inner-content,
.view-nppe-article-list.views-page--0 .views-row.is-sticky:nth-child(3) .component--article-tile > .inner-content,
.view-nppe-article-list.views-page--0 .views-row.is-sticky:nth-child(4) .component--article-tile > .inner-content {
  flex-grow: 1;
  padding: 20px 10px 30px;
  border-right: none;
}

.view-nppe-article-list.views-page--0 .views-row.is-sticky:nth-child(1) .component--article-tile > .inner-content > .heading,
.view-nppe-article-list.views-page--0 .views-row.is-sticky:nth-child(2) .component--article-tile > .inner-content > .heading,
.view-nppe-article-list.views-page--0 .views-row.is-sticky:nth-child(3) .component--article-tile > .inner-content > .heading,
.view-nppe-article-list.views-page--0 .views-row.is-sticky:nth-child(4) .component--article-tile > .inner-content > .heading {
  margin-top: 0;
  margin-bottom: 12px;
}

.view-nppe-article-list.views-page--0 .views-row.is-sticky:nth-child(1) .component--article-tile > .inner-content > h2,
.view-nppe-article-list.views-page--0 .views-row.is-sticky:nth-child(2) .component--article-tile > .inner-content > h2,
.view-nppe-article-list.views-page--0 .views-row.is-sticky:nth-child(3) .component--article-tile > .inner-content > h2,
.view-nppe-article-list.views-page--0 .views-row.is-sticky:nth-child(4) .component--article-tile > .inner-content > h2 {
  margin-bottom: 0;
}

.view-nppe-article-list.views-page--0 .views-row.is-sticky:nth-child(1) .component--article-tile > .inner-content .sponsored-by,
.view-nppe-article-list.views-page--0 .views-row.is-sticky:nth-child(2) .component--article-tile > .inner-content .sponsored-by,
.view-nppe-article-list.views-page--0 .views-row.is-sticky:nth-child(3) .component--article-tile > .inner-content .sponsored-by,
.view-nppe-article-list.views-page--0 .views-row.is-sticky:nth-child(4) .component--article-tile > .inner-content .sponsored-by {
  margin-top: 10px;
}

.view-nppe-article-list.views-page--0 .views-row:nth-child(4) {
  margin-bottom: 50px;
}

.view-nppe-article-list .views-row .component--article-tile .sponsored-by-image {
  display: none;
}

.view-nppe-article-list .views-row.is-sticky:nth-child(-n+4) .component--article-tile .sponsored-by-image {
  display: block;
}

.views-row.is-sticky .component--article-tile.brand--bakers > .image-wrapper:before {
  background-color: #389bc9;
}

.views-row.is-sticky .component--article-tile.brand--felix > .image-wrapper:before {
  background-color: #00238c;
}

.views-row.is-sticky .component--article-tile.brand--purina-pro-plan > .image-wrapper:before {
  background-color: #222222;
}

.views-row.is-sticky .component--article-tile.brand--adventuros > .image-wrapper:before {
  background-color: #3f2021;
}

.views-row.is-sticky .component--article-tile.brand--beta > .image-wrapper:before {
  background-color: #faf6ed;
}

.views-row.is-sticky .component--article-tile.brand--beyond > .image-wrapper:before {
  background-color: #eee9ea;
}

.views-row.is-sticky .component--article-tile.brand--bonio > .image-wrapper:before {
  background-color: #e91c24;
}

.views-row.is-sticky .component--article-tile.brand--dentalife > .image-wrapper:before {
  background-color: #00c0f3;
}

.views-row.is-sticky .component--article-tile.brand--go-cat > .image-wrapper:before {
  background-color: #ffe600;
}

.views-row.is-sticky .component--article-tile.brand--friskies > .image-wrapper:before {
  background-color: #ffe600;
}

.views-row.is-sticky .component--article-tile.brand--purina-one > .image-wrapper:before {
  background-color: #171c8f;
}

.views-row.is-sticky .component--article-tile.brand--proplan-vet-diets > .image-wrapper:before {
  background-color: #222222;
}

.views-row.is-sticky .component--article-tile.brand--winalot > .image-wrapper:before {
  background-color: #0e4231;
}

.views-row.is-sticky .component--article-tile.brand--gourmet > .image-wrapper:before {
  background-color: #84754e;
}

.views-row.is-sticky .component--article-tile.brand--dog-chow > .image-wrapper:before {
  background-color: #234b8d;
}

.views-row.is-sticky .component--article-tile.brand--catchow > .image-wrapper:before {
  background-color: #234b8d;
}

.views-row.is-sticky .component--article-tile.brand--beneful > .image-wrapper:before {
  background-color: #df5300;
}

.views-row.is-sticky .component--article-tile.brand--friskies-dog > .image-wrapper:before {
  background-color: #92b533;
}

@-webkit-keyframes fadeIn1 {
  0% {
    opacity: 0;
  }

  70% {
    visibility: visible;
    opacity: 1;
  }
}

@keyframes fadeIn1 {
  0% {
    opacity: 0;
  }

  70% {
    visibility: visible;
    opacity: 1;
  }
}

@-webkit-keyframes fadeIn2 {
  0% {
    opacity: 0;
  }

  80% {
    visibility: visible;
    opacity: 1;
  }
}

@keyframes fadeIn2 {
  0% {
    opacity: 0;
  }

  80% {
    visibility: visible;
    opacity: 1;
  }
}

@-webkit-keyframes fadeIn3 {
  0% {
    opacity: 0;
  }

  90% {
    visibility: visible;
    opacity: 1;
  }
}

@keyframes fadeIn3 {
  0% {
    opacity: 0;
  }

  90% {
    visibility: visible;
    opacity: 1;
  }
}

@-webkit-keyframes fadeIn4 {
  0% {
    opacity: 0;
  }

  100% {
    visibility: visible;
    opacity: 1;
  }
}

@keyframes fadeIn4 {
  0% {
    opacity: 0;
  }

  100% {
    visibility: visible;
    opacity: 1;
  }
}

@media (min-width: 1140px) {
  .view-nppe-article-list .view-title {
    font-size: 2.5rem;
    line-height: 3.25rem;
    margin-left: -3px;
  }

  .view-nppe-article-list .view-content,
  .view-nppe-article-list .row__content {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    margin-top: 0;
    -webkit-column-gap: 30px;
       -moz-column-gap: 30px;
            column-gap: 30px;
  }

  .view-nppe-article-list .component--article-tile {
    margin-bottom: 0;
  }

  .view-nppe-article-list .views-row.first-not-sticky {
    padding-top: 0;
  }

  .view-nppe-article-list .views-row {
    visibility: hidden;
    max-width: 255px;
    margin: 50px 0 0;
    width: calc(25% - 22.5px);
  }

  .view-nppe-article-list .views-row:nth-child(4n) {
    margin-right: 0;
  }

  .view-nppe-article-list .views-row .component--article-tile {
    height: 100%;
  }

  .view-nppe-article-list .views-row .component--article-tile > .inner-content {
    flex-grow: 1;
  }

  .view-nppe-article-list .views-row .component--article-tile .image-wrapper {
    max-height: 144px;
  }

  .view-nppe-article-list .views-row.visible {
    -webkit-animation-fill-mode: forwards;
            animation-fill-mode: forwards;
    visibility: hidden;
  }

  .view-nppe-article-list .views-row.visible:nth-child(4n+1) {
    -webkit-animation: 2s fadeIn1;
            animation: 2s fadeIn1;
  }

  .view-nppe-article-list .views-row.visible:nth-child(4n+2) {
    -webkit-animation: 2s fadeIn2;
            animation: 2s fadeIn2;
  }

  .view-nppe-article-list .views-row.visible:nth-child(4n+3) {
    -webkit-animation: 2s fadeIn3;
            animation: 2s fadeIn3;
  }

  .view-nppe-article-list .views-row.visible:nth-child(4n) {
    -webkit-animation: 2s fadeIn4;
            animation: 2s fadeIn4;
  }

  .view-nppe-article-list.views-page--0 .row__content.with-sticky .views-row:nth-child(1),
  .view-nppe-article-list.views-page--0 .row__content.with-sticky .views-row:nth-child(2),
  .view-nppe-article-list.views-page--0 .row__content.with-sticky .views-row:nth-child(3),
  .view-nppe-article-list.views-page--0 .row__content.with-sticky .views-row:nth-child(4) {
    margin-top: 75px;
  }

  .view-nppe-article-list.views-page--0 .views-row:nth-child(4) {
    margin-bottom: 0;
  }

  .view-nppe-article-list .views-row .component--article-tile .sponsored-by-image {
    display: block;
  }
}

@media screen and (min-width: 1140px) and (-ms-high-contrast: active), (min-width: 1140px) and (-ms-high-contrast: none) {
  .view-nppe-article-list .views-row {
    visibility: visible;
  }
}