/* Photos page specific styles (scoped) */
:root{
  --bg:#05081a;
  --panel:rgba(5,0,30,0.72);
  --glass:rgba(10,10,22,0.6);
  --neon-cyan:#44e3ff;
  --neon-magenta:#ff4fd3;
  --text:#ffffff;
  --muted:rgba(255,255,255,0.75);
  --radius:14px;
}

/* Page layout tweaks (scoped to photos page) */
.photos-page{max-width:1200px;margin:18px auto;padding:12px}

/* Header placeholder */
.header-slot{height:68px;margin-bottom:12px}

h1{text-align:center;letter-spacing:.14em;text-transform:uppercase;margin-bottom:6px}
p.lead{text-align:center;color:var(--muted);margin-top:0;margin-bottom:18px}

.timeline{display:flex;flex-direction:column;gap:22px}

/* Hero */
.hero-year{display:flex;gap:20px;align-items:center;padding:20px;border-radius:16px;background:linear-gradient(180deg, rgba(0,0,0,0.12), rgba(0,0,0,0.28));border:1px solid rgba(255,255,255,0.06);box-shadow:0 20px 60px rgba(0,0,0,0.55);min-height:clamp(220px,30vh,360px)}
.hero-left{flex:0 0 46%;display:flex;flex-direction:column;gap:12px}
.hero-right{flex:1;display:flex;align-items:center;justify-content:center}
.year-label{font-size:clamp(40px,9.6vw,90px);line-height:0.85;font-weight:900; background:linear-gradient(90deg,var(--neon-magenta),var(--neon-cyan));-webkit-background-clip:text;background-clip:text;color:transparent;text-shadow:0 3px 20px rgba(0,0,0,0.55)}
.hero-tag{font-size:1.02rem;color:var(--muted);max-width:520px}
.hero-cover{width:100%;height:clamp(220px,32vh,320px);border-radius:12px;overflow:hidden;border:1px solid rgba(255,255,255,0.06);box-shadow:0 18px 50px rgba(0,0,0,0.6)}
.hero-cover img{width:100%;height:100%;object-fit:cover;display:block}
.hero-cover.pulse img{animation:heroPulse 6s ease-in-out infinite}
@keyframes heroPulse{0%{transform:scale(1)}50%{transform:scale(1.02)}100%{transform:scale(1)}}
.hero-cta{margin-top:8px;color:var(--text);font-weight:700;background:linear-gradient(90deg, rgba(255,79,211,0.12), rgba(68,227,255,0.04));padding:8px 12px;border-radius:10px;display:inline-flex;gap:10px;align-items:center}

/* Year cards */
.year-card{display:flex;gap:16px;align-items:center;padding:12px;border-radius:14px;background:var(--panel);border:1px solid rgba(255,255,255,0.04);box-shadow:0 10px 30px rgba(0,0,0,0.5)}
.year-thumb{width:160px;height:110px;border-radius:10px;overflow:hidden;flex:0 0 160px;border:1px solid rgba(255,255,255,0.06)}
.year-thumb img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .6s ease}
.year-info{flex:1}
.year-title{font-weight:800;font-size:1.05rem}
.year-sub{color:var(--muted);margin-top:6px}
.tap-play{display:inline-flex;align-items:center;gap:8px;margin-top:8px;padding:8px 12px;border-radius:999px;background:linear-gradient(90deg, rgba(255,79,211,0.06), rgba(68,227,255,0.06));font-weight:700}
.year-card.archive{opacity:0.86;padding:10px}
.year-thumb.archive{width:120px;height:84px;flex:0 0 120px}
.year-card:hover .year-thumb img{transform:scale(1.06)}

/* player */
.player{position:fixed;inset:0;display:none;align-items:center;justify-content:center;z-index:9999;padding:20px}
.player.is-open{display:flex}
.player-backdrop{position:absolute;inset:0;background:rgba(0,0,0,0.85);backdrop-filter:blur(10px)}
.player-panel{position:relative;max-width:1300px;width:100%;max-height:90vh;border-radius:14px;overflow:hidden;display:flex;flex-direction:column}
.player-stage{position:relative;flex:1;background:linear-gradient(180deg, rgba(0,0,0,0.6), rgba(0,0,0,0.8));display:flex;align-items:center;justify-content:center}
.player-stage img{max-width:100%;max-height:100%;object-fit:contain;display:block}
.player-controls{display:flex;align-items:center;gap:12px;padding:10px 12px;background:linear-gradient(180deg, rgba(0,0,0,0.32), rgba(0,0,0,0.5))}
.btn{appearance:none;border:0;background:transparent;color:var(--text);padding:8px;border-radius:10px;cursor:pointer}
.btn.control{background:linear-gradient(90deg,var(--neon-magenta),var(--neon-cyan));color:#051024;padding:8px 12px;font-weight:800}
.progress{position:relative;height:6px;background:rgba(255,255,255,0.06);border-radius:999px;overflow:hidden;flex:1}
.progress-bar{position:absolute;left:0;top:0;height:100%;width:0;background:linear-gradient(90deg,var(--neon-magenta),var(--neon-cyan))}
.caption{min-width:220px;text-align:right;color:var(--muted);font-weight:600}

/* year thumbnail tabs (mobile-friendly) */
.year-tabs{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:6px}
.year-tab{appearance:none;border:1px solid rgba(255,255,255,0.06);background:rgba(0,0,0,0.28);color:var(--text);padding:6px 10px;border-radius:12px;display:inline-flex;align-items:center;gap:8px;cursor:pointer}
.year-thumb-small{width:36px;height:36px;border-radius:8px;object-fit:cover}

@media (max-width:900px){.hero-year{flex-direction:column;min-height:360px}.hero-left{order:2;width:100%}.hero-right{order:1;width:100%}.year-label{font-size:64px}.year-thumb{width:120px;height:84px}}
@media (max-width:540px){.photos-page{padding:12px}.year-card{flex-direction:column;align-items:flex-start}.year-thumb{width:100%;height:180px;flex:unset}}

/* Make the hero section full-bleed while keeping content centered
   (applies to the first hero inserted into the timeline) */
.timeline > .hero-year:first-child{
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  width: 100vw;
  border-radius: 0;
  box-shadow: none;
  padding: clamp(28px,6vh,48px);
}
.timeline > .hero-year:first-child .hero-left{padding-left:clamp(12px,3vw,36px)}
.timeline > .hero-year:first-child .hero-right{padding-right:clamp(12px,3vw,36px)}
@media (max-width:900px){
  .timeline > .hero-year:first-child{margin-left:0;margin-right:0;width:100%;border-radius:16px;padding:20px}
}

/* ---------------- New Photos Hub & Gallery styles ---------------- */

.year-hub{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  max-width:1200px;
  margin: 0 auto 40px;
}
.year-card{
  position:relative;
  border-radius:16px;
  overflow:hidden;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(0,0,0,0.36));
  border: 1px solid rgba(255,255,255,0.04);
  min-height: 180px;
  display:flex;
  align-items:flex-end;
  padding:18px;
  box-shadow: 0 18px 50px rgba(0,0,0,0.6);
  transition: transform .22s ease, box-shadow .22s ease;
}
.year-card:hover{ transform: translateY(-6px) scale(1.01); box-shadow: 0 26px 70px rgba(0,0,0,0.7); }
.year-card .cover{ position:absolute; inset:0; z-index:0; display:block; width:100%; height:100%; object-fit:cover; filter:brightness(.45) saturate(1.05); }
/* Fallback when no cover image exists */
.year-card .cover-fallback{ position:absolute; inset:0; z-index:0; display:block; width:100%; height:100%; background: linear-gradient(135deg, rgba(255,79,211,0.85), rgba(68,227,255,0.85)); filter:brightness(.6); }
.year-meta{ position:relative; z-index:1; color: #fff; text-shadow: 0 6px 40px rgba(68,227,255,0.06); }
.year-label{ font-size:2.4rem; font-weight:800; letter-spacing:0.12em; text-transform:uppercase; }
.year-sub{ opacity:0.92; margin-top:6px; font-size:0.95rem; }
.year-cta{ margin-top:12px; }
.year-card.featured{ grid-column: span 2; min-height:360px; align-items:center; padding:28px; }
.year-card.featured .year-label{ font-size:3.2rem; }
.year-card.archive{ min-height:160px; }

.photo-grid{ display:grid; grid-template-columns: repeat(4, 1fr); gap: 12px; max-width:1200px; margin: 0 auto 28px; }
.photo-thumb{ border-radius:12px; overflow:hidden; position:relative; background:#000; border:1px solid rgba(255,255,255,0.04); }
.photo-thumb img{ width:100%; height:220px; object-fit:cover; display:block; }
.photo-thumb .cap{ position:absolute; left:8px; bottom:8px; right:8px; color:#fff; font-weight:700; font-size:0.92rem; text-shadow: 0 6px 20px rgba(0,0,0,0.6); display:flex; flex-direction:column; gap:4px }
.photo-thumb .cap-title{ font-weight:800 }
.photo-thumb .cap-sub{ font-size:0.85rem; opacity:0.9; font-weight:600 }
.photo-thumb:hover{ transform: translateY(-4px); box-shadow: 0 20px 50px rgba(0,0,0,0.6); }

.photos-lightbox{ position:fixed; inset:0; display:none; background: rgba(0,0,0,0.88); z-index:10000; align-items:center; justify-content:center; padding:18px; }
.photos-lightbox.open{ display:flex; }
.photos-lightbox .panel{ max-width:1200px; width:100%; max-height:92vh; display:flex; flex-direction:column; align-items:stretch; }
.photos-lightbox img{ width:100%; height:auto; max-height:82vh; object-fit:contain; display:block; border-radius:10px; }
.lb-controls{ display:flex; align-items:center; justify-content:space-between; margin-top:10px; color:#fff; }
.lb-controls .nav{ display:flex; gap:12px; }
.lb-btn{ background: rgba(255,255,255,0.06); border:1px solid rgba(255,255,255,0.08); color:#fff; padding:10px 14px; border-radius:10px; cursor:pointer; }
.lb-meta{ font-size:0.95rem; opacity:0.95; }

@media (max-width: 1100px){ .photo-grid{ grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 900px){ .year-hub{ grid-template-columns: 1fr; } .year-card.featured{ grid-column: auto; } .photo-grid{ grid-template-columns: repeat(2, 1fr); } .photo-thumb img{ height:180px; } }
@media (max-width: 380px){ .photo-grid{ grid-template-columns: 1fr; } .photo-thumb img{ height:160px; } }

/* gallery section on year page */
.gallery-section{ max-width:1200px; margin: 0 auto 28px; }
.gallery-title{ font-size:1.25rem; font-weight:800; margin: 6px 0 10px; }

/* Keep photos page padding tidy */
.photos-page .section-narrow{ padding: 22px 18px; }


