/* ===== GALLERY PAGE ===== */

/* Filter bar — neo-brutal */
.filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.filter-btn {
  font-family: var(--f-mono);
  font-size: .72rem;
  letter-spacing: 2px;
  padding: 8px 20px;
  border: 2px solid var(--ink);
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
  box-shadow: 3px 3px 0 0 var(--ink);
  transition: transform .12s, box-shadow .12s, background .12s;
}
.filter-btn.active,
.filter-btn:hover {
  background: var(--yellow);
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 0 var(--ink);
}

/* Gallery masonry grid */
.gallery-masonry {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.gallery-masonry .gallery-item {
  aspect-ratio: 4 / 3;
  border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 0 var(--ink);
  transition: transform .12s, box-shadow .12s;
  overflow: hidden;
  position: relative;
  display: block;
}
.gallery-masonry .gallery-item:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 0 var(--ink);
}
.gallery-masonry .gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.gallery-masonry .gallery-item .img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--blue-dk), var(--blue));
  color: rgba(255,255,255,.35);
  font-family: var(--f-mono);
  font-size: .75rem;
  letter-spacing: 3px;
}

.gallery-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(10,17,36,.9), transparent);
  color: var(--white);
  padding: 20px 14px 12px;
  font-size: .78rem;
  transform: translateY(100%);
  transition: transform .25s;
}
.gallery-item:hover .gallery-caption { transform: translateY(0); }

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(29, 78, 216, .4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--white);
  opacity: 0;
  transition: opacity .25s;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .92);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.lightbox.open { display: flex; }
.lightbox-inner {
  position: relative;
  max-width: 900px;
  max-height: 80vh;
  width: 100%;
}
.lightbox-img {
  width: 100%;
  max-height: 75vh;
  object-fit: contain;
  border: 2px solid var(--white);
}
.lightbox-placeholder {
  width: 100%;
  height: 60vh;
  background: linear-gradient(135deg, #1a7dc4, #003f6e);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.3);
  font-family: var(--f-mono);
  font-size: 1rem;
  letter-spacing: 4px;
  border: 2px solid var(--white);
}
.lightbox-close {
  position: absolute;
  top: -44px; right: 0;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 8px;
  opacity: .7;
  transition: opacity .2s;
}
.lightbox-close:hover { opacity: 1; }
.lightbox-caption {
  color: rgba(255,255,255,.7);
  font-family: var(--f-mono);
  font-size: .8rem;
  margin-top: 12px;
  text-align: center;
}
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--ink);
  border: 2px solid var(--white);
  color: var(--white);
  font-size: 1.4rem;
  padding: 12px 16px;
  cursor: pointer;
  transition: background .15s;
}
.lightbox-nav:hover { background: var(--blue); }
.lightbox-prev { left: -60px; }
.lightbox-next { right: -60px; }

/* CTA banner override for gallery page */
.cta-banner {
  background: var(--yellow);
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  padding: 60px 0;
}
.cta-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.cta-banner-label {
  font-family: var(--f-mono);
  font-size: .68rem;
  letter-spacing: 3px;
  color: var(--ink);
  margin-bottom: 6px;
}
.cta-banner-title {
  font-family: var(--f-display);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 900;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 8px;
}
.cta-banner-desc {
  font-size: 1rem;
  color: var(--ink);
  opacity: .75;
}
.btn-yellow {
  background: var(--ink);
  color: var(--yellow);
  border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 0 rgba(0,0,0,.35);
  font-family: var(--f-display);
  font-weight: 900;
  padding: 14px 28px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform .12s, box-shadow .12s;
}
.btn-yellow:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 0 rgba(0,0,0,.35);
}

@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 720px) {
  .gallery-masonry { grid-template-columns: repeat(2, 1fr); }
  .lightbox-prev { left: -44px; }
  .lightbox-next { right: -44px; }
  .cta-banner-inner { flex-direction: column; text-align: center; }
}
