    .btn-custom-primary {
      background-color: var(--primary-color);
      border-color: var(--primary-color);
    }

    /* Filter buttons */
    .filter-btn {
      border-radius:10px;
      font-size: 0.8rem;
      padding: 0.4rem 0.9rem;
    }
    
    .filter-btn.active, .filter-btn:hover {
      background:var(--primary-color)!important;
      border-color:var(--primary-color)!important;
    }

    /* Gallery */
.gallery-container {
  padding: 0 15px;
}

/* Main grid layout */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 4 per row by default */
  gap: 12px; /* space between cards */
}

/* Each card image styling */
.gallery-item {
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

.gallery-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-item:hover .gallery-image {
  transform: scale(1.05); /* slight zoom on hover */
}

    /* Modal styling */

 .new-modal-content {
  background: var(--color-black);
  border-radius: 0;
  width: 90%;
  max-width: 900px;
  max-height: 90vh; /* ensures full modal fits within screen height */
  overflow: hidden; /* keeps content inside the modal */
}

.new-modal-header {
  border-bottom: 1px solid var(--border-color);
  flex-shrink: 0;
  padding: 1rem;
}

.new-modal-body {
  padding: 0;
  flex: 1 1 auto; /* allows body to grow and shrink */
  overflow-y: auto; /* enables scrolling when content exceeds viewport */
}

.new-modal-image {
  display: block;
  width: 100%;
  height: auto;
  max-height: 60vh; /* keeps image visible without cutting */
  object-fit: contain;
  object-position: center;
}

.btn-close {
  filter: invert(1);
}

.modal-title {
  font-size: 1rem;
  font-weight: 600;
}

.modal-category {
  color: var(--primary-red);
  font-size: 0.8rem;
  margin-bottom: 0;
}

.modal-description {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* Responsive tweaks */
@media (width < 1024px) {
  .new-modal-content {
    max-width: 700px;
    max-height: 85vh;
  }

  .new-modal-image {
    max-height: 50vh;
  }
}

@media (width < 768px) {
  .new-modal-content {
    width: 95%;
    max-width: 600px;
    max-height: 85vh;
  }

  .new-modal-body {
    flex-direction: column;
  }

  .new-modal-image {
    max-height: 45vh;
  }
}

@media (width < 480px) {
  .new-modal-content {
    width: 95%;
    max-height: 80vh;
  }
  
  .new-modal-image {
    max-height: 40vh;
  }
}
