
.gallery-section {
  max-width: 1200px;
  margin: auto;
  padding: 60px 20px;
  text-align: center;
  font-family: Arial, sans-serif;
}

.gallery-section h2 {
  font-size: clamp(28px, 4vw, 42px);
  margin-bottom: 12px;
}

.gallery-section > p {
  color: #666;
  margin-bottom: 28px;
}

.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 35px;
}

.filter-btn {
  padding: 11px 20px;
  border: 1px solid #ddd;
  border-radius: 30px;
  background: #fff;
  color: #333;
  font-size: 14px;
  cursor: pointer;
  transition: .25s ease;
}

.filter-btn:hover,
.filter-btn.active {
  background: #f47721;
  border-color: #f47721;
  color: #fff;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 22px;
  text-align: left;
}

.gallery-item {
  overflow: hidden;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 5px 22px rgba(0, 0, 0, .08);
  cursor: pointer;
  animation: fadeIn .3s ease;
  border: 1px solid rgb(172, 170, 170);
}

.gallery-item img {
  display: block;
  width: 100%;
  height: 240px;
  object-fit: cover;
  transition: transform .35s ease;
}

.gallery-item:hover img {
  transform: scale(1.04);
}

.gallery-caption {
  padding: 18px;
}

.gallery-caption h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.gallery-caption p {
  margin: 0;
  color: #777;
  font-size: 14px;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 60px 75px;
  background: rgba(0, 0, 0, .95);
}

.lightbox.active {
  display: flex;
}

.lightbox-content {
  text-align: center;
  max-width: 100%;
}

.lightbox-content img {
  display: block;
  max-width: 100%;
  max-height: 68vh;
  width: auto;
  height: auto;
  object-fit: contain;
  margin: auto;
  border-radius: 6px;
}

.lightbox-content h3 {
  color: white;
  margin-top: 18px;
}

.lightbox-content p {
  color: #ccc;
  margin-top: 8px;
}

.close-btn,
.nav-btn {
  position: absolute;
  border: none;
  color: white;
  cursor: pointer;
}

.close-btn {
  top: 15px;
  right: 28px;
  background: transparent;
  font-size: 42px;
}

.nav-btn {
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 55px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .15);
  font-size: 22px;
}

.close-btn:hover,
.nav-btn:hover {
  color: #f47721;
}

.prev-btn { left: 15px; }
.next-btn { right: 15px; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .gallery-item img { height: 190px; }

  .lightbox { padding: 55px 45px; }
  .nav-btn { width: 36px; height: 44px; }
  .prev-btn { left: 4px; }
  .next-btn { right: 4px; }
}

@media (max-width: 480px) {
  .gallery { grid-template-columns: 1fr; }
  .gallery-item img { height: 230px; }

  .filter-btn {
    padding: 9px 14px;
    font-size: 13px;
  }
}
