body.home .top-section .column50.overlay,
body.page-template-page-home .top-section .column50.overlay {
  position: relative;
  overflow: hidden;
  min-height: 360px;
  box-sizing: border-box;
}

body.home .top-section .column50.overlay img,
body.page-template-page-home .top-section .column50.overlay img {
  display: block;
  width: 100%;
  height: 360px;
  object-fit: cover;
  margin-bottom: 0;
}

body.home .top-section .overlay:before,
body.page-template-page-home .top-section .overlay:before {
  z-index: 2;
  opacity: 0.52;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.72) 0%,
    rgba(0, 0, 0, 0.32) 52%,
    rgba(0, 0, 0, 0.08) 100%
  );
}

body.home .top-section .overlay:hover:before,
body.page-template-page-home .top-section .overlay:hover:before {
  opacity: 0.6;
}

body.home .top-section .service-dets,
body.page-template-page-home .top-section .service-dets {
  position: absolute;
  left: 1.75rem;
  right: auto;
  bottom: 1.75rem;
  top: auto;
  width: auto;
  max-width: calc(100% - 3.5rem);
  transform: none;
  padding: 0;
  text-align: left;
  z-index: 3;
}

body.home .top-section .service-dets h3,
body.page-template-page-home .top-section .service-dets h3 {
  margin: 0;
  max-width: 10.5em;
  color: rgba(255, 255, 255, 0.96);
  font-size: clamp(1.2rem, 1.75vw, 1.55rem);
  line-height: 1.18;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-align: left;
  text-shadow:
    0 1px 6px rgba(0, 0, 0, 0.55),
    0 6px 22px rgba(0, 0, 0, 0.38);
}

body.home .top-section .service-dets p,
body.page-template-page-home .top-section .service-dets p {
  display: none;
}

body.home .top-section h2,
body.page-template-page-home .top-section h2 {
  font-size: clamp(1.75rem, 2.8vw, 2rem);
  line-height: 1.18;
  letter-spacing: -0.02em;
}

body.home .top-section .column50-inner p,
body.page-template-page-home .top-section .column50-inner p {
  font-size: 1rem;
  line-height: 1.75;
  max-width: 36em;
}

@media (min-width: 900px) {
  body.home .top-section .columns,
  body.page-template-page-home .top-section .columns {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 14px;
    align-items: stretch;
  }

  body.home .top-section .columns > .column50:not(.overlay),
  body.page-template-page-home .top-section .columns > .column50:not(.overlay) {
    width: auto;
    grid-column: span 6;
  }

  body.home .top-section .columns > .column50.overlay,
  body.page-template-page-home .top-section .columns > .column50.overlay {
    width: auto;
    margin-bottom: 0;
  }

  body.home .top-section .columns > .column50.overlay:nth-child(3),
  body.page-template-page-home .top-section .columns > .column50.overlay:nth-child(3) {
    grid-column: 1 / 8;
    min-height: 400px;
  }

  body.home .top-section .columns > .column50.overlay:nth-child(3) img,
  body.page-template-page-home .top-section .columns > .column50.overlay:nth-child(3) img {
    height: 400px;
  }

  body.home .top-section .columns > .column50.overlay:nth-child(4),
  body.page-template-page-home .top-section .columns > .column50.overlay:nth-child(4) {
    grid-column: 8 / 13;
    min-height: 360px;
  }

  body.home .top-section .columns > .column50.overlay:nth-child(4) img,
  body.page-template-page-home .top-section .columns > .column50.overlay:nth-child(4) img {
    height: 360px;
  }

  body.home .top-section .columns > .column50.overlay:nth-child(5),
  body.page-template-page-home .top-section .columns > .column50.overlay:nth-child(5) {
    grid-column: 1 / 6;
    min-height: 385px;
  }

  body.home .top-section .columns > .column50.overlay:nth-child(5) img,
  body.page-template-page-home .top-section .columns > .column50.overlay:nth-child(5) img {
    height: 385px;
  }

  body.home .top-section .columns > .column50.overlay:nth-child(6),
  body.page-template-page-home .top-section .columns > .column50.overlay:nth-child(6) {
    grid-column: 6 / 13;
    min-height: 420px;
  }

  body.home .top-section .columns > .column50.overlay:nth-child(6) img,
  body.page-template-page-home .top-section .columns > .column50.overlay:nth-child(6) img {
    height: 420px;
  }

  body.home .top-section .columns > .column50.overlay:nth-child(7):not(:nth-last-child(-n + 2)),
  body.page-template-page-home .top-section .columns > .column50.overlay:nth-child(7):not(:nth-last-child(-n + 2)) {
    grid-column: 1 / 8;
    min-height: 375px;
  }

  body.home .top-section .columns > .column50.overlay:nth-child(7):not(:nth-last-child(-n + 2)) img,
  body.page-template-page-home .top-section .columns > .column50.overlay:nth-child(7):not(:nth-last-child(-n + 2)) img {
    height: 375px;
  }

  body.home .top-section .columns > .column50.overlay:nth-last-child(2),
  body.page-template-page-home .top-section .columns > .column50.overlay:nth-last-child(2) {
    grid-column: 1 / 7;
    min-height: 390px;
  }

  body.home .top-section .columns > .column50.overlay:nth-last-child(2) img,
  body.page-template-page-home .top-section .columns > .column50.overlay:nth-last-child(2) img {
    height: 390px;
  }

  body.home .top-section .columns > .column50.overlay:last-child,
  body.page-template-page-home .top-section .columns > .column50.overlay:last-child {
    grid-column: 7 / 13;
    min-height: 390px;
  }

  body.home .top-section .columns > .column50.overlay:last-child img,
  body.page-template-page-home .top-section .columns > .column50.overlay:last-child img {
    height: 390px;
  }
}

@media screen and (max-width: 768px) {
  body.home .top-section .columns,
  body.page-template-page-home .top-section .columns {
    display: flex;
    flex-wrap: wrap;
  }

  body.home .top-section .column50,
  body.page-template-page-home .top-section .column50 {
    width: 100%;
  }

  body.home .top-section .column50.overlay,
  body.page-template-page-home .top-section .column50.overlay {
    width: 100%;
    min-height: 0;
    margin-bottom: 14px;
    grid-column: auto;
  }

  body.home .top-section .column50.overlay img,
  body.page-template-page-home .top-section .column50.overlay img {
    height: 280px;
  }

  body.home .top-section .service-dets,
  body.page-template-page-home .top-section .service-dets {
    left: 1.35rem;
    right: auto;
    bottom: 1.35rem;
    max-width: calc(100% - 2.7rem);
    padding: 0;
  }

  body.home .top-section .service-dets h3,
  body.page-template-page-home .top-section .service-dets h3 {
    font-size: 1.3rem;
    line-height: 1.2;
    max-width: 11em;
  }
}
