.newsroom {

  .slider .swiper-wrapper .swiper-slide .slider-image {
    width: 20rem;
    height: 35rem;

    @media screen and (orientation: portrait) and (max-width: 640px) {
      width: 12rem;
    }
  }

  .slider .swiper-wrapper .swiper-slide .slider-image .overlay {
    background-color: unset;
    opacity: unset;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .slider-image svg {
    /*filter: drop-shadow(3px 5px 2px rgba(0, 0, 0, 0.6));*/
    opacity: 0.6;
    fill: #fff;
    width: 10rem;
    height: auto;
    transition: opacity 500ms;
  }

  .slider-image:hover svg {
    opacity: 0.9;
  }

  .slider-image {
    .blog {
      height: 100%;

      .image {
        height: 100%;
        width: 100%;
        @media screen and (orientation: portrait) and (max-width: 640px) {
          display: flex;
        }
      }

      svg {
        min-height: 80px;
        max-height: 80px;
      }
    }
  }
}


body.show-overlay {
  overflow: hidden;
}

.yt-overlay {
  overscroll-behavior: contain;
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color:rgba(125, 132, 162, 0.8);
  justify-content: center;
  align-items: center;
  z-index: 11;
  overflow: auto;
}

.overlay-content {
  position: relative;
  width: 90%;
  max-width: 800px;

  display: flex;
  flex-direction: column;
  gap: 20px;
}

.video-container {
  position: relative;
  max-width: 100%;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Media query for landscape orientation */
@media (orientation: landscape) and (max-height: 500px) {
  .video-container {
    padding-bottom: 50%; /* This ratio can be adjusted for better fit */
  }
}

#closeYTOverlayBtn {
  width: 40px;
  align-self: center;
  color: #fff;
  cursor: pointer;
  fill: #ffffff;
}

.bloglist {
  ul {
    li {
      padding-top: 10px;
      padding-left: 0;


      div.image {
        max-width: 150px;
        max-height: 300px;
        @media screen and (orientation: portrait) and (max-width: 640px) {
          display: flex;
        }
      }

      &::before {
        content:"";
      }
    }
  }


  .blog {
    & div.content-section {
      @media screen and (orientation: portrait) and (max-width: 640px) {
        text-align: left;
      }
    }

    div.blog-date {
      padding: 0 1.25rem;
      transform: unset;
      width: unset;
    }

    div.image {
      .lead span {
        -webkit-line-clamp: 5;
      }
    }
  }
}

.blog {
  --grey: #5e6f7f;
  --blogColorOpacity: 1;

  --blue: rgba(76, 105, 133, var(--blogColorOpacity));
  --maroon: rgba(142, 42, 65,  var(--blogColorOpacity));
  --orange: rgba(255, 145, 0,  var(--blogColorOpacity));
  --green: rgba(82, 105, 71,  var(--blogColorOpacity));
  --red: rgba(186, 45, 32,  var(--blogColorOpacity));
  --brown: rgba(111, 77, 12,  var(--blogColorOpacity));


  display: flex;

  &.grey {
    --blogColor: var(--grey)
  }
  &.blue {
    --blogColor: var(--blue);
  }
  &.green {
    --blogColor: var(--green)
  }
  &.brown {
    --blogColor: var(--brown)
  }
  &.orange {
    --blogColor: var(--orange)
  }
  &.red {
    --blogColor: var(--red)
  }
  &.maroon {
    --blogColor: var(--maroon)
  }

  &>div:not(.image) {
    flex: 1;
  }

  & > div.image {

    @media screen and (orientation: portrait) and (max-width: 640px) {
        display: none;
    }

    background-color: var(--blogColor);
    width: 250px;
    height: 480px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;


    p, span {
      color: white;
    }

    .lead {
      flex-grow: 1;
      span {
        margin-inline: 20px;
        display: -webkit-box;
        -webkit-line-clamp: 10;
        -webkit-box-orient: vertical;
        overflow: hidden;
      }
    }

    >:not(.lead) {
      margin-top: 20px;
      margin-bottom: 20px;
    }

    img {
      width: 50%;
    }
  }

  div.blog-date {
    padding: 0 1.25rem;
    @media screen and (orientation: portrait) and (max-width: 640px) {
      padding: 0;
      width: calc(100% + 2.5rem);
      transform: translateX(-1.25rem);
    }

    hr {
      margin: 0;
      background-color: var(--blogColor);
    }

  }

  .blog-text {
    /*position: relative;*/
    display: flex;
    flex-direction: column;

    .blog-content {
      flex: 1;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
    }
  }

  .blog-nav {
    text-align: left;
    /*height: 90px;*/
    /*bottom: 0;*/
    /*position: absolute;*/
    padding-top: 10rem;
    margin-top: auto;

    @media screen and (orientation: portrait) and (max-width: 640px) {
      text-align: center;
    }


    .blog-backtolist {
      padding-bottom: 40px;
    }


    .blog-prevnext {
      display: flex;

      div {
        flex: 1;
      }

      @media screen and (orientation: portrait) and (max-width: 640px) {
        justify-content: space-around;
      }

      a {
        text-decoration: none;
        text-transform: uppercase;
        font-size: 1rem;
        color: #192A33;
        line-height: 1.2rem;
        font-family: "T-Star-Regular", Sans-Serif;
        font-weight: 400;
      }
    }
  }


  div.content-section {
    @media screen and (orientation: portrait) and (max-width: 640px) {
      text-align: center;
    }
  }



}
