/* Reserved for theme inline overrides. */

/* Keep the transparent logo clean in the header and footer. */
.top-bar .name h1 a {
  background: transparent !important;
  padding: 0 !important;
  position: relative;
  top: -6px;
}

.top-bar .name h1 a img[src$="no-bg-logo.png"] {
  max-height: 84px !important;
  width: auto;
}

.l-footer-columns .textwidget img[src$="no-bg-logo.png"] {
  background: transparent !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 15px 20px !important;
}

@media only screen and (max-width: 768px) {
  .top-bar .name h1 a img[src$="no-bg-logo.png"] {
    max-height: 52px !important;
  }
}

/* Improve hero text readability on dark slider imagery. */
.slider .orbit-container li.style-2 .orbit-caption,
.slider .orbit-container li.slide-2.style-2 .orbit-caption {
  background: rgba(8, 18, 34, 0.52);
  border-left: 4px solid #db4436;
  max-width: 42rem;
  padding: 1.5rem 1.75rem;
}

.slider .orbit-container li.style-2 .orbit-caption h3,
.slider .orbit-container li.style-2 .orbit-caption p,
.slider .orbit-container li.slide-2.style-2 .orbit-caption h3,
.slider .orbit-container li.slide-2.style-2 .orbit-caption p {
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}

.slider .orbit-container li.style-2 .orbit-caption h3,
.slider .orbit-container li.slide-2.style-2 .orbit-caption h3 {
  font-weight: 700;
  line-height: 1.08;
}

.slider .orbit-container li.style-2 .orbit-caption p,
.slider .orbit-container li.slide-2.style-2 .orbit-caption p {
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.6;
}

@media only screen and (min-width: 64.0625em) {
  .slider .orbit-container li.slide-2.style-2 .orbit-caption {
    width: 48rem;
    max-width: calc(100% - 12rem);
  }
}

@media only screen and (max-width: 40em) {
  .slider .orbit-container li.style-2 .orbit-caption,
  .slider .orbit-container li.slide-2.style-2 .orbit-caption {
    max-width: calc(100% - 2rem);
    padding: 1rem 1.1rem;
  }
}

/* Tighten and align service page testimonial thumbnails. */
.testimonail .service-thumbs {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
}

.testimonail .service-thumbs .owl-thumb-item {
  margin: 0;
}

.testimonail .service-thumbs .owl-thumb-item img {
  border-radius: 14px;
  display: block;
  height: 5.75rem;
  object-fit: cover;
  width: 5.75rem;
}

.testimonail .service-thumbs .owl-thumb-item.active img,
.testimonail .service-thumbs .owl-thumb-item:hover img {
  -webkit-box-shadow: 0 0 0 4px rgba(219, 68, 54, 0.2);
  -moz-box-shadow: 0 0 0 4px rgba(219, 68, 54, 0.2);
  box-shadow: 0 0 0 4px rgba(219, 68, 54, 0.2);
}

.testimonail .service-thumbs a.testimonial-prev,
.testimonail .service-thumbs a.testimonial-next {
  align-items: center;
  background: rgba(8, 18, 34, 0.08);
  border-radius: 999px;
  display: inline-flex;
  height: 2.75rem;
  justify-content: center;
  width: 2.75rem;
}

@media only screen and (max-width: 40em) {
  .testimonail .service-thumbs {
    gap: 0.65rem;
  }

  .testimonail .service-thumbs .owl-thumb-item img {
    height: 4.5rem;
    width: 4.5rem;
  }
}

/* Gallery page */
.gallery-page {
  background:
    radial-gradient(circle at top left, rgba(219, 68, 54, 0.08), transparent 24rem),
    radial-gradient(circle at top right, rgba(15, 23, 36, 0.07), transparent 20rem),
    linear-gradient(180deg, #f7f9fc 0%, #ffffff 24%, #f7f9fc 100%);
}

.gallery-overview {
  padding: 4.75rem 0 2.25rem;
  position: relative;
}

.gallery-overview .row,
.gallery-stage .row,
.gallery-wall .row {
  position: relative;
  z-index: 1;
}

.gallery-overview:before,
.gallery-stage:before,
.gallery-wall:before {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0));
  border-radius: 999px;
  content: "";
  height: 18rem;
  position: absolute;
  right: 4%;
  top: 0;
  width: 18rem;
  z-index: 0;
}

.gallery-stat-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.gallery-stat-card:first-child {
  grid-column: 1 / -1;
}

.gallery-stat-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 249, 252, 0.96));
  border: 1px solid rgba(224, 232, 241, 0.95);
  border-radius: 1.6rem;
  box-shadow: 0 18px 50px rgba(10, 18, 34, 0.08);
  overflow: hidden;
  padding: 1.55rem 1.5rem;
  position: relative;
  transition: none;
}

.gallery-stat-card:before {
  background: linear-gradient(90deg, rgba(219, 68, 54, 0.95), rgba(15, 23, 36, 0.7));
  content: "";
  height: 4px;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
}

.gallery-stat-number {
  color: #db4436;
  display: block;
  font-size: clamp(2rem, 3vw, 2.8rem);
  font-weight: 700;
  line-height: 1;
  margin-bottom: 0.85rem;
}

.gallery-stat-card h3 {
  color: #111827;
  font-size: 1rem;
  letter-spacing: 0.04em;
  margin: 0 0 0.5rem;
  text-transform: uppercase;
}

.gallery-stat-card p {
  color: #5f6b7a;
  font-size: 0.95rem;
  line-height: 1.65;
  margin: 0;
}

.gallery-stage {
  padding: 0 0 5rem;
  position: relative;
}

.gallery-stage-shell {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 253, 0.95));
  border: 1px solid rgba(226, 233, 241, 0.9);
  border-radius: 1.9rem;
  box-shadow: 0 28px 75px rgba(10, 18, 34, 0.1);
  overflow: hidden;
  padding: 1.35rem;
  position: relative;
}

.gallery-stage-shell:before {
  background:
    radial-gradient(circle at top right, rgba(219, 68, 54, 0.13), transparent 30%),
    radial-gradient(circle at left center, rgba(15, 23, 36, 0.08), transparent 28%);
  content: "";
  inset: 0;
  position: absolute;
  pointer-events: none;
}

.gallery-page .wd-gallery-images-holder .owl-nav,
.gallery-page .wd-gallery-images-holder .owl-dots {
  display: none;
}

.gallery-slide {
  background: #0d1726;
  border-radius: 1.45rem;
  height: 38rem;
  overflow: hidden;
  position: relative;
}

.gallery-slide img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
  transition: none;
}

.gallery-page .wd-gallery-images-holder .owl-stage-outer,
.gallery-page .wd-gallery-images-holder .owl-stage,
.gallery-page .wd-gallery-images-holder .owl-item {
  height: 38rem;
  width: 100%;
}

.gallery-page .wd-gallery-images-holder .owl-item.active .gallery-slide img {
  filter: none;
  transform: none;
}

.gallery-slide-copy {
  background: linear-gradient(135deg, rgba(8, 18, 34, 0.9), rgba(14, 31, 53, 0.7));
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 1.45rem;
  bottom: 0;
  color: #fff;
  box-shadow: 0 18px 36px rgba(5, 12, 22, 0.26);
  left: 1.35rem;
  max-width: min(42rem, calc(100% - 2.7rem));
  padding: 1.5rem 1.6rem;
  position: absolute;
  right: auto;
  transform: translateY(-0.1rem);
}

.gallery-slide-tag {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: #ffe3df;
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 0.65rem;
  padding: 0.38rem 0.75rem;
  text-transform: uppercase;
}

.gallery-slide-copy h3 {
  color: #fff;
  font-size: clamp(1.6rem, 2.8vw, 2.25rem);
  line-height: 1.15;
  margin: 0 0 0.45rem;
}

.gallery-slide-copy p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
  line-height: 1.7;
  margin: 0;
  max-width: 42rem;
}

.gallery-stage-toolbar {
  align-items: center;
  border-top: 1px solid rgba(219, 226, 235, 0.9);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  margin-top: 1rem;
  padding: 1.25rem 0 0.15rem;
}

.gallery-stage-meta {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.gallery-stage-counter {
  color: #6b7280;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.gallery-current-label {
  color: #111827;
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.4;
}

.gallery-stage-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.gallery-control {
  align-items: center;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(219, 226, 235, 0.95);
  border-radius: 999px;
  color: #0f1724;
  box-shadow: 0 12px 30px rgba(10, 18, 34, 0.08);
  cursor: pointer;
  display: inline-flex;
  font-size: 0.82rem;
  font-weight: 700;
  gap: 0.55rem;
  letter-spacing: 0.06em;
  padding: 0.9rem 1.2rem;
  text-transform: uppercase;
  transition: none;
}

.gallery-control:focus {
  background: rgba(255, 255, 255, 0.92);
  color: #0f1724;
  outline: none;
  transform: none;
}

.gallery-control.gallery-control-accent {
  background: linear-gradient(135deg, #db4436, #b83226);
  border-color: transparent;
  color: #fff;
}

.gallery-control.gallery-control-accent:focus,
.gallery-control.gallery-control-accent.is-playing {
  background: linear-gradient(135deg, #db4436, #b83226);
  color: #fff;
}

.gallery-wall {
  padding: 0 0 5.5rem;
  position: relative;
}

.gallery-wall .wd-heading {
  margin: 0 auto;
  max-width: 44rem;
}

.gallery-thumb-grid {
  display: grid;
  gap: 1.2rem;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  margin-top: 2.4rem;
}

.gallery-thumb {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 249, 252, 0.96));
  border: 1px solid rgba(224, 232, 241, 0.95);
  border-radius: 1.55rem;
  box-shadow: 0 18px 40px rgba(10, 18, 34, 0.08);
  color: #111827;
  cursor: pointer;
  display: block;
  overflow: hidden;
  padding: 0;
  position: relative;
  text-align: left;
  transition: none;
  width: 100%;
}

.gallery-thumb:before {
  background: linear-gradient(90deg, rgba(219, 68, 54, 0.85), rgba(15, 23, 36, 0.65));
  content: "";
  height: 4px;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
}

.gallery-thumb img {
  display: block;
  height: 11.4rem;
  object-fit: cover;
  transition: none;
  width: 100%;
}

.gallery-thumb-copy {
  display: block;
  padding: 1.05rem 1.05rem 1.15rem;
}

.gallery-thumb-tag {
  background: rgba(219, 68, 54, 0.08);
  border-radius: 999px;
  color: #db4436;
  display: inline-flex;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 0.45rem;
  padding: 0.28rem 0.6rem;
  text-transform: uppercase;
}

.gallery-thumb-title {
  color: #111827;
  display: block;
  font-size: 1.03rem;
  line-height: 1.4;
  margin: 0 0 0.35rem;
}

.gallery-thumb-description {
  color: #5f6b7a;
  display: block;
  font-size: 0.92rem;
  line-height: 1.6;
  margin: 0;
}

.gallery-thumb:focus {
  border-color: rgba(224, 232, 241, 0.95);
  box-shadow: 0 18px 40px rgba(10, 18, 34, 0.08);
  outline: none;
  transform: none;
}

.gallery-thumb.is-active {
  border-color: rgba(219, 68, 54, 0.45);
  box-shadow: 0 18px 40px rgba(10, 18, 34, 0.08);
  outline: none;
  transform: none;
}

.gallery-thumb:focus img,
.gallery-thumb.is-active img {
  filter: none;
  transform: none;
}

.gallery-thumb:focus .gallery-thumb-title {
  color: #111827;
}

.gallery-thumb.is-active .gallery-thumb-title {
  color: #db4436;
}

.gallery-slide img[src$="logo.png"] {
  background: transparent;
  object-fit: cover;
  padding: 0;
}

.gallery-thumb img[src$="logo.png"] {
  background: #fff;
  object-fit: contain;
  padding: 1.4rem;
}

@media only screen and (min-width: 64.0625em) {
  .gallery-thumb-grid {
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(18.5rem, 1fr));
  }

  .gallery-thumb img {
    height: 14.5rem;
  }

  .gallery-thumb-copy {
    padding: 1.2rem 1.2rem 1.3rem;
  }
}

@media only screen and (max-width: 64em) {
  .gallery-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-stat-card:first-child {
    grid-column: auto;
  }

  .gallery-page .wd-gallery-images-holder .owl-stage-outer,
  .gallery-page .wd-gallery-images-holder .owl-stage,
  .gallery-page .wd-gallery-images-holder .owl-item,
  .gallery-slide {
    height: 30rem;
  }
}

@media only screen and (max-width: 40em) {
  .gallery-overview {
    padding: 3.5rem 0 1rem;
  }

  .gallery-stat-grid,
  .gallery-thumb-grid {
    grid-template-columns: 1fr;
  }

  .gallery-stage-shell {
    border-radius: 1.35rem;
    padding: 0.9rem;
  }

  .gallery-page .wd-gallery-images-holder .owl-stage-outer,
  .gallery-page .wd-gallery-images-holder .owl-stage,
  .gallery-page .wd-gallery-images-holder .owl-item,
  .gallery-slide {
    height: 22rem;
  }

  .gallery-slide-copy {
    border-radius: 1.1rem;
    left: 0.9rem;
    max-width: calc(100% - 1.8rem);
    padding: 1rem;
  }

  .gallery-slide-copy h3 {
    font-size: 1.35rem;
  }

  .gallery-stage-toolbar {
    padding-top: 1rem;
  }

  .gallery-stage-actions,
  .gallery-control {
    width: 100%;
  }

  .gallery-control {
    justify-content: center;
  }

  .gallery-thumb img {
    height: 14rem;
  }
}
