/* ============================================================
   MEILS – GALLERY PAGE
============================================================ */

/* Hero */
.gallery-hero {
  background: linear-gradient(135deg, var(--teal-dark) 0%, var(--teal-mid) 55%, var(--teal-light) 100%);
  padding: 100px 48px 60px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 40px; min-height: 220px;
  position: relative; overflow: hidden;
}
.gallery-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 80% 50%, rgba(62,201,110,.12) 0%, transparent 60%);
}
.gallery-hero-content { position: relative; z-index: 1; }
.gallery-hero-content h1 { font-size: 2.2rem; font-weight: 800; color: #fff; margin: 12px 0 10px; }
.gallery-hero-content p  { color: rgba(255,255,255,.8); font-size: .95rem; max-width: 480px; }

.gallery-hero-icon {
  font-size: 6rem; color: rgba(255,255,255,.08);
  position: absolute; right: 80px; top: 50%; transform: translateY(-50%);
}

/* Breadcrumb */
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: .8rem; color: rgba(255,255,255,.6); }
.breadcrumb a { color: rgba(255,255,255,.7); text-decoration: none; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb i { font-size: .6rem; }

/* Layout */
.gallery-main { padding: 48px 0 60px; background: var(--gray-bg); }
.gallery-container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }

/* Filters */
.gallery-filters {
  display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 20px;
}
.gf-btn {
  padding: 8px 20px; border-radius: 999px;
  border: 1.5px solid var(--gray-border);
  background: #fff; color: var(--text-muted);
  font-size: .84rem; font-weight: 500; cursor: pointer;
  transition: all .2s;
}
.gf-btn:hover { border-color: var(--cta-orange); color: var(--cta-orange); }
.gf-btn.active {
  background: var(--cta-orange); border-color: var(--cta-orange);
  color: #fff;
}

/* Count */
.gallery-count {
  font-size: .82rem; color: var(--text-muted);
  margin-bottom: 24px;
}

/* Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

/* Card */
.gallery-card {
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .25s, box-shadow .25s;
  cursor: pointer;
}
.gallery-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.gallery-card.hidden { display: none; }

/* Image placeholder */
.gallery-img {
  position: relative; height: 200px;
  background: linear-gradient(135deg, var(--teal-dark) 0%, var(--teal-mid) 100%);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.gallery-img--alt1 { background: linear-gradient(135deg, var(--teal-dark) 0%, var(--teal-mid) 100%); }
.gallery-img--alt2 { background: linear-gradient(135deg, var(--teal-mid) 0%, var(--teal-light) 100%); }
.gallery-img--alt3 { background: linear-gradient(135deg, #03373b 0%, var(--teal-mid) 50%, var(--teal-light) 100%); }
.gallery-img--alt4 { background: linear-gradient(135deg, #1a4a1a 0%, var(--teal-mid) 100%); }

.gallery-placeholder {
  font-size: 3.5rem;
  color: rgba(255,255,255,.2);
  transition: transform .3s, color .3s;
}
.gallery-card:hover .gallery-placeholder {
  transform: scale(1.1);
  color: rgba(255,255,255,.35);
}

/* Overlay */
.gallery-overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,.75));
  padding: 28px 14px 14px;
  display: flex; flex-direction: column; gap: 4px;
  transform: translateY(100%);
  transition: transform .25s;
}
.gallery-card:hover .gallery-overlay { transform: translateY(0); }

.gallery-label {
  font-size: .78rem; font-weight: 600; color: #fff; line-height: 1.4;
}
.gallery-cat {
  font-size: .68rem; color: var(--green-bright);
  text-transform: uppercase; letter-spacing: .05em;
}

/* Stats */
.gallery-stats {
  background: var(--teal-dark);
  padding: 48px 24px;
}
.gstat-grid {
  max-width: 1240px; margin: 0 auto;
  display: flex; align-items: center; justify-content: center;
  gap: 0; flex-wrap: wrap;
}
.gstat-item {
  display: flex; flex-direction: column; align-items: center;
  gap: 4px; padding: 0 48px; text-align: center;
}
.gstat-num {
  font-size: 2.4rem; font-weight: 800; color: var(--green-bright);
  line-height: 1;
}
.gstat-suffix { font-size: 1.4rem; font-weight: 700; color: var(--green-bright); }
.gstat-label { font-size: .8rem; color: rgba(255,255,255,.65); margin-top: 2px; }
.gstat-divider {
  width: 1px; height: 60px;
  background: rgba(255,255,255,.15);
  flex-shrink: 0;
}

/* Responsive */
@media (max-width: 1024px) {
  .gallery-grid { grid-template-columns: repeat(3,1fr); }
}
@media (max-width: 768px) {
  .gallery-hero { padding: 100px 24px 48px; flex-direction: column; }
  .gallery-hero-icon { display: none; }
  .gallery-grid { grid-template-columns: repeat(2,1fr); }
  .gstat-item { padding: 16px 24px; }
  .gstat-divider { display: none; }
}
@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .gallery-img { height: 150px; }
}
