
.grid {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  list-style-type: none;
}
.grid > li {
  width: calc(100% / 3 - 30px);
  margin: 0px 15px;
  margin-bottom: 30px;
  overflow: hidden;
  border-radius: 0;
}
.filters {
  margin-top: 40px;
  display: flex;
  display: -webkit-flex;
  flex-wrap: wrap;
  justify-content: center;
}

.grid > li.element-item .cate-content .play-btn a.popup-video.video-btn-2 i.fa.fa-play {
    height: 40px;
    width: 40px;
    font-size: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.grid > li.element-item .cate-content .play-btn a {
    color: #fff;
}

.grid > li.element-item .cate-content .play-btn a.popup-video.video-btn-2 {
    width: 50px;
    height: 50px;
    margin-bottom: 0;
}

.grid > li.element-item .cate-content .play-btn {
    /*position: absolute;*/
    /*top: 0;*/
    /*left: 0;*/
    /*z-index: 1;*/
    /*height: 100%;*/
    /*width: 100%;*/
    /*display: flex;*/
    /*justify-content: center;*/
    /*align-items: center;*/
    width: 60px;
    height: 60px;
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    margin: auto;
    z-index: 2;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    color: #fff;
    line-height: 60px;
    text-align: center;
    display: inline-block;
    animation: waveBtn 2.5s infinite;
    background-image: linear-gradient(90deg, #ff950d, #ff7b0d, #ff610d, #e54f14, #cc4217);
}

.grid li img {
  max-width: 100%;
  border-radius: 20px;
  transform: unset;
  transition: all .5s ease-in-out;
  width: 100%;
      height: 270px;
    object-fit: cover;
}

.grid > li.element-item .cate-content a.video_popup.video_popup_custom {
    position: absolute;
    top: 40%;
    z-index: 2;
    left: 40%;
    background: #ff950d;
    border-radius: 100%;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    transition: all .5s ease-in-out;
    /*opacity: 0;*/
    /*visibility: hidden;*/
}

.grid > li.element-item .port-content p {
    display: block;
    font-size: 12px;
    letter-spacing: 1.2px;
    line-height: 32px;
    margin: 0 0 3px;
    text-transform: uppercase;
}

.grid > li.element-item .port-content h4 {
   /*font-size: 24px;*/
   /* letter-spacing: .8px;*/
   /* line-height: .8;*/
   /* margin: 0;*/
   /* text-transform: uppercase;*/
   /* padding: 5px 30px;*/
   /* background: #0d203a;*/
   /* border-radius: 20px;*/
   /* text-align: center;*/
   /* margin-bottom: 10px;*/
   font-size: 30px;
    line-height: 25px;
    color: #0d203a;
    letter-spacing: .2px;
    margin: 0 0 8px;
    padding: 31px 0 0;
}

.grid > li.element-item:hover .cate-content a.video_popup.video_popup_custom {
    opacity: 1;
    visibility: visible;
}

/*.grid > li.element-item:hover img{*/
/*    transform: scale(1.1) rotate(2deg);*/
/*    transition: all 0.5s ease-in-out;*/
/*}*/

.filters button {
  padding: 10px;
  margin: 0px 5px;
  background-color: unset;
  border: none;
  border-radius: 10px;
  transition: 150ms;
  color: #818181;
  font-size: 16px;
  line-height: 25px;
  font-weight: 700;
  position: relative;
  outline: none;
  cursor: pointer;
  text-transform: uppercase;
}

.grid > li.element-item:hover .port-content {
    left: 20px;
    opacity: 1;
    visibility: visible;
}

.grid > li.element-item .cate-content {
    position: relative;
}

.grid > li.element-item .cate-content::before {
    content: unset;
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background: #0d203ab0;
    transition: all 0.5s ease-in-out;
    z-index: 1;
}

.grid > li.element-item:hover .cate-content::before {
    width: 100%;
}

.grid > li.element-item .port-content h4, .grid > li.element-item .port-content p {
    color: #0d203a;
}

.grid > li.element-item .port-content p {
    /*background: #000;*/
    /*padding: 5px 30px;*/
    /*border-radius: 20px;*/
    /*margin-bottom: 10px;*/
    margin-top: 0;
    margin-bottom: 1rem;
}

/*.grid > li .port-content {*/
/*    position: absolute;*/
/*    bottom: 20px;*/
/*    left: 20px;*/
/*    opacity: 0;*/
/*    transition: all 0.5s ease-in-out;*/
/*    visibility: hidden;*/
/*    z-index: 1;*/
/*}*/

.filters button.is-checked {
     background-color: #fff;
    color: #f8981d;
    text-decoration: underline;
}
/*.element-item > div {*/
/*  padding: 20px 15px;*/
/*  background-color: #121212;*/
/*  color: #dddddd;*/
/*}*/
.element-item p {
  font-size: 18px;
  line-height: 24px;
  font-family: "Lato", sans-serif;
}

@media (max-width: 767px) {
  .filters button {
    padding: 5px 10px;
    margin: 5px;
  }
  .grid > li {
    width: calc(100% - 30px);
    margin-bottom: 10px;
  }
  .element-item p {
    font-size: 16px;
    line-height: 22px;
  }
  
  .grid {
    margin: 0;
    margin-top: 40px;
}
}
