.active-link { color: var(--accent) !important; }

/* ── Gallery hero ── */
.gallery-hero {
  min-height: 38vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 9rem 2rem 3rem;
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse 800px 500px at 50% 0%, rgba(226, 30, 30, 0.14), transparent 60%),
    var(--bg);
}
.gallery-hero > * { position: relative; z-index: 1; }
.gallery-hero-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.5rem, 6vw, 4rem);
  letter-spacing: 6px;
  color: #fff;
  margin: 1rem 0 0.75rem;
}
.gallery-hero-sub {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text-dim);
  max-width: 520px;
  line-height: 1.7;
}

/* ── Grid ── */
.gallery-grid {
  padding: 3rem 2rem 5rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 260px;
  gap: 1.1rem;
}

.gallery-item {
  position: relative;
  display: block;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg2);
  cursor: pointer;
}
.gallery-item--wide { grid-column: span 3; grid-row: span 2; }

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

.gallery-item-label {
  position: absolute;
  left: 14px;
  bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.5rem 1rem;
  background: rgba(9, 9, 11, 0.75);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #fff;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.gallery-item:hover .gallery-item-label { opacity: 1; transform: translateY(0); }
.gallery-item-label i { color: var(--accent); font-size: 11px; }

.gallery-item--placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  border-style: dashed;
  color: var(--text-dim);
  font-family: 'Rajdhani', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: default;
}
.gallery-item--placeholder i { font-size: 22px; opacity: 0.5; }

/* ── Lightbox ── */
.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(5, 5, 6, 0.92);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
}
.gallery-lightbox[hidden] { display: none; }
.gallery-lightbox img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 12px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}
.gallery-lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg2);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 16px;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.gallery-lightbox-close:hover { border-color: var(--accent); color: var(--accent); }

/* ── Responsive ── */
@media (max-width: 860px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 220px; }
  .gallery-item--wide { grid-column: span 2; }
}
@media (max-width: 560px) {
  .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 220px; }
  .gallery-item--wide { grid-column: span 1; grid-row: span 1; }
}
