@keyframes marquee {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(calc(-100% - 10px));
  }
}

.cnc-gallery-section.cnc-gallery-section-layout1 {
  padding: 100px 0;
}

.cnc-gallery-section.cnc-gallery-section-layout1 .container {
  max-width: 1430px;
  margin: 0 auto;
  padding: 0 15px;
  box-sizing: border-box;
}

.cnc-gallery-section.cnc-gallery-section-layout1 .title-wrapper {
  margin-bottom: 30px;
}

.cnc-gallery-section.cnc-gallery-section-layout1 .title-wrapper :is(h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6) {
  font-size: 48px;
  line-height: normal;
  margin: 0;
  font-weight: 700;
  color: #005BC5;
}

.cnc-gallery-section.cnc-gallery-section-layout1 .title-wrapper :is(p) {
  font-size: 20px;
  line-height: normal;
  margin: 0;
  font-weight: 400;
  color: #323232;
}

.cnc-gallery-section.cnc-gallery-section-layout1 .marquee {
  gap: 10px;
  overflow: hidden;
  user-select: none;
  display: flex;
  flex-direction: row;
  max-width: 100%;
}

.cnc-gallery-section.cnc-gallery-section-layout1 .marquee:hover .partners {
  animation-play-state: paused;
}

.cnc-gallery-section.cnc-gallery-section-layout1 .marquee .partners {
  gap: 10px;
  min-width: 100%;
  animation: marquee var(--marquee-speed, 90s) linear infinite;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.cnc-gallery-section.cnc-gallery-section-layout1 .marquee .partners .partner-logo {
  width: 600px;
  box-sizing: border-box;
  padding: 30px 33px;
  height: 400px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  z-index: 1;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.cnc-gallery-section.cnc-gallery-section-layout1 .marquee .partners .partner-logo::after {
  content: "";
  position: absolute;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.00) 0%, rgba(0, 0, 0, 0.80) 100%);
  inset: auto 0 0 0;
  width: 100%;
  height: 136px;
  z-index: -1;
}

.cnc-gallery-section.cnc-gallery-section-layout1 .marquee .partners .partner-logo :is(h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6) {
  font-size: 24px;
  font-weight: 700;
  line-height: normal;
  color: #fff;
  margin: 0;
}

.cnc-gallery-section.cnc-gallery-section-layout1 .marquee .partners .partner-logo :is(p) {
  font-size: 16px;
  font-weight: 400;
  line-height: normal;
  margin: 0;
  color: #fff;
}

.cnc-gallery-section.cnc-gallery-section-layout1 .title-wrapper :is(h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6):not(:last-child),
.cnc-gallery-section.cnc-gallery-section-layout1 .title-wrapper :is(p):not(:last-child),
.cnc-gallery-section.cnc-gallery-section-layout1 .marquee .partners .partner-logo :is(h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6):not(:last-child),
.cnc-gallery-section.cnc-gallery-section-layout1 .marquee .partners .partner-logo :is(p):not(:last-child) {
  margin: 0 0 10px;
}

@media (max-width:1440px) {
  .cnc-gallery-section.cnc-gallery-section-layout1 .marquee .partners .partner-logo {
    width: 500px;
    height: 340px;
  }
}

@media (max-width:1024px) {
  .cnc-gallery-section.cnc-gallery-section-layout1 {
    padding: 50px 0;
  }

  .cnc-gallery-section.cnc-gallery-section-layout1 .title-wrapper :is(h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6) {
    font-size: 40px;
  }

  .cnc-gallery-section.cnc-gallery-section-layout1 .title-wrapper :is(p) {
    font-size: 18px;
  }

  .cnc-gallery-section.cnc-gallery-section-layout1 .marquee .partners .partner-logo {
    width: 400px;
    height: 300px;
    padding: 20px;
  }

  .cnc-gallery-section.cnc-gallery-section-layout1 .marquee .partners .partner-logo :is(h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6) {
    font-size: 22px;
  }

  .cnc-gallery-section.cnc-gallery-section-layout1 .marquee .partners .partner-logo :is(p) {
    font-size: 15px;
  }
}

@media (max-width:767px) {
  .cnc-gallery-section.cnc-gallery-section-layout1 {
    padding: 30px 0;
  }

  .cnc-gallery-section.cnc-gallery-section-layout1 .title-wrapper :is(h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6) {
    font-size: 30px;
  }

  .cnc-gallery-section.cnc-gallery-section-layout1 .title-wrapper :is(p) {
    font-size: 16px;
  }

  .cnc-gallery-section.cnc-gallery-section-layout1 .marquee .partners .partner-logo {
    width: 300px;
    height: 250px;
  }

  .cnc-gallery-section.cnc-gallery-section-layout1 .marquee .partners .partner-logo :is(h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6) {
    font-size: 20px;
  }

  .cnc-gallery-section.cnc-gallery-section-layout1 .marquee .partners .partner-logo :is(p) {
    font-size: 14px;
  }
}

@media (max-width:575px) {
  .cnc-gallery-section.cnc-gallery-section-layout1 .marquee .partners .partner-logo {
    width: 250px;
    height: 200px;
    padding: 15px;
  }
}