/* ═══════════════════════════════════════════════════════════
   Picture Gallery (v2). Uses home.css + inner.css.
═══════════════════════════════════════════════════════════ */

/* Hero: moving photo wall */
.gl-jump a { font-size: .8rem; font-weight: 600; padding: 7px 14px; border-radius: 999px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.16); color: rgba(255,255,255,.9); transition: background .2s, border-color .2s; }
.gl-jump a:hover { background: rgba(95,212,204,.16); border-color: rgba(95,212,204,.5); }
.gl-wall { position: relative; height: 520px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; overflow: hidden; border-radius: 32px; transform: perspective(1400px) rotateY(-8deg) rotateX(4deg); -webkit-mask-image: linear-gradient(180deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(180deg, transparent, #000 12%, #000 88%, transparent); }
.gl-wall-col { display: flex; flex-direction: column; gap: 14px; animation: glUp 38s linear infinite; }
.gl-wall-col.rev { animation-direction: reverse; animation-duration: 44s; }
.gl-wall:hover .gl-wall-col { animation-play-state: paused; }
.gl-wall-col img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: 20px; border: 1px solid rgba(255,255,255,.12); }
@keyframes glUp { to { transform: translateY(-50%); } }
.gl-wall-badge { left: 50%; bottom: 26px; transform: translateX(-50%); animation: none; background: rgba(10,22,36,.7); text-align: center; }
.gl-wall-badge .num { font-size: 1.2rem; letter-spacing: .2em; }

/* Filter bar (reuses the glass pill from inner.css) */
.gl-filter { top: 76px; }
.gl-filter .subnav-link { border: 0; background: none; cursor: pointer; font-family: inherit; display: inline-flex; align-items: center; gap: 8px; }
.gl-filter .subnav-link.active { background: var(--ink); color: #fff; }
.gl-n { font-size: .7rem; font-weight: 700; padding: 2px 7px; border-radius: 999px; background: var(--surface); color: var(--muted); }
.gl-filter .subnav-link.active .gl-n { background: rgba(255,255,255,.18); color: #fff; }
.gl-count { font-size: .8rem; color: var(--muted); padding: 0 14px 0 8px; white-space: nowrap; }
.gl-sec { transition: opacity .35s var(--ease); }
.gl-sec.is-hidden { display: none; }
.gl-sec.is-fading { opacity: 0; }

/* News & events: masonry */
.gl-masonry { columns: 3 280px; column-gap: 18px; }
.gl-card { break-inside: avoid; margin: 0 0 18px; background: #fff; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; cursor: zoom-in; transition: transform .35s var(--ease), box-shadow .35s; }
.gl-card:hover, .gl-card:focus-visible { transform: translateY(-4px); box-shadow: var(--shadow); }
.gl-img { position: relative; overflow: hidden; background: var(--surface); }
.gl-img img { width: 100%; height: auto; transition: transform .8s var(--ease); }
.gl-card:hover .gl-img img { transform: scale(1.05); }
.gl-zoom { position: absolute; top: 12px; right: 12px; width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.92); color: var(--ink); display: grid; place-items: center; opacity: 0; transform: scale(.8); transition: all .3s var(--ease); }
.gl-zoom svg { width: 16px; height: 16px; }
.gl-card:hover .gl-zoom, .gl-card:focus-visible .gl-zoom { opacity: 1; transform: none; }
.gl-card figcaption { padding: 16px 18px 18px; display: grid; gap: 6px; }
.gl-tag { font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--teal); }
.gl-title { font-size: .95rem; font-weight: 700; line-height: 1.35; letter-spacing: -.01em; }

/* FIFA: dark bento with caption overlays */
.gl-fifa::before { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 60% at 100% 0%, rgba(27,168,160,.2), transparent 60%); pointer-events: none; }
.gl-bento { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; grid-auto-flow: dense; gap: 14px; }
.gl-fifa-card { position: relative; margin: 0; border: 0; border-radius: 22px; background: var(--ink-2); }
.gl-fifa-card.big { grid-column: span 2; grid-row: span 2; }
.gl-fifa-card.wide { grid-column: span 2; }
.gl-fifa-card .gl-img { position: absolute; inset: 0; }
.gl-fifa-card .gl-img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 14%; }
/* people stand in the upper part of these event photos: keep heads in frame */
.gl-fifa-card figcaption { position: absolute; inset: auto 0 0 0; padding: 40px 16px 16px; background: linear-gradient(180deg, transparent, rgba(10,22,36,.92)); color: #fff; }
.gl-fifa-card .gl-tag { color: var(--teal-lite); }
.gl-fifa-card .gl-title { font-size: .88rem; }
.gl-fifa-card.big .gl-title { font-size: 1.15rem; }

/* Videos */
.gl-feature { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.gl-vcard, .gl-vsm { background: #fff; border: 1px solid var(--line); border-radius: 24px; overflow: hidden; transition: box-shadow .3s, transform .3s var(--ease); }
.gl-vcard:hover, .gl-vsm:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.gl-vcard .vid, .gl-vsm .vid { border-radius: 0; aspect-ratio: 16/9; }
.gl-vcard .vid:first-child, .gl-vsm .vid:first-child { grid-row: auto; min-height: 0; aspect-ratio: 16/9; }
.gl-vbody { padding: 20px 22px 22px; }
.gl-vtag { display: flex; align-items: center; gap: 8px; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--teal); margin-bottom: 8px; }
.video-card-tag-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px rgba(27,168,160,.15); }
.gl-vbody h3 { font-size: 1.2rem; letter-spacing: -.02em; line-height: 1.25; margin-bottom: 8px; }
.gl-vbody h4 { font-size: 1rem; letter-spacing: -.015em; margin-bottom: 6px; }
.gl-vbody p { font-size: .9rem; color: var(--muted); line-height: 1.65; }
.gl-vsm .pbtn { width: 56px; height: 56px; }
.gl-vsm .pbtn svg { width: 20px; height: 20px; }
.gl-more { margin-top: clamp(48px, 7vw, 80px); }
.gl-more-title { font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1.1; letter-spacing: -.03em; font-weight: 800; }
.gl-more-title .serif { color: var(--blue); font-size: 1.08em; }
.gl-vgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 32px; }

/* About this gallery */
.gl-seo { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.gl-facts { display: grid; gap: 10px; position: sticky; top: 110px; }
.gl-fact { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px; }
.gl-fact.hl { background: var(--ink); color: #fff; border-color: var(--ink); }
.gl-fact-l { font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--teal); margin-bottom: 6px; }
.gl-fact.hl .gl-fact-l { color: var(--teal-lite); }
.gl-fact-v { font-size: .9rem; line-height: 1.6; color: var(--muted); }
.gl-fact-v strong { color: var(--text); }
.gl-fact.hl .gl-fact-v { color: rgba(255,255,255,.7); }
.gl-fact.hl .gl-fact-v strong { color: #fff; }

/* Lightbox */
.gl-lb { position: fixed; inset: 0; z-index: 2000; background: rgba(5,12,20,.94); display: grid; grid-template-columns: 72px 1fr 72px; align-items: center; padding: 24px; }
.gl-lb[hidden] { display: none; }
.gl-lb figure { margin: 0; text-align: center; color: #fff; min-width: 0; }
.gl-lb img { max-height: 80vh; max-width: 100%; margin: 0 auto; border-radius: 16px; object-fit: contain; animation: glIn .35s var(--ease); }
@keyframes glIn { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: none; } }
.gl-lb figcaption { margin-top: 14px; display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; font-size: .92rem; color: rgba(255,255,255,.85); }
.gl-lb-count { color: var(--teal-lite); font-weight: 700; }
.gl-lb-nav, .gl-lb-close { width: 52px; height: 52px; border-radius: 50%; background: rgba(255,255,255,.1); color: #fff; display: grid; place-items: center; border: 0; cursor: pointer; transition: background .2s; }
.gl-lb-nav:hover, .gl-lb-close:hover { background: rgba(255,255,255,.22); }
.gl-lb-nav svg { width: 20px; height: 20px; }
.gl-lb-close { position: absolute; top: 20px; right: 20px; font-size: 1.2rem; }

@media (max-width: 1100px) {
  .gl-wall { height: 420px; transform: none; max-width: 560px; margin: 16px auto 0; width: 100%; }
  .gl-bento { grid-template-columns: repeat(2, 1fr); }
  .gl-seo { grid-template-columns: 1fr; }
  .gl-facts { position: static; }
  .gl-vgrid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .gl-wall { height: 340px; }
  .gl-count { display: none; }
  .gl-bento { grid-auto-rows: 180px; }
  .gl-feature, .gl-vgrid { grid-template-columns: 1fr; }
  .gl-lb { grid-template-columns: 1fr; padding: 16px; }
  .gl-lb-nav { position: absolute; bottom: 24px; }
  .gl-lb-nav.prev { left: calc(50% - 64px); } .gl-lb-nav.next { right: calc(50% - 64px); }
  .gl-lb img { max-height: 70vh; }
}
@media (prefers-reduced-motion: reduce) { .gl-wall-col { animation: none; } }
