#solarpro-services-gallery.solarpro-services-gallery {
  --sg-red: var(--solarpro-red, #c71920);
  --sg-radius: var(--solarpro-radius, 18px);

  width: 100% !important;
  margin: 0 !important;
  padding: 72px 24px 90px !important;
  background: rgba(0, 0, 0, 0.84) !important;
  color: #fff !important;
  direction: rtl !important;
  position: relative !important;
}

body.translatepress-en_US #solarpro-services-gallery.solarpro-services-gallery {
  direction: ltr !important;
}

#solarpro-services-gallery * {
  box-sizing: border-box !important;
}

#solarpro-services-gallery .solarpro-services-gallery__inner {
  width: min(1280px, 100%) !important;
  margin: 0 auto !important;
}

#solarpro-services-gallery .solarpro-services-gallery__header {
  text-align: center !important;
  max-width: 720px !important;
  margin: 0 auto 28px !important;
}

#solarpro-services-gallery .solarpro-services-gallery__eyebrow {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  margin: 0 0 12px !important;
  color: rgba(255, 255, 255, 0.78) !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
}

#solarpro-services-gallery .solarpro-services-gallery__eyebrow-line {
  width: 26px !important;
  height: 8px !important;
  display: inline-block !important;
  flex: 0 0 26px !important;
  border-radius: 0 !important;
  background:
    linear-gradient(
      90deg,
      var(--solarpro-red, #c71920) 0 22%,
      transparent 22% 39%,
      var(--solarpro-red, #c71920) 39% 61%,
      transparent 61% 78%,
      var(--solarpro-red, #c71920) 78% 100%
    ) !important;
  transform: skewX(-18deg) !important;
  box-shadow: none !important;
}

#solarpro-services-gallery .solarpro-services-gallery__heading {
  margin: 0 0 10px !important;
  color: #fff !important;
  font-size: clamp(26px, 3.2vw, 40px) !important;
  font-weight: 900 !important;
  line-height: 1.3 !important;
}

#solarpro-services-gallery .solarpro-services-gallery__highlight {
  display: inline-block !important;
  margin: 0 4px !important;
  padding: 4px 14px 6px !important;
  border-radius: 12px !important;
  background: #f5e5e5 !important;
  color: var(--sg-red, #c71920) !important;
  line-height: 1.15 !important;
}

#solarpro-services-gallery .solarpro-services-gallery__subtitle {
  margin: 0 !important;
  color: rgba(255, 255, 255, 0.62) !important;
  font-size: 15px !important;
  line-height: 1.7 !important;
}

#solarpro-services-gallery .solarpro-services-gallery__filters {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  gap: 8px !important;
  margin: 0 0 28px !important;
}

#solarpro-services-gallery .solarpro-services-gallery__filter {
  appearance: none !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  background: rgba(255, 255, 255, 0.04) !important;
  color: rgba(255, 255, 255, 0.82) !important;
  border-radius: 999px !important;
  padding: 10px 16px !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  cursor: pointer !important;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease !important;
}

#solarpro-services-gallery .solarpro-services-gallery__filter:hover,
#solarpro-services-gallery .solarpro-services-gallery__filter.is-active {
  background: var(--sg-red) !important;
  border-color: var(--sg-red) !important;
  color: #fff !important;
}

#solarpro-services-gallery .solarpro-services-gallery__masonry {
  column-count: 3 !important;
  column-gap: 16px !important;
}

#solarpro-services-gallery .solarpro-services-gallery__item {
  break-inside: avoid !important;
  page-break-inside: avoid !important;
  -webkit-column-break-inside: avoid !important;
  width: 100% !important;
  margin: 0 0 16px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  position: relative !important;
  display: block !important;
  overflow: hidden !important;
  border-radius: var(--sg-radius) !important;
  cursor: pointer !important;
  text-align: start !important;
}

#solarpro-services-gallery .solarpro-services-gallery__item.is-hidden {
  display: none !important;
}

#solarpro-services-gallery .solarpro-services-gallery__item img {
  width: 100% !important;
  height: auto !important;
  display: block !important;
  vertical-align: top !important;
  transition: transform 0.35s ease !important;
}

#solarpro-services-gallery .solarpro-services-gallery__item-overlay {
  position: absolute !important;
  inset: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-end !important;
  gap: 6px !important;
  padding: 16px !important;
  background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.72) 100%) !important;
  opacity: 0 !important;
  transition: opacity 0.25s ease !important;
}

#solarpro-services-gallery .solarpro-services-gallery__item:hover img {
  transform: scale(1.04) !important;
}

#solarpro-services-gallery .solarpro-services-gallery__item:hover .solarpro-services-gallery__item-overlay {
  opacity: 1 !important;
}

#solarpro-services-gallery .solarpro-services-gallery__item-tag {
  width: fit-content !important;
  padding: 6px 10px !important;
  border-radius: 999px !important;
  background: var(--sg-red) !important;
  color: #fff !important;
  font-size: 11px !important;
  font-weight: 800 !important;
}

#solarpro-services-gallery .solarpro-services-gallery__item-title {
  color: #fff !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
}

#solarpro-services-gallery-lightbox.solarpro-services-gallery-lightbox,
.solarpro-services-gallery-lightbox {
  position: fixed !important;
  inset: 0 !important;
  z-index: 999999 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 24px !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transition: opacity 0.3s ease, visibility 0.3s ease !important;
}

#solarpro-services-gallery-lightbox.solarpro-services-gallery-lightbox.is-open,
.solarpro-services-gallery-lightbox.is-open {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

#solarpro-services-gallery-lightbox.solarpro-services-gallery-lightbox[hidden],
.solarpro-services-gallery-lightbox[hidden] {
  display: none !important;
}

#solarpro-services-gallery-lightbox.solarpro-services-gallery-lightbox.is-open[hidden],
.solarpro-services-gallery-lightbox.is-open[hidden] {
  display: flex !important;
}

.solarpro-services-gallery-lightbox__backdrop {
  position: absolute !important;
  inset: 0 !important;
  border: 0 !important;
  background: rgba(5, 5, 5, 0.88) !important;
  backdrop-filter: blur(10px) !important;
  cursor: pointer !important;
}

.solarpro-services-gallery-lightbox__dialog {
  position: relative !important;
  z-index: 2 !important;
  width: min(1100px, 100%) !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 16px !important;
}

.solarpro-services-gallery-lightbox__stage {
  position: relative !important;
  width: 100% !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 12px !important;
  direction: ltr !important;
}

.solarpro-services-gallery-lightbox__figure {
  margin: 0 !important;
  width: auto !important;
  max-width: calc(100% - 140px) !important;
  max-height: min(72vh, 760px) !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
}

.solarpro-services-gallery-lightbox__image {
  width: auto !important;
  max-width: 100% !important;
  max-height: min(68vh, 700px) !important;
  height: auto !important;
  object-fit: contain !important;
  border-radius: 14px !important;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45) !important;
  background: #111 !important;
  pointer-events: auto !important;
}

.solarpro-services-gallery-lightbox__caption {
  margin-top: 12px !important;
  color: rgba(255, 255, 255, 0.78) !important;
  text-align: center !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
  align-items: center !important;
}

.solarpro-services-gallery-lightbox__counter {
  color: rgba(255, 255, 255, 0.55) !important;
  font-size: 12px !important;
  font-weight: 600 !important;
}

.solarpro-services-gallery-lightbox__close {
  position: absolute !important;
  top: 0 !important;
  right: 0 !important;
  left: auto !important;
  z-index: 6 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 56px !important;
  height: 56px !important;
  border: 0 !important;
  border-radius: 16px !important;
  cursor: pointer !important;
  background: rgba(255, 255, 255, 0.14) !important;
  color: #fff !important;
  backdrop-filter: blur(8px) !important;
  transition: background 0.25s ease, transform 0.25s ease !important;
}

.solarpro-services-gallery-lightbox__nav {
  position: relative !important;
  flex: 0 0 auto !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 60px !important;
  height: 60px !important;
  border: 0 !important;
  border-radius: 18px !important;
  cursor: pointer !important;
  background: rgba(255, 255, 255, 0.14) !important;
  color: #fff !important;
  backdrop-filter: blur(8px) !important;
  transition: background 0.25s ease, transform 0.25s ease !important;
  z-index: 5 !important;
}

.solarpro-services-gallery-lightbox__close:hover,
.solarpro-services-gallery-lightbox__nav:hover {
  background: var(--sg-red, #c71920) !important;
  transform: scale(1.05) !important;
}

.solarpro-services-gallery-lightbox__close svg,
.solarpro-services-gallery-lightbox__nav svg {
  width: 30px !important;
  height: 30px !important;
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 2.8 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
}

.solarpro-services-gallery-lightbox__thumbs {
  display: flex !important;
  gap: 8px !important;
  max-width: 100% !important;
  overflow-x: auto !important;
  padding: 4px 2px 8px !important;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}

.solarpro-services-gallery-lightbox__thumbs::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

.solarpro-services-gallery-lightbox__thumb {
  flex: 0 0 64px !important;
  width: 64px !important;
  height: 48px !important;
  padding: 0 !important;
  border: 2px solid transparent !important;
  border-radius: 8px !important;
  overflow: hidden !important;
  cursor: pointer !important;
  background: #222 !important;
  opacity: 0.55 !important;
  transition: opacity 0.25s ease, border-color 0.25s ease, transform 0.25s ease !important;
}

.solarpro-services-gallery-lightbox__thumb.is-active {
  opacity: 1 !important;
  border-color: var(--sg-red, #c71920) !important;
  transform: translateY(-2px) !important;
}

.solarpro-services-gallery-lightbox__thumb img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}

#solarpro-services-gallery .solarpro-services-gallery-copy-en {
  display: none !important;
}

body.translatepress-en_US #solarpro-services-gallery .solarpro-services-gallery-copy-ar {
  display: none !important;
}

body.translatepress-en_US #solarpro-services-gallery .solarpro-services-gallery-copy-en {
  display: inline !important;
}

@media (max-width: 991px) {
  #solarpro-services-gallery .solarpro-services-gallery__masonry {
    column-count: 2 !important;
  }
}

@media (max-width: 767px) {
  .solarpro-services-gallery-lightbox {
    padding: 12px !important;
  }

  .solarpro-services-gallery-lightbox__figure {
    max-width: 100% !important;
  }

  .solarpro-services-gallery-lightbox__nav {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 44px !important;
    height: 44px !important;
    border-radius: 14px !important;
    z-index: 7 !important;
  }

  .solarpro-services-gallery-lightbox__prev {
    left: 4px !important;
  }

  .solarpro-services-gallery-lightbox__next {
    right: 4px !important;
  }

  .solarpro-services-gallery-lightbox__nav:hover {
    transform: translateY(-50%) scale(1.05) !important;
  }

  .solarpro-services-gallery-lightbox__close {
    width: 44px !important;
    height: 44px !important;
    border-radius: 12px !important;
  }

  .solarpro-services-gallery-lightbox__close svg,
  .solarpro-services-gallery-lightbox__nav svg {
    width: 22px !important;
    height: 22px !important;
  }

  .solarpro-services-gallery-lightbox__image {
    max-height: min(58vh, 560px) !important;
  }

  .solarpro-services-gallery-lightbox__thumb {
    flex-basis: 56px !important;
    width: 56px !important;
    height: 42px !important;
  }
}

@media (max-width: 560px) {
  #solarpro-services-gallery.solarpro-services-gallery {
    padding: 48px 16px 64px !important;
  }

  #solarpro-services-gallery .solarpro-services-gallery__masonry {
    column-count: 2 !important;
    column-gap: 10px !important;
  }
}
