.item-square {
  width: 22rem;
  height: 22rem;
  position: relative;
  background: #FFF;
  display: inline-block;
  overflow: hidden;
  font-size: 0;
  color: #282828;
}
@media (max-width: 767px) {
  .item-square  {
    width: 100vw;
  }
}
.item-square .content-link-wrapper {
  color: #000;
}
/* .item-square .hover { */
/*   position: absolute; */
/*   top: 0; */
/*   bottom: 0; */
/*   right:0; */
/*   left:0; */
/*   z-index: 10; */
/* } */

.animate-background.item-square:hover .background-cover-wrap {
  -webkit-clip-path: inset(0 0% 0 0);
  clip-path: inset(0 0% 0 0);
}

@media (min-width: 768px) {
  .animate-background.item-square:hover h3 ,
  .animate-background.item-square:hover .item-top {
    color: #FFF;
  }
}
.animate-background.item-square .background-cover-wrap {
  position: absolute;
  top: 0;
  left: 0;
  -webkit-clip-path: inset(0 100% 0 0);
  clip-path: inset(0 100% 0 0);
  transition: 0.5s cubic-bezier(0.57, 0.21, 0.41, 1.01);
  -webkit-transition: 0.5s cubic-bezier(0.57, 0.21, 0.41, 1.01);
  -ms-transition: 0.5s cubic-bezier(0.57, 0.21, 0.41, 1.01);
  transition: 0.5s cubic-bezier(0.57, 0.21, 0.41, 1.01);
}

.item-square .content {
  padding: 1.5rem 0 0 1.5rem;
  /*padding-left: 25px;*/
  position: relative;
  z-index: 1;
  height: 100%;
}

.animate-background.item-square .content .item-top {
  margin: 0 0 50px 0;
  transition: 0.5s cubic-bezier(0.57, 0.21, 0.41, 1.01);
  -webkit-transition: 0.5s cubic-bezier(0.57, 0.21, 0.41, 1.01);
  -ms-transition: 0.5s cubic-bezier(0.57, 0.21, 0.41, 1.01);
  transition: 0.5s cubic-bezier(0.57, 0.21, 0.41, 1.01);
}

.item-square .content .date {
  font-size: 2.5em;
  color: #ec0928;
}

.item-square .content h3 {
  /*font-size: 2.5em;*/
  /*overflow: hidden;*/
  margin: 0;
  padding: 0 1.5rem;
  transition: 0.5s cubic-bezier(0.57, 0.21, 0.41, 1.01);
  -webkit-transition: 0.5s cubic-bezier(0.57, 0.21, 0.41, 1.01);
  -ms-transition: 0.5s cubic-bezier(0.57, 0.21, 0.41, 1.01);
  transition: 0.5s cubic-bezier(0.57, 0.21, 0.41, 1.01);
}

.item-square .btn-container {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  z-index: 2;
  display: table;
}

@media screen and (max-width: 768px) {
  .item-square .btn-container {
    left: 50%;
    transform: translateX(-50%);
  }
}

.item-square .btn-container .btn {
  display: table-cell;
  position: sticky;
}
@media screen and (max-width: 768px) {
  .item-square .btn-container .btn {
    position: relative;
  }
}

.item-square .icon-logo-small {
  color: #F02433;
  vertical-align: -2px;
}

.history .item-square .icon-logo-small {
  color: #F02433;
  vertical-align: -2px;
  float: right;
  line-height: 24px;
  margin-left: 5px;
}

.history .item-square .btn {
  right: 1.5rem;
  left: auto;
  color: #000;
  border: solid 2px #000;
}


.history .item-square p {
  text-align: right !important;
  margin-right: 20px;
}

.section-list-square ul li .bakcground-in .background-cover-wrap:after,
.bakcground-in .background-cover-wrap:after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background-color: #FFF;
  transition: 0.5s cubic-bezier(0.57, 0.21, 0.41, 1.01);
}
/* .section-list-square ul li .bakcground-in .background-cover-wrap .background-cover{ */
/*   opacity: 1; */
/* } */
.section-list-square ul li:hover .bakcground-in .background-cover-wrap:after, .bakcground-in:hover .background-cover-wrap:after {
  width: 0%;
}
.section-list-square ul li .bakcground-in .item-top, .bakcground-in .item-top {
  transition: 0.5s cubic-bezier(0.57, 0.21, 0.41, 1.01);
}
@media (min-width: 768px) {
  .section-list-square ul li:hover .bakcground-in .item-top,
  .section-list-square ul li:hover .bakcground-in h3,
  .bakcground-in:hover .item-top,
  .bakcground-in:hover h3
  {
    color: #FFF;
  }
  .section-list-square ul li:hover .bakcground-in .btn, .bakcground-in:hover .btn {
    color: #FFF;
    border:solid 2px #FFF;
  }
}

@media (max-width : 320px) {
  .section-list-square ul li:hover .bakcground-in .item-top,
  .section-list-square ul li:hover .bakcground-in h3,
  .bakcground-in:hover .item-top,
  .bakcground-in:hover h3 {
    color: #000;
  }
  .section-list-square ul li:hover .bakcground-in .btn, .bakcground-in:hover .btn {
    color: #000;
    border:solid 2px #000;
  }
  .item-square .content {
    padding: 0;
  }
  .item-square .item-top {
    text-align: center;
    margin: .5rem;
  }
  .item-square h3 {
    text-align: center;
    font-size: 2rem;
  }
  .item-square .btn {
    transform: translateX( -50% );
    left: 50% !important;
  }
  .section-list-square .square-navigation{
    text-align: center;
  }
}
