/* ---------- Wrapper ---------- */
.portfolio-tabs-wrapper {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
      @font-face {
        font-family: 'Gilroy'; /* This is the name you'll use in font-family */
        src: url('path/to/gilroy-bold.woff2') format('woff2'),
             url('path/to/gilroy-bold.woff') format('woff');
        font-weight: 700; /* Or 'bold' */
        font-style: normal;
    }
}

/* ---------- Tabs (equal width buttons) ---------- */
.portfolio-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: nowrap;   /* ✅ single row desktop */
  max-width: 100%;
  overflow-x: auto;    /* ✅ allows scrolling if needed */
}

/* Equal width tab buttons */
.portfolio-tabs-wrapper .portfolio-tabs .tab-button {
  flex: 1;                     
  max-width: 200px;            
  text-align: center;
  padding: 10px 16px;
  border: 1px solid #ccc;
  background: #fff !important;
  color: #000 !important;
  font-family: 'Gilroy-Bold', sans-serif; 
  font-weight: 500;
  font-size: 18px;   
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.22s ease;
  box-sizing: border-box;
  white-space: nowrap;
}

/* Active & hover state */
.portfolio-tabs-wrapper .portfolio-tabs .tab-button.active,
.portfolio-tabs-wrapper .portfolio-tabs .tab-button:hover {
  background: #0a4db7 !important;
  color: #fff !important;
  border-color: #0a4db7 !important;
}

/* ---------- Tablet view: allow multiple rows ---------- */
@media (max-width: 1024px) {
  .portfolio-tabs {
    flex-wrap: wrap;         /* ✅ allow wrapping */
    justify-content: center; /* ✅ keep centered */
  }
  .portfolio-tabs-wrapper .portfolio-tabs .tab-button {
    flex: 1 1 calc(33.33% - 10px); /* ✅ 3 per row */
    max-width: none;
  }
}

/* ---------- Mobile view: full-width stacked ---------- */
@media (max-width: 640px) {
  .portfolio-tabs {
    flex-wrap: wrap; 
  }
  .portfolio-tabs-wrapper .portfolio-tabs .tab-button {
    flex: 1 1 100%;  /* ✅ each button full width */
    max-width: none;
  }
}

/* ---------- Grid: 3 columns desktop, 2 tablet, 1 mobile ---------- */
.portfolio-tabs-wrapper .portfolio-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(3, 1fr);
}

/* tablet grid */
@media (max-width: 1024px) {
  .portfolio-tabs-wrapper .portfolio-grid { 
    grid-template-columns: repeat(2, 1fr); 
  }
}

/* mobile grid */
@media (max-width: 640px) {
  .portfolio-tabs-wrapper .portfolio-grid { 
    grid-template-columns: 1fr; 
  }
}

/* ---------- Card layout ---------- */
.portfolio-tabs-wrapper .portfolio-item {
  background: #fff;
  border: 1px solid #ddd;
  padding: 12px;
  text-align: center;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.04);
  transition: transform 0.25s ease;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 320px;
}
.portfolio-tabs-wrapper .portfolio-item:hover {
  transform: translateY(-6px);
}

/* ---------- Image wrapper ---------- */
.portfolio-tabs-wrapper .portfolio-thumb {
  width: 100%;
  height: 300px !important;
  overflow: hidden;
  border-radius: 6px;
  flex: 0 0 auto;
}
.portfolio-tabs-wrapper .portfolio-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---------- Card title & button ---------- */
.portfolio-tabs-wrapper .portfolio-item h3 {
  font-family: 'Gilroy-Bold', sans-serif;
  font-weight: 500;
  font-size: 20px;
  margin: 0;
  line-height: 1.2;
  flex: 1 1 auto;
}
.portfolio-tabs-wrapper .read-more {
  display: inline-block;
  margin-top: auto;
  padding: 8px 14px;
  background: #0a4db7;
  color: #fff;
  border-radius: 5px;
  text-decoration: none;
  font-size: 14px;
}

/* ---------- Filtering helper ---------- */
.portfolio-tabs-wrapper .portfolio-item.is-hidden { 
  display: none !important; 
}