.frame-type-news_pi1 {
  position: relative;
  overflow: hidden;
}

.news.-media {
  display: grid;
  grid-gap: var(--g-gap);
  padding: var(--p) 0;

  & .gallery__image {
    width: 100%;
    margin-bottom: 1rem;
  }

  & .article__text {
    color: rgb(var(--c-neutral-dark));
    display: block;
  }
}

.news.-latest {
  padding: 0 0 80px 0;
  position: relative;
  overflow: hidden;

  --swiper-navigation-sides-offset: 0;
  --swiper-navigation-color: rgb(var(--c-primary));

  & .swiper-slide {
    height: auto;
    width: 100%;
  }

  & .article {
    background: rgb(var(--c-neutral-lightest));
    height: 100%;
    padding: 1rem 0 0 1rem;
  }

  & .article__text {
    padding-top: 2.5rem;
  }

  & .article__image {
    position: relative;
    box-shadow: 0 5px 10px 0 rgba(0, 0, 0, 0.15);

    & .gallery__image {
      width: 100%;
    }
  }

  & .article__image::before {
    content: "\f324";
    font-family: "FaRegular";
    font-size: 50px;
    line-height: 50px;
    width: 50px;
    color: rgb(var(--c-secondary));
    position: absolute;
    top: 50%;
    margin-top: -25px;
    left: 50%;
    margin-left: -25px;
    text-shadow: 0 0 30px rgb(var(--c-neutral-darkest));
    opacity: 0;
    transition: all 0.3s ease 0s;
    -webkit-transition: all 0.3s ease 0s;
    -moz-transition: all 0.3s ease 0s;
  }

  & .article__image::after {
    content: "";
    position: absolute;
    top: -1rem;
    left: -1rem;
    width: 100%;
    height: 100%;
    border: 6px solid #c29d7a;
    z-index: 10;
    opacity: 0;
    transition: all 0.3s ease 0s;
    -webkit-transition: all 0.3s ease 0s;
    -moz-transition: all 0.3s ease 0s;
  }

  & .gallery__image {
    transition: all 0.4s ease;
  }
}

@media (hover: hover) {
  .article__more:hover::after {
    color: rgb(var(--c-primary));
  }
}

.news.-latest .grid__main {
  display: grid;
}

.grid__main .news.-latest.grid__main {
  margin-left: -4%;
  margin-right: -4%;
}

.news.-list .article {
  margin-bottom: 3rem;
}

.article__more {
  display: block;
  margin-top: 1rem;
  color: rgb(var(--c-secondary));
  font-weight: var(--f-weight-sb);
}

.article__more::after {
  content: "\f324";
  font-family: "FaSolid", sans-serif;
  color: rgb(var(--c-secondary));
  font-size: var(--f-size-s-2);
  left: 0;
  position: relative;
}

.article__footer {
  padding-top: var(--g-gap-s);
  border-top: 1px solid rgb(var(--c-neutral-lighter));
}

.media__item {
  margin-bottom: var(--g-gap);
}

.media__item:last-child {
  margin-bottom: 0;
}

.media__image {
  position: relative;
  overflow: hidden;
}

.article__backlink .font__button::before {
  content: "\f323";
  font-family: "FaRegular", sans-serif;
  font-size: var(--f-size-s-2);
  margin-right: 0.4rem;
}

.news.-latest div.swiper-button-prev {
  position: absolute;
  left: auto;
  right: calc(50% + 5px);
  transform: none;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  bottom: 0;
  top: initial;
}

.news.-latest div.swiper-button-next {
  position: absolute;
  bottom: 0;
  left: calc(50% + 5px);
  right: auto;
  transform: none;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  width: inherit;
  top: initial;
}

.news.-latest div.swiper-button-prev,
.news.-latest div.swiper-button-next {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  cursor: pointer;
  padding: 1.8rem 2rem;
}

.news.-latest div.swiper-button-prev {
  background-color: rgb(var(--c-neutral-lightest));
  color: rgb(var(--c-primary));
  border: 1px solid rgb(var(--c-primary));
}

.news.-latest div.swiper-button-next {
  background-color: rgb(var(--c-primary));
  color: rgb(var(--c-neutral-lightest));
  border: 1px solid rgb(var(--c-primary));
}

.swiper-button-prev::after {
  content: "\f323";
  font-family: "FaRegular", sans-serif;
  font-size: 26px;
}

.swiper-button-next::after {
  content: "\f324";
  font-family: "FaRegular", sans-serif;
  font-size: 26px;
}

/* =============================================================================
   Media Queries
   ========================================================================== */

@media (min-width: 400px) {
  [data-ce-columns="6"] .gallery__item {
    grid-column: span 4;
  }

  .news.-single .article__media,
  .news.-list .article__image {
    grid-column: span 4;
  }

  .news.-single .article__extra,
  .news.-single .article__text,
  .news.-list .article .article__text {
    grid-column: span 8;
  }

  .news.-media {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 640px) {
  .news.-latest {
    & .swiper-slide {
      margin-right: 20px;
      width: calc(50% - 10px);
    }
  }
}

@media (min-width: 800px) {
  .news.-list {
    display: block;
    grid-gap: var(--g-gap);

    & .f3-widget-paginator {
      grid-column: span 2;
    }
  }

  .news.-media {
    grid-template-columns: 1fr;
    margin-left: -4vw;
    margin-right: -4vw;
    grid-gap: 0;
    padding: 0;

    & .article__text {
      width: 50%;
      padding: 2rem 2rem 2rem 4%;
    }

    & .article.-media {
      &:hover .article__image,
      &:first-child .article__image {
        opacity: 1;
      }

      &:hover {
        background: rgb(var(--c-primary));

        & .article__text {
          color: rgb(var(--c-neutral-lightest));
        }

        & h3 {
          color: rgb(var(--c-secondary));
        }
      }

      &:not(:last-child) {
        border-bottom: 1px solid rgb(var(--c-neutral-light));
      }
    }

    & .article__image {
      opacity: 0;
      position: absolute;
      width: 50%;
      height: 100%;
      right: 0;
      top: 0;

      & .gallery__image {
        object-fit: cover;
        width: 100%;
        height: 100%;
      }
    }
  }
}

@media (min-width: 1024px) {
  .news.-latest {
    & .swiper-slide {
      width: calc(33.33% - 13px);
    }

    & .article__teaser {
      opacity: 0;
    }

    & .article__more {
      opacity: 0;
    }
  }

  @media (hover: hover) {
    .news.-latest .article:hover .article__image::after,
    .news.-latest .article:hover .article__image::before {
      opacity: 1;
    }

    .news.-latest .article:hover .article__teaser,
    .news.-latest .article:hover .article__more {
      opacity: 1;
    }

    .article__more:hover::after {
      color: rgb(var(--c-primary));
    }
  }
}

@media (min-width: 1580px) {
  .news.-latest {
    margin-left: -1rem;
    margin-right: calc(-50vw + 720px);

    & .article__text {
      padding: 2.5rem 2rem 0 0;
    }
  }

  .news.-media {
    margin-left: calc(-50vw + 720px);
    margin-right: calc(-50vw + 720px);

    & .article__text {
      padding-left: calc(50vw - 720px);
    }
  }
}
