
*{
  font-family: "Montserrat", sans-serif;
}


.content-wrapper {
  margin: 0 auto;
  max-width: 1500px;
  display: flex;
  flex-flow: row wrap;
  justify-content: center;
  padding: 0.5rem;
}

.news-card {
  border: 0px solid aqua;
  right: 0;
  margin: 1.5rem;
  position: relative;
  height: 12rem;
  overflow: hidden;
  border-radius: 0.5rem;
  flex: 1;
  min-width: 290px;
  cursor: pointer;
  box-shadow: 0 0 1rem rgba(0, 0, 0, 0.5);
  -webkit-backface-visibility: hidden;
  -moz-backface-visibility: hidden;
  -webkit-transform: translate3d(0, 0, 0);
  -moz-transform: translate3d(0, 0, 0);
}

@media (min-width: 900px) {
  .news-card {
    height: 20rem;
    max-width: 20rem;
  }
}

.news-card::before{
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0) linear-gradient(to bottom, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, 0.7) 80%);;
    z-index: 0;
}

.news-card__card-link{
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
/*     background: rgba(255,0,0,.5); */
}

.news-card__image{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 3s ease;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  position: relative;
  z-index: -1;
}

.news-card__text-wrapper{
  position: absolute;
  width: 100%;
  bottom: 0rem;
  padding: 1rem;
  color: white;
/*     background-color: rgba(0, 0, 0, 0.4); */
  transition: background-color 1.5s ease;
}

.news-card__title{
  transition: color 1s ease;
  margin-bottom: .5rem;
  font-size:1rem;
}

.news-card__post-date{
  font-size: .7rem;
  margin-bottom: .5rem;
  color: white;
}

.news-card__details-wrapper{
  max-height: 0;
  opacity: 0;
  transition: max-height 1.5s ease, opacity 1s ease;
}

@media (min-width: 900px) {
  
  .news-card:hover .news-card__details-wrapper{
    max-height: 20rem;
    opacity: 1;
  }

  .news-card:hover .news-card__text-wrapper{
    background-color: rgba(1,86,170, 0.4);
  }

  .news-card:hover .news-card__title{
    color: white;
  }

  .news-card:hover .news-card__image{
    transform: scale(1.2);
    z-index: -1;
  }

}

.news-card__excerpt{
  font-weight: 300;
}

.news-card__read-more{
  color: #7cc576;
  display: block;
  padding: 0.4rem 0.6rem;
  border-radius: 0.3rem;
  margin-top: 1rem;
  font-size: 0.8rem;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  text-decoration: none;
  width: 10rem;
  margin-left: auto;
  position: relative;
  z-index: 5;
  cursor: pointer;
}

/*MODAL*/

.modal {
  position: fixed;
  left: 0;
  bottom: 0;
  margin-top: auto;
  margin-bottom: auto;
  width: 100%;
  height: 0px;
  background: rgba(51,51,51, 0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: 0.4s;
}
  
  .modal-container {
    display: flex;
    max-width: 1200px;
    height: 650px;
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    position: absolute;
    opacity: 0;
    pointer-events: none;
    transition-duration: 0.3s;
    background: #fff;
    transform: translateY(100px) scale(0.4);
  }

  .modal-title {
    font-size: 26px;
    margin: 0;
    font-weight: 400;
    color: #0156aa;
  }

  .modal-date{
    font-style: italic;
  }

  .modal-desc {
    margin: 6px 0 30px 0;
    height: 85%;
    overflow-y: auto;
  }

  .modal-right {
    padding: 60px 30px 20px;
    background: #fff;
    flex: 1.5;
    transition-duration: 0.5s;
    transform: translateY(80px);
    opacity: 0;
    
  }
  
  .modal-button:hover {
      border-color: rgba(255, 255, 255, 0.2);
      background: rgba(#fff, 0.8);
    }

  .modal-left {
    flex: 2;
    font-size: 0;
    transition: 0.3s;
    overflow: hidden;
  }

  .modal-left img {
      width: 100%;
      height: 100%;
      transform: scale(2);
      object-fit: fill;
      transition-duration: 1.2s;
    } 

  .modal.is-open {
    height: 100%;
    background: rgba(#333, 0.85);
  }    

  .modal.is-open .modal-button {
    opacity: 0;
  }


  .modal.is-open .modal-container {
    opacity: 1;
    transition-duration: 0.6s;
    pointer-events: auto;
    transform: translateY(0) scale(1);
  }

  .modal.is-open .modal-left img {
    transform: scale(1);
  }

  .modal.is-open .modal-right {
    transform: translateY(0);
    opacity: 1;
    transition-delay: 0.1s;
  }

.icon-button {
  outline: 0;
  position: absolute;
  right: 25px;
  top: 12px;
  width: 32px;
  height: 32px;
  border: 0;
  background: 0;
  padding: 0;
  cursor: pointer;
}


@media(max-width: 750px) {
  .modal-container {
    width: 90%;
    height: 500px;
  }
  .modal-left {
    display: none;
  }
  .icon-button {
    right: 10px;
  }
  .modal-desc {
    height: 75%;
  }
}

/*Pagination*/

.pagination {
  box-sizing: border-box;
  list-style: none;
  padding: 0;
  margin-top: 10px;
}
.pagination a{
  font-weight: bold;
  float: left;
  display: block;
  font-size: 20px;
  text-decoration: solid;
  padding: 5px 12px;
  color: #fff;
  margin-left: -1px;
  border: 1px solid transparent;
  line-height: 1.5;
}

.pagination input{
  text-align: center;
  font-size: 20px;
  font-weight: 400;
  width: 150px;
  border: 1px solid #ddd;
  margin-left: -1px;
  
}

.pagination a:first-child {
  -moz-border-radius: 6px 0 0 6px;
  -webkit-border-radius: 6px;
  border-radius: 6px 0 0 6px;
}
.pagination a:last-child{
  -moz-border-radius: 0 6px 6px 0;
  -webkit-border-radius: 0;
  border-radius: 0 6px 6px 0;
}
.pagination a {
  border-color: #ddd;
  color: #0156aa;
  background: #fff;
}
.pagination a:hover {
  background: #eee;
}


#noNews{
  width: 100%;
  height: 400px;
}

#noNews h1{
  padding-top: 200px;
}