.ebp-custom-services-1 .back {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 0;
  width: auto;
}

.ebp-custom-services-1 {
  padding-block: 0 !important;
}

.ebp-custom-services-1 h3 {
  position: relative;
  /* padding-inline-start: 4.5rem; */
  font-size: 3rem !important;
  /* max-width: 300px; */
  color: #f7f4ec !important;
}

/* .ebp-custom-services-1 h3:before {
  content: '';
  background-image: url(/wp-content/uploads/2025/09/target-scaffolding-round-circle-light.svg);
  position: absolute;
  width: 46px;
  height: 46px;
  left: 0;
  top: 0.3em;
  background-size: contain;
  transform: translateY(-50%);
} */

.ebp-custom-services-1 .text-content p {
  font-size: 1.5rem;
}

.ebp-custom-services-1 {
  position: relative;
}

/* @media (min-width: 1441px) {
  .ebp-custom-services-1 .container {
    max-width: calc(100% - 200px);
  }

  .ebp-custom-services-1 h3 {
    font-size: clamp(3rem, -0.8633rem + 4.2895vw, 6rem) !important;
    max-width: 600px;
  }

  .ebp-custom-services-1 p,
  .ebp-custom-services-1 button {
    font-size: clamp(1.5rem, 0.2122rem + 1.4298vw, 2.5rem) !important;
  }
} */

/* .ebp-custom-services-1 h2 {
  font-size: clamp(2rem, 1.4286rem + 2.8571vw, 4rem) !important;
} */

.ebp-custom-services-1 .background {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  margin: 0;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  /* max-width: 50%;
  margin-left: auto !important; */
}

.ebp-custom-services-1 .min-vh-75 {
  min-height: 100vh !important;
}

.ebp-custom-services-1 .level-1 {
  position: static;
  z-index: 0 !important;
}

.ebp-custom-services-1 .py-20 {
  padding-top: 10rem !important;
  padding-bottom: 10rem !important;
}

.ebp-custom-services-1 .background img {
  height: 100%;
  object-fit: cover;
}

@media (min-width: 992px) {
  .elementor-widget-ebp_custom_services_1
    .elementor-widget-container
    .ebp-custom-services-1:nth-child(even)
    .offset-lg-6 {
    margin-left: 0 !important;
  }
  .elementor-widget-ebp_custom_services_1
    .elementor-widget-container
    .ebp-custom-services-1:nth-child(even)
    .col-lg-5 {
    margin-left: 58.33333333% !important;
  }
}

/* .elementor-widget-ebp_custom_services_1
  .elementor-widget-container
  .ebp-custom-services-1:nth-child(even)
  h2 {
  display: none;
} */

@media (max-width: 991px) {
  .ebp-custom-services-1 .background {
    max-width: 100%;
  }

  .ebp-custom-services-1 {
    position: relative;
  }

  .ebp-custom-services-1 .background:before {
    content: none;
    background-color: rgba(0, 0, 0, 0.6);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
  }

  .ebp-custom-services-1 h3 {
    position: relative;
    /* padding-inline-start: 3rem; */
    font-size: 2.5rem !important;
    max-width: 300px;
  }

  .ebp-custom-services-1 h3:before {
    width: 30px;
    height: 30px;
    left: 0;
    top: 0.5rem;
    background-size: contain;
    /* transform: translateY(-50%); */
  }

  .ebp-custom-services-1 .text-content p,
  .ebp-custom-services-1 button {
    font-size: 1rem;
  }

  .ebp-custom-services-1 {
    display: flex;
    flex-direction: column-reverse;
  }
}

/* Gallery Icon Overlay Styles */
.ebp-custom-services-1 .gallery-icon-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  cursor: pointer;
  transition: all 0.3s ease;
  /* background: rgba(0, 0, 0, 0.5);
  border-radius: 50%; */
  padding: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* .ebp-custom-services-1 .gallery-icon-overlay:hover {
  background: rgba(0, 0, 0, 0.7);
  transform: translate(-50%, -50%) scale(1.1);
} */

.ebp-custom-services-1 .gallery-icon {
  width: 300px;
  height: 30px;
  filter: brightness(0) invert(1); /* Makes the icon white */
}

/* Gallery Popup Styles */
.gallery-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-popup-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  cursor: pointer;
}

.gallery-popup-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  /* background: #fff; */
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.gallery-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: transparent;
  color: #f7f4ec;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 2rem;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}

.gallery-close:hover {
  background: rgba(0, 0, 0, 0.9);
}

.gallery-slider {
  position: relative;
  width: 100%;
  height: 100%;
}

.gallery-slide {
  display: none;
  text-align: center;
}

.gallery-slide:first-child {
  display: block;
}

.gallery-slide img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

.gallery-navigation {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  padding: 0 20px;
  pointer-events: none;
}

.gallery-prev,
.gallery-next {
  background: transparent;
  color: #f7f4ec;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 4rem;
  cursor: pointer;
  pointer-events: all;
  transition: background 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-prev:hover,
.gallery-next:hover {
  background: rgba(0, 0, 0, 0.9);
}

@media (min-width: 1441px) {
  body .ebp-custom-services-1 h3 {
    font-size: 4rem !important;
    padding-top: 8px;
    margin-bottom: 4rem;
    margin-top: 2rem;
  }
}

@media (max-width: 991px) {
  .ebp-custom-services-1 .back {
    position: static;
    min-height: 50vh;
    width: 100%;
  }

  .ebp-custom-services-1 .min-vh-100,
  .ebp-custom-services-1 figure {
    min-height: 50vh !important;
  }

  body .ebp-custom-services-1 .level-1 {
    z-index: 9 !important;
    /* pointer-events: none; */
  }
  body .ebp-custom-services-1 .gallery-icon-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    /* transform: none; */
    /* bottom: 5rem; */
  }
  .ebp-custom-services-1 .gallery-icon {
    min-width: 150px;
  }
}

/* Mobile Responsive */
@media (max-width: 767px) {
  .gallery-popup-content {
    max-width: 95%;
    max-height: 95%;
  }

  .gallery-slide img {
    max-height: 70vh;
  }

  .gallery-prev,
  .gallery-next {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }

  .ebp-custom-services-1 .gallery-icon {
    width: 25px;
    height: 25px;
  }

  .ebp-custom-services-1 .gallery-icon-overlay img.gallery-icon {
    width: 145px;
  }

  .ebp-custom-services-1 .gallery-icon-overlay {
    padding: 12px;
  }
}

/* Repeater Item Background Colors - Each item gets its own background */
.elementor-repeater-item {
  /* This will be overridden by individual repeater item styles */
}

/* Read More/Less Button Styles */
.ebp-custom-services-1 .read-more-container {
  margin-top: 1rem;
  position: relative;
}

.ebp-custom-services-1 .read-more-btn {
  background: transparent;
  border: 0;
  color: #f7f4ec;
  padding: 0;
  /* font-size: 1.5rem; */
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 4px;
  /* text-transform: uppercase; */
  letter-spacing: 0.5px;
  text-decoration: underline;
}

.ebp-custom-services-1 .read-more-btn:hover {
  /* background: #f7f4ec;
  color: #000; */
  transform: translateY(-2px);
}

.ebp-custom-services-1 .expanded-content {
  margin-top: 1rem;
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile responsive adjustments for read more button */
@media (max-width: 991px) {
  /* .ebp-custom-services-1 .read-more-btn {
    font-size: 0.9rem;
    padding: 0.6rem 1.2rem;
  } */
}

@media (max-width: 767px) {
  /* .ebp-custom-services-1 .read-more-btn {
    font-size: 0.8rem;
    padding: 0.5rem 1rem;
  } */
}
