/* === Active Carousel Styles === */
.elementor-widget-media-carousel .swiper-wrapper {
  display: flex !important;
  overflow: visible !important;
}
.elementor-widget-media-carousel .swiper-slide {
  display: block !important;
  flex-shrink: 0 !important;
  height: auto !important;
}
.elementor-widget-media-carousel .elementor-carousel-image {
  height: 450px !important;
  background-size: cover !important;
  background-position: center !important;
  border-radius: 4px;
}
.elementor-widget-media-carousel .elementor-main-swiper {
  overflow: hidden !important;
}
/* Carousel navigation arrows */
.elementor-swiper-button {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.9) !important;
  border-radius: 50%;
  color: #1C3A60 !important;
  font-size: 18px !important;
  cursor: pointer;
  transition: all 0.3s ease;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.elementor-swiper-button:hover {
  background: #fff !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}
.elementor-swiper-button-prev { left: 10px; }
.elementor-swiper-button-next { right: 10px; }

/* E-gallery converted to carousel */
.e-gallery-carousel-wrapper {
  position: relative;
  overflow: hidden;
}
.e-gallery-carousel-wrapper .swiper-wrapper {
  display: flex !important;
  overflow: visible !important;
}
.e-gallery-carousel-wrapper .swiper-slide {
  flex-shrink: 0 !important;
}
.e-gallery-carousel-wrapper .swiper-slide img {
  width: 100%;
  height: 450px;
  object-fit: cover;
  border-radius: 4px;
  display: block;
}
.e-gallery-carousel-wrapper .swiper-button-prev,
.e-gallery-carousel-wrapper .swiper-button-next {
  width: 40px; height: 40px;
  background: rgba(255,255,255,0.9);
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.e-gallery-carousel-wrapper .swiper-button-prev::after,
.e-gallery-carousel-wrapper .swiper-button-next::after {
  font-size: 18px;
  color: #1C3A60;
}
.e-gallery-carousel-wrapper .swiper-button-prev:hover,
.e-gallery-carousel-wrapper .swiper-button-next:hover {
  background: #fff;
}

/* === Concrete section: vertical center both columns === */
#concrete-construction > .elementor-container {
  display: flex !important;
  align-items: center !important;
}

/* === Concrete section: preserve original 2x3 grid === */
#concrete-fade-gallery .e-gallery-container {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
#concrete-fade-gallery .e-gallery-item {
  position: relative !important;
  display: block !important;
}
#concrete-fade-gallery .e-gallery-image {
  width: 100%;
  padding-bottom: 66.66%;
  background-size: cover;
  background-position: center;
  border-radius: 4px;
}
@media (max-width: 768px) {
  #concrete-fade-gallery .e-gallery-container {
    grid-template-columns: 1fr 1fr;
  }
}

/* === Concrete services page: preserve 3-col grid === */
#concrete-services-grid .e-gallery-container {
  display: grid !important;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
}
#concrete-services-grid .e-gallery-item {
  position: relative !important;
  display: block !important;
}
#concrete-services-grid .e-gallery-image {
  width: 100%;
  padding-bottom: 66.66%;
  background-size: cover;
  background-position: center;
  border-radius: 4px;
}
@media (max-width: 768px) {
  #concrete-services-grid .e-gallery-container {
    grid-template-columns: 1fr 1fr;
  }
}

/* === Walkways/Steps image collage (concrete construction page) === */
#steps-walkways .elementor-element-3e444fb .elementor-widget-wrap {
  position: relative !important;
  min-height: 620px;
  flex-direction: row !important;
}
#steps-walkways .elementor-element-d7e8e88 {
  position: absolute !important;
  top: 24px !important;
  right: 37px !important;
  left: auto !important;
  width: 75%;
  z-index: 1;
}
#steps-walkways .elementor-element-6ee082a {
  position: absolute !important;
  top: 305px !important;
  left: -20px !important;
  right: auto !important;
  width: 75%;
  z-index: 2;
}
#steps-walkways .elementor-element-d7e8e88 img,
#steps-walkways .elementor-element-6ee082a img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}
#steps-walkways .elementor-element-6ee082a img {
  border: 5px solid #fff;
}

@media (max-width: 1024px) {
  .elementor-widget-media-carousel .elementor-carousel-image {
    height: 350px !important;
  }
  .e-gallery-carousel-wrapper .swiper-slide img {
    height: 350px;
  }
}
@media (max-width: 768px) {
  .elementor-widget-media-carousel .elementor-carousel-image {
    height: 280px !important;
  }
  .e-gallery-carousel-wrapper .swiper-slide img {
    height: 280px;
  }
}
