:root {
  --primary: #0a7a4b;
  --primary-dark: #072f22;
  --accent: #d6402a;
  --text-dark: #2c3e50;
  --text-light: #666666;
  --bg-light: #fffaf1;
  --card-bg: #ffffff;
  --shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  --transition: all 0.3s ease;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Poppins', sans-serif;
}

body {
  background-color: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.6;
}

.gallery-section {
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-header h2 {
  font-size: 2.3rem;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  display: inline-block;
  padding-bottom: 0.5rem;
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 3px;
  background-color: var(--accent);
  border-radius: 2px;
}

.section-header p {
  color: var(--text-light);
  font-size: 1rem;
  margin-top: 0.5rem;
}

.filter-menu {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2rem;
}

.filter-btn {
  padding: 0.6rem 1.4rem;
  border: 1px solid var(--primary);
  background-color: transparent;
  color: var(--primary);
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: 25px;
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  background-color: var(--primary);
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(10, 122, 75, 0.30);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.gallery-item {
  position: relative;
  background: var(--card-bg);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: var(--transition);
  aspect-ratio: 4 / 3;
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

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

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

.gallery-item.hidden {
  display: none;
}

.item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(20, 40, 77, 0.85) 0%, rgba(20, 40, 77, 0.15) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.2rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover .item-overlay {
  opacity: 1;
}

.item-badge {
  align-self: flex-start;
  font-size: 0.75rem;
  text-transform: uppercase;
  font-weight: 600;
  background-color: var(--accent);
  color: #ffffff;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  margin-bottom: 0.4rem;
}

.item-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: #ffffff;
}

.lightbox-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background-color: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
}

.lightbox-modal.active {
  display: flex;
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 75vh;
  border-radius: 6px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  object-fit: contain;
}

.lightbox-caption {
  color: #ffffff;
  font-size: 1.05rem;
  margin-top: 0.8rem;
  text-align: center;
}

.close-btn {
  position: absolute;
  top: 20px;
  right: 25px;
  color: #ffffff;
  font-size: 2.2rem;
  font-weight: bold;
  cursor: pointer;
  background: none;
  border: none;
  line-height: 1;
}

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

.nav-btn:hover {
  background-color: rgba(255, 255, 255, 0.4);
}

.nav-btn.prev {
  left: 20px;
}

.nav-btn.next {
  right: 20px;
}

@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
  }
  .section-header h2 {
    font-size: 1.8rem;
  }
  .nav-btn {
    width: 38px;
    height: 38px;
    font-size: 1.4rem;
  }
}
