/* Page-local About gallery strip + lightbox. Does not edit shared CSS. */
#wb_SecondaryProcesses {
  position: absolute;
  left: 66px;
  top: 798px;
  width: 867px;
  height: auto;
  z-index: 60;
  text-align: left;
  box-sizing: border-box;
  scroll-margin-top: 130px;
}
#m_FlexGrid1 .Gallery {
  display: block;
  grid-area: Gallery;
  box-sizing: border-box;
  padding: 8px 12px 24px;
  text-align: left;
  scroll-margin-top: 70px;
}
@media screen and (max-width: 799px) {
  #m_FlexGrid1 {
    grid-template-rows: auto auto auto auto auto auto auto !important;
    grid-template-areas:
      "H1"
      "Image"
      "Intro"
      "Bullets"
      "Membership"
      "Gallery"
      "Testimony" !important;
  }
}

.cst-sp-heading {
  font-family: Arial, Helvetica, sans-serif;
  font-weight: bold;
  font-style: italic;
  font-size: 21px;
  color: #000000;
  background: transparent;
  margin: 0 0 12px 0;
  padding: 0;
  display: block;
  text-align: left;
}
#m_FlexGrid1 .cst-sp-heading {
  font-size: 18px;
  margin: 4px 0 12px 0;
}

/* Horizontal thumbnail strip */
.cst-sp-strip-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  box-sizing: border-box;
}
.cst-sp-strip {
  --cst-sp-visible: 4.35;
  --cst-sp-gap: 12px;
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  gap: var(--cst-sp-gap);
  margin: 0;
  padding: 2px 0;
  list-style: none;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  touch-action: pan-x;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.cst-sp-strip::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}
@media screen and (min-width: 800px) and (max-width: 1029px) {
  #wb_SecondaryProcesses .cst-sp-strip {
    --cst-sp-visible: 3.35;
  }
}
@media screen and (max-width: 799px) {
  .cst-sp-strip {
    --cst-sp-visible: 1.7;
    --cst-sp-gap: 10px;
  }
}

.cst-sp-strip li {
  flex: 0 0 calc((100% - (var(--cst-sp-visible) - 1) * var(--cst-sp-gap)) / var(--cst-sp-visible));
  width: calc((100% - (var(--cst-sp-visible) - 1) * var(--cst-sp-gap)) / var(--cst-sp-visible));
  max-width: none;
  margin: 0;
  padding: 0;
  list-style: none;
  scroll-snap-align: start;
  scroll-snap-stop: normal;
  box-sizing: border-box;
}

.cst-sp-strip-prev,
.cst-sp-strip-next {
  appearance: none;
  flex: 0 0 auto;
  position: relative;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  color: transparent;
  font-size: 0;
  line-height: 0;
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
  width: 44px;
  height: 44px;
  padding: 0;
  box-sizing: border-box;
}
.cst-sp-strip-prev::before,
.cst-sp-strip-next::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 28px;
  height: 28px;
  box-sizing: border-box;
  border: solid #222222;
  border-width: 0 0 4px 4px;
  pointer-events: none;
}
.cst-sp-strip-prev::before {
  transform: translate(-35%, -50%) rotate(45deg);
}
.cst-sp-strip-next::before {
  transform: translate(-65%, -50%) rotate(-135deg);
}
.cst-sp-strip-prev:hover:not(:disabled)::before,
.cst-sp-strip-next:hover:not(:disabled)::before {
  border-color: #000000;
}
.cst-sp-strip-prev:focus,
.cst-sp-strip-next:focus {
  outline: none;
}
.cst-sp-strip-prev:focus-visible,
.cst-sp-strip-next:focus-visible {
  outline: 3px solid #005FCC;
  outline-offset: 2px;
}
.cst-sp-strip-prev:disabled,
.cst-sp-strip-next:disabled {
  opacity: 0.25;
  cursor: default;
}

.cst-sp-thumb {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 1px solid #C0C0C0;
  background: #FFFFFF;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  box-sizing: border-box;
  line-height: 0;
}
.cst-sp-thumb:focus {
  outline: 3px solid #005FCC;
  outline-offset: 2px;
}
.cst-sp-thumb:hover {
  border-color: #4F4F4F;
}
.cst-sp-thumb picture,
.cst-sp-thumb img {
  display: block;
  width: 100%;
  height: auto;
}
/* Uniform 4:3 cells; contain so logos and cut edges are not cropped */
.cst-sp-thumb .cst-sp-frame {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #FFFFFF;
  overflow: hidden;
  position: relative;
}
.cst-sp-thumb .cst-sp-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

/* Lightbox (unchanged behavior) */
#cst-sp-lightbox[hidden] { display: none !important; }
#cst-sp-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}
.cst-sp-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
}
.cst-sp-dialog {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  max-width: min(1100px, 96vw);
  max-height: 94vh;
  width: auto;
  margin: 16px;
  background: #111111;
  color: #FFFFFF;
  border: 1px solid #4F4F4F;
  box-sizing: border-box;
  padding: 12px 12px 16px;
}
.cst-sp-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px;
  margin: 0 0 8px 0;
}
.cst-sp-counter { font-variant-numeric: tabular-nums; color: #FFFFFF; }
.cst-sp-close {
  appearance: none;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 22px;
  line-height: 1;
  color: #FFFFFF;
  background: #2D2D2D;
  border: 1px solid #C0C0C0;
  border-radius: 2px;
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
  padding: 0 10px;
}
.cst-sp-close:hover {
  background: #4F4F4F;
}
.cst-sp-close:focus {
  outline: 3px solid #6AB0FF;
  outline-offset: 2px;
}
.cst-sp-prev,
.cst-sp-next {
  appearance: none;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  color: transparent;
  font-size: 0;
  line-height: 0;
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
  width: 48px;
  height: 48px;
  padding: 0;
  box-sizing: border-box;
}
.cst-sp-prev::before,
.cst-sp-next::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 28px;
  height: 28px;
  box-sizing: border-box;
  border: solid #FFFFFF;
  border-width: 0 0 4px 4px;
  pointer-events: none;
  filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.95)) drop-shadow(0 0 3px rgba(0, 0, 0, 0.9)) drop-shadow(0 1px 2px rgba(0, 0, 0, 1));
}
.cst-sp-prev::before {
  transform: translate(-35%, -50%) rotate(45deg);
}
.cst-sp-next::before {
  transform: translate(-65%, -50%) rotate(-135deg);
}
.cst-sp-prev:hover,
.cst-sp-next:hover {
  background: transparent;
}
.cst-sp-prev:focus,
.cst-sp-next:focus {
  outline: none;
}
.cst-sp-prev:focus-visible,
.cst-sp-next:focus-visible {
  outline: 3px solid #6AB0FF;
  outline-offset: 2px;
}
.cst-sp-stage {
  position: relative;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  background: #000000;
}
.cst-sp-stage img {
  display: block;
  max-width: min(1000px, 92vw);
  max-height: calc(94vh - 140px);
  width: auto;
  height: auto;
  margin: 0 auto;
}
.cst-sp-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
}
.cst-sp-prev { left: 8px; }
.cst-sp-next { right: 8px; }
.cst-sp-caption {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px;
  font-style: italic;
  color: #FFFFFF;
  text-align: center;
  margin: 10px 48px 0;
  line-height: 1.35;
}
@media screen and (max-width: 799px) {
  .cst-sp-dialog { margin: 8px; padding: 8px 8px 12px; max-width: 100vw; }
  .cst-sp-caption { margin: 8px 8px 0; font-size: 14px; }
  .cst-sp-stage img { max-height: calc(94vh - 160px); }
}

@media (prefers-reduced-motion: reduce) {
  .cst-sp-strip {
    scroll-behavior: auto;
  }
  .cst-sp-thumb,
  .cst-sp-dialog,
  .cst-sp-stage img,
  .cst-sp-nav {
    transition: none !important;
  }
  .cst-sp-nav { transform: none; top: calc(50% - 24px); }
}
