/* ============================================================
   Kow Abaka Essuman — Campaign · Gallery page
   Layered on top of styles.css (shares the same tokens)
   ============================================================ */

.page-gallery { background: var(--cream); }

.nav__links a.is-current { color: var(--red); }

/* ---------- Hero ---------- */
.ghero {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 64px 24px 8px;
}
.ghero__title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 8vw, 5.4rem);
  line-height: .95;
  text-transform: uppercase;
  margin: 8px 0 18px;
}
.ghero__lede {
  font-size: 1.15rem;
  max-width: 46rem;
  color: #3a3a44;
  margin: 0 0 28px;
}

.ghero__jump {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 6px;
  border-top: 3px solid var(--ink);
}
.ghero__jump a {
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 9px 16px;
  border: 2px solid rgba(18,19,26,.18);
  border-radius: 100px;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.ghero__jump a:hover,
.ghero__jump a:focus-visible {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--cream);
}

/* ---------- Section ---------- */
.gsection {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 56px 24px 8px;
  scroll-margin-top: 90px;
}
.gsection__head { margin-bottom: 26px; }
.gsection__rule {
  display: block;
  width: 64px;
  height: 7px;
  background: var(--red);
  margin-bottom: 14px;
}
.gsection:nth-of-type(even) .gsection__rule { background: var(--blue); }
.gsection__title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4.4vw, 3rem);
  line-height: 1;
  text-transform: uppercase;
  margin: 0 0 10px;
}
.gsection__sub {
  margin: 0;
  max-width: 44rem;
  color: #55555f;
  font-size: 1.02rem;
}

/* ---------- Grid ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  grid-auto-rows: 200px;
  gap: 14px;
}

.shot {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: #e6e1d6;
  cursor: zoom-in;
  grid-row: span 1;
}
.shot--tall { grid-row: span 2; }
.shot--wide { grid-column: span 2; }

.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s cubic-bezier(.2, .7, .3, 1);
}
.shot:hover img,
.shot:focus-visible img { transform: scale(1.05); }
.shot:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

.shot figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 30px 14px 12px;
  font-size: .8rem;
  font-weight: 700;
  line-height: 1.3;
  color: #fff;
  background: linear-gradient(to top, rgba(0, 0, 0, .82), rgba(0, 0, 0, 0));
  pointer-events: none;
}

/* ---------- On the campaign trail (current media) ---------- */
.ghero__jump a.is-live {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}
.ghero__jump a.is-live:hover,
.ghero__jump a.is-live:focus-visible {
  background: var(--red-dark);
  border-color: var(--red-dark);
}

.trail__live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--red);
}
.trail__live span {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--red);
  animation: trail-pulse 1.8s ease-out infinite;
}
@keyframes trail-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(206, 17, 38, .55); }
  100% { box-shadow: 0 0 0 10px rgba(206, 17, 38, 0); }
}

.vgrid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 18px;
}
.vcard {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.vcard--wide { grid-column: span 2; }
.vcard video {
  width: 100%;
  border-radius: var(--radius);
  background: var(--ink);
  object-fit: contain;
}
.vcard--wide video { aspect-ratio: 16 / 9; }
.vcard--tall video { aspect-ratio: 9 / 16; }
.vcard figcaption {
  font-size: .85rem;
  color: #55555f;
}
.vcard figcaption strong {
  display: block;
  color: var(--ink);
  font-weight: 800;
}

.vnote {
  align-self: center;
  padding: 28px;
  border-left: 7px solid var(--red);
  background: #fff;
  border-radius: 0 var(--radius) var(--radius) 0;
}
.vnote .eyebrow { margin: 0 0 8px; }
.vnote p:not(.eyebrow) { margin: 0 0 18px; font-size: 1.05rem; color: #3a3a44; }

.trail__group { margin-top: 40px; }
.trail__group .grid { grid-auto-flow: dense; }
/* Each group shares one caption (shown in the lightbox), so skip the overlay */
.trail__group .shot figcaption { display: none; }
.trail__title {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 1.8rem);
  font-weight: 400;
  text-transform: uppercase;
  margin: 0 0 6px;
}
.trail__sub {
  margin: 0 0 16px;
  max-width: 44rem;
  color: #55555f;
}

/* ---------- Closing CTA ---------- */
.gcta {
  margin: 72px 0 0;
  background: var(--blue);
  color: #fff;
  text-align: center;
  padding: 64px 24px;
}
.gcta__inner { max-width: 44rem; margin: 0 auto; }
.gcta h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5.5vw, 3.4rem);
  text-transform: uppercase;
  margin: 0 0 12px;
}
.gcta p { margin: 0 0 26px; opacity: .92; font-size: 1.1rem; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(10, 10, 14, .94);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px 20px;
}
.lightbox[hidden] { display: none; }

.lightbox__stage {
  margin: 0;
  max-width: 100%;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.lightbox__stage img {
  max-width: 100%;
  max-height: calc(100vh - 160px);
  width: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
}
.lightbox__stage figcaption {
  color: #fff;
  font-weight: 700;
  font-size: .95rem;
  text-align: center;
  max-width: 40rem;
}
.lightbox__stage figcaption:empty { display: none; }

.lightbox__count {
  position: absolute;
  bottom: 16px;
  margin: 0;
  color: rgba(255, 255, 255, .6);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
}

.lightbox__close,
.lightbox__nav {
  position: absolute;
  background: rgba(255, 255, 255, .1);
  border: 2px solid rgba(255, 255, 255, .28);
  color: #fff;
  border-radius: 100px;
  cursor: pointer;
  line-height: 1;
  transition: background .15s ease, border-color .15s ease;
}
.lightbox__close:hover,
.lightbox__nav:hover {
  background: var(--red);
  border-color: var(--red);
}
.lightbox__close {
  top: 16px; right: 16px;
  width: 46px; height: 46px;
  font-size: 1.9rem;
}
.lightbox__nav {
  top: 50%;
  transform: translateY(-50%);
  width: 52px; height: 52px;
  font-size: 2.2rem;
  padding-bottom: 5px;
}
.lightbox__nav--prev { left: 16px; }
.lightbox__nav--next { right: 16px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); grid-auto-rows: 165px; }
}

@media (max-width: 900px) {
  .vgrid { grid-template-columns: repeat(2, 1fr); }
  .vnote { grid-column: span 2; }
}

@media (max-width: 640px) {
  .vgrid { gap: 10px; }
  .vnote { padding: 20px; }
  .ghero { padding: 40px 18px 6px; }
  .gsection { padding: 40px 18px 6px; }
  .grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 140px; gap: 10px; }
  .shot--wide { grid-column: span 2; }
  .shot figcaption { font-size: .7rem; padding: 24px 10px 9px; }
  .ghero__jump a { font-size: .74rem; padding: 8px 13px; }
  .lightbox { padding: 64px 12px; }
  .lightbox__nav { width: 42px; height: 42px; font-size: 1.8rem; }
  .lightbox__nav--prev { left: 8px; }
  .lightbox__nav--next { right: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .shot img { transition: none; }
  .shot:hover img, .shot:focus-visible img { transform: none; }
  .trail__live span { animation: none; }
}
