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

.gallery-header {
  position: relative;
  padding: 10rem 0 4rem;
  text-align: center;
  background: radial-gradient(ellipse at 50% 40%, #1a0510 0%, #0a0a0f 70%);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.gallery-header-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 300px;
  background: radial-gradient(ellipse, rgba(139, 0, 0, 0.15) 0%, transparent 70%);
  pointer-events: none;
}
.gallery-header-sub {
  max-width: 500px;
  margin: 0 auto;
  color: rgba(240, 237, 232, 0.55);
  font-size: 1rem;
}

.gallery-main {
  padding: 5rem 0 7rem;
  background: var(--bg);
}

.gallery-block {
  margin-bottom: 4rem;
}

.gallery-sub-label {
  font-family: var(--font-head);
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.25rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.gallery-grid-videos {
  grid-template-columns: repeat(2, 1fr);
}
@media (max-width: 900px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid-videos { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .gallery-grid { grid-template-columns: 1fr; }
}

.gallery-item {
  aspect-ratio: 16 / 9;
  border: 1px solid var(--border);
  overflow: hidden;
  position: relative;
  background: var(--bg2);
  transition: border-color 0.3s, box-shadow 0.3s;
  display: block;
}
.gallery-item iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
  cursor: pointer;
}
.gallery-item:hover img {
  transform: scale(1.04);
}
.gallery-item:not(.placeholder):hover {
  border-color: rgba(192, 57, 43, 0.5);
  box-shadow: 0 0 24px rgba(139, 0, 0, 0.25);
}
.gallery-item.placeholder { cursor: default; }
.gallery-placeholder-inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  color: rgba(240, 237, 232, 0.12);
}
.gallery-placeholder-inner svg { width: 40px; height: 40px; }
.gallery-placeholder-inner span {
  font-family: var(--font-head);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.lightbox.open {
  opacity: 1;
  pointer-events: all;
}
.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border: 1px solid var(--border);
  box-shadow: 0 0 60px rgba(139, 0, 0, 0.3);
}
.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: 1px solid var(--border);
  color: var(--white);
  font-family: var(--font-head);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  padding: 0.4rem 0.9rem;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.lightbox-close:hover {
  border-color: var(--red-bright);
  color: var(--red-glow);
}

/* Active nav link */
.nav-active {
  color: var(--gold) !important;
  opacity: 1 !important;
}
