/* =============================================================================
   News base (formerly gkmb_base)
   ========================================================================== */

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

.news.-latest {
  grid-column: span 5;
  display: grid;
  grid-template-columns: 1fr;
  grid-gap: var(--g-gap-s);
}

.news.-latest .grid__main {
  display: grid;
}

.news.-list .article,
.news.-latest .article {
  background-color: rgb(var(--c-neutral-lighter));
  padding: 2.5rem 2rem;
}

@media (hover: hover) {
  .news.-list .article:hover,
  .news.-latest .article:hover {
    background-color: rgb(var(--c-primary)) !important;
  }

  .news.-list .article:hover,
  .news.-list .article:hover .font__h4,
  .news.-list .article:hover .article__teaser,
  .news.-list .article:hover .font__speciallink::after,
  .news.-latest .article:hover,
  .news.-latest .article:hover .font__h4,
  .news.-latest .article:hover .font__speciallink::after {
    color: rgb(var(--c-neutral-lightest));
  }

  .news.-list .article:hover .article__text::before,
  .news.-latest .article:hover .article__text::before {
    border-bottom: 4px solid rgb(var(--c-neutral-lightest));
  }
}

.content__bottom > .frame:nth-child(odd) .news.-list .article,
.content > .frame:nth-child(2n) .news.-list .article,
.content__bottom > .frame:nth-child(odd) .news.-latest .article,
.content > .frame:nth-child(2n) .news.-latest .article {
  background-color: rgb(var(--c-neutral-lightest));
}

.news.-list .article__text::before,
.news.-latest .article__text::before {
  content: "";
  display: inline-block;
  margin-bottom: 0.5rem;
  border-bottom: 4px solid rgb(var(--c-neutral-darker));
  width: 40px;
}

.news.-list .article {
  margin-bottom: var(--g-gap-s);
  display: block;
}

.news.-list .article__teaser {
  font-family: var(--f-family);
  color: rgb(var(--c-neutral-dark));
}

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

ul.f3-widget-paginator li.previous a::after {
  content: "\f053";
  font-family: "FaLight", sans-serif;
  font-weight: normal;
  font-style: normal;
  text-decoration: inherit;
  -webkit-font-smoothing: antialiased;
  height: auto;
  line-height: normal;
  vertical-align: baseline;
  font-size: var(--f-size);
}

ul.f3-widget-paginator li.next a::after {
  content: "\f054";
  font-family: "FaLight", sans-serif;
  font-weight: normal;
  font-style: normal;
  text-decoration: inherit;
  -webkit-font-smoothing: antialiased;
  height: auto;
  line-height: normal;
  vertical-align: baseline;
  font-size: var(--f-size);
}

ul.f3-widget-paginator li {
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 5px 5px 0;
  background: rgb(var(--c-neutral-lighter));
}

ul.f3-widget-paginator li a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  color: rgb(var(--c-neutral-dark));
  font-family: var(--f-family);
}

ul.f3-widget-paginator {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
}

ul.f3-widget-paginator li.current {
  background: rgb(var(--c-primary));
  color: rgb(var(--c-neutral-lightest));
}

@media (hover: hover) {
  ul.f3-widget-paginator li:hover {
    background: rgb(var(--c-primary));
    color: rgb(var(--c-neutral-lightest));
  }

  ul.f3-widget-paginator li:hover a {
    color: rgb(var(--c-neutral-lightest));
  }
}

.article__backlink .font__button::before {
  content: "\f060";
  font-family: "FaSolid", sans-serif;
  font-size: var(--f-size-s-1);
  margin-right: 0.3rem;
}

/* newsticker */

.ticker__title a.nolink {
  cursor: default;
}

/* video list (template layout 4) */

.news.-video {
  display: grid;
  gap: var(--g-gap);
}

.news.-video .article {
  position: relative;
  display: block;
  height: 100%;
  padding: 0.75rem;
  background: rgb(var(--c-neutral-lightest));
  border: 1px solid rgb(var(--c-neutral-light));
  border-radius: var(--b-radius-s);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.news.-video article {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.news.-video .article__image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  border-radius: var(--b-radius-s);
  flex-shrink: 0;

  & img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
  }

  /* play button */
  &::after {
    position: absolute;
    top: 50%;
    left: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    padding-left: 3px;
    border-radius: 50%;
    background: rgb(var(--c-neutral-lightest));
    color: rgb(var(--c-primary));
    font-family: "FaSolid", sans-serif;
    font-size: var(--f-size-s-1);
    content: "\f04b";
    transform: translate(-50%, -50%);
  }
}

.news.-video .article__text {
  min-width: 0;
  padding-right: 1.5rem;
}

.news.-video .article__category {
  margin-bottom: 0.5rem;
  color: rgb(var(--c-neutral-dark));
  font-size: var(--f-size-s-1);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.news.-video .article__headline {
  margin-bottom: 0.5rem;
}

.news.-video .article__more {
  margin-top: 0.75rem;
  color: rgb(var(--c-primary));
}

/* external link icon (::after from gkmb_base) in the top right corner of the tile */
.news.-video .article::after {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  margin-left: 0;
  line-height: 1;
}

@media (hover: hover) {
  .news.-video .article:hover {
    border-color: rgb(var(--c-neutral));
    box-shadow: 0 4px 14px rgba(var(--c-neutral-darkest), 0.08);
  }

  .news.-video .article:hover .article__image img {
    transform: scale(1.04);
  }
}

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

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

  .news.-list .article__image {
    grid-column: span 5;
  }

  .news.-list .article.-withimage .article__text {
    grid-column: span 7;
  }

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

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

  .news.-latest {
    grid-template-columns: repeat(2, 1fr);
  }

  .news.-video article {
    flex-direction: row;
    align-items: center;
    gap: 1.25rem;
  }

  .news.-video .article__image {
    width: 42%;
  }

}

@media (min-width: 800px) {
  .news.-latest .article {
    padding: 4rem 3.5rem;
  }
}

@media (min-width: 1024px) {
  .news.-video {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1280px) {
  .news.-latest {
    grid-template-columns: repeat(4, 1fr);
  }
}
