/* ==========================================================================
   VedhamRoots — Gallery Stylesheet (gallery.css)
   Exclusively for: pages/gallery.html (Living Visual Tapestry)
   ========================================================================== */

/* --------------------------------------------------------------------------
   0. Master Alternating Background Themes
   -------------------------------------------------------------------------- */
.theme-royal-sanctum {
  background-color: #3D0A14 !important;
  background-image: 
    radial-gradient(circle at 15% 20%, rgba(246, 200, 120, 0.14) 0%, transparent 55%),
    radial-gradient(circle at 85% 75%, rgba(185, 87, 37, 0.16) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, #4A121A 0%, #360812 100%) !important;
  color: #FFF8EB !important;
  position: relative;
  overflow: hidden;
}

.theme-warm-cream {
  background-color: var(--bg-cream, #FFF8ED) !important;
  background-image: radial-gradient(circle at 50% 0%, rgba(255, 252, 246, 0.95) 0%, #FFF8ED 100%) !important;
  color: var(--text-dark-body, #56423A) !important;
  position: relative;
  overflow: hidden;
}

.theme-sunset-terracotta {
  background-color: #A73400 !important;
  background-image: 
    radial-gradient(circle at 15% 20%, rgba(255, 215, 120, 0.35) 0%, transparent 55%),
    radial-gradient(circle at 85% 65%, rgba(255, 170, 50, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 50% 100%, rgba(255, 230, 160, 0.22) 0%, transparent 60%) !important;
  color: #FFFDF7 !important;
  position: relative;
  overflow: hidden;
}

.theme-sunset-terracotta .section-kicker {
  color: #360812 !important;
  background: #FFFFFF !important;
  border-radius: var(--radius-pill) !important;
  padding: 0.42rem 1.15rem !important;
  border: 1.5px solid rgba(212, 175, 55, 0.65) !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12), 0 0 12px rgba(246, 200, 120, 0.25) !important;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.theme-sunset-terracotta .section-kicker .material-symbols-outlined {
  color: var(--primary-terracotta, #99400D) !important;
}

.theme-sunset-terracotta .section-kicker .kicker-glow-text {
  color: #360812 !important;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.theme-sunset-terracotta .section-kicker .kicker-dot-sep {
  color: #D4AF37 !important;
  font-size: 0.75rem;
  opacity: 1;
}

.theme-sunset-terracotta .section-kicker .kicker-sub-badge {
  color: #FFFDF7 !important;
  background: linear-gradient(135deg, #B95725 0%, #99400D 100%) !important;
  padding: 2px 9px;
  border-radius: 9999px;
  font-size: 0.7rem;
  font-weight: 700;
  border: 1px solid rgba(185, 87, 37, 0.4) !important;
  letter-spacing: 0.04em;
}

.theme-sunset-terracotta .section-title {
  color: #FFFFFF !important;
  text-shadow: 0 2px 14px rgba(61, 10, 20, 0.45);
}

.theme-sunset-terracotta .section-title .title-highlight-golden {
  background: linear-gradient(135deg, #FFF6D6 0%, #FFD166 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-style: normal;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.35));
}

.theme-sunset-terracotta .section-title .title-highlight-amber {
  background: linear-gradient(135deg, #FFFFFF 0%, #FCEBB8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.35));
}

.theme-sunset-terracotta .section-subtitle {
  color: #FDEED9 !important;
  text-shadow: 0 1px 6px rgba(42, 5, 13, 0.35);
  font-size: 1.05rem;
  line-height: 1.7;
}

.theme-sunset-terracotta .subtitle-hl-gold {
  color: #FFE17D !important;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(255, 225, 125, 0.45);
  text-underline-offset: 3px;
}

.theme-sunset-terracotta .subtitle-hl-amber {
  color: #FFD485 !important;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(255, 212, 133, 0.45);
  text-underline-offset: 3px;
}

/* --------------------------------------------------------------------------
   1. Gallery Hero (Derived from classes.html Hero Architecture)
   -------------------------------------------------------------------------- */
.gallery-hero {
  position: relative;
  background-image: 
    linear-gradient(180deg, rgba(61, 10, 20, 0.82) 0%, rgba(42, 5, 13, 0.88) 100%),
    url('../assets/images/gallery/IMG-20260911-WA0007.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  padding: 5.5rem 0 4.5rem 0;
  text-align: center;
  border-bottom: 1px solid rgba(212, 175, 55, 0.35);
  overflow: hidden;
  color: #FFF8EB;
}

.gallery-hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 160px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-sacred, #D4AF37), transparent);
  z-index: 2;
}

.gallery-hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.25rem, 4.5vw, 3.4rem);
  color: #FFFDF7;
  margin-top: 0.75rem;
  margin-bottom: 1rem;
  line-height: 1.2;
  text-shadow: 0 2px 14px rgba(36, 8, 18, 0.45);
}

.gallery-hero-subtitle {
  font-size: 1.12rem;
  line-height: 1.7;
  color: #F5EFEB;
  max-width: 780px;
  margin: 0 auto;
  text-shadow: 0 1px 6px rgba(36, 8, 18, 0.35);
}

/* Ambient Decorative Halos */
.ambient-glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(80px);
  z-index: 1;
}

.glow-top-left {
  top: -60px;
  left: -60px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(246, 200, 120, 0.3) 0%, transparent 70%);
}

.glow-bottom-right {
  bottom: -60px;
  right: -60px;
  width: 340px;
  height: 340px;
  background: radial-gradient(circle, rgba(185, 87, 37, 0.25) 0%, transparent 70%);
}

.bg-lotus-svg {
  position: absolute;
  pointer-events: none;
  z-index: 1;
  opacity: 0.15;
  filter: drop-shadow(0 4px 16px rgba(212, 175, 55, 0.5));
}

.lotus-top-left {
  top: -20px;
  left: 2%;
  width: 170px;
  height: 170px;
  transform: rotate(-15deg);
}

.lotus-bottom-right {
  bottom: -20px;
  right: 2%;
  width: 190px;
  height: 190px;
  transform: rotate(20deg);
}

/* --------------------------------------------------------------------------
   2. Main Gallery Showcase Section (Warm Cream Canvas)
   -------------------------------------------------------------------------- */
.gallery-showcase-section {
  padding: clamp(3.5rem, 5vw, 5.5rem) 0;
  position: relative;
  z-index: 5;
  overflow: hidden;
}

/* Sacred Lotus Background Watermarks in Section 2 (Warm Cream Canvas) */
.gallery-bg-lotus {
  position: absolute;
  pointer-events: none;
  z-index: 1;
  opacity: 0.35;
  filter: drop-shadow(0 4px 16px rgba(212, 175, 55, 0.4));
  transition: opacity 0.3s ease;
}

.gallery-lotus-top-left {
  top: -30px;
  left: -20px;
  width: clamp(180px, 20vw, 300px);
  height: clamp(180px, 20vw, 300px);
  transform: rotate(-15deg);
}

.gallery-lotus-top-right {
  top: 40px;
  right: -25px;
  width: clamp(180px, 20vw, 300px);
  height: clamp(180px, 20vw, 300px);
  transform: rotate(20deg);
}

.gallery-lotus-mid-left {
  top: 40%;
  left: -35px;
  width: clamp(170px, 18vw, 280px);
  height: clamp(170px, 18vw, 280px);
  transform: rotate(25deg);
}

.gallery-lotus-mid-right {
  top: 65%;
  right: -30px;
  width: clamp(190px, 19vw, 290px);
  height: clamp(190px, 19vw, 290px);
  transform: rotate(-18deg);
}

.gallery-lotus-bottom-left {
  bottom: -30px;
  left: -20px;
  width: clamp(180px, 20vw, 300px);
  height: clamp(180px, 20vw, 300px);
  transform: rotate(-22deg);
}

.gallery-lotus-bottom-right {
  bottom: 20px;
  right: -25px;
  width: clamp(190px, 21vw, 310px);
  height: clamp(190px, 21vw, 310px);
  transform: rotate(18deg);
}

.gallery-header {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 3rem auto;
}

.gallery-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #FFFFFF;
  border: 1.5px solid rgba(212, 175, 55, 0.5);
  color: var(--primary-terracotta, #99400D);
  padding: 0.4rem 1.15rem;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 4px 14px rgba(54, 8, 18, 0.06);
  margin-bottom: 0.85rem;
}

.gallery-title {
  font-family: var(--font-serif);
  font-size: clamp(1.9rem, 3.8vw, 2.75rem);
  color: var(--text-dark-primary, #3D0A14);
  line-height: 1.25;
  margin-bottom: 0.75rem;
}

.gallery-subtitle {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-dark-body, #56423A);
}

/* --------------------------------------------------------------------------
   3. Anti-Symmetrical Masonry Photo Grid
   Bold Black Borders (3.5px solid #000) & Asymmetrical Rhythm
   -------------------------------------------------------------------------- */
.gallery-anti-symm-grid {
  column-count: 4;
  column-gap: 1.35rem;
  width: 100%;
  margin: 0 auto;
}

@media (max-width: 1200px) {
  .gallery-anti-symm-grid {
    column-count: 3;
    column-gap: 1.2rem;
  }
}

@media (max-width: 840px) {
  .gallery-anti-symm-grid {
    column-count: 2;
    column-gap: 1rem;
  }
}

@media (max-width: 520px) {
  .gallery-anti-symm-grid {
    column-count: 1;
    column-gap: 0;
  }
}

/* Gallery Photo Card */
.gallery-photo-card {
  break-inside: avoid;
  margin-bottom: 1.35rem;
  position: relative;
  border: 3.5px solid #000000;
  border-radius: 16px 4px 16px 4px;
  overflow: hidden;
  background-color: #000000;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.35s ease, border-color 0.35s ease;
  cursor: pointer;
}

/* Alternating anti-symmetrical corner geometries */
.gallery-photo-card:nth-child(3n+1) {
  border-radius: 20px 6px 20px 6px;
}
.gallery-photo-card:nth-child(3n+2) {
  border-radius: 6px 20px 6px 20px;
}
.gallery-photo-card:nth-child(3n) {
  border-radius: 14px 14px 14px 14px;
}

.gallery-photo-card:hover {
  transform: translateY(-6px) scale(1.015);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.36);
  border-color: var(--primary-saffron, #B95725);
  z-index: 10;
}

.gallery-photo-card img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  background: #EFE8DC;
}

.gallery-photo-card:hover img {
  transform: scale(1.04);
}

/* Photo Overlay on Hover */
.gallery-photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.75) 100%);
  opacity: 0;
  display: flex;
  align-items: flex-end;
  padding: 1rem;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.gallery-photo-card:hover .gallery-photo-overlay {
  opacity: 1;
}

.gallery-photo-caption {
  color: #FFF8EB;
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

.gallery-photo-caption .material-symbols-outlined {
  font-size: 18px;
  color: var(--gold-amber, #F6C878);
}

/* --------------------------------------------------------------------------
   4. Wall of Love Testimonials Section (Exact index.html Section 12 Architecture)
   -------------------------------------------------------------------------- */
.testimonials-section {
  padding: 6.5rem 0;
  position: relative;
  overflow: hidden;
}

/* Section Ambient Halos */
.testimonials-ambient-glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(70px);
  z-index: 1;
}

.testimonials-glow-top-right {
  top: -80px;
  right: -80px;
  width: 440px;
  height: 440px;
  background: radial-gradient(circle, rgba(246, 200, 120, 0.3) 0%, transparent 70%);
}

.testimonials-glow-bottom-left {
  bottom: -80px;
  left: -80px;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(185, 87, 37, 0.22) 0%, transparent 70%);
}

/* Section Sacred Lotus Background Watermarks */
.testimonials-bg-lotus {
  position: absolute;
  pointer-events: none;
  z-index: 2;
  opacity: 0.45;
  filter: drop-shadow(0 4px 20px rgba(246, 200, 120, 0.4));
  transition: opacity 0.3s ease;
}

.testimonials-lotus-top-right {
  top: -40px;
  right: -30px;
  width: clamp(200px, 22vw, 320px);
  height: clamp(200px, 22vw, 320px);
  transform: scaleX(-1) rotate(22deg);
}

.testimonials-lotus-bottom-left {
  bottom: -35px;
  left: -25px;
  width: clamp(180px, 20vw, 290px);
  height: clamp(180px, 20vw, 290px);
  transform: scaleX(-1) rotate(-18deg);
}

/* Continuous Right-to-Left Infinite Marquee Carousel */
.testimonials-marquee-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 1.5rem 0 2rem 0;
  margin-top: 3rem;
  z-index: 5;
  mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 1) 6%, rgba(0, 0, 0, 1) 94%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 1) 6%, rgba(0, 0, 0, 1) 94%, transparent 100%);
}

.testimonials-marquee-track {
  display: flex;
  gap: 1.75rem;
  width: max-content;
  animation: testimonialsScrollLeft 42s linear infinite;
  will-change: transform;
}

.testimonials-marquee-wrapper:hover .testimonials-marquee-track {
  animation-play-state: paused;
}

@keyframes testimonialsScrollLeft {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .testimonials-marquee-track {
    animation: none;
    overflow-x: auto;
    width: 100%;
  }
}

/* Pure-White Testimonial Card with Anti-Symmetrical Temple Jharokha Silhouette */
.testimonial-card {
  background: #FFFFFF !important;
  border: 2.5px solid #000000;
  border-radius: 26px 10px 26px 10px;
  width: 400px;
  max-width: 86vw;
  flex-shrink: 0;
  padding: 2.2rem 1.85rem 1.85rem 1.85rem;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.35s ease, border-color 0.35s ease;
}

.testimonial-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.38);
  border-color: #D4AF37;
}

/* Top Accent Bar per Card Palette */
.card-accent-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
}

.bar-saffron { background: linear-gradient(90deg, #FF6B00, #F59E0B); }
.bar-indigo { background: linear-gradient(90deg, #4F46E5, #3B82F6); }
.bar-emerald { background: linear-gradient(90deg, #10B981, #059669); }
.bar-purple { background: linear-gradient(90deg, #8B5CF6, #6366F1); }
.bar-rose { background: linear-gradient(90deg, #EC4899, #F43F5E); }
.bar-amber { background: linear-gradient(90deg, #F59E0B, #D97706); }

/* Card Top Discipline Pill & 5-Star Ratings */
.card-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  gap: 0.75rem;
}

.card-discipline-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.pill-saffron {
  background: #FFF4EC;
  color: #C2410C;
  border: 1.5px solid #FDBA74;
}

.pill-indigo {
  background: #EEF2FF;
  color: #3730A3;
  border: 1.5px solid #C7D2FE;
}

.pill-emerald {
  background: #ECFDF5;
  color: #065F46;
  border: 1.5px solid #A7F3D0;
}

.pill-purple {
  background: #F5F3FF;
  color: #5B21B6;
  border: 1.5px solid #DDD6FE;
}

.pill-rose {
  background: #FDF2F8;
  color: #9D174D;
  border: 1.5px solid #FBCFE8;
}

.pill-amber {
  background: #FFFBEB;
  color: #92400E;
  border: 1.5px solid #FDE68A;
}

.card-stars-wrap {
  display: flex;
  gap: 2px;
  color: #F59E0B;
}

.card-stars-wrap .star-icon {
  font-size: 19px;
  font-variation-settings: 'FILL' 1;
}

/* Card Quote with Crisp Contrast & Vibrant Colorful Text Highlights */
.testimonial-quote {
  font-family: var(--font-serif);
  font-size: 1.08rem;
  font-style: normal;
  line-height: 1.7;
  color: #1E1815;
  margin-bottom: 1.5rem;
}

.hl-text {
  font-weight: 700;
  font-style: normal;
}

.hl-saffron { color: #C2410C; }
.hl-crimson { color: #B91C1C; }
.hl-emerald { color: #047857; }
.hl-indigo { color: #3730A3; }
.hl-purple { color: #6D28D9; }
.hl-rose { color: #BE185D; }
.hl-gold { color: #B45309; }

/* Author Details Row */
.testimonial-author-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding-top: 1.25rem;
  border-top: 1.5px dashed #EAE0D5;
}

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.95rem;
  color: #FFFFFF;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.avatar-saffron { background: linear-gradient(135deg, #FF6B00, #C2410C); }
.avatar-indigo { background: linear-gradient(135deg, #4F46E5, #3730A3); }
.avatar-emerald { background: linear-gradient(135deg, #10B981, #047857); }
.avatar-purple { background: linear-gradient(135deg, #8B5CF6, #5B21B6); }
.avatar-rose { background: linear-gradient(135deg, #EC4899, #9D174D); }
.avatar-amber { background: linear-gradient(135deg, #F59E0B, #B45309); }

.author-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.author-name {
  font-size: 1.02rem;
  font-weight: 800;
  color: #1E1815;
  line-height: 1.2;
}

.author-detail {
  font-size: 0.82rem;
  font-weight: 700;
}

.detail-saffron { color: #C2410C; }
.detail-indigo { color: #4338CA; }
.detail-emerald { color: #047857; }
.detail-purple { color: #6D28D9; }
.detail-rose { color: #BE185D; }
.detail-amber { color: #B45309; }

.author-location-badge {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0.3rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.76rem;
  font-weight: 700;
  flex-shrink: 0;
}

.loc-saffron {
  background: #FFF4EC;
  color: #9A3412;
  border: 1px solid #FDBA74;
}

.loc-indigo {
  background: #EEF2FF;
  color: #312E81;
  border: 1px solid #C7D2FE;
}

.loc-emerald {
  background: #ECFDF5;
  color: #064E3B;
  border: 1px solid #A7F3D0;
}

.loc-purple {
  background: #F5F3FF;
  color: #4C1D95;
  border: 1px solid #DDD6FE;
}

.loc-rose {
  background: #FDF2F8;
  color: #831843;
  border: 1px solid #FBCFE8;
}

.loc-amber {
  background: #FFFBEB;
  color: #78350F;
  border: 1px solid #FDE68A;
}

/* --------------------------------------------------------------------------
   5. Mobile & Tablet Responsiveness for Testimonials & Section 3
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  .testimonials-section {
    padding: clamp(2.75rem, 5vh, 3.5rem) 0 !important;
  }

  .testimonials-ambient-glow,
  .testimonials-bg-lotus {
    opacity: 0.22 !important;
    pointer-events: none !important;
    max-width: 50vw !important;
    max-height: 50vw !important;
  }

  /* SECTION 3: WALL OF LOVE / TESTIMONIALS (Mobile View Only <= 768px)
     - Continuous right-to-left marquee animation
     - Unstoppable movement (no pause on hover/touch/click)
     - Compact card size so each card fits comfortably in 1 frame
     ------------------------------------------------------------------------ */
  .testimonials-marquee-wrapper {
    position: relative !important;
    width: 100% !important;
    margin-top: 1.25rem !important;
    padding: 0.5rem 0 0.75rem 0 !important;
    overflow-x: hidden !important;
    overflow-y: visible !important;
    mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 1) 4%, rgba(0, 0, 1) 96%, transparent 100%) !important;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 1) 4%, rgba(0, 0, 0, 1) 96%, transparent 100%) !important;
    pointer-events: none !important;
    user-select: none !important;
    -webkit-user-select: none !important;
    touch-action: pan-y !important;
  }

  .testimonials-marquee-track {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    width: max-content !important;
    gap: 0.85rem !important;
    animation: testimonialsScrollLeftMobile 36s linear infinite !important;
    animation-play-state: running !important;
    will-change: transform !important;
    pointer-events: none !important;
    user-select: none !important;
    -webkit-user-select: none !important;
    touch-action: pan-y !important;
  }

  .testimonials-marquee-wrapper:hover .testimonials-marquee-track,
  .testimonials-marquee-wrapper:active .testimonials-marquee-track,
  .testimonials-marquee-track:hover,
  .testimonials-marquee-track:active {
    animation-play-state: running !important;
  }

  @keyframes testimonialsScrollLeftMobile {
    0% {
      transform: translateX(0);
    }
    100% {
      transform: translateX(-50%);
    }
  }

  /* Keep duplicate set active for seamless infinite loop */
  .testimonial-card[aria-hidden="true"] {
    display: flex !important;
  }

  .testimonial-card {
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    width: 275px !important;
    min-width: 275px !important;
    max-width: 80vw !important;
    box-sizing: border-box !important;
    padding: 0.75rem 0.85rem 0.65rem 0.85rem !important;
    border-radius: 14px 6px 14px 6px !important;
    border-width: 1.5px !important;
    border-color: #000000 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.07) !important;
    pointer-events: none !important;
    user-select: none !important;
    -webkit-user-select: none !important;
    transform: none !important;
    transition: none !important;
    cursor: default !important;
    touch-action: pan-y !important;
    flex-shrink: 0 !important;
  }

  .testimonial-card:hover,
  .testimonial-card:active,
  .testimonial-card:focus {
    transform: none !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.07) !important;
    border-color: #000000 !important;
    cursor: default !important;
    pointer-events: none !important;
  }

  .card-accent-bar {
    height: 3px !important;
    margin-bottom: 0.35rem !important;
  }

  .card-top-row {
    margin-bottom: 0.35rem !important;
    gap: 0.4rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
  }

  .card-discipline-pill {
    font-size: 0.64rem !important;
    font-weight: 700 !important;
    padding: 0.15rem 0.45rem !important;
    gap: 0.25rem !important;
    pointer-events: none !important;
  }

  .card-discipline-pill .material-symbols-outlined {
    font-size: 11px !important;
  }

  .card-stars-wrap {
    gap: 1px !important;
  }

  .card-stars-wrap .star-icon {
    font-size: 11px !important;
  }

  .testimonial-quote {
    font-size: 0.76rem !important;
    line-height: 1.4 !important;
    margin-bottom: 0.45rem !important;
    pointer-events: none !important;
  }

  .testimonial-quote .hl-text {
    font-weight: 700 !important;
  }

  .testimonial-author-row {
    padding-top: 0.45rem !important;
    gap: 0.5rem !important;
    border-top-width: 1px !important;
    border-top-style: dashed !important;
    border-top-color: #EAE0D5 !important;
    margin-top: auto !important;
    pointer-events: none !important;
  }

  .author-avatar {
    width: 26px !important;
    height: 26px !important;
    font-size: 0.65rem !important;
    font-weight: 700 !important;
    border-radius: 50% !important;
    flex-shrink: 0 !important;
  }

  .author-meta {
    flex: 1 !important;
    min-width: 0 !important;
  }

  .author-name {
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    margin-bottom: 0.05rem !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .author-detail {
    font-size: 0.62rem !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .author-location-badge {
    font-size: 0.58rem !important;
    font-weight: 700 !important;
    padding: 0.12rem 0.4rem !important;
    border-radius: 4px !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
  }
}

/* --------------------------------------------------------------------------
   5. Interactive Full-Screen Image Lightbox Modal
   -------------------------------------------------------------------------- */
.gallery-lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(18, 4, 7, 0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.gallery-lightbox-overlay.open {
  opacity: 1;
  visibility: visible;
}

.gallery-lightbox-container {
  position: relative;
  max-width: 92vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.gallery-lightbox-img {
  max-width: 100%;
  max-height: 84vh;
  object-fit: contain;
  border: 3.5px solid #000000;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 30px rgba(246, 200, 120, 0.2);
}

.gallery-lightbox-close {
  position: absolute;
  top: -45px;
  right: 0;
  background: #FFFFFF;
  border: 2px solid #000000;
  color: #000000;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.gallery-lightbox-close:hover {
  background: var(--primary-saffron, #B95725);
  color: #FFFFFF;
  transform: rotate(90deg) scale(1.1);
}
