/* The Kyrgyzstan gallery column: 1223px centered, 4vw until that cap.
   The header measures the card and follows this same edge. */
body {
  --sss-col: max(4vw, calc((100vw - 1223px) / 2));
}

body #sections > section.page-section.background-width--inset {
  padding-left: var(--sss-col) !important;
  padding-right: var(--sss-col) !important;
}

body #sections > section.page-section.background-width--inset .section-background {
  left: var(--sss-col) !important;
  right: var(--sss-col) !important;
}

body #sections > section.page-section.background-width--full-bleed.content-width--wide > .content-wrapper {
  padding-left: var(--sss-col) !important;
  padding-right: var(--sss-col) !important;
}

@media (max-width: 767px) {
  body {
    --sss-col: 6vw;
  }

  body #sections > section.page-section.background-width--inset,
  body #sections > section.page-section.background-width--full-bleed.content-width--wide > .content-wrapper {
    padding-left: var(--sss-col) !important;
    padding-right: var(--sss-col) !important;
  }

  body #sections > section.page-section.background-width--inset .section-background {
    left: 6vw !important;
    right: 6vw !important;
  }
}

/* Portfolio campaign cards: typography matched to gallery-intro.css
   (Manrope titles, light Poppins copy). Text sits on photos, so titles stay
   a weight heavier and copy stays near-white for legibility. */

section.background-width--inset .sqs-html-content h3 {
  font-family: Manrope, Poppins, system-ui, sans-serif !important;
  font-weight: 600 !important;
  letter-spacing: -0.03em !important;
  line-height: 1.05 !important;
}

section.background-width--inset .sqs-html-content p {
  font-family: Poppins, system-ui, sans-serif !important;
  font-weight: 300 !important;
  line-height: 1.6 !important;
  opacity: 0.92;
}

section.background-width--inset .sqs-html-content p a {
  font-family: Manrope, Poppins, system-ui, sans-serif !important;
  font-weight: 600 !important;
  letter-spacing: 0.01em;
  text-decoration: none !important;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  transition: opacity 0.2s ease;
}

section.background-width--inset .sqs-html-content p a strong {
  font-weight: inherit !important;
}

section.background-width--inset .sqs-html-content p:has(> a:only-child) {
  opacity: 1;
  margin-top: 1.1em !important;
}

@media (hover: hover) {
  section.background-width--inset .sqs-html-content p a:hover {
    opacity: 0.75;
  }
}

/* On-scroll reveal (assets/js/scroll-reveal.js). Selectors out-rank the
   page-load.css ready state. Card image never fades, so gaps don't flash. */
@media (prefers-reduced-motion: no-preference) {
  body #sections#sections > section.page-section.sss-reveal {
    transform: translate3d(0, 48px, 0) !important;
    transition:
      transform 1s cubic-bezier(0.22, 1, 0.36, 1) !important;
  }

  body #sections#sections > section.page-section.sss-reveal .content-wrapper {
    opacity: 0;
    transform: translate3d(0, 14px, 0);
    transition:
      opacity 0.8s ease 0.15s,
      transform 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.15s;
  }

  body #sections#sections > section.page-section.sss-reveal.is-in {
    transform: none !important;
  }

  body #sections#sections > section.page-section.sss-reveal.is-in .content-wrapper {
    opacity: 1;
    transform: none;
  }
}
