.news-listing {
  position: relative;
  margin: 4rem 3.5rem 3rem;
}

.news {
  width: calc(20% - 1rem);
  margin: 0 0.5rem 1rem;
  position: absolute;
  z-index: 1;
  background-color: hsl(0, 0%, 50%);
  color: white;
  text-transform: uppercase;
  font-feature-settings: "case" on, "liga" off;
}

.news:hover {
  background-color: black;
}

.news--video {
  background-color: hsl(0, 0%, 25%);
}

.news--video:hover {
  background-color: hsl(0, 0%, 25%);
}

.news--small {
  height: 4rem;
  font-size: 2rem;
  line-height: 2;
}

.news--video.news--small {
  width: calc(20% - 1rem);
  height: 24rem;
}

.news--medium {
  height: 9rem;
  font-size: 9.2rem;
  line-height: 9rem;
}

.news--video.news--medium {
  width: calc(40% - 1rem);
  height: 49rem;
}

.news--large {
  height: 14rem;
  font-size: 16rem;
  line-height: 14rem;
}

.news--super-short {
  width: calc(20% - 1rem);
}

.news--short {
  width: calc(40% - 1rem);
}

.news--normal {
  width: calc(60% - 1rem);
}

.news--long {
  width: calc(80% - 1rem);
}

.news--super-long {
  width: calc(100% - 1rem);
}

.news--text {
  cursor: default;
}

.news--image {
  font-size: 2rem;
  line-height: 2;
}

.news_content {
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: relative;
}

.news--image .news_content {
  padding-bottom: 4rem;
}

.news_content:before,
.news_content:after {
  content: "";
  display: block;
  width: 4rem;
  height: 4rem;
  position: absolute;
  top: 0;
  right: 0;
  z-index: 1;
}

.news--video .news_content:before,
.news--video .news_content:after {
  display: none;
}

.news--image .news_content:before,
.news--image .news_content:after {
  top: auto;
  bottom: 0;
}

.news--text .news_content:after {
  display: none;
}

.news_content:before {
  width: 6rem;
  background: linear-gradient(to left, hsl(0, 0%, 50%), hsl(0, 0%, 50%) 30%, rgba(128, 128, 128, 0));
}

.news--text .news_content:before {
  width: 4rem;
  background: linear-gradient(to left, hsl(0, 0%, 50%), rgba(128, 128, 128, 0));
}

/* .news--image .news_content:before {
  width: 10rem;
  max-width: 100%;
  height: 10rem;
  max-height: 100%;
  background: radial-gradient(circle at bottom right,
    hsl(0, 0%, 0%) 0%,
    hsl(0, 0%, 50%) 0%,
    hsla(0, 0%, 50%, 0.987) 4.05%,
    hsla(0, 0%, 50%, 0.951) 7.75%,
    hsla(0, 0%, 50%, 0.896) 11.25%,
    hsla(0, 0%, 50%, 0.825) 14.5%,
    hsla(0, 0%, 50%, 0.741) 17.65%,
    hsla(0, 0%, 50%, 0.648) 20.6%,
    hsla(0, 0%, 50%, 0.55) 23.55%,
    hsla(0, 0%, 50%, 0.45) 26.45%,
    hsla(0, 0%, 50%, 0.352) 29.4%,
    hsla(0, 0%, 50%, 0.259) 32.35%,
    hsla(0, 0%, 50%, 0.175) 35.5%,
    hsla(0, 0%, 50%, 0.104) 38.75%,
    hsla(0, 0%, 50%, 0.049) 42.25%,
    hsla(0, 0%, 50%, 0.013) 45.95%,
    hsla(0, 0%, 50%, 0) 50%
  );
} */

.news:hover .news_content:before {
  background: linear-gradient(to left, black, black 30%, rgba(0, 0, 0, 0));
}

.news--text:hover .news_content:before {
  background: linear-gradient(to left, black, rgba(0, 0, 0, 0));
}

/* .news--image:hover .news_content:before {
  background: radial-gradient(circle at bottom right,
    hsl(0, 0%, 0%) 0%,
    hsla(0, 0%, 0%, 0.987) 4.05%,
    hsla(0, 0%, 0%, 0.951) 7.75%,
    hsla(0, 0%, 0%, 0.896) 11.25%,
    hsla(0, 0%, 0%, 0.825) 14.5%,
    hsla(0, 0%, 0%, 0.741) 17.65%,
    hsla(0, 0%, 0%, 0.648) 20.6%,
    hsla(0, 0%, 0%, 0.55) 23.55%,
    hsla(0, 0%, 0%, 0.45) 26.45%,
    hsla(0, 0%, 0%, 0.352) 29.4%,
    hsla(0, 0%, 0%, 0.259) 32.35%,
    hsla(0, 0%, 0%, 0.175) 35.5%,
    hsla(0, 0%, 0%, 0.104) 38.75%,
    hsla(0, 0%, 0%, 0.049) 42.25%,
    hsla(0, 0%, 0%, 0.013) 45.95%,
    hsla(0, 0%, 0%, 0) 50%
  );
} */

.news--medium .news_content:before {
  width: 13.5rem;
  height: 9rem;
}

.news--text.news--medium .news_content:before {
  width: 9rem;
}

.news--large .news_content:before {
  width: 21rem;
  height: 14rem;
}

.news--text.news--large .news_content:before {
  width: 14rem;
}

.news_content:after {
  background-position: center;
  background-repeat: no-repeat;
  background-size: 2rem;
}

.news--medium .news_content:after {
  width: 9rem;
  height: 9rem;
  background-size: 9.2rem;
}

.news--large .news_content:after {
  width: 14rem;
  height: 14rem;
  background-size: 16rem;
}

.news--page .news_content:after,
.news--url .news_content:after {
  background-image: url('../assets/go.svg');
}

.news--file .news_content:after {
  background-image: url('../assets/download.svg');
}

.news--image .news_content img {
  display: block;
  width: 100%;
  height: auto;
  margin: -2rem 0;
}

.news--image .news_content img:last-child:not(:first-child) {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0s ease-in-out;
}

.news--image:hover .news_content img:last-child:not(:first-child) {
  opacity: 1;
  visibility: visible;
}

.news_description {
  display: inline-block;
  height: 100%;
  padding: 0 1rem;
  white-space: nowrap;
  transition: transform 5s ease-in-out;
}

.news--image .news_description {
  height: auto;
  position: absolute;
  bottom: 0;
  left: 0;
}

.news--video .news_description {
  width: 100%;
  padding: 0;
}

.news--video iframe {
  width: 177.77%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  mix-blend-mode: screen;
  filter: grayscale(100%);
}

.news--video iframe:hover {
  mix-blend-mode: unset;
  filter: grayscale(0%);
}

@media (max-width: 1440px) {
  .news,
  .news--super-short,
  .news--short {
    width: calc(33.333% - 1rem);
  }

  .news--normal,
  .news--long {
    width: calc(66.666% - 1rem);
  }

  .news--super-long {
    width: calc(100% - 1rem);
  }

  .news--video.news--small {
    width: calc(33.333% - 1rem);
  }

  .news--video.news--medium {
    width: calc(66.666% - 1rem);
  }
}

@media (max-width: 768px) {
  .news,
  .news--super-short,
  .news--short,
  .news--normal,
  .news--long {
    width: calc(100% - 1rem);
  }

  .news--super-long {
    width: calc(100% - 1rem);
  }

  .news--large {
    height: 9rem;
    font-size: 9.2rem;
    line-height: 9rem;
  }

  .news--large .news_content:before {
    width: 13.5rem;
    height: 9rem;
  }

  .news--text.news--large .news_content:before {
    width: 9rem;
  }

  .news--large .news_content:after {
    width: 9rem;
    height: 9rem;
    background-size: 9.2rem;
  }

  .news--video.news--small {
    width: calc(100% - 1rem);
  }

  .news--video.news--medium {
    width: calc(100% - 1rem);
    height: 24rem;
  }
}