.gallery-hero {
  padding: calc(var(--nav-height) + 80px) 0 80px;
  background: var(--color-surface-alt);
  border-bottom: 1px dashed var(--color-border);
}
.gallery-hero-title {
  font-size: clamp(40px, 5vw, 64px);
  margin-top: 16px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 240px;
  gap: 16px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  background: var(--color-surface);
  border: 1px solid var(--color-border-light);
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.gallery-item:hover {
  transform: translateY(-4px);
  border-color: var(--color-gold);
  z-index: 2;
}

.gallery-item.row-2 {
  grid-row: span 2;
}

.gallery-item.col-2 {
  grid-column: span 2;
}

.gallery-item .img-placeholder {
  width: 100%; height: 100%; border: none;
}

.gallery-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 24px 16px 16px;
  background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
  transform: translateY(100%);
  transition: transform var(--transition-base);
}

.gallery-item:hover .gallery-overlay {
  transform: translateY(0);
}

.gallery-overlay h4 {
  font-size: 14px;
  color: #fff;
  margin-bottom: 4px;
}

.gallery-overlay span {
  font-size: 11px;
  color: var(--color-gold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Lightbox */
#lightbox {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(8px);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
}

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

.lightbox-content {
  max-width: 90vw;
  max-height: 90vh;
  background: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

.lightbox-img-placeholder {
  width: 80vw;
  height: 70vh;
  display: flex; align-items: center; justify-content: center;
  background: var(--color-bg);
}

.lightbox-caption {
  padding: 16px 24px;
  background: var(--color-surface-alt);
  border-top: 1px dashed var(--color-border);
}

.close-btn {
  position: absolute;
  top: 16px; right: 16px;
  color: #fff;
  width: 40px; height: 40px;
  background: rgba(0,0,0,0.5);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  z-index: 10;
  transition: background var(--transition-fast);
}
.close-btn:hover {
  background: var(--color-gold);
  color: #111;
}

@media (max-width: 1024px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-item.col-2 { grid-column: span 1; }
}
@media (max-width: 768px) {
  .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 300px; }
  .gallery-item.row-2 { grid-row: span 1; }
  .gallery-item.col-2 { grid-column: span 1; }
  .gallery-overlay { transform: translateY(0); }
}
