/* =============================================================================
   News latest
   ========================================================================== */

.news.-latest {
  padding: 0 35px;
  position: relative;

  --swiper-navigation-sides-offset: 0;
  --swiper-navigation-size: 45px;
  --swiper-navigation-color: rgb(var(--c-neutral-dark));

  & .swiper-slide {
    height: auto;
    width: 100%;
  }

  & .article {
    display: flex;
    flex-direction: column;
  }

  & .article__text {
    order: 1;
    box-sizing: border-box;
    background: rgb(var(--c-neutral-lightest));
    padding: 2em 3em 2em 2em;
  }

  & .article__image {
    display: none;
    order: 2;
    position: relative;
    z-index: 1;
    overflow: hidden;
    box-shadow: 5px 5px 20px rgba(var(--c-neutral-darkest), 0.1);
  }

  & .gallery__image {
    width: 100%;
    transition: all 0.3s ease;
  }

  & .headline {
    text-align: left;
    margin-bottom: 0.6em;
  }

  & .article__teaser {
    margin-bottom: 1em;
  }

  & .article__more {
    margin-top: 0;
  }
}

@media (hover: hover) {
  .news.-latest .swiper-button-prev:hover,
  .news.-latest .swiper-button-next:hover {
    color: rgb(var(--c-primary));
  }

  .news.-latest .article:hover .gallery__image {
    transform: scale(1.2);
  }
}

/* =============================================================================
   News list
   ========================================================================== */

.news.-list {
  & .article {
    display: block;
    margin-bottom: 2em;
  }

  & .article__image {
    margin-bottom: 1em;
  }

  & .gallery__image {
    width: 100%;
  }

  & .headline {
    text-align: left;
    margin-bottom: 0.6em;
  }

  & .article__more {
    margin-top: 0;
  }

  & .f3-widget-paginator {
    justify-content: center;
  }
}

.news .article .article__more::after {
  content: '\f105';
  font-family: 'FaSolid', sans-serif;
  font-size: 0.75em;
  margin-left: 0.3em;
}

.news .f3-widget-paginator li.gap {
  background: none;
}

/* =============================================================================
   News detail
   ========================================================================== */

.article__more {
  display: block;
  margin-top: 1rem;
}

.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;
}

.news.-single {
  & .headline {
    text-align: left;
  }

  & .media__image img {
    border: 1px solid rgb(var(--c-neutral-light));
  }

  & .article__backlink {
    margin-top: 2em;
    padding-top: 1em;
    border-top: 1px solid rgb(var(--c-neutral-light));
  }

  & .article__backlink .font__button {
    padding: 0;
    background: none;
    color: rgb(var(--c-primary));
  }
}

@media (hover: hover) {
  .news.-single .article__backlink .font__button:hover {
    background: none;
    color: rgb(var(--c-primary-light));
  }
}

.article__backlink .font__button::before {
  content: '\f323';
  font-family: "FaRegular", sans-serif;
  font-size: var(--f-size-s-2);
  margin-right: 0.4rem;
}

/* =============================================================================
   Media Queries
   ========================================================================== */

@media (min-width: 400px) {
  [data-ce-columns="6"] .gallery__item {
    grid-column: span 4;
  }

  .news.-single .article__media {
    grid-column: span 4;
  }

  .news.-single .article__extra,
  .news.-single .article__text {
    grid-column: span 8;
  }
}

@media (min-width: 641px) {
  .news.-latest {
    & .article {
      padding: 20px;
    }

    & .article__text {
      box-shadow: 5px 5px 20px rgba(var(--c-neutral-darkest), 0.1);
    }
  }

  .news.-list {
    & .article {
      display: grid;
      grid-template-columns: 30% 1fr;
      gap: 0 4%;
      align-items: start;
    }

    & .article > * {
      grid-column: auto;
    }

    & .article:not(.-withimage) .article__text {
      grid-column: 1 / -1;
    }

    & .article__image {
      margin-bottom: 0;
    }
  }
}

@media (min-width: 901px) {
  .news.-latest {
    & .article {
      flex-direction: row;
      align-items: flex-start;
    }

    & .article__text {
      flex: 0 0 60%;
      margin-top: 40px;
    }

    & .article__image {
      display: block;
      flex: 0 0 42%;
      margin-left: -2%;
    }
  }
}

@media (min-width: 1025px) {
  .news.-latest {
    & .article__text {
      flex-basis: 50%;
      padding: 2.5em 4em 2.5em 2em;
    }

    & .article__image {
      flex-basis: 52%;
    }

    & .headline {
      margin-bottom: 0;
    }
  }

  .news.-list .headline {
    margin-bottom: 0;
  }
}

@media (min-width: 1181px) {
  .news.-latest .article__text {
    padding: 3.5em 5em 3.5em 4em;
    min-height: 300px;
  }
}
