.card-gallery-slider {
  padding-top: 120px;
  padding-bottom: 120px;
} 

.card-gallery-slider .section-title h2 {
  padding-bottom: 120px;
  margin-bottom: 0;
}

.card-gallery-slider .row-fluid {
  padding-left: 12px;
  padding-right: 12px;
}

.card-gallery-slider .cards-carousel {
  margin: 0 -8px;
  padding: 0;
}

.card-gallery-slider  .slick-track {
  display: flex;
  margin: 0;
}

.card-gallery-slider .slick-track .slide {
  padding: 0 8px;
  height: auto;
  display: flex;
}

.card-gallery-slider .slick-track .slide > a {
  width: 100%;
  display: flex;
  background: #fff;
  flex-direction: column;
  border-radius: 0px;
  text-decoration: none;
  color: #000;
  overflow: hidden;
  position: relative;
  border: 3px solid #000;
  min-height: 100%;
  transition: background .5s, border .5s;
}

.card-gallery-slider  .img {
  overflow: hidden;
  position: relative;
  z-index: 3;
  border-radius: 0;
  background: #000;
  width: 100%;
}

.card-gallery-slider .img:before {
  content: "";
  display: block;
  padding-top: 97%;
}

.card-gallery-slider .text {
  padding: 24px;
  position: relative;
  z-index: 3;
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  flex: 1;
}

.card-gallery-slider .text .subtitle {
  text-transform: uppercase;
  line-height: 1.2;
  letter-spacing: .2em;
  font-weight: 800;
  outline: none;
  background: #000;
  color: #fff;
  display: inline-block;
  vertical-align: top;
  padding: 8px;
  border-radius: 4px;
  font-size: 10px;
  margin: 0 0 16px;
}

.card-gallery-slider .text h5 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color .5s;
  margin: 0 0 24px;
  height: 115.2px;
}

.card-gallery-slider .text span.btn-link {
  margin-top: auto;
  font-size: 16px;
  text-decoration: none;
  display: inline-block;
  vertical-align: top;
  position: relative;
  font-weight: 600;
  transition: color .3s;
}

.card-gallery-slider .text span.btn-link:after {
  background: url("data:image/svg+xml,%3Csvg width='41' height='17' viewBox='0 0 41 17' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1.39985 8.28999H39.4202M39.4202 8.28999L32.2381 1.02881M39.4202 8.28999L32.2381 15.4998' stroke='%230077B5' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A") 100% 50% no-repeat;url(
  data:image/svg+xml,%3Csvg width='41' height='17' viewBox='0 0 41 17' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1.39985 8.28999H39.4202M39.4202 8.28999L32.2381 1.02881M39.4202 8.28999L32.2381 15.4998' stroke='%230077B5' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A) 100% 50% no-repeat;
  filter: hue-rotate(495deg) brightness(110%) saturate(145%) contrast(100%);
  transition: all .3s;
  content: "";
  display: inline-block;
  vertical-align: top;
  width: 24px;
  height: 14px;
  margin: 4px -16px 0 8px;
}

.card-gallery-slider .slick-track .slide > a:hover {
  text-decoration: none;
  color: #fff;
  background: #000;
}

.card-gallery-slider a:hover .text h5 {
  color: #fff;
}

.card-gallery-slider  .slide a:hover .img>img {
  transform: scale(1.05);
}

.card-gallery-slider .img img {
  display: block;
  position: absolute;
  left: -2%;
  top: -2%;
  width: 104%;
  height: 104%;
  max-width: none;
  object-fit: cover;
  transition: transform .5s;
}

.card-gallery-slider a:hover .text span.btn-link:after {
  background: url("data:image/svg+xml,%3Csvg width='41' height='17' viewBox='0 0 41 17' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1.39985 8.28999H39.4202M39.4202 8.28999L32.2381 1.02881M39.4202 8.28999L32.2381 15.4998' stroke='%23ffffff' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A") 100% 50% no-repeat;
  width: 32px;
  margin: 4px -24px 0 8px;
}

@media (min-width: 1024px) and (max-height: 950px){

  .card-gallery-slider {
    padding-top: 64px;
    padding-bottom: 64px;
  }
  .card-gallery-slider .section-title h2 {
    padding-bottom: 64px;
  }

  .card-gallery-slider .text span.btn-link {
    font-size: 14px;
  }

  .card-gallery-slider .row-fluid{
    padding-left:0;
    padding-right:0;
  }

  .card-gallery-slider .text h5{
    height: 72px;
  }

}

@media (max-width:1024px) {

  .card-gallery-slider {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .card-gallery-slider .section-title h2 {
    padding-bottom: 64px;
  }

  .card-gallery-slider .cards-carousel {
    padding: 0 0 62px;
  }

}

@media (max-width:767px) {

  .card-gallery-slider .row-fluid {
    padding-left: 0;
    padding-right: 0;
  }

}

