/* ============================================================
   Live Your Dream: The Taylor Anderson Story
   Components — CTA band, photo strip, galleries, parallax, lightbox
   ============================================================ */

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--navy-deep);
  color: var(--white);
  text-align: center;
  border-top: 2px solid rgba(201, 168, 76, 0.45);
  border-bottom: 2px solid rgba(201, 168, 76, 0.45);
}

.cta-band h2 {
  color: var(--white);
}

.cta-band p {
  color: rgba(255, 255, 255, 0.92);
  max-width: 600px;
  margin: 0 auto 1.8rem;
}

/* ---------- Photo strip ---------- */
.photo-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  overflow: hidden;
}

.photo-strip img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
  height: 320px;
  object-fit: cover;
  will-change: transform;
}

/* ---------- Galleries ---------- */
.gallery {
  display: grid;
  gap: 1.25rem;
}

.gallery-2 {
  grid-template-columns: repeat(2, 1fr);
}

.gallery-3 {
  grid-template-columns: repeat(3, 1fr);
}

.gallery-4 {
  grid-template-columns: repeat(4, 1fr);
}

.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform var(--transition);
}

.gallery img:hover {
  transform: scale(1.02);
}

/* Captioned figures */
.fig {
  background: var(--navy-light);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.fig img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 0;
  box-shadow: none;
}

.fig figcaption {
  padding: 1rem 1.2rem;
}

.fig figcaption strong {
  display: block;
  font-family: var(--font-head);
  color: var(--white);
  margin-bottom: 0.3rem;
  font-size: 1.05rem;
}

.fig figcaption span {
  color: var(--grey);
  font-size: 0.92rem;
}

/* ---------- Parallax (native scroll-driven animations) ---------- */
@supports (animation-timeline: view()) {
  .split img,
  .photo-strip img,
  .fig-full img {
    animation: parallax-shift linear both;
    animation-timeline: view();
    animation-range: cover 0% cover 100%;
  }

  .split img,
  .photo-strip img {
    --parallax-dist: 36px;
  }

  .fig-full img {
    --parallax-dist: 18px;
  }

  @keyframes parallax-shift {
    from { transform: translateY(calc(var(--parallax-dist) * -1)); }
    to   { transform: translateY(var(--parallax-dist)); }
  }
}

/* ---------- Lightbox ---------- */
.lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.92);
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}

.lightbox-overlay.active {
  display: flex;
}

.lightbox-overlay img {
  max-width: 92vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 8px 48px rgba(0, 0, 0, 0.6);
  cursor: default;
}

.lightbox-close {
  position: fixed;
  top: 1.2rem;
  right: 1.8rem;
  color: var(--white);
  font-size: 2.4rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.75;
  transition: opacity var(--transition);
  user-select: none;
}

.lightbox-close:hover {
  opacity: 1;
}
