/* Custom CSS for the modern gallery */
:root {
  --primary: #ff0000;
  --secondary: #ff6a00;
  --dark: #0a0a0a;
  --light: #f8f9fa;
  --gray: #6c757d;
}
.gallery-filter {
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.gallery-filter .nav-link {
  border-radius: 0;
  padding: 1.5rem 2rem;
  font-weight: 600;
  position: relative;
  background: transparent;
  border: none;
}

.gallery-filter .nav-link.active {
  color: var(--primary);
  background: transparent;
}

.gallery-filter .nav-link.active:after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--primary);
}


.gallery-heading {
  font-weight: 700;
   
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-wrapper {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-subheading {
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

.gallery-card {
  background: #1a1a1a;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  height: 100%;
}

.gallery-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.4);
}

.gallery-img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
}

.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-card:hover .gallery-img {
  transform: scale(1.05);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-card:hover .gallery-overlay {
  opacity: 1;
}

.gallery-actions {
  display: flex;
  gap: 10px;
}

.btn-view, .btn-share {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.btn-view:hover, .btn-share:hover {
  background: var(--secondary);
  transform: scale(1.1);
}

.zoom-icon {
  width: 50px;
  height: 50px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.badge {
  position: absolute;
  padding: 0.5rem 1rem;
  font-weight: 700;
  border-radius: 4px;
  z-index: 2;
}

.badge.before {
  top: 15px;
  color: #fff;
  left: 15px;
  background: #333;
   
}
button:focus {
    outline: unset;
}
.badge.after {
  top: 15px;
  color: #fff;
  right: 15px;
  background: var(--primary);
   
}

.gallery-info {
  padding: 1.5rem;
}

.progress-wrapper {
  margin-bottom: 1rem;
}

.progress {
  height: 8px;
  background-color: #2a2a2a;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.progress-bar {
  background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.progress-text {
  font-size: 0.8rem;
  color: var(--primary);
  font-weight: 600;
}

.transformation-stats {
  display: flex;
  justify-content: space-around;
  text-align: center;
}

.stat-item {
  padding: 0 1rem;
}

.stat-value {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
   
}

.stat-label {
  font-size: 0.8rem;
  color: var(--gray);
}

.exercise-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.5rem;
   
}

.exercise-meta {
  display: flex;
  gap: 1rem;
}

.meta-item {
  font-size: 0.9rem;
  color: var(--gray);
}

.facility-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.25rem;
   
}

.facility-desc {
  font-size: 0.9rem;
  color: var(--gray);
  margin: 0;
}

.cta-section {
  background: linear-gradient(90deg, var(--primary), var(--secondary));
}

@media (max-width: 768px) {
  .gallery-filter .nav-link {
    padding: 1rem;
    font-size: 0.9rem;
  }
  
  .transformation-stats {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .stat-item {
    padding: 0;
  }
}