/* George Lenkoitoi Saigilu landing page.
   Everything is scoped under .gs-page with gs- class names so it can move
   into a Beaver Builder child theme without clashing with theme styles. */

body {
  margin: 0;
  background: #fff;
}

.gs-page {
  --gs-purple: #5f3663;      /* George's title card */
  --gs-purple-deep: #4a2850;
  --gs-olive: #5c6435;       /* ADEA logo */
  --gs-green: #7ba947;       /* "Bringing hope" slide */
  --gs-sage: #e3e9e5;        /* lighter take on the painting backgrounds */
  --gs-ink: #24192a;
  --gs-paper: #fff;
  --gs-yellow: #ffc845;
  --gs-focus: var(--gs-purple);

  --gs-gutter: 16px;
  --gs-max: 1120px;
  --gs-font: "Instrument Sans", "Segoe UI", system-ui, sans-serif;
  --gs-display: "Instrument Serif", Georgia, "Times New Roman", serif;

  font-family: var(--gs-font);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--gs-ink);
  background: var(--gs-paper);
  overflow-x: clip;
}

.gs-page *,
.gs-page *::before,
.gs-page *::after {
  box-sizing: border-box;
}

.gs-page img {
  display: block;
  max-width: 100%;
  height: auto;
}

.gs-page figure {
  margin: 0;
}

.gs-page a {
  color: var(--gs-purple);
  text-underline-offset: 0.18em;
}

.gs-page :focus-visible {
  outline: 3px solid var(--gs-focus);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Top bar */

.gs-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--gs-max);
  margin: 0 auto;
  padding: 14px var(--gs-gutter);
}

.gs-top a {
  font-weight: 600;
  text-decoration: none;
}

.gs-page .gs-top-home {
  color: var(--gs-olive);
}

.gs-top-give:hover,
.gs-top-home:hover {
  text-decoration: underline;
}

/* Buttons */

.gs-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.gs-btn {
  display: inline-block;
  padding: 0.8em 1.4em;
  border: 2px solid var(--gs-purple);
  border-radius: 6px;
  font-weight: 650;
  font-size: 1.0625rem;
  line-height: 1.2;
  text-decoration: none;
}

.gs-page .gs-btn-primary {
  background: var(--gs-purple);
  color: #fff;
}

.gs-page .gs-btn-primary:hover {
  background: var(--gs-purple-deep);
  border-color: var(--gs-purple-deep);
}

.gs-page .gs-btn-ghost {
  background: transparent;
  color: var(--gs-purple);
}

.gs-page .gs-btn-ghost:hover {
  background: var(--gs-sage);
}

.gs-page .gs-btn-light {
  background: #fff;
  border-color: #fff;
  color: var(--gs-purple);
}

.gs-page .gs-btn-light:hover {
  background: var(--gs-yellow);
  border-color: var(--gs-yellow);
}

.gs-page .gs-btn-outline-light {
  background: transparent;
  border-color: #fff;
  color: #fff;
}

.gs-page .gs-btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.14);
}

/* Hero */

.gs-hero {
  display: grid;
  gap: 28px;
  max-width: var(--gs-max);
  margin: 0 auto;
  padding: 12px var(--gs-gutter) 56px;
}

.gs-hero-text {
  container-type: inline-size;
}

/* Sized to the column so the longest word, Lenkoitoi, always fits. */
.gs-name {
  margin: 0 0 0.3em;
  font-family: var(--gs-display);
  font-size: clamp(3.25rem, 25cqi, 7.5rem);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: -0.01em;
  color: var(--gs-purple);
}

.gs-lede {
  max-width: 34ch;
  margin: 0 0 1.4em;
  font-size: 1.25rem;
  line-height: 1.45;
}

@media (min-width: 860px) {
  .gs-hero {
    grid-template-columns: 5fr 7fr;
    align-items: center;
    gap: 48px;
    padding-top: 32px;
    padding-bottom: 88px;
  }
}

/* Shared headings */

.gs-h2 {
  margin: 0 0 0.6em;
  font-family: var(--gs-display);
  font-size: clamp(2rem, 6.5vw, 3rem);
  font-weight: 400;
  line-height: 1.08;
  color: var(--gs-purple);
  text-wrap: balance;
}

/* Story slides */

.gs-story {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 var(--gs-gutter) 64px;
}

.gs-slides {
  display: grid;
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.gs-slides img,
.gs-hope img,
.gs-rombo-slide img {
  border: 1px solid var(--gs-sage);
}

/* Douglas */

.gs-douglas {
  display: grid;
  gap: 24px;
  max-width: var(--gs-max);
  margin: 0 auto;
  padding: 0 var(--gs-gutter) 64px;
}

.gs-douglas-text {
  max-width: 40ch;
  margin: 0;
  padding-left: 18px;
  border-left: 4px solid var(--gs-green);
  font-size: 1.3rem;
  line-height: 1.45;
}

@media (min-width: 860px) {
  .gs-douglas {
    grid-template-columns: 4fr 8fr;
    align-items: center;
    gap: 48px;
  }
}

/* ADEA mission */

.gs-adea {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 var(--gs-gutter) 72px;
}

.gs-adea .gs-adea-title {
  color: var(--gs-olive);
}

.gs-adea > p {
  max-width: 65ch;
  margin: 0 0 1em;
}

.gs-values {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 2px solid var(--gs-sage);
}

.gs-values-label {
  margin: 0 0 8px;
  font-weight: 600;
  color: var(--gs-olive);
}

.gs-values-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--gs-display);
  font-size: clamp(2rem, 7.5vw, 3.25rem);
  font-weight: 400;
  line-height: 1.1;
  color: var(--gs-purple);
}

@media (min-width: 960px) {
  .gs-values-list {
    grid-template-columns: repeat(4, auto);
    justify-content: space-between;
  }
}

/* The wall: George's paintings hung on his purple */

.gs-wall {
  --gs-focus: var(--gs-yellow);
  --gs-row: 150px;
  padding: 64px var(--gs-gutter) 72px;
  background: var(--gs-purple);
  color: #fff;
}

.gs-wall-intro {
  max-width: 820px;
  margin: 0 auto 36px;
}

.gs-wall .gs-gift-title {
  color: #fff;
  font-size: clamp(2.25rem, 8vw, 3.75rem);
}

.gs-gift-choose {
  margin: 0 0 1.2em;
  font-size: 1.35rem;
  font-weight: 600;
}

.gs-gift-here {
  margin: 0;
}

.gs-pieces {
  display: flex;
  flex-wrap: wrap;
  gap: 28px 16px;
  max-width: var(--gs-max);
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

/* Justified rows: each painting grows in proportion to its width/height
   ratio, so a row shares one height and nothing is cropped. */
.gs-piece {
  flex: var(--r) 1 calc(var(--r) * var(--gs-row));
  min-width: 0;
}

.gs-pieces::after {
  content: "";
  flex: 999 1 0;
}

.gs-piece a {
  display: block;
  box-shadow: 0 10px 22px rgba(20, 6, 24, 0.45);
}

.gs-piece img {
  width: 100%;
}

.gs-label {
  display: block;
  margin-top: 10px;
  font-size: 0.95rem;
  line-height: 1.3;
}

.gs-num {
  display: inline-block;
  min-width: 1.9em;
  margin-right: 4px;
  padding: 1px 0;
  border-radius: 3px;
  background: #fff;
  color: var(--gs-purple);
  font-weight: 750;
  text-align: center;
}

.gs-wall-actions {
  justify-content: center;
  margin-top: 48px;
}

@media (min-width: 600px) {
  .gs-wall {
    --gs-row: 210px;
  }
}

@media (min-width: 1000px) {
  .gs-wall {
    --gs-row: 260px;
    padding-top: 88px;
    padding-bottom: 96px;
  }
}

/* Hope slide */

.gs-hope {
  max-width: 960px;
  margin: 0 auto;
  padding: 64px var(--gs-gutter) 56px;
  text-align: center;
}

.gs-site-link {
  margin: 20px 0 0;
  font-size: 1.35rem;
  font-weight: 650;
}

/* Rombo: the slide, then the East Africa map rebuilt the way it sits in
   Douglas's document (same crop, label box and ink mark). */

.gs-rombo {
  display: grid;
  gap: 32px;
  max-width: var(--gs-max);
  margin: 0 auto;
  padding: 0 var(--gs-gutter) 72px;
}

@media (min-width: 900px) {
  .gs-rombo {
    grid-template-columns: 3fr 2fr;
    align-items: center;
  }
}

.gs-map {
  position: relative;
  aspect-ratio: 6.5 / 6;
  overflow: hidden;
  container-type: inline-size;
  background: #fff;
}

.gs-map > a {
  position: absolute;
  inset: 0;
}

.gs-page .gs-map-img {
  position: absolute;
  left: -28.725%;
  top: 1.474%;
  width: 135.188%;
  max-width: none;
  height: 105.245%;
}

.gs-map-label {
  position: absolute;
  left: 7.23%;
  top: 29.17%;
  width: 35.08%;
  height: 26.33%;
  margin: 0;
  padding: 0.77% 1.54%;
  background: #fff;
  color: #000;
  font-family: Calibri, Carlito, var(--gs-font);
  font-size: 9.4cqw;
  line-height: 1.12;
  pointer-events: none;
}

.gs-page .gs-map-mark {
  position: absolute;
  left: 49.85%;
  top: 44.5%;
  width: 4.46%;
  height: 5.67%;
  pointer-events: none;
}

/* Footer */

.gs-foot {
  padding: 28px var(--gs-gutter) 40px;
  border-top: 2px solid var(--gs-sage);
  text-align: center;
  font-size: 0.95rem;
}

.gs-foot p {
  margin: 0.3em 0;
}

/* Lightbox */

.gs-lightbox {
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 56px 12px 64px;
  border: 0;
  background: rgba(24, 12, 28, 0.94);
  color: #fff;
}

.gs-lightbox[open] {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.gs-lightbox::backdrop {
  background: transparent;
}

.gs-lightbox img {
  max-width: 100%;
  max-height: calc(100dvh - 140px);
  width: auto;
  height: auto;
  object-fit: contain;
}

.gs-lightbox-caption {
  margin: 14px 0 0;
  font-family: var(--gs-font);
  font-size: 1.05rem;
  font-weight: 600;
}

.gs-lightbox-caption:empty {
  display: none;
}

.gs-lb-btn {
  position: absolute;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.gs-lb-btn:hover {
  background: rgba(255, 255, 255, 0.28);
}

.gs-lb-btn:focus-visible {
  outline: 3px solid var(--gs-yellow);
  outline-offset: 2px;
}

.gs-lb-close {
  top: 10px;
  right: 10px;
}

.gs-lb-prev,
.gs-lb-next {
  bottom: 10px;
}

.gs-lb-prev {
  left: calc(50% - 60px);
}

.gs-lb-next {
  right: calc(50% - 60px);
}

.gs-lb-btn[hidden] {
  display: none;
}

@media (min-width: 900px) {
  .gs-lb-prev,
  .gs-lb-next {
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
  }

  .gs-lb-prev {
    left: 16px;
  }

  .gs-lb-next {
    right: 16px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .gs-lightbox[open] img {
    animation: gs-zoom-in 180ms ease-out;
  }

  @keyframes gs-zoom-in {
    from { opacity: 0; transform: scale(0.97); }
    to { opacity: 1; transform: none; }
  }
}
