/* evo gallery page */

/* Hero */
.gallery-hero {
  padding: 140px 0 60px;
  text-align: center;
}

.gallery-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  color: #FFD600;
  letter-spacing: 0.15em;
  margin-bottom: 16px;
}

.gallery-title {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 800;
  color: #E8F0EC;
  margin-bottom: 16px;
}

.gallery-title .accent {
  color: #FFD600;
}

.gallery-subtitle {
  font-size: 1.15rem;
  color: #6B9A80;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

.gallery-subtitle code {
  background: rgba(255, 214, 0, 0.1);
  color: #FFD600;
  padding: 2px 8px;
  border-radius: 4px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9em;
}

/* Grid */
.gallery-grid {
  padding: 40px 0 80px;
}

.gallery-items {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 28px;
}

/* Card */
.gallery-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 214, 0, 0.08);
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.gallery-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 214, 0, 0.25);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.card-img-wrap {
  position: relative;
  cursor: pointer;
  overflow: hidden;
}

.card-img-wrap img {
  width: 100%;
  display: block;
  transition: transform 0.3s;
}

.gallery-card:hover .card-img-wrap img {
  transform: scale(1.03);
}

.card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(6, 13, 8, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s;
}

.card-img-wrap:hover .card-overlay {
  opacity: 1;
}

.card-zoom {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  color: #FFD600;
  background: rgba(6, 13, 8, 0.8);
  padding: 8px 18px;
  border-radius: 8px;
  border: 1px solid rgba(255, 214, 0, 0.3);
}

.card-info {
  padding: 20px 24px 24px;
}

.card-info h3 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1rem;
  color: #FFD600;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.card-info p {
  font-size: 0.9rem;
  color: #6B9A80;
  line-height: 1.5;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(6, 13, 8, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.lightbox.active {
  opacity: 1;
  pointer-events: all;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 80vh;
  border-radius: 12px;
  border: 1px solid rgba(255, 214, 0, 0.15);
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.6);
  object-fit: contain;
}

.lightbox-caption {
  font-family: 'JetBrains Mono', monospace;
  color: #FFD600;
  font-size: 0.9rem;
  margin-top: 18px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 32px;
  font-size: 2.5rem;
  color: #6B9A80;
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.2s;
  z-index: 10;
}

.lightbox-close:hover {
  color: #FFD600;
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 3rem;
  color: #6B9A80;
  background: rgba(6, 13, 8, 0.6);
  border: 1px solid rgba(255, 214, 0, 0.1);
  border-radius: 50%;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
  z-index: 10;
}

.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }

.lightbox-prev:hover,
.lightbox-next:hover {
  color: #FFD600;
  border-color: rgba(255, 214, 0, 0.3);
}

/* CTA */
.gallery-cta {
  padding: 80px 0 100px;
  text-align: center;
  border-top: 1px solid rgba(255, 214, 0, 0.06);
}

.gallery-cta h2 {
  font-size: 1.8rem;
  font-weight: 700;
  color: #E8F0EC;
  margin-bottom: 24px;
}

/* Nav active state */
.nav-links a.active {
  color: #FFD600;
}

/* Responsive */
@media (max-width: 480px) {
  .gallery-items {
    grid-template-columns: 1fr;
  }

  .lightbox-prev,
  .lightbox-next {
    width: 40px;
    height: 40px;
    font-size: 2rem;
  }

  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
}
