/* ===== Gallery page ===== */
.gallery-page{ background: #05070f; }

.gallery-hero{
  background: linear-gradient(180deg, rgba(2,10,39,.97), #05070f 90%);
  padding: 130px 1rem 50px;
  text-align: center;
}
.gallery-eyebrow{
  color: #FFD700;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .85rem;
  margin-bottom: .5rem;
}
.gallery-title{
  color: #fff;
  font-weight: 800;
  font-size: clamp(2rem, 6vw, 3.25rem);
  margin-bottom: .75rem;
}
.gallery-subtitle{
  color: #c7cde3;
  max-width: 620px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.6;
}

/* Featured video */
.gallery-video-section{ padding: 10px 1rem 50px; }
.gallery-video-card{
  position: relative;
  width: 100%;
  max-width: 340px;
  margin: 0 auto;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,.5);
  border: 1px solid rgba(255,255,255,.1);
  cursor: pointer;
  background: #000;
}
.gallery-video{
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
}
.gallery-video-badge{
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  background: rgba(0,0,0,.6);
  color: #fff;
  font-size: .8rem;
  font-weight: 600;
  padding: .4rem .9rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  backdrop-filter: blur(4px);
  transition: background .2s ease, color .2s ease;
  pointer-events: none;
}
.gallery-video-badge.is-on{
  background: #FFD700;
  color: #000;
}

/* Masonry grid */
.gallery-grid-section{ padding: 10px 1rem 60px; }
.gallery-masonry{
  column-count: 3;
  column-gap: 14px;
}
.gallery-item{
  display: block;
  width: 100%;
  margin: 0 0 14px;
  padding: 0;
  border: 0;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  break-inside: avoid;
  background: #000;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0,0,0,.35);
}
.gallery-item img{
  display: block;
  width: 100%;
  height: auto;
  transition: transform .5s ease;
}
.gallery-item:hover img{ transform: scale(1.05); }

.gallery-item-caption{
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1.4rem .9rem .8rem;
  background: linear-gradient(to top, rgba(0,0,0,.85), rgba(0,0,0,0));
  color: #fff;
  font-size: .85rem;
  font-weight: 600;
  text-align: left;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .25s ease, transform .25s ease;
}
.gallery-item:hover .gallery-item-caption,
.gallery-item:focus-visible .gallery-item-caption{
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px){
  .gallery-masonry{ column-count: 2; }
}
@media (max-width: 520px){
  .gallery-masonry{ column-count: 1; }
  .gallery-hero{ padding: 110px 1rem 35px; }
}

/* CTA */
.gallery-cta{
  background: linear-gradient(180deg, #05070f, rgba(2,10,39,.97));
  padding: 60px 1rem;
}
.gallery-cta h2{
  color: #fff;
  font-weight: 700;
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  margin-bottom: .75rem;
}
.gallery-cta p{
  color: #c7cde3;
  max-width: 520px;
  margin: 0 auto 1.5rem;
}
.gallery-cta .btn{
  border-radius: 999px;
  font-weight: 700;
  padding: .75rem 2rem;
}

/* ===== Lightbox ===== */
.glb-lightbox{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.94);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 2rem;
}
.glb-lightbox.is-open{ display: flex; }

.glb-figure{
  margin: 0;
  max-width: 90vw;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.glb-figure img{
  max-width: 90vw;
  max-height: 78vh;
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0,0,0,.6);
  object-fit: contain;
}
.glb-figure figcaption{
  color: #fff;
  margin-top: 1rem;
  font-weight: 600;
  font-size: 1.05rem;
  text-align: center;
}

.glb-close{
  position: absolute;
  top: 18px; right: 18px;
  width: 46px; height: 46px;
  border: 0; border-radius: 50%;
  background: rgba(255,255,255,.1);
  color: #fff;
  font-size: 1.5rem;
  display: grid;
  place-items: center;
  z-index: 2010;
}
.glb-close:hover{ background: #FFD700; color: #000; }

.glb-arrow{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px; height: 52px;
  border: 0; border-radius: 50%;
  background: rgba(255,255,255,.1);
  color: #fff;
  font-size: 1.8rem;
  display: grid;
  place-items: center;
  z-index: 2010;
}
.glb-arrow:hover{ background: #FFD700; color: #000; }
.glb-prev{ left: 18px; }
.glb-next{ right: 18px; }

@media (max-width: 576px){
  .glb-arrow{ width: 42px; height: 42px; font-size: 1.4rem; }
  .glb-prev{ left: 8px; }
  .glb-next{ right: 8px; }
  .glb-close{ width: 40px; height: 40px; top: 10px; right: 10px; }
  .glb-lightbox{ padding: 1rem; }
}
