/* ACTIVE NAV */
.nav-links a.active {
  color: #4b0082;
  font-weight: 600;
  border-bottom: 2px solid #4b0082;
  padding-bottom: 2px;
}

/* ── HERO ── */
.gal-hero {
  position: relative;
  height: 320px;
  overflow: hidden;
  background: #1a0a2e center/cover no-repeat;
}

.gal-hero-overlay {
  position: relative;
  z-index: 1;
  background: linear-gradient(to top, rgba(75,0,130,0.88), rgba(0,0,0,0.2));
  height: 100%;
  display: flex;
  align-items: flex-end;
}

.gal-hero-text {
  padding-bottom: 52px;
  color: #fff;
}

.gal-hero-sub {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.8;
  margin-bottom: 10px;
}

.gal-hero-text h1 {
  font-size: 48px;
  font-weight: 700;
  line-height: 1.1;
}

/* ── MAIN ── */
.gal-main {
  background: #f2f2f2;
  padding: 60px 0 80px;
}

/* ── SECTION HEADER ── */
.gal-section-header {
  display: flex;
  align-items: flex-end;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.gal-section-title {
  font-size: 22px;
  font-weight: 700;
  color: #1a1a2e;
  margin-right: auto;
}

.gal-section-desc {
  font-size: 14px;
  color: #888;
  flex-basis: 100%;
  margin-top: -12px;
}

/* ── PHOTO GRID ── */
.gal-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.gal-empty {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 80px 0;
  color: #bbb;
  font-size: 15px;
}

/* FIX 1: Card layout so caption sits below the image */
.gal-item {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  background: #fff;
  transition: transform 0.25s, box-shadow 0.25s;
}

.gal-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(75,0,130,0.15);
}

/* Square image area */
.gal-item-img-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  flex-shrink: 0;
}

.gal-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s;
}

.gal-item:hover img {
  transform: scale(1.06);
}

/* Caption below image — always visible */
.gal-caption {
  padding: 10px 14px 13px;
  font-size: 13px;
  font-weight: 500;
  color: #444;
  line-height: 1.5;
  background: #fff;
  border-top: 1px solid #f0eaf8;
  text-align: center;
  word-break: break-word;
}

/* ── LIGHTBOX ── */
#lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
}

/* ── RESPONSIVE ── */
@media (max-width: 1100px) {
  .gal-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .gal-hero-text h1 { font-size: 34px; }
  .gal-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .gal-grid { grid-template-columns: repeat(2, 1fr); }
}