
.gallery-hero {
  padding: 120px 56px 60px;
  max-width: 1200px;
  margin: 0 auto;
}

.gallery-hero h1 {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 16px;
}

.gallery-hero h1 em {
  font-style: italic;
  color: var(--accent);
}

.gallery-hero p {
  font-size: 1rem;
  color: var(--muted);
  font-weight: 300;
  line-height: 1.8;
  max-width: 560px;
}

.cat-section {
  padding: 48px 0 80px;
}

.cat-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 12px;
}

.cat-header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.cat-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.cat-icon--certs {
  background: linear-gradient(135deg, #fffbe8, #f0e090);
}

.cat-title {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.8rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.cat-meta {
  font-size: 0.78rem;
  color: var(--accent);
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-top: 4px;
}

.cat-desc {
  font-size: 0.875rem;
  color: var(--muted);
  font-weight: 300;
  line-height: 1.7;
  max-width: 500px;
  margin-bottom: 20px;
}

.photo-count-badge {
  background: var(--accent-light);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 100px;
  white-space: nowrap;
  align-self: flex-start;
  margin-top: 6px;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.photo-card {
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  background: var(--border);
  aspect-ratio: 4/3;
  transition: transform 0.2s, box-shadow 0.2s;
}

.photo-card:hover {
  transform: scale(1.02);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.photo-card:hover .photo-overlay {
  opacity: 1;
}

.photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.photo-overlay {
  position: absolute;
  inset: 0;
  background: rgba(29, 92, 74, 0.75);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s;
}

.photo-overlay span {
  color: #fff;
  font-size: 1.5rem;
}

.photo-overlay p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.72rem;
  margin-top: 4px;
}

.photo-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.65), transparent);
  padding: 20px 12px 10px;
}

.photo-caption span {
  color: #fff;
  font-size: 0.72rem;
  font-weight: 400;
  line-height: 1.4;
  display: block;
}

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.92);
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.lightbox.open {
  display: flex;
}

.lb-inner {
  position: relative;
  max-width: 900px;
  width: 100%;
}

.lb-img-wrap {
  border-radius: 14px;
  overflow: hidden;
  background: #111;
  max-height: 75vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lb-img-wrap img {
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
  display: block;
}

.lb-placeholder {
  width: 100%;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: #1a1a1a;
  border-radius: 14px;
}

.lb-placeholder .lb-ph-icon {
  font-size: 3rem;
  opacity: 0.3;
}

.lb-placeholder p {
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.875rem;
  text-align: center;
}

.lb-info {
  padding: 16px 4px 0;
}

.lb-caption {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  font-weight: 400;
  margin-bottom: 4px;
}

.lb-cat {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.78rem;
}

.lb-close {
  position: absolute;
  top: -48px;
  right: 0;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.lb-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.lb-nav:hover {
  background: rgba(255, 255, 255, 0.2);
}

.lb-prev { left: -60px; }
.lb-next { right: -60px; }

.lb-counter {
  position: absolute;
  top: -48px;
  left: 0;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.78rem;
}

@media (max-width: 900px) {
  .gallery-hero {
    padding-left: 24px;
    padding-right: 24px;
  }

  .photo-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .lb-prev { left: -12px; }
  .lb-next { right: -12px; }
}

@media (max-width: 500px) {
  .photo-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .cat-title {
    font-size: 1.4rem;
  }
}
