.cnv-grid {
    margin-top: 0;
}
.cnv-grid--item {
    padding: 2.5px;
}
.cnv-grid--item img {
    max-width: 100%;
    width: 100%;
    height: auto;
}
.cnv-grid--title {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    margin: 2.5px;
    z-index: 1;
    visibility: hidden;
    opacity: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: 0.3s all;
}
.cnv-grid--title span {
  z-index: 2;
  font-size: 22px;
  padding: 5px;
  text-align: center;
  color: #fff;
}
.cnv-grid--title .bg-gray {
  background: #3d3d3d;
  position: absolute;
  transition: 0.3s all;
  top: 0;
  opacity: 0;
  visibility: hidden;
  z-index: 1;
  bottom: 0;
  width: 100%;
}
.cnv-grid--item:hover .bg-gray {
  opacity: 0.8;
  visibility: visible;
}
.cnv-grid--item:hover .cnv-grid--title {
  opacity: 1;
  visibility: visible;
}
@media (min-width: 1024px) {
    .cnv-grid--sizer {
        width: calc(100% / 3 * 1);
    }
}
@media all and (min-width: 1900px) {
  .cnv-grid--sizer {
    width: calc(100% / 4 * 1);
  }
}


@media all and (min-width: 2560px) {
  .cnv-grid--sizer {
    width: calc(100% / 6 * 1);
  }
}

@media all and (min-width: 3000px) {
  .cnv-grid--sizer {
    width: calc(100% / 8 * 1);
  }
}

@media all and (max-width: 1024px) {
    .cnv-grid--sizer {
      width: calc(100% / 2 * 1);
    }
}
@media all and (max-width: 320px) {
  .cnv-grid--sizer {
    width: 100%!important;
  }
}
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px); /* Di chuyển xuống dưới */
    }
    to {
        opacity: 1;
        transform: translateY(0); /* Vị trí ban đầu */
    }
}

/*Video category Version 1*/
.item-video-gallery{
    padding-right:5px;
    padding-left:5px;
}
article.video-image {
    position: relative;
    overflow: hidden;
    border: 1px solid transparent;
    border-radius: 15px;
}

article.video-image:hover a.img:after {
    background: rgba(0,0,0,0.5);
    border-radius: 0;
}
article.video-image a img {
    border-radius: 15px;
    -webkit-transition: opacity .6125s cubic-bezier(.39,.575,.565,1),-webkit-transform 4s cubic-bezier(.39,.575,.565,1);
    -moz-transition: opacity .6125s cubic-bezier(.39,.575,.565,1),-moz-transform 4s cubic-bezier(.39,.575,.565,1);
    transition: opacity .6125s cubic-bezier(.39,.575,.565,1),transform 4s cubic-bezier(.39,.575,.565,1);
}
article.video-image:hover a img {
    -webkit-transform: scale(1.1);
    -moz-transform: scale(1.1);
    -o-transform: scale(1.1);
    -ms-transform: scale(1.1);
    transform: scale(1.1);
    -webkit-transition: opacity .6125s cubic-bezier(.39,.575,.565,1),-webkit-transform 4s cubic-bezier(.39,.575,.565,1);
    -moz-transition: opacity .6125s cubic-bezier(.39,.575,.565,1),-moz-transform 4s cubic-bezier(.39,.575,.565,1);
    transition: opacity .6125s cubic-bezier(.39,.575,.565,1),transform 4s cubic-bezier(.39,.575,.565,1);
}
article.video-image a.img:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    -webkit-transition: all .4s ease-in-out;
    -moz-transition: all .4s ease-in-out;
    -ms-transition: all .4s ease-in-out;
    -o-transition: all .4s ease-in-out;
    transition: all .4s ease-in-out;
    border-radius: 15px;
}
.video-image a.img{
    z-index: 9;
}
.h-post:hover article.video-image:before , .h-post:hover article.video-image:after {
     opacity: 1;
}
article.video-image:before {
    content: '';
    width: 28px;
    height: 28px;
    position: absolute;
    background: url(/themes/default/images/utility-before.png) no-repeat center;
    background-size: contain;
    pointer-events: none;
    opacity: 0;
    z-index: 999;
    -webkit-transition: all .4s ease-in-out;
    -moz-transition: all .4s ease-in-out;
    -ms-transition: all .4s ease-in-out;
    -o-transition: all .4s ease-in-out;
    transition: all .4s ease-in-out;
    top: 20px;
    left: 20px;
}
article.video-image:after {
    content: '';
    width: 28px;
    height: 28px;
    position: absolute;
    background: url(/themes/default/images/utility-after.png) no-repeat center;
    background-size: contain;
    pointer-events: none;
    opacity: 0;
    z-index: 999;
    -webkit-transition: all .4s ease-in-out;
    -moz-transition: all .4s ease-in-out;
    -ms-transition: all .4s ease-in-out;
    -o-transition: all .4s ease-in-out;
    transition: all .4s ease-in-out;
    bottom: 20px;
    right: 20px;
}
.h-post {
    margin-bottom: 15px;
}
article.video-image:hover .entry-title {
    opacity: 1;
}
article.video-image:hover .entry-title {
    opacity: 1;
}
article.video-image .entry-title {
    position: absolute;
    top: 50%;
    left: 44%;
    transform: translateX(-38%) translateY(-50%);
    -moz-transform: translateX(-38%) translateY(-50%);
    -webkit-transform: translateX(-38%) translateY(-50%);
    -o-transform: translateX(-38%) translateY(-50%);
    text-align: center;
    z-index: 15;
    opacity: 0;
    -webkit-transition: all .3s ease-in-out;
    -moz-transition: all .3s ease-in-out;
    -ms-transition: all .3s ease-in-out;
    -o-transition: all .3s ease-in-out;
    transition: all .3s ease-in-out;
}
article.video-image .entry-title h3 a {
    font-size: 20px;
    line-height: 30px;
    color: #ffffff;
    text-transform: uppercase;
    font-weight: 400;
}
article.video-image .entry-title span {
    color: #fff;
    font-size: 14px;
}
article.video-image .tag-label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: var(--main-color); /* xanh lá */
  color: white;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  white-space: initial;
  z-index: 9;
  display: block;
  width: 80%;
}
article.video-image:hover .tag-label{
    display: none;
}
/*End video version 1*/

/* Video Version 2*/
.video_group {
    background: #fff;
    -webkit-transition: all .2s ease-in-out;
    -o-transition: all .2s ease-in-out;
    transition: all .2s ease-in-out;
    margin-top: 10px;
    margin-bottom: 10px;
}
.video_group .img {
    display: block;
    position: relative;
    margin-bottom: 17px;
    overflow: hidden;
}
.video_group .img img {
    display: block;
    width: auto;
    height: auto;
    margin:auto;
}
.video_group .img .img_video{
    width:100%;
    height:100%;
    object-fit:cover;
}
.video_group .icon_video {
    display: block;
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    margin: 0 auto;
    z-index: 2;
}
.video_group .icon_video .img{
    width:45px;
    height:45px;
}
.video_group .img:hover:after {
    content: '';
    position: absolute;
    display: block;
    background: #00000082;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    height: 100%;
    width: 100%;
    z-index: 1;
}
.video_group .title {
    font-size: 18px;
    line-height: 23px;
    font-weight: 600;
}
.gallerys_container{
    margin-bottom:30px;
}
/*End Video Version 2*/


