/* gallery.css — Tez4Venezuela · #Tez4Venezuela · Teia */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --yellow:      #FFD100;
  --yellow-dim:  #E6BC00;
  --blue:        #003893;
  --blue-mid:    #1a4fa0;
  --red:         #CF0821;
  --white:       #ffffff;
  --off-white:   #f7f5f0;
  --text:        #0d0d0d;
  --text-muted:  rgba(13, 13, 13, 0.55);
  --bg-dark:     #000a1a;
  --text-dark:   #e8eeff;
  --text-dark-muted: rgba(232, 238, 255, 0.5);
  --border-dark: rgba(255, 209, 0, 0.15);
  --font-display: 'Barlow Condensed', sans-serif;
  --font-sans:    'Inter', sans-serif;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--off-white);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ── Flag stripe ── */
.flag-stripe {
  display: flex;
  height: 7px;
}
.flag-stripe span:nth-child(1) { flex: 1; background: var(--yellow); }
.flag-stripe span:nth-child(2) { flex: 1; background: var(--blue); }
.flag-stripe span:nth-child(3) { flex: 1; background: var(--red); }

/* ── Top bar ── */
.top-bar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--blue);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  height: 48px;
}

.top-bar-brand {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--yellow);
  text-transform: uppercase;
}

.top-bar-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.top-bar-link {
  font-size: 12px;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.02em;
  transition: color 0.15s;
}
.top-bar-link:hover { color: #fff; }

/* ── Hero ── */
.hero {
  background: var(--blue);
  padding: 72px 56px 80px;
  position: relative;
  overflow: hidden;
}

/* diagonal flag bands as a background accent */
.hero::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -100px;
  width: 520px;
  height: 900px;
  background: linear-gradient(
    170deg,
    var(--yellow)   0% 33%,
    var(--blue-mid) 33% 66%,
    var(--red)      66% 100%
  );
  opacity: 0.18;
  transform: rotate(-12deg);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  max-width: 760px;
}

.hero-hashtag {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 9vw, 8rem);
  font-weight: 900;
  line-height: 0.95;
  color: var(--yellow);
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}

.hero-tagline {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3.5vw, 2.4rem);
  font-weight: 400;
  font-style: italic;
  color: var(--white);
  margin-bottom: 36px;
}

.hero-desc {
  font-size: 17px;
  line-height: 1.75;
  color: rgba(255,255,255,0.82);
  max-width: 560px;
}

/* ── Event details band ── */
.details-band {
  background: var(--yellow);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
  padding: 0;
}

.detail-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 40px;
  gap: 3px;
}

.detail-label {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(0,0,0,0.5);
}

.detail-val {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--blue);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.detail-sep {
  width: 1px;
  height: 40px;
  background: rgba(0,0,0,0.15);
  align-self: center;
}

/* ── Content split (about + poster) ── */
.content-split {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 64px;
  align-items: start;
  padding: 80px 56px;
  background: var(--off-white);
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.about-body p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 18px;
}
.about-body p:last-child { margin-bottom: 0; }

.about-body strong {
  font-weight: 700;
  color: var(--blue);
}

.poster-col {
  position: sticky;
  top: 64px;
}

.poster-col img {
  width: 100%;
  box-shadow: 0 8px 40px rgba(0,0,0,0.18);
}

/* ── Partners ── */
.partners-section {
  background: var(--white);
  padding: 40px 56px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.partners-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.partners-list {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.partner-badge {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 6px 14px;
  border: 1.5px solid rgba(0,0,0,0.15);
  color: var(--text-muted);
}

/* ── Gallery zone (dark) ── */
.gallery-zone {
  background: var(--bg-dark);
  color: var(--text-dark);
}

.gallery-zone-header {
  padding: 56px 32px 32px;
  border-bottom: 1px solid var(--border-dark);
  display: flex;
  align-items: baseline;
  gap: 20px;
  flex-wrap: wrap;
}

.gallery-zone-title {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--yellow);
}

.gallery-zone-sub {
  font-size: 13px;
  color: var(--text-dark-muted);
  letter-spacing: 0.02em;
}

/* ── Gallery controls ── */
.gallery-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 32px;
  gap: 16px;
}

#info-bar {
  font-size: 13px;
  color: var(--text-dark-muted);
  letter-spacing: 0.03em;
}

.sort-control {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sort-control label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dark-muted);
}

.sort-control select {
  background: rgba(255,209,0,0.08);
  border: 1px solid rgba(255,209,0,0.2);
  color: var(--text-dark);
  font-family: var(--font-sans);
  font-size: 13px;
  padding: 5px 10px;
  outline: none;
  cursor: pointer;
}
.sort-control select option { background: #001233; }

/* ── Gallery grid ── */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 2px;
  padding: 2px 2px 0;
}

.gallery-item {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  cursor: pointer;
  background: #001233;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.gallery-item:hover img { transform: scale(1.05); }

.overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,10,30,0.88) 0%, transparent 55%);
  opacity: 0;
  transition: opacity 0.25s;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 14px;
  gap: 3px;
}
.gallery-item:hover .overlay { opacity: 1; }

.overlay-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.overlay-artist {
  font-size: 11px;
  color: var(--yellow);
  letter-spacing: 0.03em;
}

.play-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0,10,30,0.7);
  color: #fff;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  pointer-events: none;
}

/* ── Load more ── */
.load-more-wrapper {
  display: flex;
  justify-content: center;
  padding: 40px 32px;
}

#load-more {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: none;
  border: 1.5px solid rgba(255,209,0,0.3);
  color: var(--text-dark);
  padding: 12px 40px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
#load-more:hover { border-color: var(--yellow); background: rgba(255,209,0,0.06); }

/* ── Empty state ── */
.empty-state {
  padding: 80px 32px;
  text-align: center;
}
.empty-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-dark);
  margin-bottom: 8px;
}
.empty-sub {
  font-size: 14px;
  color: var(--text-dark-muted);
}
.empty-sub a { color: var(--yellow); }

/* ── Lightbox ── */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 8, 24, 0.96);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}
.lightbox.active { display: flex; }

.lightbox-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  max-width: 90vw;
  max-height: 90vh;
}

#lightbox-media img,
#lightbox-media video {
  max-width: min(82vw, 900px);
  max-height: 72vh;
  object-fit: contain;
  display: block;
}

#lightbox-caption {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: center;
}

.lb-title { font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; color: #fff; text-transform: uppercase; letter-spacing: 0.02em; display: block; }
.lb-artist { font-size: 12px; color: var(--yellow); display: block; }
.lb-stats { font-size: 11px; color: var(--text-dark-muted); display: block; }
.lb-link { font-size: 12px; color: rgba(255,209,0,0.7); margin-top: 6px; display: block; transition: color 0.15s; }
.lb-link:hover { color: var(--yellow); }

.close-btn {
  position: fixed;
  top: 20px; right: 24px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.2s;
  z-index: 1001;
}
.close-btn:hover { opacity: 1; }

.nav-arrow {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,56,147,0.4);
  border: none;
  color: #fff;
  font-size: 1.5rem;
  width: 48px;
  height: 64px;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.2s, background 0.2s;
  z-index: 1001;
}
.nav-arrow:hover { opacity: 1; background: rgba(0,56,147,0.7); }
.nav-prev { left: 12px; }
.nav-next { right: 12px; }

/* ── Footer ── */
footer {
  padding: 28px 32px;
  border-top: 1px solid var(--border-dark);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--text-dark-muted);
  flex-wrap: wrap;
}
footer a { color: var(--text-dark-muted); transition: color 0.15s; }
footer a:hover { color: var(--text-dark); }
.footer-sep { opacity: 0.3; }

/* ── Responsive ── */
@media (max-width: 860px) {
  .content-split {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 56px 24px;
  }
  .poster-col { position: static; max-width: 300px; }
  .partners-section { padding: 32px 24px; }
}

@media (max-width: 640px) {
  .top-bar { padding: 0 20px; }
  .top-bar-link { display: none; }
  .hero { padding: 48px 24px 56px; }
  .details-band { flex-direction: column; gap: 0; }
  .detail-item { padding: 16px 24px; width: 100%; flex-direction: row; justify-content: space-between; border-bottom: 1px solid rgba(0,0,0,0.08); }
  .detail-sep { display: none; }
  .gallery-zone-header { padding: 40px 20px 24px; }
  .gallery-controls { padding: 16px 20px; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
}
