/* ===== GALLERY GROWTH BANNER — "night-sky celebration" =====
   Redesigned (2026-07-02): dropped the pink→teal gradient shift
   (poor text contrast, read as "lame"). Now a deep-navy night sky
   with a readable frosted-glass card and a dense field of twinkling
   stars (white / yellow / teal) pulsing at independent rates plus
   occasional firework bursts — a joyful celebration of growth. All
   text is large and high-contrast (white on navy). */
.gallery-growth-banner {
  background:
    radial-gradient(ellipse at 22% 18%, rgba(86,182,198,.30) 0%, transparent 55%),
    radial-gradient(ellipse at 82% 84%, rgba(255,151,208,.22) 0%, transparent 55%),
    linear-gradient(150deg, #0c0640 0%, #170C79 55%, #1c1099 100%);
  padding: 70px 24px;
  position: relative;
  overflow: hidden;
}

/* Twinkling star field — sits behind the glass card */
.growth-starfield {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.growth-star {
  position: absolute;
  color: #fff;                       /* per-star colour set inline */
  background: currentColor;
  clip-path: polygon(50% 0%, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0% 50%, 39% 39%);
  opacity: 0;
  filter: drop-shadow(0 0 5px currentColor);
  animation: growth-twinkle 2.6s ease-in-out infinite;
  will-change: opacity, transform;
}
@keyframes growth-twinkle {
  0%, 100% { opacity: .12; transform: scale(.45) rotate(0deg); }
  50%      { opacity: 1;   transform: scale(1)   rotate(45deg); }
}
/* Big "firework" bursts — pop larger, then fade on a slower curve */
.growth-star--burst {
  filter: drop-shadow(0 0 11px currentColor);
  animation-name: growth-burst;
}
@keyframes growth-burst {
  0%, 100% { opacity: 0;   transform: scale(.2); }
  40%      { opacity: 1;   transform: scale(1.3); }
  72%      { opacity: .45; transform: scale(.85); }
}

.gallery-growth-banner__inner {
  max-width: 720px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 42px 40px 46px;
  border-radius: 26px;
  background: rgba(23, 12, 121, 0.42);
  border: 1.5px solid rgba(255, 255, 255, .28);
  backdrop-filter: blur(6px) saturate(1.1);
  -webkit-backdrop-filter: blur(6px) saturate(1.1);
  box-shadow:
    0 0 0 1px rgba(138, 203, 208, .25) inset,
    0 24px 60px rgba(6, 3, 40, .55),
    0 0 60px rgba(86, 182, 198, .20);
}
/* Old side "✦ ✦ ✦" strips retired */
.gallery-growth-banner__deco { display: none; }

.gallery-growth-banner__tag {
  display: inline-block;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .35);
  color: #fff;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 18px;
  text-shadow: 0 1px 6px rgba(0, 0, 0, .35);
}
.gallery-growth-banner__headline {
  font-family: 'Fredoka', 'Inter', sans-serif;
  font-size: clamp(2.2rem, 5.5vw, 3.8rem);
  font-weight: 600;
  line-height: 1.08;
  margin: 0 0 16px;
  color: #fff;
  text-shadow:
    0 2px 4px rgba(0, 0, 0, .35),
    0 0 26px rgba(138, 203, 208, .55),
    0 0 48px rgba(255, 151, 208, .35);
}
.gallery-growth-banner__sub {
  font-size: 1.08rem;
  color: rgba(255, 255, 255, .92);
  margin: 0;
  line-height: 1.6;
  text-shadow: 0 1px 8px rgba(6, 3, 40, .6);
}
.gallery-growth-banner__sub strong {
  color: #FFE14D;
  font-weight: 700;
}

/* ===== YEAR GRID — 2-column showcase cards ===== */
/* Grid MUST allow overflow so hovered cards can lift/glow past their slot */
.year-grid {
  overflow: visible !important;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}
@media (max-width: 560px) {
  .year-grid { grid-template-columns: 1fr; gap: 22px; }
}

.year-card {
  position: relative;
  z-index: 1;
  aspect-ratio: 3 / 2;
  border-radius: 20px;
  overflow: hidden;
  will-change: transform;
  /* Persistent brand-colour stroke + soft glow — the same "framed even
     at rest" treatment used on the About / Home accent cards, so the
     thumbnails read as deliberate cards, not bare photos. */
  border: 3px solid var(--yc-accent, #56B6C6);
  box-shadow:
    0 3px 8px rgba(23, 12, 121, .18),
    0 16px 36px rgba(23, 12, 121, .26),
    0 0 0 1px rgba(255, 255, 255, .40) inset;
  transition: transform .34s cubic-bezier(.22, 1, .36, 1),
              box-shadow .34s cubic-bezier(.22, 1, .36, 1),
              z-index 0s .34s;
}
/* Cycle the brand accents across the cards */
.year-card:nth-child(5n+1) { --yc-accent: #56B6C6; }
.year-card:nth-child(5n+2) { --yc-accent: #FF97D0; }
.year-card:nth-child(5n+3) { --yc-accent: #8ACBD0; }
.year-card:nth-child(5n+4) { --yc-accent: #FF0052; }
.year-card:nth-child(5n+5) { --yc-accent: #170C79; }

.year-card:hover,
.year-card:focus-visible {
  transform: scale(1.03) translateY(-4px);
  z-index: 20;
  transition: transform .34s cubic-bezier(.22, 1, .36, 1),
              box-shadow .34s cubic-bezier(.22, 1, .36, 1),
              z-index 0s 0s;
  box-shadow:
    0 0 0 3px var(--yc-accent, #56B6C6),
    0 0 34px rgba(138, 203, 208, .45),
    0 26px 60px rgba(23, 12, 121, .50);
}
@media (hover: none) {
  .year-card:hover,
  .year-card:focus-visible { transform: none; }
}

.year-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease, filter .5s ease;
}
.year-card:hover img { transform: scale(1.06); filter: brightness(.9); }

/* Glassy caption overlay — frosted, brightens + blurs slightly on hover */
.year-card-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 22px;
  background: linear-gradient(to top,
    rgba(12, 6, 64, .86) 0%, rgba(12, 6, 64, .32) 46%, transparent 78%);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  transition: background .34s ease, backdrop-filter .34s ease;
}
.year-card:hover .year-card-overlay {
  background: linear-gradient(to top,
    rgba(12, 6, 64, .90) 0%, rgba(12, 6, 64, .42) 50%, rgba(86, 182, 198, .14) 100%);
}

.year-card-text {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
}
/* Big year — professional serif */
.year-card-badge {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2.6rem, 6vw, 3.6rem);
  font-weight: 800;
  color: #fff;
  line-height: .95;
  letter-spacing: -.02em;
  text-shadow: 0 2px 16px rgba(0, 0, 0, .5), 0 0 40px rgba(86, 182, 198, .35);
}
/* Photo count — clean frosted pill, clearly distinct from the year */
.year-card-count {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: #fff;
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .30);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  padding: 5px 13px;
  border-radius: 100px;
}
.year-card-cta {
  display: block;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #8ACBD0;
  margin-top: 2px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .24s, transform .24s;
}
.year-card:hover .year-card-cta {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .growth-star { animation: none !important; opacity: .5 !important; }
}

/* Placeholder (no cover photo) */
.year-card-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #170C79 0%, #1a2a8a 50%, #1e5075 100%);
  background-size: 200% 200%;
  animation: placeholder-pulse 3s ease-in-out infinite alternate;
}
@keyframes placeholder-pulse {
  0%   { background-position: 0% 0%; }
  100% { background-position: 100% 100%; }
}

/* ===== SUBCAT CARD HOVER — same pop principle ===== */
.subcat-grid {
  overflow: visible !important;
}
.subcat-card {
  position: relative;
  z-index: 1;
  transition: transform 0.28s cubic-bezier(.22,1,.36,1),
              box-shadow 0.28s cubic-bezier(.22,1,.36,1),
              z-index 0s 0.28s;
}
.subcat-card:hover {
  transform: scale(1.06) translateY(-4px);
  z-index: 15;
  transition: transform 0.28s cubic-bezier(.22,1,.36,1),
              box-shadow 0.28s cubic-bezier(.22,1,.36,1),
              z-index 0s 0s;
  box-shadow:
    0 0 0 2px #56B6C6,
    0 0 18px rgba(86,182,198,.45),
    0 12px 40px rgba(23,12,121,.45);
}
.subcat-card:hover img {
  transform: scale(1.05);
}

/* ===== BUTTON HOVER GLOW ===== */
.btn-primary:hover {
  box-shadow: 0 0 0 2px rgba(86,182,198,.5), 0 0 20px rgba(86,182,198,.35), 0 6px 24px rgba(23,12,121,.4);
  transform: translateY(-2px);
}
.btn-secondary:hover {
  box-shadow: 0 0 0 2px rgba(255,151,208,.45), 0 0 16px rgba(255,151,208,.3);
  transform: translateY(-1px);
}

/* ===== GALLERY HERO ===== */
.page-hero--gallery {
  background: linear-gradient(135deg, #170C79 0%, #1a2a8a 35%, #1e5a75 70%, #246d82 100%);
}

/* Stats strip on gallery page — white background to break up dark sections */
.stats-strip {
  background: #fff;
  border-top: 3px solid transparent;
  border-bottom: 3px solid transparent;
  border-image: linear-gradient(90deg, #56B6C6, #FF97D0, #FFE14D, #56B6C6) 1;
}
.stats-strip .stat-number { color: #170C79; }
/* Higher specificity (0,4,0) overrides main.css .stat-item:nth-child(2) .stat-number (0,3,0) */
.stats-strip .stat-item:nth-child(2) .stat-number { color: #170C79; }
.stats-strip .stat-label { color: #666; }

/* ===== Remove decorative corner ornaments from gallery thumbnails =====
   (2026-07-02) The henna corner assets overlaid every photo, subcategory
   cover, and video poster and cluttered the images. Hide them and drop
   the frame padding so thumbnails render clean, edge-to-edge. */
.photo-frame-asset { padding: 0 !important; display: block; }
.photo-frame-asset__corner { display: none !important; }
