/* Simple Gallery Slider | Author: By Lalit */
.lalit-gallery {
  --gallery-accent: #ed1c2e;
  --gallery-fade-color: #f7f9fd;
  --gallery-gap: 12px;
  --gallery-gap-tablet: 12px;
  --gallery-gap-mobile: 10px;
  --gallery-transition: 1200ms;
  --gallery-center-scale: 1.08;
  --gallery-fade-width: 12%;
  --gallery-stage-gutter: 56px;
  --gallery-arrow-bg: #fff;
  --gallery-arrow-color: #091f4b;
  --gallery-arrow-hover-bg: #ed1c2e;
  --gallery-arrow-hover-color: #fff;
  --gallery-arrow-size: 54px;
  --gallery-dot-color: #c7cfdf;
  position: relative;
  isolation: isolate;
  min-height: var(--gallery-section-min-height, 0px);
  display: flex;
  flex-direction: column;
  justify-content: var(--gallery-section-justify, center);
  width: 100%;
  padding: 55px 28px;
  /* Keep the gallery within its section and prevent cloned slides peeking outside. */
  overflow: hidden !important;
  background: #f7f9fd;
  color: #091f4b;
  box-sizing: border-box;
}
.lalit-gallery *, .lalit-gallery *::before, .lalit-gallery *::after { box-sizing: border-box; }
.lalit-gallery.gallery-align-top { --gallery-section-justify: flex-start; }
.lalit-gallery.gallery-align-center { --gallery-section-justify: center; }
.lalit-gallery-heading-wrap { position: relative; z-index: 1; max-width: 1100px; margin: 0 auto 38px; text-align: center; }
.lalit-gallery-eyebrow { display: flex; align-items: center; justify-content: center; gap: 15px; margin: 0 0 12px; color: var(--gallery-accent); font-size: 16px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.lalit-gallery-eyebrow span { display: block; width: 38px; height: 3px; border-radius: 8px; background: currentColor; }
.lalit-gallery-heading { margin: 0 0 13px; color: #091f4b; font-size: clamp(30px, 3.8vw, 54px); font-weight: 800; line-height: 1.12; letter-spacing: -.025em; }
.lalit-gallery-description { max-width: 900px; margin: 0 auto; color: #3c4960; font-size: clamp(15px, 1.45vw, 20px); line-height: 1.55; }
.lalit-gallery-stage { position: relative; width: 100%; max-width: 1500px; margin: 0 auto; overflow: visible; padding: 0 var(--gallery-stage-gutter, 56px); }
/* Clip slides at the viewport boundary. Image shadows are disabled, so overflow can safely be hidden. */
.lalit-gallery-viewport { position: relative; z-index: 1; width: 100%; overflow: hidden !important; padding: 30px 0 42px; }
/* Fixed left/right fade overlays stay in place while the slide track moves. */
.lalit-gallery-viewport::before,
.lalit-gallery-viewport::after {
  content: "";
  position: absolute;
  z-index: 4;
  top: 0;
  bottom: 0;
  width: var(--gallery-fade-width, 12%);
  pointer-events: none;
  opacity: 1;
}
.lalit-gallery-viewport::before {
  left: 0;
  background: linear-gradient(90deg, var(--gallery-fade-color, #f7f9fd) 0%, transparent 100%);
}
.lalit-gallery-viewport::after {
  right: 0;
  background: linear-gradient(270deg, var(--gallery-fade-color, #f7f9fd) 0%, transparent 100%);
}
.lalit-gallery.no-edge-fade .lalit-gallery-viewport::before,
.lalit-gallery.no-edge-fade .lalit-gallery-viewport::after { display: none; }
.lalit-gallery-track { display: flex; align-items: center; gap: var(--gallery-gap, 12px); width: 100%; overflow: visible; transform: translate3d(0,0,0); transition: transform var(--gallery-transition, 1200ms) cubic-bezier(.22,.72,.18,1); will-change: transform; }
.lalit-gallery-track.is-no-transition { transition: none !important; }
.lalit-gallery-track:not(.is-no-transition) { transition-property: transform !important; }
.lalit-gallery-slide { position: relative; flex: 0 0 auto; min-width: 0; margin: 0; border-radius: 24px; opacity: .88; transform: scale(.94); transform-origin: center center; transition: transform var(--gallery-transition, 1200ms) cubic-bezier(.22,.72,.18,1), opacity var(--gallery-transition, 1200ms) ease; z-index: 1; }
.lalit-gallery-slide.is-active { z-index: 2; opacity: 1; transform: scale(var(--gallery-center-scale, 1.08)); }
.lalit-gallery-slide img { display: block; width: 100%; height: auto; aspect-ratio: var(--gallery-aspect-ratio, 1 / 1); max-width: none; object-fit: var(--gallery-fit, cover); object-position: var(--gallery-position, center center); border: 4px solid #fff; border-radius: 24px; background: #fff; box-shadow: none !important; }
.lalit-gallery.is-custom-height .lalit-gallery-slide img { aspect-ratio: auto; height: var(--gallery-height, 260px); }
.lalit-gallery .lalit-gallery-slide,
.lalit-gallery .lalit-gallery-slide img { filter: none !important; box-shadow: none !important; }
.lalit-gallery-caption { position: absolute; left: 14px; right: 14px; bottom: 15px; display: block; padding: 10px 13px; border-radius: 10px; background: rgba(9,31,75,.84); color: #fff; text-align: center; font-size: 14px; font-weight: 700; line-height: 1.3; }
.lalit-gallery-arrow { position: absolute; z-index: 8; top: 50%; display: flex !important; align-items: center !important; justify-content: center !important; width: var(--gallery-arrow-size, 54px) !important; height: var(--gallery-arrow-size, 54px) !important; min-width: var(--gallery-arrow-size, 54px) !important; min-height: var(--gallery-arrow-size, 54px) !important; margin: 0 !important; padding: 0 0 5px !important; border: 0 !important; border-radius: 50% !important; outline: none; background: var(--gallery-arrow-bg, #fff) !important; color: var(--gallery-arrow-color, #091f4b) !important; box-shadow: 0 8px 24px rgba(9,31,75,.16); font-family: Arial, sans-serif !important; font-size: 38px !important; font-weight: 400 !important; line-height: 1 !important; text-align: center; cursor: pointer; transform: translateY(-50%); opacity: 1 !important; visibility: visible !important; pointer-events: auto !important; transition: background-color .22s ease, color .22s ease, box-shadow .22s ease, transform .22s ease; }
.lalit-gallery-arrow.prev { left: 0; }
.lalit-gallery-arrow.next { right: 0; }
.lalit-gallery-arrow span { position: relative; display: block !important; width: 12px; height: 12px; margin: 0 !important; padding: 0 !important; overflow: visible; color: currentColor !important; font-size: 0 !important; line-height: 0 !important; opacity: 1 !important; visibility: visible !important; }
.lalit-gallery-arrow span::before { content: ""; position: absolute; top: 1px; left: 1px; display: block; width: 10px; height: 10px; border-top: 3px solid currentColor; border-right: 3px solid currentColor; border-color: currentColor !important; }
.lalit-gallery-arrow.prev span::before { transform: rotate(-135deg); }
.lalit-gallery-arrow.next span::before { transform: rotate(45deg); }
.lalit-gallery-arrow:hover,
.lalit-gallery-arrow:focus,
.lalit-gallery-arrow:focus-visible { background: var(--gallery-arrow-hover-bg, #ed1c2e) !important; color: var(--gallery-arrow-hover-color, #fff) !important; -webkit-text-fill-color: var(--gallery-arrow-hover-color, #fff) !important; box-shadow: 0 10px 24px rgba(9,31,75,.2) !important; transform: translateY(-50%) scale(1.06); opacity: 1 !important; visibility: visible !important; }
.lalit-gallery-arrow:hover span,
.lalit-gallery-arrow:focus span,
.lalit-gallery-arrow:focus-visible span { color: var(--gallery-arrow-hover-color, #fff) !important; -webkit-text-fill-color: var(--gallery-arrow-hover-color, #fff) !important; opacity: 1 !important; visibility: visible !important; }
.lalit-gallery-arrow:hover span::before,
.lalit-gallery-arrow:focus span::before,
.lalit-gallery-arrow:focus-visible span::before { border-color: var(--gallery-arrow-hover-color, #fff) !important; }
.lalit-gallery-dots { position: relative; z-index: 6; display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 16px; margin: 0 auto; padding: 0; background: transparent !important; box-shadow: none !important; }
.lalit-gallery-dot { display: block; width: 11px; height: 11px; flex: 0 0 auto; margin: 0; padding: 0; border: 0; border-radius: 50%; background: var(--gallery-dot-color, #c7cfdf); cursor: pointer; opacity: 1; transition: width .25s ease, border-radius .25s ease, background-color .25s ease; }
.lalit-gallery-dot.is-active { width: 28px; border-radius: 20px; background: var(--gallery-accent, #ed1c2e); }
@media (max-width: 1024px) {
  .lalit-gallery { padding: 45px 20px; }
  .lalit-gallery-heading-wrap { margin-bottom: 27px; }
  .lalit-gallery { --gallery-stage-gutter: 46px; }
  .lalit-gallery-stage { padding-right: var(--gallery-stage-gutter); padding-left: var(--gallery-stage-gutter); }
  .lalit-gallery-viewport { padding-top: 26px; padding-bottom: 36px; }
  .lalit-gallery-track { gap: var(--gallery-gap-tablet, 12px); }
  .lalit-gallery-viewport::before, .lalit-gallery-viewport::after { width: max(8%, var(--gallery-fade-width, 12%)); }
  .lalit-gallery { min-height: var(--gallery-section-min-height-tablet, var(--gallery-section-min-height, 0px)); }
  .lalit-gallery.is-custom-height .lalit-gallery-slide img { height: var(--gallery-height-tablet, var(--gallery-height, 260px)); }
}
@media (max-width: 767px) {
  .lalit-gallery { padding: 38px 13px; }
  .lalit-gallery-heading-wrap { margin-bottom: 20px; }
  .lalit-gallery-eyebrow { gap: 9px; font-size: 12px; }
  .lalit-gallery-eyebrow span { width: 24px; height: 2px; }
  .lalit-gallery-heading { font-size: 29px; }
  .lalit-gallery-description { font-size: 14px; }
  .lalit-gallery { --gallery-stage-gutter: 36px; }
  .lalit-gallery-stage { padding-right: var(--gallery-stage-gutter); padding-left: var(--gallery-stage-gutter); }
  .lalit-gallery-viewport { padding-top: 22px; padding-bottom: 30px; }
  .lalit-gallery-track { gap: var(--gallery-gap-mobile, 10px); }
  .lalit-gallery { min-height: var(--gallery-section-min-height-mobile, var(--gallery-section-min-height-tablet, var(--gallery-section-min-height, 0px))); }
  .lalit-gallery.is-custom-height .lalit-gallery-slide img { height: var(--gallery-height-mobile, var(--gallery-height-tablet, var(--gallery-height, 260px))); }
  .lalit-gallery-slide img { border-width: 3px; border-radius: 18px; }
  .lalit-gallery-slide { border-radius: 18px; }
  .lalit-gallery-arrow { width: 38px !important; height: 38px !important; min-width: 38px !important; min-height: 38px !important; font-size: 29px !important; padding-bottom: 4px !important; }
  .lalit-gallery-dots { gap: 8px; }
  .lalit-gallery-dot { width: 9px; height: 9px; }
  .lalit-gallery-dot.is-active { width: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .lalit-gallery-track, .lalit-gallery-slide, .lalit-gallery-dot, .lalit-gallery-arrow { transition-duration: .01ms !important; }
}

/* Strong, non-theme-dependent arrow reset for both Elementor preview and public frontend. */
.lalit-gallery .lalit-gallery-stage > button.lalit-gallery-arrow,
.lalit-gallery .lalit-gallery-stage > button.lalit-gallery-arrow:visited {
  background-color: var(--gallery-arrow-bg, #fff) !important;
  color: var(--gallery-arrow-color, #091f4b) !important;
  -webkit-text-fill-color: var(--gallery-arrow-color, #091f4b) !important;
  border: 0 !important;
  text-decoration: none !important;
}
.lalit-gallery .lalit-gallery-stage > button.lalit-gallery-arrow > span::before {
  border-top-color: var(--gallery-arrow-color, #091f4b) !important;
  border-right-color: var(--gallery-arrow-color, #091f4b) !important;
}
.lalit-gallery .lalit-gallery-stage > button.lalit-gallery-arrow:hover,
.lalit-gallery .lalit-gallery-stage > button.lalit-gallery-arrow:focus-visible {
  background-color: var(--gallery-arrow-hover-bg, #ed1c2e) !important;
  color: var(--gallery-arrow-hover-color, #fff) !important;
  -webkit-text-fill-color: var(--gallery-arrow-hover-color, #fff) !important;
}
.lalit-gallery .lalit-gallery-stage > button.lalit-gallery-arrow:hover > span::before,
.lalit-gallery .lalit-gallery-stage > button.lalit-gallery-arrow:focus-visible > span::before {
  border-top-color: var(--gallery-arrow-hover-color, #fff) !important;
  border-right-color: var(--gallery-arrow-hover-color, #fff) !important;
}


/* Simple Gallery Slider lightbox popup | By Lalit */
.sgls-lightbox[hidden] { display: none !important; }
.sgls-lightbox {
  position: fixed !important;
  z-index: 999999 !important;
  inset: 0 !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  padding: 28px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .22s ease, visibility .22s ease;
}
.sgls-lightbox.is-open { opacity: 1; visibility: visible; pointer-events: auto; }
.sgls-lightbox-backdrop { position: absolute; inset: 0; background: rgba(3,10,27,.92); cursor: zoom-out; }
.sgls-lightbox-dialog {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(1100px, 92vw);
  max-width: 1100px;
  max-height: 90vh;
  outline: none;
}
.sgls-lightbox-figure { display: flex; flex-direction: column; align-items: center; justify-content: center; max-width: 100%; max-height: 88vh; margin: 0; }
.sgls-lightbox-image { display: block; width: auto; height: auto; max-width: min(84vw, 1100px); max-height: 82vh; object-fit: contain; border: 3px solid #fff; border-radius: 12px; box-shadow: none !important; }
.sgls-lightbox-caption { margin-top: 12px; color: #fff; font-size: 15px; line-height: 1.4; text-align: center; }
.sgls-lightbox-caption:empty { display: none; }
.sgls-lightbox-close,
.sgls-lightbox-nav {
  position: absolute;
  z-index: 2;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 48px !important;
  height: 48px !important;
  min-width: 48px !important;
  min-height: 48px !important;
  padding: 0 !important;
  border: 1px solid rgba(255,255,255,.5) !important;
  border-radius: 50% !important;
  background: rgba(255,255,255,.12) !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  font: 400 32px/1 Arial,sans-serif !important;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}
.sgls-lightbox-close:hover,
.sgls-lightbox-nav:hover,
.sgls-lightbox-close:focus-visible,
.sgls-lightbox-nav:focus-visible { background: #ed1c2e !important; border-color: #ed1c2e !important; color: #fff !important; -webkit-text-fill-color: #fff !important; transform: scale(1.05); }
.sgls-lightbox-close { top: -14px; right: -14px; font-size: 34px !important; }
.sgls-lightbox-nav { top: 50%; transform: translateY(-50%); }
.sgls-lightbox-nav:hover { transform: translateY(-50%) scale(1.05); }
.sgls-lightbox-prev { left: -72px; }
.sgls-lightbox-next { right: -72px; }
.sgls-lightbox-counter { position: absolute; bottom: -34px; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,.85); font: 600 13px/1.2 Arial,sans-serif; white-space: nowrap; }
body.sgls-lightbox-open { overflow: hidden !important; }
.lalit-gallery .lalit-gallery-slide img[role="button"] { cursor: zoom-in; }
@media (max-width: 767px) {
  .sgls-lightbox { padding: 14px; }
  .sgls-lightbox-dialog { width: 100%; max-height: 88vh; }
  .sgls-lightbox-image { max-width: 90vw; max-height: 76vh; border-width: 2px; border-radius: 8px; }
  .sgls-lightbox-close { top: -16px; right: -6px; width: 40px !important; height: 40px !important; min-width: 40px !important; min-height: 40px !important; }
  .sgls-lightbox-nav { top: auto; bottom: -60px; width: 40px !important; height: 40px !important; min-width: 40px !important; min-height: 40px !important; }
  .sgls-lightbox-prev { left: calc(50% - 52px); }
  .sgls-lightbox-next { right: calc(50% - 52px); }
  .sgls-lightbox-counter { bottom: -49px; }
}
