/* Gallery Page Styles */
.gallery-hero {
  padding: 7rem 2rem;
  text-align: center;
  background: linear-gradient(135deg, #0f3d2e, #1f7a5a);
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.gallery-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(255,215,0,0.15), transparent 60%);
}

.gallery-hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.gallery-hero p {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto;
}

.gallery-filters {
  padding: 2rem;
  text-align: center;
  background: var(--soft-gray);
}

.filter-btn {
  background: rgba(31,122,90,0.08);
  color: #0f3d2e;
  border: 1px solid rgba(31,122,90,0.25);

  padding: 0.6rem 1.6rem;
  margin: 0.4rem;

  border-radius: 999px; /* pill shape */
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.3px;

  cursor: pointer;
  transition: 
    background 0.3s ease,
    color 0.3s ease,
    box-shadow 0.3s ease,
    transform 0.25s ease;
}

/* Hover (subtle lift) */
.filter-btn:hover {
  background: rgba(31,122,90,0.18);
  transform: translateY(-2px);
}

/* Active (strong, confident) */
.filter-btn.active {
  background: linear-gradient(135deg, #1f7a5a, #0f3d2e);
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(15,61,46,0.35);
  border-color: transparent;
}


.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
  padding: 2rem;
  background: var(--white);
}

.gallery-item {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: 18px;

  box-shadow:
    0 10px 25px rgba(0,0,0,0.12),
    0 25px 50px rgba(0,0,0,0.08);

  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.gallery-item:hover {
  transform: translateY(-6px);
}

.gallery-item img, .gallery-item video {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}
.gallery-item video {
  pointer-events: none;   /* allow hover to pass through */
}

/* .overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0,0,0,0.7);
  color: var(--white);
  padding: 1rem;
  transform: translateY(100%);
  transition: transform 0.3s ease;
} */
.overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(15,61,46,0.9),
    rgba(15,61,46,0.2),
    transparent
  );
  color: #ffffff;
  padding: 1.5rem;

  display: flex;
  flex-direction: column;
  justify-content: flex-end;

  transform: translateY(35%);
  transition: transform 0.35s ease;
}

.gallery-item:hover .overlay {
  transform: translateY(0);
}

.play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 2rem;
  color: var(--gold-accent);
}

.lightbox {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.9);
  justify-content: center;
  align-items: center;
}

.lightbox.show {
  display: flex;
}

.close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: var(--white);
  font-size: 2rem;
  cursor: pointer;
}

.lightbox-content img, .lightbox-content video {
  max-width: 90%;
  max-height: 90%;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  .gallery-hero h1 {
    font-size: 2rem;
  }
}
.footer .badges img {
  width: 80px;          /* ✅ ideal size */
  max-width: 100%;
  height: auto;
  opacity: 0.85;        /* subtle, professional */
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.footer .badges img:hover {
  transform: scale(1.05);
  opacity: 1;
}
.gallery-filters {
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.filter-btn {
  font-weight: 500;
}

.filter-btn.active {
  box-shadow: 0 6px 15px rgba(31,122,90,0.35);
}
.video-item::after {
  content: "VIDEO";
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(255,215,0,0.9);
  color: #0f3d2e;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
}
.lightbox {
  backdrop-filter: blur(6px);
}
.gallery-grid {
  background:
    linear-gradient(
      180deg,
      #ffffff 0%,
      #f6fff9 50%,
      #ffffff 100%
    );
}
