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

.news.-list .article {
  margin-bottom: 3rem;
}

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

.article__footer {
  padding-top: var(--g-gap-s);
}

.media__item {
  margin-bottom: var(--g-gap);
}

.media__item:last-child {
  margin-bottom: 0;
}

.media__image {
  position: relative;
  overflow: hidden;
}

.media__caption {
  margin-top: 0.25rem;
  font-family: var(--f-family-i);
  font-size: var(--f-size-s-1);
}

.media__image a::before {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: 100%;
  height: 100%;
  content: "";
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.3s ease 0s;
}

.media__image a::after {
  position: absolute;
  top: 50%;
  left: 0;
  display: block;
  width: 100%;
  height: 100%;
  margin-top: -24px;
  color: rgb(var(--c-neutral-lightest));
  font-family: 'FaLight', sans-serif;
  font-size: var(--f-size-l-4);
  font-style: normal;
  font-weight: normal;
  text-align: center;
  content: "\f002";
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.3s ease 0s;
}

.media__image a:hover::before,
.media__image a:hover::after {
  opacity: 0.8;
}

@media (min-width: 640px) {
  .news.-single .article__media,
  .news.-list .article__image {
    grid-column: span 4;
  }

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

.content > .frame:has(> .news-latest-container) {
  padding-top: 0;
}

.frame > .news-latest-container {
  grid-column: 1 / -1;
}

.news-latest-container {
  position: relative;
  height: 100vh;
  max-height: 750px;
  overflow: hidden;
  background: rgb(var(--c-neutral-lightest));
  z-index: 0;
}

.news-latest-subcontainer {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: 1fr 1fr 1fr;
  grid-template-areas: "Text1 Image2 Text3" "Image1 Image2 Image3" "Image1 Text2 Image3";
  height: calc(100vh - 50px);
  max-height: 700px;
  overflow: hidden;
  position: absolute;
  width: 100%;
  top: 0;
  margin-bottom: 50px;
}

.news-latest-arrows {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.news-latest-arrow {
  font-size: 30px;
  line-height: 1;
  color: rgb(var(--c-neutral-darker));
  cursor: pointer;
}

.news-latest-arrow::before {
  font-family: "FaLight", sans-serif;
}

.news-latest-arrow.-prev::before {
  content: "\f060";
}

.news-latest-arrow.-next::before {
  content: "\f061";
}

.news-latest-arrow.disabled {
  color: rgb(var(--c-neutral));
}

.arrow-div {
  width: 3px;
  background: rgb(var(--c-neutral));
  height: 30px;
  margin: 0 25px 0 20px;
  transform: rotate(45deg) translateY(-5px);
}

.news-latest-subcontainer > div:nth-child(1) {
  grid-area: Text1;
}

.news-latest-subcontainer > div:nth-child(2) {
  grid-area: Image1;
}

.news-latest-subcontainer > div:nth-child(4) {
  grid-area: Image2;
}

.news-latest-subcontainer > div:nth-child(3) {
  grid-area: Text2;
}

.news-latest-subcontainer > div:nth-child(5) {
  grid-area: Text3;
}

.news-latest-subcontainer > div:nth-child(6) {
  grid-area: Image3;
}

.news-latest-image {
  overflow: hidden;
  position: relative;
}

.news-latest-more p {
  position: relative;
  white-space: nowrap;
}

.news-latest-more p::before {
  content: "";
  width: 3px;
  background: rgb(var(--c-neutral-lightest));
  height: 55px;
  transform: rotate(45deg);
  position: absolute;
  left: -12px;
  top: -32px;
}

.news-latest-more p::after {
  content: "";
  width: 3px;
  background: rgb(var(--c-neutral-lightest));
  height: 55px;
  transform: rotate(45deg);
  position: absolute;
  right: -12px;
  bottom: -32px;
}

@media (hover: hover) {
  .news-latest-image:hover .news-latest-more {
    opacity: 1;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
  }

  a.news-latest-more:hover {
    color: rgb(var(--c-neutral-lightest));
  }
}

.news-latest-image img {
  object-fit: cover;
  height: 100%;
  width: 100%;
  max-width: inherit;
}

.news-latest-textwrap a,
.news-latest-textwrap h3 {
  color: rgb(var(--c-neutral-lightest));
}

.news-single-content {
  margin-bottom: 2em;
}

.news-img-container {
  margin-top: 1em;
  border: 1px solid rgb(var(--c-neutral-light));
}

.news-img-container:first-child {
  margin-top: 0;
}

.news-single .news-img-wrap .outer {
  margin-bottom: 1em;
}

.news-single-backlink {
  width: 100%;
  float: left;
  margin-top: 2em;
}

.news-single-item,
.news-list-item {
  overflow: hidden;
}

.news-single .news-img-caption {
  font-size: 87%;
  font-family: "MainFontItalic";
  margin-top: 5px;
}

.news-single .article .news-img-wrap {
  max-width: 40%;
}

div.news .article {
  padding: 0;
  margin: 0;
}

.news .article .news-img-wrap a {
  padding: 0;
}

.news-list-subheader .more {
  margin-top: 1em;
  display: block;
  font-family: var(--f-family-b);
}

.news .article .news-img-wrap a {
  border: none;
}

.news .article:after {
  display: none;
}

@media (hover: hover) {
  .news-list-container a:hover {
    color: rgb(var(--c-neutral-lightest));
    text-decoration: underline;
  }
}

.news-single .teaser-text {
  font-size: 100%;
  color: inherit;
  font-family: var(--f-family-b);
}

.news .footer {
  color: inherit;
  border-top: 1px solid rgb(var(--c-neutral-light));
}

.news .page-navigation {
  display: block;
  width: 100%;
  overflow: hidden;
  grid-column: span 2;
}

.paginator__item {
  background: rgb(var(--c-neutral-lighter));
}

.paginator__item.-current {
  color: rgb(var(--c-neutral-lightest));
  background: rgb(var(--c-primary));
}

@media (hover: hover) {
  .paginator__item:hover {
    color: rgb(var(--c-neutral-lightest));
    background: rgb(var(--c-primary));
  }

  .paginator__item:hover a {
    color: rgb(var(--c-neutral-lightest));
  }
}

@media only screen and (max-width: 800px) {
  .news-latest-subcontainer {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    grid-template-areas: "Text1 Image1 Image1" "Image2 Image2 Text2" "Text3 Image3 Image3";
    height: calc(100vh - 50px);
    max-height: inherit;
  }

  .news-latest-container {
    max-height: inherit;
  }

  .news-latest-subcontainer > div:nth-child(1) {
    grid-area: Text1;
  }

  .news-latest-subcontainer > div:nth-child(2) {
    grid-area: Image1;
  }

  .news-latest-subcontainer > div:nth-child(4) {
    grid-area: Image2;
  }

  .news-latest-subcontainer > div:nth-child(3) {
    grid-area: Text2;
  }

  .news-latest-subcontainer > div:nth-child(5) {
    grid-area: Text3;
  }

  .news-latest-subcontainer > div:nth-child(6) {
    grid-area: Image3;
  }
}

@media only screen and (max-width: 640px) {
  .news-latest-subcontainer {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, 1fr);
    grid-template-areas: "Text1 Image1" "Image2 Text2" "Text3 Image3";
  }

  .news-latest-subcontainer > div:nth-child(1) {
    grid-area: Text1;
  }

  .news-latest-subcontainer > div:nth-child(2) {
    grid-area: Image1;
  }

  .news-latest-subcontainer > div:nth-child(4) {
    grid-area: Image2;
  }

  .news-latest-subcontainer > div:nth-child(3) {
    grid-area: Text2;
  }

  .news-latest-subcontainer > div:nth-child(5) {
    grid-area: Text3;
  }

  .news-latest-subcontainer > div:nth-child(6) {
    grid-area: Image3;
  }
}
