.cs-gallery {
  padding: 80px 0;
}

@media (min-width: 992px) {
  .cs-gallery {
    padding: 140px 0;
  }
}

.cs-gallery-images a {
  margin-bottom: 20px;
  display: block;
  position: relative;
  padding-top: 74.48%;
}

.cs-gallery-images a img {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cs-gallery-images a.has-cptn::after {
  content: "";
  width: 100%;
  height: 100%;
  position: absolute;
  left: 0;
  top: 0;
  background: rgba(0, 0, 0, 0.4);
}

.cs-gallery-images a.has-cptn span {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 20px;
  font-size: 1.25rem;
  letter-spacing: 0.02em;
  content: #fff;
  font-family: "TitlingGothicFB Cond", sans-serif;
  text-transform: uppercase;
  z-index: 2;
  line-height: 1.2;
}

@media (min-width: 992px) {
  .cs-gallery-images a.has-cptn span {
    font-size: 1.625rem;
    left: 40px;
    bottom: 40px;
    right: 40px;
  }
}

.cs-gallery-images .row {
  --bs-gutter-x: 20px;
}

.cs-gallery-content p, .cs-gallery-content ul {
  margin-bottom: 24px;
}

.cs-gallery-content ul {
  padding-left: 15px;
  font-size: 0.875rem;
  line-height: 1.85;
}

.cs-gallery.style-1 .cs-gallery-main {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  margin: 0 -15px;
}

.cs-gallery.style-1 .cs-gallery-content {
  width: 100%;
  padding: 0 15px 20px;
}

@media (min-width: 992px) {
  .cs-gallery.style-1 .cs-gallery-content {
    width: 32.85%;
  }
  .cs-gallery.style-1 .cs-gallery-content-in {
    max-width: 296px;
  }
}

.cs-gallery.style-1 .cs-gallery-images {
  width: 100%;
  padding: 0 15px;
}

@media (min-width: 992px) {
  .cs-gallery.style-1 .cs-gallery-images {
    width: 67.15%;
  }
}

.cs-gallery.style-2 .cs-gallery-content {
  padding-bottom: 20px;
  max-width: 790px;
}
